From 5e3545459ca30fc44f9b930b69e37ea127a48fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Jutteau?= Date: Mon, 11 Apr 2022 16:58:58 +0200 Subject: [PATCH] First generation of osc-sdk-js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Jutteau --- .github/dependabot.yml | 9 + .github/scripts/check-creds-settings.sh | 17 + .github/scripts/osc-api-check.sh | 28 + .github/scripts/release-build.sh | 40 + .github/scripts/release-check-duplicate.sh | 29 + .github/scripts/release-pr.sh | 27 + .github/scripts/release-push.sh | 18 + .github/workflows/build.yml | 39 + .github/workflows/cred-scan.yml | 16 + .github/workflows/pull-request.yml | 63 + .gitignore | 4 + .npmignore | 8 + .nvmrc | 1 + .reuse/dep5 | 12 + CONTRIBUTING.md | 63 + LICENSES/BSD-3-Clause.txt | 26 + LICENSES/CC-BY-4.0.txt | 324 ++ Makefile | 138 + README.md | 36 + api_version | 1 + changelog.md | 1 + dist/cjs/apis/AccessKeyApi.d.ts | 126 + dist/cjs/apis/AccessKeyApi.js | 266 ++ dist/cjs/apis/AccountApi.d.ts | 166 ++ dist/cjs/apis/AccountApi.js | 323 ++ dist/cjs/apis/ApiAccessPolicyApi.d.ts | 66 + dist/cjs/apis/ApiAccessPolicyApi.js | 140 + dist/cjs/apis/ApiAccessRuleApi.d.ts | 106 + dist/cjs/apis/ApiAccessRuleApi.js | 224 ++ dist/cjs/apis/ApiLogApi.d.ts | 46 + dist/cjs/apis/ApiLogApi.js | 95 + dist/cjs/apis/CaApi.d.ts | 106 + dist/cjs/apis/CaApi.js | 224 ++ dist/cjs/apis/CatalogApi.d.ts | 46 + dist/cjs/apis/CatalogApi.js | 95 + dist/cjs/apis/ClientGatewayApi.d.ts | 86 + dist/cjs/apis/ClientGatewayApi.js | 173 ++ dist/cjs/apis/DhcpOptionApi.d.ts | 86 + dist/cjs/apis/DhcpOptionApi.js | 173 ++ dist/cjs/apis/DirectLinkApi.d.ts | 86 + dist/cjs/apis/DirectLinkApi.js | 173 ++ dist/cjs/apis/DirectLinkInterfaceApi.d.ts | 86 + dist/cjs/apis/DirectLinkInterfaceApi.js | 173 ++ dist/cjs/apis/FlexibleGpuApi.d.ts | 166 ++ dist/cjs/apis/FlexibleGpuApi.js | 326 +++ dist/cjs/apis/ImageApi.d.ts | 146 + dist/cjs/apis/ImageApi.js | 290 ++ dist/cjs/apis/InternetServiceApi.d.ts | 126 + dist/cjs/apis/InternetServiceApi.js | 251 ++ dist/cjs/apis/KeypairApi.d.ts | 86 + dist/cjs/apis/KeypairApi.js | 173 ++ dist/cjs/apis/ListenerApi.d.ts | 146 + dist/cjs/apis/ListenerApi.js | 290 ++ dist/cjs/apis/LoadBalancerApi.d.ts | 266 ++ dist/cjs/apis/LoadBalancerApi.js | 524 ++++ dist/cjs/apis/LoadBalancerPolicyApi.d.ts | 66 + dist/cjs/apis/LoadBalancerPolicyApi.js | 134 + dist/cjs/apis/LocationApi.d.ts | 46 + dist/cjs/apis/LocationApi.js | 92 + dist/cjs/apis/NatServiceApi.d.ts | 86 + dist/cjs/apis/NatServiceApi.js | 173 ++ dist/cjs/apis/NetAccessPointApi.d.ts | 126 + dist/cjs/apis/NetAccessPointApi.js | 248 ++ dist/cjs/apis/NetApi.d.ts | 106 + dist/cjs/apis/NetApi.js | 212 ++ dist/cjs/apis/NetPeeringApi.d.ts | 126 + dist/cjs/apis/NetPeeringApi.js | 251 ++ dist/cjs/apis/NicApi.d.ts | 186 ++ dist/cjs/apis/NicApi.js | 368 +++ dist/cjs/apis/ProductTypeApi.d.ts | 46 + dist/cjs/apis/ProductTypeApi.js | 92 + dist/cjs/apis/PublicCatalogApi.d.ts | 46 + dist/cjs/apis/PublicCatalogApi.js | 92 + dist/cjs/apis/PublicIpApi.d.ts | 146 + dist/cjs/apis/PublicIpApi.js | 287 ++ dist/cjs/apis/QuotaApi.d.ts | 46 + dist/cjs/apis/QuotaApi.js | 95 + dist/cjs/apis/RegionApi.d.ts | 46 + dist/cjs/apis/RegionApi.js | 92 + dist/cjs/apis/RouteApi.d.ts | 86 + dist/cjs/apis/RouteApi.js | 173 ++ dist/cjs/apis/RouteTableApi.d.ts | 126 + dist/cjs/apis/RouteTableApi.js | 251 ++ dist/cjs/apis/SecurityGroupApi.d.ts | 86 + dist/cjs/apis/SecurityGroupApi.js | 173 ++ dist/cjs/apis/SecurityGroupRuleApi.d.ts | 66 + dist/cjs/apis/SecurityGroupRuleApi.js | 134 + dist/cjs/apis/ServerCertificateApi.d.ts | 106 + dist/cjs/apis/ServerCertificateApi.js | 212 ++ dist/cjs/apis/SnapshotApi.d.ts | 146 + dist/cjs/apis/SnapshotApi.js | 290 ++ dist/cjs/apis/SubnetApi.d.ts | 106 + dist/cjs/apis/SubnetApi.js | 212 ++ dist/cjs/apis/SubregionApi.d.ts | 46 + dist/cjs/apis/SubregionApi.js | 95 + dist/cjs/apis/TagApi.d.ts | 86 + dist/cjs/apis/TagApi.js | 173 ++ dist/cjs/apis/TaskApi.d.ts | 46 + dist/cjs/apis/TaskApi.js | 95 + dist/cjs/apis/VirtualGatewayApi.d.ts | 146 + dist/cjs/apis/VirtualGatewayApi.js | 290 ++ dist/cjs/apis/VmApi.d.ts | 246 ++ dist/cjs/apis/VmApi.js | 482 +++ dist/cjs/apis/VolumeApi.d.ts | 146 + dist/cjs/apis/VolumeApi.js | 290 ++ dist/cjs/apis/VpnConnectionApi.d.ts | 146 + dist/cjs/apis/VpnConnectionApi.js | 290 ++ dist/cjs/apis/index.d.ts | 43 + dist/cjs/apis/index.js | 61 + dist/cjs/index.d.ts | 3 + dist/cjs/index.js | 21 + dist/cjs/models/AcceptNetPeeringRequest.d.ts | 33 + dist/cjs/models/AcceptNetPeeringRequest.js | 44 + dist/cjs/models/AcceptNetPeeringResponse.d.ts | 35 + dist/cjs/models/AcceptNetPeeringResponse.js | 46 + dist/cjs/models/AccepterNet.d.ts | 39 + dist/cjs/models/AccepterNet.js | 46 + dist/cjs/models/AccessKey.d.ts | 51 + dist/cjs/models/AccessKey.js | 50 + dist/cjs/models/AccessKeySecretKey.d.ts | 57 + dist/cjs/models/AccessKeySecretKey.js | 52 + dist/cjs/models/AccessLog.d.ts | 45 + dist/cjs/models/AccessLog.js | 48 + dist/cjs/models/Account.d.ts | 111 + dist/cjs/models/Account.js | 70 + dist/cjs/models/ApiAccessPolicy.d.ts | 33 + dist/cjs/models/ApiAccessPolicy.js | 44 + dist/cjs/models/ApiAccessRule.d.ts | 51 + dist/cjs/models/ApiAccessRule.js | 50 + .../models/ApplicationStickyCookiePolicy.d.ts | 33 + .../models/ApplicationStickyCookiePolicy.js | 44 + dist/cjs/models/BackendVmHealth.d.ts | 46 + dist/cjs/models/BackendVmHealth.js | 48 + .../cjs/models/BlockDeviceMappingCreated.d.ts | 34 + dist/cjs/models/BlockDeviceMappingCreated.js | 45 + dist/cjs/models/BlockDeviceMappingImage.d.ts | 40 + dist/cjs/models/BlockDeviceMappingImage.js | 47 + .../models/BlockDeviceMappingVmCreation.d.ts | 46 + .../models/BlockDeviceMappingVmCreation.js | 49 + .../models/BlockDeviceMappingVmUpdate.d.ts | 46 + dist/cjs/models/BlockDeviceMappingVmUpdate.js | 49 + dist/cjs/models/BsuCreated.d.ts | 45 + dist/cjs/models/BsuCreated.js | 48 + dist/cjs/models/BsuToCreate.d.ts | 54 + dist/cjs/models/BsuToCreate.js | 50 + dist/cjs/models/BsuToUpdateVm.d.ts | 33 + dist/cjs/models/BsuToUpdateVm.js | 44 + dist/cjs/models/Ca.d.ts | 39 + dist/cjs/models/Ca.js | 46 + dist/cjs/models/Catalog.d.ts | 28 + dist/cjs/models/Catalog.js | 43 + dist/cjs/models/CatalogEntry.d.ts | 69 + dist/cjs/models/CatalogEntry.js | 56 + .../models/CheckAuthenticationRequest.d.ts | 39 + dist/cjs/models/CheckAuthenticationRequest.js | 46 + .../models/CheckAuthenticationResponse.d.ts | 28 + .../cjs/models/CheckAuthenticationResponse.js | 43 + dist/cjs/models/ClientGateway.d.ts | 58 + dist/cjs/models/ClientGateway.js | 53 + dist/cjs/models/ConsumptionEntry.d.ts | 87 + dist/cjs/models/ConsumptionEntry.js | 62 + dist/cjs/models/CreateAccessKeyRequest.d.ts | 33 + dist/cjs/models/CreateAccessKeyRequest.js | 44 + dist/cjs/models/CreateAccessKeyResponse.d.ts | 35 + dist/cjs/models/CreateAccessKeyResponse.js | 46 + dist/cjs/models/CreateAccountRequest.d.ts | 111 + dist/cjs/models/CreateAccountRequest.js | 70 + dist/cjs/models/CreateAccountResponse.d.ts | 35 + dist/cjs/models/CreateAccountResponse.js | 46 + .../models/CreateApiAccessRuleRequest.d.ts | 51 + dist/cjs/models/CreateApiAccessRuleRequest.js | 50 + .../models/CreateApiAccessRuleResponse.d.ts | 35 + .../cjs/models/CreateApiAccessRuleResponse.js | 46 + dist/cjs/models/CreateCaRequest.d.ts | 39 + dist/cjs/models/CreateCaRequest.js | 46 + dist/cjs/models/CreateCaResponse.d.ts | 35 + dist/cjs/models/CreateCaResponse.js | 46 + .../models/CreateClientGatewayRequest.d.ts | 45 + dist/cjs/models/CreateClientGatewayRequest.js | 48 + .../models/CreateClientGatewayResponse.d.ts | 35 + .../cjs/models/CreateClientGatewayResponse.js | 46 + dist/cjs/models/CreateDhcpOptionsRequest.d.ts | 45 + dist/cjs/models/CreateDhcpOptionsRequest.js | 48 + .../cjs/models/CreateDhcpOptionsResponse.d.ts | 35 + dist/cjs/models/CreateDhcpOptionsResponse.js | 46 + .../CreateDirectLinkInterfaceRequest.d.ts | 40 + .../CreateDirectLinkInterfaceRequest.js | 47 + .../CreateDirectLinkInterfaceResponse.d.ts | 35 + .../CreateDirectLinkInterfaceResponse.js | 46 + dist/cjs/models/CreateDirectLinkRequest.d.ts | 45 + dist/cjs/models/CreateDirectLinkRequest.js | 48 + dist/cjs/models/CreateDirectLinkResponse.d.ts | 35 + dist/cjs/models/CreateDirectLinkResponse.js | 46 + dist/cjs/models/CreateFlexibleGpuRequest.d.ts | 51 + dist/cjs/models/CreateFlexibleGpuRequest.js | 50 + .../cjs/models/CreateFlexibleGpuResponse.d.ts | 35 + dist/cjs/models/CreateFlexibleGpuResponse.js | 46 + .../models/CreateImageExportTaskRequest.d.ts | 40 + .../models/CreateImageExportTaskRequest.js | 47 + .../models/CreateImageExportTaskResponse.d.ts | 35 + .../models/CreateImageExportTaskResponse.js | 46 + dist/cjs/models/CreateImageRequest.d.ts | 89 + dist/cjs/models/CreateImageRequest.js | 63 + dist/cjs/models/CreateImageResponse.d.ts | 35 + dist/cjs/models/CreateImageResponse.js | 46 + .../models/CreateInternetServiceRequest.d.ts | 27 + .../models/CreateInternetServiceRequest.js | 42 + .../models/CreateInternetServiceResponse.d.ts | 35 + .../models/CreateInternetServiceResponse.js | 46 + dist/cjs/models/CreateKeypairRequest.d.ts | 39 + dist/cjs/models/CreateKeypairRequest.js | 46 + dist/cjs/models/CreateKeypairResponse.d.ts | 35 + dist/cjs/models/CreateKeypairResponse.js | 46 + .../cjs/models/CreateListenerRuleRequest.d.ts | 47 + dist/cjs/models/CreateListenerRuleRequest.js | 50 + .../models/CreateListenerRuleResponse.d.ts | 35 + dist/cjs/models/CreateListenerRuleResponse.js | 46 + .../CreateLoadBalancerListenersRequest.d.ts | 40 + .../CreateLoadBalancerListenersRequest.js | 47 + .../CreateLoadBalancerListenersResponse.d.ts | 35 + .../CreateLoadBalancerListenersResponse.js | 46 + .../CreateLoadBalancerPolicyRequest.d.ts | 57 + .../models/CreateLoadBalancerPolicyRequest.js | 52 + .../CreateLoadBalancerPolicyResponse.d.ts | 35 + .../CreateLoadBalancerPolicyResponse.js | 46 + .../cjs/models/CreateLoadBalancerRequest.d.ts | 77 + dist/cjs/models/CreateLoadBalancerRequest.js | 60 + .../models/CreateLoadBalancerResponse.d.ts | 35 + dist/cjs/models/CreateLoadBalancerResponse.js | 46 + .../models/CreateLoadBalancerTagsRequest.d.ts | 40 + .../models/CreateLoadBalancerTagsRequest.js | 47 + .../CreateLoadBalancerTagsResponse.d.ts | 28 + .../models/CreateLoadBalancerTagsResponse.js | 43 + dist/cjs/models/CreateNatServiceRequest.d.ts | 40 + dist/cjs/models/CreateNatServiceRequest.js | 46 + dist/cjs/models/CreateNatServiceResponse.d.ts | 35 + dist/cjs/models/CreateNatServiceResponse.js | 46 + .../models/CreateNetAccessPointRequest.d.ts | 45 + .../cjs/models/CreateNetAccessPointRequest.js | 48 + .../models/CreateNetAccessPointResponse.d.ts | 35 + .../models/CreateNetAccessPointResponse.js | 46 + dist/cjs/models/CreateNetPeeringRequest.d.ts | 39 + dist/cjs/models/CreateNetPeeringRequest.js | 46 + dist/cjs/models/CreateNetPeeringResponse.d.ts | 35 + dist/cjs/models/CreateNetPeeringResponse.js | 46 + dist/cjs/models/CreateNetRequest.d.ts | 39 + dist/cjs/models/CreateNetRequest.js | 46 + dist/cjs/models/CreateNetResponse.d.ts | 35 + dist/cjs/models/CreateNetResponse.js | 46 + dist/cjs/models/CreateNicRequest.d.ts | 54 + dist/cjs/models/CreateNicRequest.js | 51 + dist/cjs/models/CreateNicResponse.d.ts | 35 + dist/cjs/models/CreateNicResponse.js | 46 + dist/cjs/models/CreatePublicIpRequest.d.ts | 27 + dist/cjs/models/CreatePublicIpRequest.js | 42 + dist/cjs/models/CreatePublicIpResponse.d.ts | 35 + dist/cjs/models/CreatePublicIpResponse.js | 46 + dist/cjs/models/CreateRouteRequest.d.ts | 69 + dist/cjs/models/CreateRouteRequest.js | 56 + dist/cjs/models/CreateRouteResponse.d.ts | 35 + dist/cjs/models/CreateRouteResponse.js | 46 + dist/cjs/models/CreateRouteTableRequest.d.ts | 33 + dist/cjs/models/CreateRouteTableRequest.js | 44 + dist/cjs/models/CreateRouteTableResponse.d.ts | 35 + dist/cjs/models/CreateRouteTableResponse.js | 46 + .../models/CreateSecurityGroupRequest.d.ts | 47 + dist/cjs/models/CreateSecurityGroupRequest.js | 48 + .../models/CreateSecurityGroupResponse.d.ts | 35 + .../cjs/models/CreateSecurityGroupResponse.js | 46 + .../CreateSecurityGroupRuleRequest.d.ts | 82 + .../models/CreateSecurityGroupRuleRequest.js | 61 + .../CreateSecurityGroupRuleResponse.d.ts | 35 + .../models/CreateSecurityGroupRuleResponse.js | 46 + .../CreateServerCertificateRequest.d.ts | 57 + .../models/CreateServerCertificateRequest.js | 52 + .../CreateServerCertificateResponse.d.ts | 35 + .../models/CreateServerCertificateResponse.js | 46 + .../CreateSnapshotExportTaskRequest.d.ts | 40 + .../models/CreateSnapshotExportTaskRequest.js | 47 + .../CreateSnapshotExportTaskResponse.d.ts | 35 + .../CreateSnapshotExportTaskResponse.js | 46 + dist/cjs/models/CreateSnapshotRequest.d.ts | 63 + dist/cjs/models/CreateSnapshotRequest.js | 54 + dist/cjs/models/CreateSnapshotResponse.d.ts | 35 + dist/cjs/models/CreateSnapshotResponse.js | 46 + dist/cjs/models/CreateSubnetRequest.d.ts | 45 + dist/cjs/models/CreateSubnetRequest.js | 48 + dist/cjs/models/CreateSubnetResponse.d.ts | 35 + dist/cjs/models/CreateSubnetResponse.js | 46 + dist/cjs/models/CreateTagsRequest.d.ts | 40 + dist/cjs/models/CreateTagsRequest.js | 47 + dist/cjs/models/CreateTagsResponse.d.ts | 28 + dist/cjs/models/CreateTagsResponse.js | 43 + .../models/CreateVirtualGatewayRequest.d.ts | 33 + .../cjs/models/CreateVirtualGatewayRequest.js | 44 + .../models/CreateVirtualGatewayResponse.d.ts | 35 + .../models/CreateVirtualGatewayResponse.js | 46 + dist/cjs/models/CreateVmsRequest.d.ts | 154 + dist/cjs/models/CreateVmsRequest.js | 91 + dist/cjs/models/CreateVmsResponse.d.ts | 35 + dist/cjs/models/CreateVmsResponse.js | 46 + dist/cjs/models/CreateVolumeRequest.d.ts | 58 + dist/cjs/models/CreateVolumeRequest.js | 52 + dist/cjs/models/CreateVolumeResponse.d.ts | 35 + dist/cjs/models/CreateVolumeResponse.js | 46 + .../models/CreateVpnConnectionRequest.d.ts | 51 + dist/cjs/models/CreateVpnConnectionRequest.js | 50 + .../models/CreateVpnConnectionResponse.d.ts | 35 + .../cjs/models/CreateVpnConnectionResponse.js | 46 + .../CreateVpnConnectionRouteRequest.d.ts | 39 + .../models/CreateVpnConnectionRouteRequest.js | 46 + .../CreateVpnConnectionRouteResponse.d.ts | 28 + .../CreateVpnConnectionRouteResponse.js | 43 + dist/cjs/models/DeleteAccessKeyRequest.d.ts | 33 + dist/cjs/models/DeleteAccessKeyRequest.js | 44 + dist/cjs/models/DeleteAccessKeyResponse.d.ts | 28 + dist/cjs/models/DeleteAccessKeyResponse.js | 43 + .../models/DeleteApiAccessRuleRequest.d.ts | 33 + dist/cjs/models/DeleteApiAccessRuleRequest.js | 44 + .../models/DeleteApiAccessRuleResponse.d.ts | 28 + .../cjs/models/DeleteApiAccessRuleResponse.js | 43 + dist/cjs/models/DeleteCaRequest.d.ts | 33 + dist/cjs/models/DeleteCaRequest.js | 44 + dist/cjs/models/DeleteCaResponse.d.ts | 28 + dist/cjs/models/DeleteCaResponse.js | 43 + .../models/DeleteClientGatewayRequest.d.ts | 33 + dist/cjs/models/DeleteClientGatewayRequest.js | 44 + .../models/DeleteClientGatewayResponse.d.ts | 28 + .../cjs/models/DeleteClientGatewayResponse.js | 43 + dist/cjs/models/DeleteDhcpOptionsRequest.d.ts | 33 + dist/cjs/models/DeleteDhcpOptionsRequest.js | 44 + .../cjs/models/DeleteDhcpOptionsResponse.d.ts | 28 + dist/cjs/models/DeleteDhcpOptionsResponse.js | 43 + .../DeleteDirectLinkInterfaceRequest.d.ts | 33 + .../DeleteDirectLinkInterfaceRequest.js | 44 + .../DeleteDirectLinkInterfaceResponse.d.ts | 28 + .../DeleteDirectLinkInterfaceResponse.js | 43 + dist/cjs/models/DeleteDirectLinkRequest.d.ts | 33 + dist/cjs/models/DeleteDirectLinkRequest.js | 44 + dist/cjs/models/DeleteDirectLinkResponse.d.ts | 28 + dist/cjs/models/DeleteDirectLinkResponse.js | 43 + dist/cjs/models/DeleteExportTaskRequest.d.ts | 33 + dist/cjs/models/DeleteExportTaskRequest.js | 44 + dist/cjs/models/DeleteExportTaskResponse.d.ts | 28 + dist/cjs/models/DeleteExportTaskResponse.js | 43 + dist/cjs/models/DeleteFlexibleGpuRequest.d.ts | 33 + dist/cjs/models/DeleteFlexibleGpuRequest.js | 44 + .../cjs/models/DeleteFlexibleGpuResponse.d.ts | 28 + dist/cjs/models/DeleteFlexibleGpuResponse.js | 43 + dist/cjs/models/DeleteImageRequest.d.ts | 33 + dist/cjs/models/DeleteImageRequest.js | 44 + dist/cjs/models/DeleteImageResponse.d.ts | 28 + dist/cjs/models/DeleteImageResponse.js | 43 + .../models/DeleteInternetServiceRequest.d.ts | 33 + .../models/DeleteInternetServiceRequest.js | 44 + .../models/DeleteInternetServiceResponse.d.ts | 28 + .../models/DeleteInternetServiceResponse.js | 43 + dist/cjs/models/DeleteKeypairRequest.d.ts | 33 + dist/cjs/models/DeleteKeypairRequest.js | 44 + dist/cjs/models/DeleteKeypairResponse.d.ts | 28 + dist/cjs/models/DeleteKeypairResponse.js | 43 + .../cjs/models/DeleteListenerRuleRequest.d.ts | 33 + dist/cjs/models/DeleteListenerRuleRequest.js | 44 + .../models/DeleteListenerRuleResponse.d.ts | 28 + dist/cjs/models/DeleteListenerRuleResponse.js | 43 + .../DeleteLoadBalancerListenersRequest.d.ts | 39 + .../DeleteLoadBalancerListenersRequest.js | 46 + .../DeleteLoadBalancerListenersResponse.d.ts | 35 + .../DeleteLoadBalancerListenersResponse.js | 46 + .../DeleteLoadBalancerPolicyRequest.d.ts | 39 + .../models/DeleteLoadBalancerPolicyRequest.js | 46 + .../DeleteLoadBalancerPolicyResponse.d.ts | 35 + .../DeleteLoadBalancerPolicyResponse.js | 46 + .../cjs/models/DeleteLoadBalancerRequest.d.ts | 33 + dist/cjs/models/DeleteLoadBalancerRequest.js | 44 + .../models/DeleteLoadBalancerResponse.d.ts | 28 + dist/cjs/models/DeleteLoadBalancerResponse.js | 43 + .../models/DeleteLoadBalancerTagsRequest.d.ts | 40 + .../models/DeleteLoadBalancerTagsRequest.js | 47 + .../DeleteLoadBalancerTagsResponse.d.ts | 28 + .../models/DeleteLoadBalancerTagsResponse.js | 43 + dist/cjs/models/DeleteNatServiceRequest.d.ts | 33 + dist/cjs/models/DeleteNatServiceRequest.js | 44 + dist/cjs/models/DeleteNatServiceResponse.d.ts | 28 + dist/cjs/models/DeleteNatServiceResponse.js | 43 + .../models/DeleteNetAccessPointRequest.d.ts | 33 + .../cjs/models/DeleteNetAccessPointRequest.js | 44 + .../models/DeleteNetAccessPointResponse.d.ts | 28 + .../models/DeleteNetAccessPointResponse.js | 43 + dist/cjs/models/DeleteNetPeeringRequest.d.ts | 33 + dist/cjs/models/DeleteNetPeeringRequest.js | 44 + dist/cjs/models/DeleteNetPeeringResponse.d.ts | 28 + dist/cjs/models/DeleteNetPeeringResponse.js | 43 + dist/cjs/models/DeleteNetRequest.d.ts | 33 + dist/cjs/models/DeleteNetRequest.js | 44 + dist/cjs/models/DeleteNetResponse.d.ts | 28 + dist/cjs/models/DeleteNetResponse.js | 43 + dist/cjs/models/DeleteNicRequest.d.ts | 33 + dist/cjs/models/DeleteNicRequest.js | 44 + dist/cjs/models/DeleteNicResponse.d.ts | 28 + dist/cjs/models/DeleteNicResponse.js | 43 + dist/cjs/models/DeletePublicIpRequest.d.ts | 39 + dist/cjs/models/DeletePublicIpRequest.js | 46 + dist/cjs/models/DeletePublicIpResponse.d.ts | 28 + dist/cjs/models/DeletePublicIpResponse.js | 43 + dist/cjs/models/DeleteRouteRequest.d.ts | 39 + dist/cjs/models/DeleteRouteRequest.js | 46 + dist/cjs/models/DeleteRouteResponse.d.ts | 35 + dist/cjs/models/DeleteRouteResponse.js | 46 + dist/cjs/models/DeleteRouteTableRequest.d.ts | 33 + dist/cjs/models/DeleteRouteTableRequest.js | 44 + dist/cjs/models/DeleteRouteTableResponse.d.ts | 28 + dist/cjs/models/DeleteRouteTableResponse.js | 43 + .../models/DeleteSecurityGroupRequest.d.ts | 39 + dist/cjs/models/DeleteSecurityGroupRequest.js | 46 + .../models/DeleteSecurityGroupResponse.d.ts | 28 + .../cjs/models/DeleteSecurityGroupResponse.js | 43 + .../DeleteSecurityGroupRuleRequest.d.ts | 82 + .../models/DeleteSecurityGroupRuleRequest.js | 61 + .../DeleteSecurityGroupRuleResponse.d.ts | 35 + .../models/DeleteSecurityGroupRuleResponse.js | 46 + .../DeleteServerCertificateRequest.d.ts | 33 + .../models/DeleteServerCertificateRequest.js | 44 + .../DeleteServerCertificateResponse.d.ts | 28 + .../models/DeleteServerCertificateResponse.js | 43 + dist/cjs/models/DeleteSnapshotRequest.d.ts | 33 + dist/cjs/models/DeleteSnapshotRequest.js | 44 + dist/cjs/models/DeleteSnapshotResponse.d.ts | 28 + dist/cjs/models/DeleteSnapshotResponse.js | 43 + dist/cjs/models/DeleteSubnetRequest.d.ts | 33 + dist/cjs/models/DeleteSubnetRequest.js | 44 + dist/cjs/models/DeleteSubnetResponse.d.ts | 28 + dist/cjs/models/DeleteSubnetResponse.js | 43 + dist/cjs/models/DeleteTagsRequest.d.ts | 40 + dist/cjs/models/DeleteTagsRequest.js | 47 + dist/cjs/models/DeleteTagsResponse.d.ts | 28 + dist/cjs/models/DeleteTagsResponse.js | 43 + .../models/DeleteVirtualGatewayRequest.d.ts | 33 + .../cjs/models/DeleteVirtualGatewayRequest.js | 44 + .../models/DeleteVirtualGatewayResponse.d.ts | 28 + .../models/DeleteVirtualGatewayResponse.js | 43 + dist/cjs/models/DeleteVmsRequest.d.ts | 33 + dist/cjs/models/DeleteVmsRequest.js | 44 + dist/cjs/models/DeleteVmsResponse.d.ts | 35 + dist/cjs/models/DeleteVmsResponse.js | 46 + dist/cjs/models/DeleteVolumeRequest.d.ts | 33 + dist/cjs/models/DeleteVolumeRequest.js | 44 + dist/cjs/models/DeleteVolumeResponse.d.ts | 28 + dist/cjs/models/DeleteVolumeResponse.js | 43 + .../models/DeleteVpnConnectionRequest.d.ts | 33 + dist/cjs/models/DeleteVpnConnectionRequest.js | 44 + .../models/DeleteVpnConnectionResponse.d.ts | 28 + .../cjs/models/DeleteVpnConnectionResponse.js | 43 + .../DeleteVpnConnectionRouteRequest.d.ts | 39 + .../models/DeleteVpnConnectionRouteRequest.js | 46 + .../DeleteVpnConnectionRouteResponse.d.ts | 28 + .../DeleteVpnConnectionRouteResponse.js | 43 + .../DeregisterVmsInLoadBalancerRequest.d.ts | 39 + .../DeregisterVmsInLoadBalancerRequest.js | 46 + .../DeregisterVmsInLoadBalancerResponse.d.ts | 28 + .../DeregisterVmsInLoadBalancerResponse.js | 43 + dist/cjs/models/DhcpOptionsSet.d.ts | 58 + dist/cjs/models/DhcpOptionsSet.js | 53 + dist/cjs/models/DirectLink.d.ts | 68 + dist/cjs/models/DirectLink.js | 54 + dist/cjs/models/DirectLinkInterface.d.ts | 63 + dist/cjs/models/DirectLinkInterface.js | 54 + dist/cjs/models/DirectLinkInterfaces.d.ts | 99 + dist/cjs/models/DirectLinkInterfaces.js | 66 + dist/cjs/models/ErrorResponse.d.ts | 35 + dist/cjs/models/ErrorResponse.js | 46 + dist/cjs/models/Errors.d.ts | 39 + dist/cjs/models/Errors.js | 46 + dist/cjs/models/FiltersAccessKeys.d.ts | 33 + dist/cjs/models/FiltersAccessKeys.js | 44 + dist/cjs/models/FiltersApiAccessRule.d.ts | 51 + dist/cjs/models/FiltersApiAccessRule.js | 50 + dist/cjs/models/FiltersApiLog.d.ts | 75 + dist/cjs/models/FiltersApiLog.js | 58 + dist/cjs/models/FiltersCa.d.ts | 39 + dist/cjs/models/FiltersCa.js | 46 + dist/cjs/models/FiltersClientGateway.d.ts | 69 + dist/cjs/models/FiltersClientGateway.js | 56 + dist/cjs/models/FiltersDhcpOptions.d.ts | 69 + dist/cjs/models/FiltersDhcpOptions.js | 56 + dist/cjs/models/FiltersDirectLink.d.ts | 27 + dist/cjs/models/FiltersDirectLink.js | 42 + .../models/FiltersDirectLinkInterface.d.ts | 33 + dist/cjs/models/FiltersDirectLinkInterface.js | 44 + dist/cjs/models/FiltersExportTask.d.ts | 27 + dist/cjs/models/FiltersExportTask.js | 42 + dist/cjs/models/FiltersFlexibleGpu.d.ts | 63 + dist/cjs/models/FiltersFlexibleGpu.js | 54 + dist/cjs/models/FiltersImage.d.ts | 159 + dist/cjs/models/FiltersImage.js | 86 + dist/cjs/models/FiltersInternetService.d.ts | 57 + dist/cjs/models/FiltersInternetService.js | 52 + dist/cjs/models/FiltersKeypair.d.ts | 33 + dist/cjs/models/FiltersKeypair.js | 44 + dist/cjs/models/FiltersListenerRule.d.ts | 27 + dist/cjs/models/FiltersListenerRule.js | 42 + dist/cjs/models/FiltersLoadBalancer.d.ts | 27 + dist/cjs/models/FiltersLoadBalancer.js | 42 + dist/cjs/models/FiltersNatService.d.ts | 63 + dist/cjs/models/FiltersNatService.js | 54 + dist/cjs/models/FiltersNet.d.ts | 69 + dist/cjs/models/FiltersNet.js | 56 + dist/cjs/models/FiltersNetAccessPoint.d.ts | 63 + dist/cjs/models/FiltersNetAccessPoint.js | 54 + dist/cjs/models/FiltersNetPeering.d.ts | 93 + dist/cjs/models/FiltersNetPeering.js | 64 + dist/cjs/models/FiltersNic.d.ts | 189 ++ dist/cjs/models/FiltersNic.js | 96 + dist/cjs/models/FiltersProductType.d.ts | 27 + dist/cjs/models/FiltersProductType.js | 42 + dist/cjs/models/FiltersPublicIp.d.ts | 87 + dist/cjs/models/FiltersPublicIp.js | 62 + dist/cjs/models/FiltersQuota.d.ts | 45 + dist/cjs/models/FiltersQuota.js | 48 + dist/cjs/models/FiltersRouteTable.d.ts | 123 + dist/cjs/models/FiltersRouteTable.js | 74 + dist/cjs/models/FiltersSecurityGroup.d.ts | 153 + dist/cjs/models/FiltersSecurityGroup.js | 84 + dist/cjs/models/FiltersServerCertificate.d.ts | 27 + dist/cjs/models/FiltersServerCertificate.js | 42 + dist/cjs/models/FiltersService.d.ts | 33 + dist/cjs/models/FiltersService.js | 44 + dist/cjs/models/FiltersSnapshot.d.ts | 99 + dist/cjs/models/FiltersSnapshot.js | 66 + dist/cjs/models/FiltersSubnet.d.ts | 75 + dist/cjs/models/FiltersSubnet.js | 58 + dist/cjs/models/FiltersSubregion.d.ts | 27 + dist/cjs/models/FiltersSubregion.js | 42 + dist/cjs/models/FiltersTag.d.ts | 45 + dist/cjs/models/FiltersTag.js | 48 + dist/cjs/models/FiltersVirtualGateway.d.ts | 69 + dist/cjs/models/FiltersVirtualGateway.js | 56 + dist/cjs/models/FiltersVm.d.ts | 45 + dist/cjs/models/FiltersVm.js | 48 + dist/cjs/models/FiltersVmType.d.ts | 57 + dist/cjs/models/FiltersVmType.js | 52 + dist/cjs/models/FiltersVmsState.d.ts | 63 + dist/cjs/models/FiltersVmsState.js | 54 + dist/cjs/models/FiltersVolume.d.ts | 111 + dist/cjs/models/FiltersVolume.js | 70 + dist/cjs/models/FiltersVpnConnection.d.ts | 87 + dist/cjs/models/FiltersVpnConnection.js | 62 + dist/cjs/models/FlexibleGpu.d.ts | 63 + dist/cjs/models/FlexibleGpu.js | 54 + dist/cjs/models/FlexibleGpuCatalog.d.ts | 51 + dist/cjs/models/FlexibleGpuCatalog.js | 50 + dist/cjs/models/HealthCheck.d.ts | 63 + dist/cjs/models/HealthCheck.js | 54 + dist/cjs/models/Image.d.ts | 127 + dist/cjs/models/Image.js | 78 + dist/cjs/models/ImageExportTask.d.ts | 65 + dist/cjs/models/ImageExportTask.js | 56 + dist/cjs/models/InternetService.d.ts | 46 + dist/cjs/models/InternetService.js | 49 + dist/cjs/models/Keypair.d.ts | 33 + dist/cjs/models/Keypair.js | 44 + dist/cjs/models/KeypairCreated.d.ts | 39 + dist/cjs/models/KeypairCreated.js | 46 + dist/cjs/models/LinkFlexibleGpuRequest.d.ts | 39 + dist/cjs/models/LinkFlexibleGpuRequest.js | 46 + dist/cjs/models/LinkFlexibleGpuResponse.d.ts | 28 + dist/cjs/models/LinkFlexibleGpuResponse.js | 43 + .../models/LinkInternetServiceRequest.d.ts | 39 + dist/cjs/models/LinkInternetServiceRequest.js | 46 + .../models/LinkInternetServiceResponse.d.ts | 28 + .../cjs/models/LinkInternetServiceResponse.js | 43 + ...inkLoadBalancerBackendMachinesRequest.d.ts | 45 + .../LinkLoadBalancerBackendMachinesRequest.js | 48 + ...nkLoadBalancerBackendMachinesResponse.d.ts | 28 + ...LinkLoadBalancerBackendMachinesResponse.js | 43 + dist/cjs/models/LinkNic.d.ts | 57 + dist/cjs/models/LinkNic.js | 52 + dist/cjs/models/LinkNicLight.d.ts | 45 + dist/cjs/models/LinkNicLight.js | 48 + dist/cjs/models/LinkNicRequest.d.ts | 45 + dist/cjs/models/LinkNicRequest.js | 48 + dist/cjs/models/LinkNicResponse.d.ts | 34 + dist/cjs/models/LinkNicResponse.js | 45 + dist/cjs/models/LinkNicToUpdate.d.ts | 33 + dist/cjs/models/LinkNicToUpdate.js | 44 + dist/cjs/models/LinkPrivateIpsRequest.d.ts | 51 + dist/cjs/models/LinkPrivateIpsRequest.js | 50 + dist/cjs/models/LinkPrivateIpsResponse.d.ts | 28 + dist/cjs/models/LinkPrivateIpsResponse.js | 43 + dist/cjs/models/LinkPublicIp.d.ts | 51 + dist/cjs/models/LinkPublicIp.js | 50 + dist/cjs/models/LinkPublicIpLightForVm.d.ts | 39 + dist/cjs/models/LinkPublicIpLightForVm.js | 46 + dist/cjs/models/LinkPublicIpRequest.d.ts | 65 + dist/cjs/models/LinkPublicIpRequest.js | 54 + dist/cjs/models/LinkPublicIpResponse.d.ts | 34 + dist/cjs/models/LinkPublicIpResponse.js | 45 + dist/cjs/models/LinkRouteTable.d.ts | 45 + dist/cjs/models/LinkRouteTable.js | 48 + dist/cjs/models/LinkRouteTableRequest.d.ts | 39 + dist/cjs/models/LinkRouteTableRequest.js | 46 + dist/cjs/models/LinkRouteTableResponse.d.ts | 34 + dist/cjs/models/LinkRouteTableResponse.js | 45 + .../cjs/models/LinkVirtualGatewayRequest.d.ts | 39 + dist/cjs/models/LinkVirtualGatewayRequest.js | 46 + .../models/LinkVirtualGatewayResponse.d.ts | 35 + dist/cjs/models/LinkVirtualGatewayResponse.js | 46 + dist/cjs/models/LinkVolumeRequest.d.ts | 45 + dist/cjs/models/LinkVolumeRequest.js | 48 + dist/cjs/models/LinkVolumeResponse.d.ts | 28 + dist/cjs/models/LinkVolumeResponse.js | 43 + dist/cjs/models/LinkedVolume.d.ts | 51 + dist/cjs/models/LinkedVolume.js | 50 + dist/cjs/models/Listener.d.ts | 57 + dist/cjs/models/Listener.js | 52 + dist/cjs/models/ListenerForCreation.d.ts | 51 + dist/cjs/models/ListenerForCreation.js | 50 + dist/cjs/models/ListenerRule.d.ts | 69 + dist/cjs/models/ListenerRule.js | 56 + dist/cjs/models/ListenerRuleForCreation.d.ts | 51 + dist/cjs/models/ListenerRuleForCreation.js | 50 + dist/cjs/models/LoadBalancer.d.ts | 132 + dist/cjs/models/LoadBalancer.js | 81 + dist/cjs/models/LoadBalancerLight.d.ts | 33 + dist/cjs/models/LoadBalancerLight.js | 43 + .../LoadBalancerStickyCookiePolicy.d.ts | 34 + .../models/LoadBalancerStickyCookiePolicy.js | 44 + dist/cjs/models/LoadBalancerTag.d.ts | 39 + dist/cjs/models/LoadBalancerTag.js | 46 + dist/cjs/models/Location.d.ts | 33 + dist/cjs/models/Location.js | 44 + dist/cjs/models/Log.d.ts | 117 + dist/cjs/models/Log.js | 72 + dist/cjs/models/MaintenanceEvent.d.ts | 45 + dist/cjs/models/MaintenanceEvent.js | 48 + dist/cjs/models/ModelResponseContext.d.ts | 27 + dist/cjs/models/ModelResponseContext.js | 42 + dist/cjs/models/NatService.d.ts | 59 + dist/cjs/models/NatService.js | 54 + dist/cjs/models/Net.d.ts | 58 + dist/cjs/models/Net.js | 53 + dist/cjs/models/NetAccessPoint.d.ts | 58 + dist/cjs/models/NetAccessPoint.js | 53 + dist/cjs/models/NetPeering.d.ts | 55 + dist/cjs/models/NetPeering.js | 54 + dist/cjs/models/NetPeeringState.d.ts | 33 + dist/cjs/models/NetPeeringState.js | 44 + dist/cjs/models/NetToVirtualGatewayLink.d.ts | 33 + dist/cjs/models/NetToVirtualGatewayLink.js | 44 + dist/cjs/models/Nic.d.ts | 116 + dist/cjs/models/Nic.js | 75 + dist/cjs/models/NicForVmCreation.d.ts | 70 + dist/cjs/models/NicForVmCreation.js | 57 + dist/cjs/models/NicLight.d.ts | 103 + dist/cjs/models/NicLight.js | 70 + dist/cjs/models/OsuApiKey.d.ts | 33 + dist/cjs/models/OsuApiKey.js | 44 + dist/cjs/models/OsuExportImageExportTask.d.ts | 45 + dist/cjs/models/OsuExportImageExportTask.js | 48 + .../models/OsuExportSnapshotExportTask.d.ts | 39 + .../cjs/models/OsuExportSnapshotExportTask.js | 46 + dist/cjs/models/OsuExportToCreate.d.ts | 52 + dist/cjs/models/OsuExportToCreate.js | 51 + dist/cjs/models/PermissionsOnResource.d.ts | 33 + dist/cjs/models/PermissionsOnResource.js | 44 + .../models/PermissionsOnResourceCreation.d.ts | 34 + .../models/PermissionsOnResourceCreation.js | 45 + dist/cjs/models/Phase1Options.d.ts | 75 + dist/cjs/models/Phase1Options.js | 58 + dist/cjs/models/Phase2Options.d.ts | 51 + dist/cjs/models/Phase2Options.js | 50 + dist/cjs/models/Placement.d.ts | 33 + dist/cjs/models/Placement.js | 44 + dist/cjs/models/PrivateIp.d.ts | 46 + dist/cjs/models/PrivateIp.js | 49 + dist/cjs/models/PrivateIpLight.d.ts | 33 + dist/cjs/models/PrivateIpLight.js | 44 + dist/cjs/models/PrivateIpLightForVm.d.ts | 46 + dist/cjs/models/PrivateIpLightForVm.js | 49 + dist/cjs/models/ProductType.d.ts | 39 + dist/cjs/models/ProductType.js | 46 + dist/cjs/models/PublicIp.d.ts | 70 + dist/cjs/models/PublicIp.js | 57 + dist/cjs/models/PublicIpLight.d.ts | 33 + dist/cjs/models/PublicIpLight.js | 44 + dist/cjs/models/Quota.d.ts | 63 + dist/cjs/models/Quota.js | 54 + dist/cjs/models/QuotaTypes.d.ts | 34 + dist/cjs/models/QuotaTypes.js | 45 + dist/cjs/models/ReadAccessKeysRequest.d.ts | 34 + dist/cjs/models/ReadAccessKeysRequest.js | 45 + dist/cjs/models/ReadAccessKeysResponse.d.ts | 35 + dist/cjs/models/ReadAccessKeysResponse.js | 46 + dist/cjs/models/ReadAccountsRequest.d.ts | 27 + dist/cjs/models/ReadAccountsRequest.js | 42 + dist/cjs/models/ReadAccountsResponse.d.ts | 35 + dist/cjs/models/ReadAccountsResponse.js | 46 + dist/cjs/models/ReadAdminPasswordRequest.d.ts | 33 + dist/cjs/models/ReadAdminPasswordRequest.js | 44 + .../cjs/models/ReadAdminPasswordResponse.d.ts | 40 + dist/cjs/models/ReadAdminPasswordResponse.js | 47 + .../models/ReadApiAccessPolicyRequest.d.ts | 27 + dist/cjs/models/ReadApiAccessPolicyRequest.js | 42 + .../models/ReadApiAccessPolicyResponse.d.ts | 35 + .../cjs/models/ReadApiAccessPolicyResponse.js | 46 + .../cjs/models/ReadApiAccessRulesRequest.d.ts | 34 + dist/cjs/models/ReadApiAccessRulesRequest.js | 45 + .../models/ReadApiAccessRulesResponse.d.ts | 35 + dist/cjs/models/ReadApiAccessRulesResponse.js | 46 + dist/cjs/models/ReadApiLogsRequest.d.ts | 53 + dist/cjs/models/ReadApiLogsRequest.js | 52 + dist/cjs/models/ReadApiLogsResponse.d.ts | 41 + dist/cjs/models/ReadApiLogsResponse.js | 48 + dist/cjs/models/ReadCasRequest.d.ts | 34 + dist/cjs/models/ReadCasRequest.js | 45 + dist/cjs/models/ReadCasResponse.d.ts | 35 + dist/cjs/models/ReadCasResponse.js | 46 + dist/cjs/models/ReadCatalogRequest.d.ts | 27 + dist/cjs/models/ReadCatalogRequest.js | 42 + dist/cjs/models/ReadCatalogResponse.d.ts | 35 + dist/cjs/models/ReadCatalogResponse.js | 46 + .../cjs/models/ReadClientGatewaysRequest.d.ts | 34 + dist/cjs/models/ReadClientGatewaysRequest.js | 45 + .../models/ReadClientGatewaysResponse.d.ts | 35 + dist/cjs/models/ReadClientGatewaysResponse.js | 46 + dist/cjs/models/ReadConsoleOutputRequest.d.ts | 33 + dist/cjs/models/ReadConsoleOutputRequest.js | 44 + .../cjs/models/ReadConsoleOutputResponse.d.ts | 40 + dist/cjs/models/ReadConsoleOutputResponse.js | 47 + .../models/ReadConsumptionAccountRequest.d.ts | 39 + .../models/ReadConsumptionAccountRequest.js | 46 + .../ReadConsumptionAccountResponse.d.ts | 35 + .../models/ReadConsumptionAccountResponse.js | 46 + dist/cjs/models/ReadDhcpOptionsRequest.d.ts | 34 + dist/cjs/models/ReadDhcpOptionsRequest.js | 45 + dist/cjs/models/ReadDhcpOptionsResponse.d.ts | 35 + dist/cjs/models/ReadDhcpOptionsResponse.js | 46 + .../ReadDirectLinkInterfacesRequest.d.ts | 34 + .../models/ReadDirectLinkInterfacesRequest.js | 45 + .../ReadDirectLinkInterfacesResponse.d.ts | 35 + .../ReadDirectLinkInterfacesResponse.js | 46 + dist/cjs/models/ReadDirectLinksRequest.d.ts | 34 + dist/cjs/models/ReadDirectLinksRequest.js | 45 + dist/cjs/models/ReadDirectLinksResponse.d.ts | 35 + dist/cjs/models/ReadDirectLinksResponse.js | 46 + .../models/ReadFlexibleGpuCatalogRequest.d.ts | 27 + .../models/ReadFlexibleGpuCatalogRequest.js | 42 + .../ReadFlexibleGpuCatalogResponse.d.ts | 35 + .../models/ReadFlexibleGpuCatalogResponse.js | 46 + dist/cjs/models/ReadFlexibleGpusRequest.d.ts | 34 + dist/cjs/models/ReadFlexibleGpusRequest.js | 45 + dist/cjs/models/ReadFlexibleGpusResponse.d.ts | 35 + dist/cjs/models/ReadFlexibleGpusResponse.js | 46 + .../models/ReadImageExportTasksRequest.d.ts | 34 + .../cjs/models/ReadImageExportTasksRequest.js | 45 + .../models/ReadImageExportTasksResponse.d.ts | 35 + .../models/ReadImageExportTasksResponse.js | 46 + dist/cjs/models/ReadImagesRequest.d.ts | 34 + dist/cjs/models/ReadImagesRequest.js | 45 + dist/cjs/models/ReadImagesResponse.d.ts | 35 + dist/cjs/models/ReadImagesResponse.js | 46 + .../models/ReadInternetServicesRequest.d.ts | 34 + .../cjs/models/ReadInternetServicesRequest.js | 45 + .../models/ReadInternetServicesResponse.d.ts | 35 + .../models/ReadInternetServicesResponse.js | 46 + dist/cjs/models/ReadKeypairsRequest.d.ts | 34 + dist/cjs/models/ReadKeypairsRequest.js | 45 + dist/cjs/models/ReadKeypairsResponse.d.ts | 35 + dist/cjs/models/ReadKeypairsResponse.js | 46 + dist/cjs/models/ReadListenerRulesRequest.d.ts | 34 + dist/cjs/models/ReadListenerRulesRequest.js | 45 + .../cjs/models/ReadListenerRulesResponse.d.ts | 35 + dist/cjs/models/ReadListenerRulesResponse.js | 46 + .../models/ReadLoadBalancerTagsRequest.d.ts | 33 + .../cjs/models/ReadLoadBalancerTagsRequest.js | 44 + .../models/ReadLoadBalancerTagsResponse.d.ts | 35 + .../models/ReadLoadBalancerTagsResponse.js | 46 + dist/cjs/models/ReadLoadBalancersRequest.d.ts | 34 + dist/cjs/models/ReadLoadBalancersRequest.js | 45 + .../cjs/models/ReadLoadBalancersResponse.d.ts | 35 + dist/cjs/models/ReadLoadBalancersResponse.js | 46 + dist/cjs/models/ReadLocationsRequest.d.ts | 27 + dist/cjs/models/ReadLocationsRequest.js | 42 + dist/cjs/models/ReadLocationsResponse.d.ts | 35 + dist/cjs/models/ReadLocationsResponse.js | 46 + dist/cjs/models/ReadNatServicesRequest.d.ts | 34 + dist/cjs/models/ReadNatServicesRequest.js | 45 + dist/cjs/models/ReadNatServicesResponse.d.ts | 35 + dist/cjs/models/ReadNatServicesResponse.js | 46 + .../ReadNetAccessPointServicesRequest.d.ts | 34 + .../ReadNetAccessPointServicesRequest.js | 45 + .../ReadNetAccessPointServicesResponse.d.ts | 35 + .../ReadNetAccessPointServicesResponse.js | 46 + .../models/ReadNetAccessPointsRequest.d.ts | 34 + dist/cjs/models/ReadNetAccessPointsRequest.js | 45 + .../models/ReadNetAccessPointsResponse.d.ts | 35 + .../cjs/models/ReadNetAccessPointsResponse.js | 46 + dist/cjs/models/ReadNetPeeringsRequest.d.ts | 34 + dist/cjs/models/ReadNetPeeringsRequest.js | 45 + dist/cjs/models/ReadNetPeeringsResponse.d.ts | 35 + dist/cjs/models/ReadNetPeeringsResponse.js | 46 + dist/cjs/models/ReadNetsRequest.d.ts | 34 + dist/cjs/models/ReadNetsRequest.js | 45 + dist/cjs/models/ReadNetsResponse.d.ts | 35 + dist/cjs/models/ReadNetsResponse.js | 46 + dist/cjs/models/ReadNicsRequest.d.ts | 34 + dist/cjs/models/ReadNicsRequest.js | 45 + dist/cjs/models/ReadNicsResponse.d.ts | 35 + dist/cjs/models/ReadNicsResponse.js | 46 + dist/cjs/models/ReadProductTypesRequest.d.ts | 34 + dist/cjs/models/ReadProductTypesRequest.js | 45 + dist/cjs/models/ReadProductTypesResponse.d.ts | 35 + dist/cjs/models/ReadProductTypesResponse.js | 46 + dist/cjs/models/ReadPublicCatalogRequest.d.ts | 27 + dist/cjs/models/ReadPublicCatalogRequest.js | 42 + .../cjs/models/ReadPublicCatalogResponse.d.ts | 35 + dist/cjs/models/ReadPublicCatalogResponse.js | 46 + .../cjs/models/ReadPublicIpRangesRequest.d.ts | 27 + dist/cjs/models/ReadPublicIpRangesRequest.js | 42 + .../models/ReadPublicIpRangesResponse.d.ts | 34 + dist/cjs/models/ReadPublicIpRangesResponse.js | 45 + dist/cjs/models/ReadPublicIpsRequest.d.ts | 34 + dist/cjs/models/ReadPublicIpsRequest.js | 45 + dist/cjs/models/ReadPublicIpsResponse.d.ts | 35 + dist/cjs/models/ReadPublicIpsResponse.js | 46 + dist/cjs/models/ReadQuotasRequest.d.ts | 34 + dist/cjs/models/ReadQuotasRequest.js | 45 + dist/cjs/models/ReadQuotasResponse.d.ts | 35 + dist/cjs/models/ReadQuotasResponse.js | 46 + dist/cjs/models/ReadRegionsRequest.d.ts | 27 + dist/cjs/models/ReadRegionsRequest.js | 42 + dist/cjs/models/ReadRegionsResponse.d.ts | 35 + dist/cjs/models/ReadRegionsResponse.js | 46 + dist/cjs/models/ReadRouteTablesRequest.d.ts | 34 + dist/cjs/models/ReadRouteTablesRequest.js | 45 + dist/cjs/models/ReadRouteTablesResponse.d.ts | 35 + dist/cjs/models/ReadRouteTablesResponse.js | 46 + .../models/ReadSecretAccessKeyRequest.d.ts | 33 + dist/cjs/models/ReadSecretAccessKeyRequest.js | 44 + .../models/ReadSecretAccessKeyResponse.d.ts | 35 + .../cjs/models/ReadSecretAccessKeyResponse.js | 46 + .../cjs/models/ReadSecurityGroupsRequest.d.ts | 34 + dist/cjs/models/ReadSecurityGroupsRequest.js | 45 + .../models/ReadSecurityGroupsResponse.d.ts | 35 + dist/cjs/models/ReadSecurityGroupsResponse.js | 46 + .../models/ReadServerCertificatesRequest.d.ts | 34 + .../models/ReadServerCertificatesRequest.js | 45 + .../ReadServerCertificatesResponse.d.ts | 35 + .../models/ReadServerCertificatesResponse.js | 46 + .../ReadSnapshotExportTasksRequest.d.ts | 34 + .../models/ReadSnapshotExportTasksRequest.js | 45 + .../ReadSnapshotExportTasksResponse.d.ts | 35 + .../models/ReadSnapshotExportTasksResponse.js | 46 + dist/cjs/models/ReadSnapshotsRequest.d.ts | 34 + dist/cjs/models/ReadSnapshotsRequest.js | 45 + dist/cjs/models/ReadSnapshotsResponse.d.ts | 35 + dist/cjs/models/ReadSnapshotsResponse.js | 46 + dist/cjs/models/ReadSubnetsRequest.d.ts | 34 + dist/cjs/models/ReadSubnetsRequest.js | 45 + dist/cjs/models/ReadSubnetsResponse.d.ts | 35 + dist/cjs/models/ReadSubnetsResponse.js | 46 + dist/cjs/models/ReadSubregionsRequest.d.ts | 34 + dist/cjs/models/ReadSubregionsRequest.js | 45 + dist/cjs/models/ReadSubregionsResponse.d.ts | 35 + dist/cjs/models/ReadSubregionsResponse.js | 46 + dist/cjs/models/ReadTagsRequest.d.ts | 34 + dist/cjs/models/ReadTagsRequest.js | 45 + dist/cjs/models/ReadTagsResponse.d.ts | 35 + dist/cjs/models/ReadTagsResponse.js | 46 + .../models/ReadVirtualGatewaysRequest.d.ts | 34 + dist/cjs/models/ReadVirtualGatewaysRequest.js | 45 + .../models/ReadVirtualGatewaysResponse.d.ts | 35 + .../cjs/models/ReadVirtualGatewaysResponse.js | 46 + dist/cjs/models/ReadVmTypesRequest.d.ts | 34 + dist/cjs/models/ReadVmTypesRequest.js | 45 + dist/cjs/models/ReadVmTypesResponse.d.ts | 35 + dist/cjs/models/ReadVmTypesResponse.js | 46 + dist/cjs/models/ReadVmsHealthRequest.d.ts | 39 + dist/cjs/models/ReadVmsHealthRequest.js | 46 + dist/cjs/models/ReadVmsHealthResponse.d.ts | 35 + dist/cjs/models/ReadVmsHealthResponse.js | 46 + dist/cjs/models/ReadVmsRequest.d.ts | 34 + dist/cjs/models/ReadVmsRequest.js | 45 + dist/cjs/models/ReadVmsResponse.d.ts | 35 + dist/cjs/models/ReadVmsResponse.js | 46 + dist/cjs/models/ReadVmsStateRequest.d.ts | 40 + dist/cjs/models/ReadVmsStateRequest.js | 47 + dist/cjs/models/ReadVmsStateResponse.d.ts | 35 + dist/cjs/models/ReadVmsStateResponse.js | 46 + dist/cjs/models/ReadVolumesRequest.d.ts | 34 + dist/cjs/models/ReadVolumesRequest.js | 45 + dist/cjs/models/ReadVolumesResponse.d.ts | 35 + dist/cjs/models/ReadVolumesResponse.js | 46 + .../cjs/models/ReadVpnConnectionsRequest.d.ts | 34 + dist/cjs/models/ReadVpnConnectionsRequest.js | 45 + .../models/ReadVpnConnectionsResponse.d.ts | 35 + dist/cjs/models/ReadVpnConnectionsResponse.js | 46 + dist/cjs/models/RebootVmsRequest.d.ts | 33 + dist/cjs/models/RebootVmsRequest.js | 44 + dist/cjs/models/RebootVmsResponse.d.ts | 28 + dist/cjs/models/RebootVmsResponse.js | 43 + dist/cjs/models/Region.d.ts | 33 + dist/cjs/models/Region.js | 44 + .../RegisterVmsInLoadBalancerRequest.d.ts | 40 + .../RegisterVmsInLoadBalancerRequest.js | 46 + .../RegisterVmsInLoadBalancerResponse.d.ts | 28 + .../RegisterVmsInLoadBalancerResponse.js | 43 + dist/cjs/models/RejectNetPeeringRequest.d.ts | 33 + dist/cjs/models/RejectNetPeeringRequest.js | 44 + dist/cjs/models/RejectNetPeeringResponse.d.ts | 28 + dist/cjs/models/RejectNetPeeringResponse.js | 43 + .../models/ResetAccountPasswordRequest.d.ts | 39 + .../cjs/models/ResetAccountPasswordRequest.js | 46 + .../models/ResetAccountPasswordResponse.d.ts | 28 + .../models/ResetAccountPasswordResponse.js | 43 + dist/cjs/models/ResourceLoadBalancerTag.d.ts | 27 + dist/cjs/models/ResourceLoadBalancerTag.js | 42 + dist/cjs/models/ResourceTag.d.ts | 33 + dist/cjs/models/ResourceTag.js | 43 + dist/cjs/models/Route.d.ts | 87 + dist/cjs/models/Route.js | 62 + dist/cjs/models/RouteLight.d.ts | 39 + dist/cjs/models/RouteLight.js | 46 + .../RoutePropagatingVirtualGateway.d.ts | 27 + .../models/RoutePropagatingVirtualGateway.js | 42 + dist/cjs/models/RouteTable.d.ts | 61 + dist/cjs/models/RouteTable.js | 56 + dist/cjs/models/SecurityGroup.d.ts | 71 + dist/cjs/models/SecurityGroup.js | 58 + dist/cjs/models/SecurityGroupLight.d.ts | 33 + dist/cjs/models/SecurityGroupLight.js | 44 + dist/cjs/models/SecurityGroupRule.d.ts | 58 + dist/cjs/models/SecurityGroupRule.js | 53 + dist/cjs/models/SecurityGroupsMember.d.ts | 39 + dist/cjs/models/SecurityGroupsMember.js | 46 + .../models/SendResetPasswordEmailRequest.d.ts | 33 + .../models/SendResetPasswordEmailRequest.js | 44 + .../SendResetPasswordEmailResponse.d.ts | 28 + .../models/SendResetPasswordEmailResponse.js | 43 + dist/cjs/models/ServerCertificate.d.ts | 51 + dist/cjs/models/ServerCertificate.js | 50 + dist/cjs/models/Service.d.ts | 39 + dist/cjs/models/Service.js | 46 + dist/cjs/models/Snapshot.d.ts | 89 + dist/cjs/models/Snapshot.js | 64 + dist/cjs/models/SnapshotExportTask.d.ts | 65 + dist/cjs/models/SnapshotExportTask.js | 56 + dist/cjs/models/SourceNet.d.ts | 39 + dist/cjs/models/SourceNet.js | 46 + dist/cjs/models/SourceSecurityGroup.d.ts | 34 + dist/cjs/models/SourceSecurityGroup.js | 44 + dist/cjs/models/StartVmsRequest.d.ts | 33 + dist/cjs/models/StartVmsRequest.js | 44 + dist/cjs/models/StartVmsResponse.d.ts | 35 + dist/cjs/models/StartVmsResponse.js | 46 + dist/cjs/models/StateComment.d.ts | 33 + dist/cjs/models/StateComment.js | 44 + dist/cjs/models/StopVmsRequest.d.ts | 39 + dist/cjs/models/StopVmsRequest.js | 46 + dist/cjs/models/StopVmsResponse.d.ts | 35 + dist/cjs/models/StopVmsResponse.js | 46 + dist/cjs/models/Subnet.d.ts | 70 + dist/cjs/models/Subnet.js | 57 + dist/cjs/models/Subregion.d.ts | 39 + dist/cjs/models/Subregion.js | 46 + dist/cjs/models/Tag.d.ts | 45 + dist/cjs/models/Tag.js | 48 + dist/cjs/models/UnlinkFlexibleGpuRequest.d.ts | 33 + dist/cjs/models/UnlinkFlexibleGpuRequest.js | 44 + .../cjs/models/UnlinkFlexibleGpuResponse.d.ts | 28 + dist/cjs/models/UnlinkFlexibleGpuResponse.js | 43 + .../models/UnlinkInternetServiceRequest.d.ts | 39 + .../models/UnlinkInternetServiceRequest.js | 46 + .../models/UnlinkInternetServiceResponse.d.ts | 28 + .../models/UnlinkInternetServiceResponse.js | 43 + ...inkLoadBalancerBackendMachinesRequest.d.ts | 45 + ...nlinkLoadBalancerBackendMachinesRequest.js | 48 + ...nkLoadBalancerBackendMachinesResponse.d.ts | 28 + ...linkLoadBalancerBackendMachinesResponse.js | 43 + dist/cjs/models/UnlinkNicRequest.d.ts | 33 + dist/cjs/models/UnlinkNicRequest.js | 44 + dist/cjs/models/UnlinkNicResponse.d.ts | 28 + dist/cjs/models/UnlinkNicResponse.js | 43 + dist/cjs/models/UnlinkPrivateIpsRequest.d.ts | 39 + dist/cjs/models/UnlinkPrivateIpsRequest.js | 46 + dist/cjs/models/UnlinkPrivateIpsResponse.d.ts | 28 + dist/cjs/models/UnlinkPrivateIpsResponse.js | 43 + dist/cjs/models/UnlinkPublicIpRequest.d.ts | 39 + dist/cjs/models/UnlinkPublicIpRequest.js | 46 + dist/cjs/models/UnlinkPublicIpResponse.d.ts | 28 + dist/cjs/models/UnlinkPublicIpResponse.js | 43 + dist/cjs/models/UnlinkRouteTableRequest.d.ts | 33 + dist/cjs/models/UnlinkRouteTableRequest.js | 44 + dist/cjs/models/UnlinkRouteTableResponse.d.ts | 28 + dist/cjs/models/UnlinkRouteTableResponse.js | 43 + .../models/UnlinkVirtualGatewayRequest.d.ts | 39 + .../cjs/models/UnlinkVirtualGatewayRequest.js | 46 + .../models/UnlinkVirtualGatewayResponse.d.ts | 28 + .../models/UnlinkVirtualGatewayResponse.js | 43 + dist/cjs/models/UnlinkVolumeRequest.d.ts | 39 + dist/cjs/models/UnlinkVolumeRequest.js | 46 + dist/cjs/models/UnlinkVolumeResponse.d.ts | 28 + dist/cjs/models/UnlinkVolumeResponse.js | 43 + dist/cjs/models/UpdateAccessKeyRequest.d.ts | 45 + dist/cjs/models/UpdateAccessKeyRequest.js | 48 + dist/cjs/models/UpdateAccessKeyResponse.d.ts | 35 + dist/cjs/models/UpdateAccessKeyResponse.js | 46 + dist/cjs/models/UpdateAccountRequest.d.ts | 105 + dist/cjs/models/UpdateAccountRequest.js | 68 + dist/cjs/models/UpdateAccountResponse.d.ts | 35 + dist/cjs/models/UpdateAccountResponse.js | 46 + .../models/UpdateApiAccessPolicyRequest.d.ts | 39 + .../models/UpdateApiAccessPolicyRequest.js | 46 + .../models/UpdateApiAccessPolicyResponse.d.ts | 35 + .../models/UpdateApiAccessPolicyResponse.js | 46 + .../models/UpdateApiAccessRuleRequest.d.ts | 57 + dist/cjs/models/UpdateApiAccessRuleRequest.js | 52 + .../models/UpdateApiAccessRuleResponse.d.ts | 35 + .../cjs/models/UpdateApiAccessRuleResponse.js | 46 + dist/cjs/models/UpdateCaRequest.d.ts | 39 + dist/cjs/models/UpdateCaRequest.js | 46 + dist/cjs/models/UpdateCaResponse.d.ts | 35 + dist/cjs/models/UpdateCaResponse.js | 46 + dist/cjs/models/UpdateFlexibleGpuRequest.d.ts | 39 + dist/cjs/models/UpdateFlexibleGpuRequest.js | 46 + .../cjs/models/UpdateFlexibleGpuResponse.d.ts | 35 + dist/cjs/models/UpdateFlexibleGpuResponse.js | 46 + dist/cjs/models/UpdateImageRequest.d.ts | 40 + dist/cjs/models/UpdateImageRequest.js | 47 + dist/cjs/models/UpdateImageResponse.d.ts | 35 + dist/cjs/models/UpdateImageResponse.js | 46 + .../cjs/models/UpdateListenerRuleRequest.d.ts | 45 + dist/cjs/models/UpdateListenerRuleRequest.js | 48 + .../models/UpdateListenerRuleResponse.d.ts | 35 + dist/cjs/models/UpdateListenerRuleResponse.js | 46 + .../cjs/models/UpdateLoadBalancerRequest.d.ts | 77 + dist/cjs/models/UpdateLoadBalancerRequest.js | 60 + .../models/UpdateLoadBalancerResponse.d.ts | 35 + dist/cjs/models/UpdateLoadBalancerResponse.js | 46 + .../models/UpdateNetAccessPointRequest.d.ts | 45 + .../cjs/models/UpdateNetAccessPointRequest.js | 48 + .../models/UpdateNetAccessPointResponse.d.ts | 35 + .../models/UpdateNetAccessPointResponse.js | 46 + dist/cjs/models/UpdateNetRequest.d.ts | 39 + dist/cjs/models/UpdateNetRequest.js | 46 + dist/cjs/models/UpdateNetResponse.d.ts | 35 + dist/cjs/models/UpdateNetResponse.js | 46 + dist/cjs/models/UpdateNicRequest.d.ts | 53 + dist/cjs/models/UpdateNicRequest.js | 51 + dist/cjs/models/UpdateNicResponse.d.ts | 35 + dist/cjs/models/UpdateNicResponse.js | 46 + .../models/UpdateRoutePropagationRequest.d.ts | 45 + .../models/UpdateRoutePropagationRequest.js | 48 + .../UpdateRoutePropagationResponse.d.ts | 35 + .../models/UpdateRoutePropagationResponse.js | 46 + dist/cjs/models/UpdateRouteRequest.d.ts | 69 + dist/cjs/models/UpdateRouteRequest.js | 56 + dist/cjs/models/UpdateRouteResponse.d.ts | 35 + dist/cjs/models/UpdateRouteResponse.js | 46 + .../UpdateServerCertificateRequest.d.ts | 45 + .../models/UpdateServerCertificateRequest.js | 48 + .../UpdateServerCertificateResponse.d.ts | 35 + .../models/UpdateServerCertificateResponse.js | 46 + dist/cjs/models/UpdateSnapshotRequest.d.ts | 40 + dist/cjs/models/UpdateSnapshotRequest.js | 47 + dist/cjs/models/UpdateSnapshotResponse.d.ts | 35 + dist/cjs/models/UpdateSnapshotResponse.js | 46 + dist/cjs/models/UpdateSubnetRequest.d.ts | 39 + dist/cjs/models/UpdateSubnetRequest.js | 46 + dist/cjs/models/UpdateSubnetResponse.d.ts | 35 + dist/cjs/models/UpdateSubnetResponse.js | 46 + dist/cjs/models/UpdateVmRequest.d.ts | 104 + dist/cjs/models/UpdateVmRequest.js | 73 + dist/cjs/models/UpdateVmResponse.d.ts | 35 + dist/cjs/models/UpdateVmResponse.js | 46 + dist/cjs/models/UpdateVolumeRequest.d.ts | 51 + dist/cjs/models/UpdateVolumeRequest.js | 50 + dist/cjs/models/UpdateVolumeResponse.d.ts | 35 + dist/cjs/models/UpdateVolumeResponse.js | 46 + .../models/UpdateVpnConnectionRequest.d.ts | 52 + dist/cjs/models/UpdateVpnConnectionRequest.js | 51 + .../models/UpdateVpnConnectionResponse.d.ts | 35 + .../cjs/models/UpdateVpnConnectionResponse.js | 46 + dist/cjs/models/VgwTelemetry.d.ts | 51 + dist/cjs/models/VgwTelemetry.js | 50 + dist/cjs/models/VirtualGateway.d.ts | 53 + dist/cjs/models/VirtualGateway.js | 52 + dist/cjs/models/Vm.d.ts | 224 ++ dist/cjs/models/Vm.js | 111 + dist/cjs/models/VmState.d.ts | 39 + dist/cjs/models/VmState.js | 46 + dist/cjs/models/VmStates.d.ts | 46 + dist/cjs/models/VmStates.js | 49 + dist/cjs/models/VmType.d.ts | 63 + dist/cjs/models/VmType.js | 54 + dist/cjs/models/Volume.d.ts | 85 + dist/cjs/models/Volume.js | 62 + dist/cjs/models/VpnConnection.d.ts | 91 + dist/cjs/models/VpnConnection.js | 66 + dist/cjs/models/VpnOptions.d.ts | 41 + dist/cjs/models/VpnOptions.js | 48 + dist/cjs/models/With.d.ts | 117 + dist/cjs/models/With.js | 72 + dist/cjs/models/index.d.ts | 496 ++++ dist/cjs/models/index.js | 514 ++++ dist/cjs/runtime.d.ts | 173 ++ dist/cjs/runtime.js | 316 ++ dist/esm/apis/AccessKeyApi.d.ts | 126 + dist/esm/apis/AccessKeyApi.js | 239 ++ dist/esm/apis/AccountApi.d.ts | 166 ++ dist/esm/apis/AccountApi.js | 296 ++ dist/esm/apis/ApiAccessPolicyApi.d.ts | 66 + dist/esm/apis/ApiAccessPolicyApi.js | 113 + dist/esm/apis/ApiAccessRuleApi.d.ts | 106 + dist/esm/apis/ApiAccessRuleApi.js | 197 ++ dist/esm/apis/ApiLogApi.d.ts | 46 + dist/esm/apis/ApiLogApi.js | 68 + dist/esm/apis/CaApi.d.ts | 106 + dist/esm/apis/CaApi.js | 197 ++ dist/esm/apis/CatalogApi.d.ts | 46 + dist/esm/apis/CatalogApi.js | 68 + dist/esm/apis/ClientGatewayApi.d.ts | 86 + dist/esm/apis/ClientGatewayApi.js | 146 + dist/esm/apis/DhcpOptionApi.d.ts | 86 + dist/esm/apis/DhcpOptionApi.js | 146 + dist/esm/apis/DirectLinkApi.d.ts | 86 + dist/esm/apis/DirectLinkApi.js | 146 + dist/esm/apis/DirectLinkInterfaceApi.d.ts | 86 + dist/esm/apis/DirectLinkInterfaceApi.js | 146 + dist/esm/apis/FlexibleGpuApi.d.ts | 166 ++ dist/esm/apis/FlexibleGpuApi.js | 299 ++ dist/esm/apis/ImageApi.d.ts | 146 + dist/esm/apis/ImageApi.js | 263 ++ dist/esm/apis/InternetServiceApi.d.ts | 126 + dist/esm/apis/InternetServiceApi.js | 224 ++ dist/esm/apis/KeypairApi.d.ts | 86 + dist/esm/apis/KeypairApi.js | 146 + dist/esm/apis/ListenerApi.d.ts | 146 + dist/esm/apis/ListenerApi.js | 263 ++ dist/esm/apis/LoadBalancerApi.d.ts | 266 ++ dist/esm/apis/LoadBalancerApi.js | 497 ++++ dist/esm/apis/LoadBalancerPolicyApi.d.ts | 66 + dist/esm/apis/LoadBalancerPolicyApi.js | 107 + dist/esm/apis/LocationApi.d.ts | 46 + dist/esm/apis/LocationApi.js | 65 + dist/esm/apis/NatServiceApi.d.ts | 86 + dist/esm/apis/NatServiceApi.js | 146 + dist/esm/apis/NetAccessPointApi.d.ts | 126 + dist/esm/apis/NetAccessPointApi.js | 221 ++ dist/esm/apis/NetApi.d.ts | 106 + dist/esm/apis/NetApi.js | 185 ++ dist/esm/apis/NetPeeringApi.d.ts | 126 + dist/esm/apis/NetPeeringApi.js | 224 ++ dist/esm/apis/NicApi.d.ts | 186 ++ dist/esm/apis/NicApi.js | 341 +++ dist/esm/apis/ProductTypeApi.d.ts | 46 + dist/esm/apis/ProductTypeApi.js | 65 + dist/esm/apis/PublicCatalogApi.d.ts | 46 + dist/esm/apis/PublicCatalogApi.js | 65 + dist/esm/apis/PublicIpApi.d.ts | 146 + dist/esm/apis/PublicIpApi.js | 260 ++ dist/esm/apis/QuotaApi.d.ts | 46 + dist/esm/apis/QuotaApi.js | 68 + dist/esm/apis/RegionApi.d.ts | 46 + dist/esm/apis/RegionApi.js | 65 + dist/esm/apis/RouteApi.d.ts | 86 + dist/esm/apis/RouteApi.js | 146 + dist/esm/apis/RouteTableApi.d.ts | 126 + dist/esm/apis/RouteTableApi.js | 224 ++ dist/esm/apis/SecurityGroupApi.d.ts | 86 + dist/esm/apis/SecurityGroupApi.js | 146 + dist/esm/apis/SecurityGroupRuleApi.d.ts | 66 + dist/esm/apis/SecurityGroupRuleApi.js | 107 + dist/esm/apis/ServerCertificateApi.d.ts | 106 + dist/esm/apis/ServerCertificateApi.js | 185 ++ dist/esm/apis/SnapshotApi.d.ts | 146 + dist/esm/apis/SnapshotApi.js | 263 ++ dist/esm/apis/SubnetApi.d.ts | 106 + dist/esm/apis/SubnetApi.js | 185 ++ dist/esm/apis/SubregionApi.d.ts | 46 + dist/esm/apis/SubregionApi.js | 68 + dist/esm/apis/TagApi.d.ts | 86 + dist/esm/apis/TagApi.js | 146 + dist/esm/apis/TaskApi.d.ts | 46 + dist/esm/apis/TaskApi.js | 68 + dist/esm/apis/VirtualGatewayApi.d.ts | 146 + dist/esm/apis/VirtualGatewayApi.js | 263 ++ dist/esm/apis/VmApi.d.ts | 246 ++ dist/esm/apis/VmApi.js | 455 +++ dist/esm/apis/VolumeApi.d.ts | 146 + dist/esm/apis/VolumeApi.js | 263 ++ dist/esm/apis/VpnConnectionApi.d.ts | 146 + dist/esm/apis/VpnConnectionApi.js | 263 ++ dist/esm/apis/index.d.ts | 43 + dist/esm/apis/index.js | 45 + dist/esm/index.d.ts | 3 + dist/esm/index.js | 5 + dist/esm/models/AcceptNetPeeringRequest.d.ts | 33 + dist/esm/models/AcceptNetPeeringRequest.js | 38 + dist/esm/models/AcceptNetPeeringResponse.d.ts | 35 + dist/esm/models/AcceptNetPeeringResponse.js | 40 + dist/esm/models/AccepterNet.d.ts | 39 + dist/esm/models/AccepterNet.js | 40 + dist/esm/models/AccessKey.d.ts | 51 + dist/esm/models/AccessKey.js | 44 + dist/esm/models/AccessKeySecretKey.d.ts | 57 + dist/esm/models/AccessKeySecretKey.js | 46 + dist/esm/models/AccessLog.d.ts | 45 + dist/esm/models/AccessLog.js | 42 + dist/esm/models/Account.d.ts | 111 + dist/esm/models/Account.js | 64 + dist/esm/models/ApiAccessPolicy.d.ts | 33 + dist/esm/models/ApiAccessPolicy.js | 38 + dist/esm/models/ApiAccessRule.d.ts | 51 + dist/esm/models/ApiAccessRule.js | 44 + .../models/ApplicationStickyCookiePolicy.d.ts | 33 + .../models/ApplicationStickyCookiePolicy.js | 38 + dist/esm/models/BackendVmHealth.d.ts | 46 + dist/esm/models/BackendVmHealth.js | 42 + .../esm/models/BlockDeviceMappingCreated.d.ts | 34 + dist/esm/models/BlockDeviceMappingCreated.js | 39 + dist/esm/models/BlockDeviceMappingImage.d.ts | 40 + dist/esm/models/BlockDeviceMappingImage.js | 41 + .../models/BlockDeviceMappingVmCreation.d.ts | 46 + .../models/BlockDeviceMappingVmCreation.js | 43 + .../models/BlockDeviceMappingVmUpdate.d.ts | 46 + dist/esm/models/BlockDeviceMappingVmUpdate.js | 43 + dist/esm/models/BsuCreated.d.ts | 45 + dist/esm/models/BsuCreated.js | 42 + dist/esm/models/BsuToCreate.d.ts | 54 + dist/esm/models/BsuToCreate.js | 44 + dist/esm/models/BsuToUpdateVm.d.ts | 33 + dist/esm/models/BsuToUpdateVm.js | 38 + dist/esm/models/Ca.d.ts | 39 + dist/esm/models/Ca.js | 40 + dist/esm/models/Catalog.d.ts | 28 + dist/esm/models/Catalog.js | 37 + dist/esm/models/CatalogEntry.d.ts | 69 + dist/esm/models/CatalogEntry.js | 50 + .../models/CheckAuthenticationRequest.d.ts | 39 + dist/esm/models/CheckAuthenticationRequest.js | 40 + .../models/CheckAuthenticationResponse.d.ts | 28 + .../esm/models/CheckAuthenticationResponse.js | 37 + dist/esm/models/ClientGateway.d.ts | 58 + dist/esm/models/ClientGateway.js | 47 + dist/esm/models/ConsumptionEntry.d.ts | 87 + dist/esm/models/ConsumptionEntry.js | 56 + dist/esm/models/CreateAccessKeyRequest.d.ts | 33 + dist/esm/models/CreateAccessKeyRequest.js | 38 + dist/esm/models/CreateAccessKeyResponse.d.ts | 35 + dist/esm/models/CreateAccessKeyResponse.js | 40 + dist/esm/models/CreateAccountRequest.d.ts | 111 + dist/esm/models/CreateAccountRequest.js | 64 + dist/esm/models/CreateAccountResponse.d.ts | 35 + dist/esm/models/CreateAccountResponse.js | 40 + .../models/CreateApiAccessRuleRequest.d.ts | 51 + dist/esm/models/CreateApiAccessRuleRequest.js | 44 + .../models/CreateApiAccessRuleResponse.d.ts | 35 + .../esm/models/CreateApiAccessRuleResponse.js | 40 + dist/esm/models/CreateCaRequest.d.ts | 39 + dist/esm/models/CreateCaRequest.js | 40 + dist/esm/models/CreateCaResponse.d.ts | 35 + dist/esm/models/CreateCaResponse.js | 40 + .../models/CreateClientGatewayRequest.d.ts | 45 + dist/esm/models/CreateClientGatewayRequest.js | 42 + .../models/CreateClientGatewayResponse.d.ts | 35 + .../esm/models/CreateClientGatewayResponse.js | 40 + dist/esm/models/CreateDhcpOptionsRequest.d.ts | 45 + dist/esm/models/CreateDhcpOptionsRequest.js | 42 + .../esm/models/CreateDhcpOptionsResponse.d.ts | 35 + dist/esm/models/CreateDhcpOptionsResponse.js | 40 + .../CreateDirectLinkInterfaceRequest.d.ts | 40 + .../CreateDirectLinkInterfaceRequest.js | 41 + .../CreateDirectLinkInterfaceResponse.d.ts | 35 + .../CreateDirectLinkInterfaceResponse.js | 40 + dist/esm/models/CreateDirectLinkRequest.d.ts | 45 + dist/esm/models/CreateDirectLinkRequest.js | 42 + dist/esm/models/CreateDirectLinkResponse.d.ts | 35 + dist/esm/models/CreateDirectLinkResponse.js | 40 + dist/esm/models/CreateFlexibleGpuRequest.d.ts | 51 + dist/esm/models/CreateFlexibleGpuRequest.js | 44 + .../esm/models/CreateFlexibleGpuResponse.d.ts | 35 + dist/esm/models/CreateFlexibleGpuResponse.js | 40 + .../models/CreateImageExportTaskRequest.d.ts | 40 + .../models/CreateImageExportTaskRequest.js | 41 + .../models/CreateImageExportTaskResponse.d.ts | 35 + .../models/CreateImageExportTaskResponse.js | 40 + dist/esm/models/CreateImageRequest.d.ts | 89 + dist/esm/models/CreateImageRequest.js | 57 + dist/esm/models/CreateImageResponse.d.ts | 35 + dist/esm/models/CreateImageResponse.js | 40 + .../models/CreateInternetServiceRequest.d.ts | 27 + .../models/CreateInternetServiceRequest.js | 36 + .../models/CreateInternetServiceResponse.d.ts | 35 + .../models/CreateInternetServiceResponse.js | 40 + dist/esm/models/CreateKeypairRequest.d.ts | 39 + dist/esm/models/CreateKeypairRequest.js | 40 + dist/esm/models/CreateKeypairResponse.d.ts | 35 + dist/esm/models/CreateKeypairResponse.js | 40 + .../esm/models/CreateListenerRuleRequest.d.ts | 47 + dist/esm/models/CreateListenerRuleRequest.js | 44 + .../models/CreateListenerRuleResponse.d.ts | 35 + dist/esm/models/CreateListenerRuleResponse.js | 40 + .../CreateLoadBalancerListenersRequest.d.ts | 40 + .../CreateLoadBalancerListenersRequest.js | 41 + .../CreateLoadBalancerListenersResponse.d.ts | 35 + .../CreateLoadBalancerListenersResponse.js | 40 + .../CreateLoadBalancerPolicyRequest.d.ts | 57 + .../models/CreateLoadBalancerPolicyRequest.js | 46 + .../CreateLoadBalancerPolicyResponse.d.ts | 35 + .../CreateLoadBalancerPolicyResponse.js | 40 + .../esm/models/CreateLoadBalancerRequest.d.ts | 77 + dist/esm/models/CreateLoadBalancerRequest.js | 54 + .../models/CreateLoadBalancerResponse.d.ts | 35 + dist/esm/models/CreateLoadBalancerResponse.js | 40 + .../models/CreateLoadBalancerTagsRequest.d.ts | 40 + .../models/CreateLoadBalancerTagsRequest.js | 41 + .../CreateLoadBalancerTagsResponse.d.ts | 28 + .../models/CreateLoadBalancerTagsResponse.js | 37 + dist/esm/models/CreateNatServiceRequest.d.ts | 40 + dist/esm/models/CreateNatServiceRequest.js | 40 + dist/esm/models/CreateNatServiceResponse.d.ts | 35 + dist/esm/models/CreateNatServiceResponse.js | 40 + .../models/CreateNetAccessPointRequest.d.ts | 45 + .../esm/models/CreateNetAccessPointRequest.js | 42 + .../models/CreateNetAccessPointResponse.d.ts | 35 + .../models/CreateNetAccessPointResponse.js | 40 + dist/esm/models/CreateNetPeeringRequest.d.ts | 39 + dist/esm/models/CreateNetPeeringRequest.js | 40 + dist/esm/models/CreateNetPeeringResponse.d.ts | 35 + dist/esm/models/CreateNetPeeringResponse.js | 40 + dist/esm/models/CreateNetRequest.d.ts | 39 + dist/esm/models/CreateNetRequest.js | 40 + dist/esm/models/CreateNetResponse.d.ts | 35 + dist/esm/models/CreateNetResponse.js | 40 + dist/esm/models/CreateNicRequest.d.ts | 54 + dist/esm/models/CreateNicRequest.js | 45 + dist/esm/models/CreateNicResponse.d.ts | 35 + dist/esm/models/CreateNicResponse.js | 40 + dist/esm/models/CreatePublicIpRequest.d.ts | 27 + dist/esm/models/CreatePublicIpRequest.js | 36 + dist/esm/models/CreatePublicIpResponse.d.ts | 35 + dist/esm/models/CreatePublicIpResponse.js | 40 + dist/esm/models/CreateRouteRequest.d.ts | 69 + dist/esm/models/CreateRouteRequest.js | 50 + dist/esm/models/CreateRouteResponse.d.ts | 35 + dist/esm/models/CreateRouteResponse.js | 40 + dist/esm/models/CreateRouteTableRequest.d.ts | 33 + dist/esm/models/CreateRouteTableRequest.js | 38 + dist/esm/models/CreateRouteTableResponse.d.ts | 35 + dist/esm/models/CreateRouteTableResponse.js | 40 + .../models/CreateSecurityGroupRequest.d.ts | 47 + dist/esm/models/CreateSecurityGroupRequest.js | 42 + .../models/CreateSecurityGroupResponse.d.ts | 35 + .../esm/models/CreateSecurityGroupResponse.js | 40 + .../CreateSecurityGroupRuleRequest.d.ts | 82 + .../models/CreateSecurityGroupRuleRequest.js | 55 + .../CreateSecurityGroupRuleResponse.d.ts | 35 + .../models/CreateSecurityGroupRuleResponse.js | 40 + .../CreateServerCertificateRequest.d.ts | 57 + .../models/CreateServerCertificateRequest.js | 46 + .../CreateServerCertificateResponse.d.ts | 35 + .../models/CreateServerCertificateResponse.js | 40 + .../CreateSnapshotExportTaskRequest.d.ts | 40 + .../models/CreateSnapshotExportTaskRequest.js | 41 + .../CreateSnapshotExportTaskResponse.d.ts | 35 + .../CreateSnapshotExportTaskResponse.js | 40 + dist/esm/models/CreateSnapshotRequest.d.ts | 63 + dist/esm/models/CreateSnapshotRequest.js | 48 + dist/esm/models/CreateSnapshotResponse.d.ts | 35 + dist/esm/models/CreateSnapshotResponse.js | 40 + dist/esm/models/CreateSubnetRequest.d.ts | 45 + dist/esm/models/CreateSubnetRequest.js | 42 + dist/esm/models/CreateSubnetResponse.d.ts | 35 + dist/esm/models/CreateSubnetResponse.js | 40 + dist/esm/models/CreateTagsRequest.d.ts | 40 + dist/esm/models/CreateTagsRequest.js | 41 + dist/esm/models/CreateTagsResponse.d.ts | 28 + dist/esm/models/CreateTagsResponse.js | 37 + .../models/CreateVirtualGatewayRequest.d.ts | 33 + .../esm/models/CreateVirtualGatewayRequest.js | 38 + .../models/CreateVirtualGatewayResponse.d.ts | 35 + .../models/CreateVirtualGatewayResponse.js | 40 + dist/esm/models/CreateVmsRequest.d.ts | 154 + dist/esm/models/CreateVmsRequest.js | 85 + dist/esm/models/CreateVmsResponse.d.ts | 35 + dist/esm/models/CreateVmsResponse.js | 40 + dist/esm/models/CreateVolumeRequest.d.ts | 58 + dist/esm/models/CreateVolumeRequest.js | 46 + dist/esm/models/CreateVolumeResponse.d.ts | 35 + dist/esm/models/CreateVolumeResponse.js | 40 + .../models/CreateVpnConnectionRequest.d.ts | 51 + dist/esm/models/CreateVpnConnectionRequest.js | 44 + .../models/CreateVpnConnectionResponse.d.ts | 35 + .../esm/models/CreateVpnConnectionResponse.js | 40 + .../CreateVpnConnectionRouteRequest.d.ts | 39 + .../models/CreateVpnConnectionRouteRequest.js | 40 + .../CreateVpnConnectionRouteResponse.d.ts | 28 + .../CreateVpnConnectionRouteResponse.js | 37 + dist/esm/models/DeleteAccessKeyRequest.d.ts | 33 + dist/esm/models/DeleteAccessKeyRequest.js | 38 + dist/esm/models/DeleteAccessKeyResponse.d.ts | 28 + dist/esm/models/DeleteAccessKeyResponse.js | 37 + .../models/DeleteApiAccessRuleRequest.d.ts | 33 + dist/esm/models/DeleteApiAccessRuleRequest.js | 38 + .../models/DeleteApiAccessRuleResponse.d.ts | 28 + .../esm/models/DeleteApiAccessRuleResponse.js | 37 + dist/esm/models/DeleteCaRequest.d.ts | 33 + dist/esm/models/DeleteCaRequest.js | 38 + dist/esm/models/DeleteCaResponse.d.ts | 28 + dist/esm/models/DeleteCaResponse.js | 37 + .../models/DeleteClientGatewayRequest.d.ts | 33 + dist/esm/models/DeleteClientGatewayRequest.js | 38 + .../models/DeleteClientGatewayResponse.d.ts | 28 + .../esm/models/DeleteClientGatewayResponse.js | 37 + dist/esm/models/DeleteDhcpOptionsRequest.d.ts | 33 + dist/esm/models/DeleteDhcpOptionsRequest.js | 38 + .../esm/models/DeleteDhcpOptionsResponse.d.ts | 28 + dist/esm/models/DeleteDhcpOptionsResponse.js | 37 + .../DeleteDirectLinkInterfaceRequest.d.ts | 33 + .../DeleteDirectLinkInterfaceRequest.js | 38 + .../DeleteDirectLinkInterfaceResponse.d.ts | 28 + .../DeleteDirectLinkInterfaceResponse.js | 37 + dist/esm/models/DeleteDirectLinkRequest.d.ts | 33 + dist/esm/models/DeleteDirectLinkRequest.js | 38 + dist/esm/models/DeleteDirectLinkResponse.d.ts | 28 + dist/esm/models/DeleteDirectLinkResponse.js | 37 + dist/esm/models/DeleteExportTaskRequest.d.ts | 33 + dist/esm/models/DeleteExportTaskRequest.js | 38 + dist/esm/models/DeleteExportTaskResponse.d.ts | 28 + dist/esm/models/DeleteExportTaskResponse.js | 37 + dist/esm/models/DeleteFlexibleGpuRequest.d.ts | 33 + dist/esm/models/DeleteFlexibleGpuRequest.js | 38 + .../esm/models/DeleteFlexibleGpuResponse.d.ts | 28 + dist/esm/models/DeleteFlexibleGpuResponse.js | 37 + dist/esm/models/DeleteImageRequest.d.ts | 33 + dist/esm/models/DeleteImageRequest.js | 38 + dist/esm/models/DeleteImageResponse.d.ts | 28 + dist/esm/models/DeleteImageResponse.js | 37 + .../models/DeleteInternetServiceRequest.d.ts | 33 + .../models/DeleteInternetServiceRequest.js | 38 + .../models/DeleteInternetServiceResponse.d.ts | 28 + .../models/DeleteInternetServiceResponse.js | 37 + dist/esm/models/DeleteKeypairRequest.d.ts | 33 + dist/esm/models/DeleteKeypairRequest.js | 38 + dist/esm/models/DeleteKeypairResponse.d.ts | 28 + dist/esm/models/DeleteKeypairResponse.js | 37 + .../esm/models/DeleteListenerRuleRequest.d.ts | 33 + dist/esm/models/DeleteListenerRuleRequest.js | 38 + .../models/DeleteListenerRuleResponse.d.ts | 28 + dist/esm/models/DeleteListenerRuleResponse.js | 37 + .../DeleteLoadBalancerListenersRequest.d.ts | 39 + .../DeleteLoadBalancerListenersRequest.js | 40 + .../DeleteLoadBalancerListenersResponse.d.ts | 35 + .../DeleteLoadBalancerListenersResponse.js | 40 + .../DeleteLoadBalancerPolicyRequest.d.ts | 39 + .../models/DeleteLoadBalancerPolicyRequest.js | 40 + .../DeleteLoadBalancerPolicyResponse.d.ts | 35 + .../DeleteLoadBalancerPolicyResponse.js | 40 + .../esm/models/DeleteLoadBalancerRequest.d.ts | 33 + dist/esm/models/DeleteLoadBalancerRequest.js | 38 + .../models/DeleteLoadBalancerResponse.d.ts | 28 + dist/esm/models/DeleteLoadBalancerResponse.js | 37 + .../models/DeleteLoadBalancerTagsRequest.d.ts | 40 + .../models/DeleteLoadBalancerTagsRequest.js | 41 + .../DeleteLoadBalancerTagsResponse.d.ts | 28 + .../models/DeleteLoadBalancerTagsResponse.js | 37 + dist/esm/models/DeleteNatServiceRequest.d.ts | 33 + dist/esm/models/DeleteNatServiceRequest.js | 38 + dist/esm/models/DeleteNatServiceResponse.d.ts | 28 + dist/esm/models/DeleteNatServiceResponse.js | 37 + .../models/DeleteNetAccessPointRequest.d.ts | 33 + .../esm/models/DeleteNetAccessPointRequest.js | 38 + .../models/DeleteNetAccessPointResponse.d.ts | 28 + .../models/DeleteNetAccessPointResponse.js | 37 + dist/esm/models/DeleteNetPeeringRequest.d.ts | 33 + dist/esm/models/DeleteNetPeeringRequest.js | 38 + dist/esm/models/DeleteNetPeeringResponse.d.ts | 28 + dist/esm/models/DeleteNetPeeringResponse.js | 37 + dist/esm/models/DeleteNetRequest.d.ts | 33 + dist/esm/models/DeleteNetRequest.js | 38 + dist/esm/models/DeleteNetResponse.d.ts | 28 + dist/esm/models/DeleteNetResponse.js | 37 + dist/esm/models/DeleteNicRequest.d.ts | 33 + dist/esm/models/DeleteNicRequest.js | 38 + dist/esm/models/DeleteNicResponse.d.ts | 28 + dist/esm/models/DeleteNicResponse.js | 37 + dist/esm/models/DeletePublicIpRequest.d.ts | 39 + dist/esm/models/DeletePublicIpRequest.js | 40 + dist/esm/models/DeletePublicIpResponse.d.ts | 28 + dist/esm/models/DeletePublicIpResponse.js | 37 + dist/esm/models/DeleteRouteRequest.d.ts | 39 + dist/esm/models/DeleteRouteRequest.js | 40 + dist/esm/models/DeleteRouteResponse.d.ts | 35 + dist/esm/models/DeleteRouteResponse.js | 40 + dist/esm/models/DeleteRouteTableRequest.d.ts | 33 + dist/esm/models/DeleteRouteTableRequest.js | 38 + dist/esm/models/DeleteRouteTableResponse.d.ts | 28 + dist/esm/models/DeleteRouteTableResponse.js | 37 + .../models/DeleteSecurityGroupRequest.d.ts | 39 + dist/esm/models/DeleteSecurityGroupRequest.js | 40 + .../models/DeleteSecurityGroupResponse.d.ts | 28 + .../esm/models/DeleteSecurityGroupResponse.js | 37 + .../DeleteSecurityGroupRuleRequest.d.ts | 82 + .../models/DeleteSecurityGroupRuleRequest.js | 55 + .../DeleteSecurityGroupRuleResponse.d.ts | 35 + .../models/DeleteSecurityGroupRuleResponse.js | 40 + .../DeleteServerCertificateRequest.d.ts | 33 + .../models/DeleteServerCertificateRequest.js | 38 + .../DeleteServerCertificateResponse.d.ts | 28 + .../models/DeleteServerCertificateResponse.js | 37 + dist/esm/models/DeleteSnapshotRequest.d.ts | 33 + dist/esm/models/DeleteSnapshotRequest.js | 38 + dist/esm/models/DeleteSnapshotResponse.d.ts | 28 + dist/esm/models/DeleteSnapshotResponse.js | 37 + dist/esm/models/DeleteSubnetRequest.d.ts | 33 + dist/esm/models/DeleteSubnetRequest.js | 38 + dist/esm/models/DeleteSubnetResponse.d.ts | 28 + dist/esm/models/DeleteSubnetResponse.js | 37 + dist/esm/models/DeleteTagsRequest.d.ts | 40 + dist/esm/models/DeleteTagsRequest.js | 41 + dist/esm/models/DeleteTagsResponse.d.ts | 28 + dist/esm/models/DeleteTagsResponse.js | 37 + .../models/DeleteVirtualGatewayRequest.d.ts | 33 + .../esm/models/DeleteVirtualGatewayRequest.js | 38 + .../models/DeleteVirtualGatewayResponse.d.ts | 28 + .../models/DeleteVirtualGatewayResponse.js | 37 + dist/esm/models/DeleteVmsRequest.d.ts | 33 + dist/esm/models/DeleteVmsRequest.js | 38 + dist/esm/models/DeleteVmsResponse.d.ts | 35 + dist/esm/models/DeleteVmsResponse.js | 40 + dist/esm/models/DeleteVolumeRequest.d.ts | 33 + dist/esm/models/DeleteVolumeRequest.js | 38 + dist/esm/models/DeleteVolumeResponse.d.ts | 28 + dist/esm/models/DeleteVolumeResponse.js | 37 + .../models/DeleteVpnConnectionRequest.d.ts | 33 + dist/esm/models/DeleteVpnConnectionRequest.js | 38 + .../models/DeleteVpnConnectionResponse.d.ts | 28 + .../esm/models/DeleteVpnConnectionResponse.js | 37 + .../DeleteVpnConnectionRouteRequest.d.ts | 39 + .../models/DeleteVpnConnectionRouteRequest.js | 40 + .../DeleteVpnConnectionRouteResponse.d.ts | 28 + .../DeleteVpnConnectionRouteResponse.js | 37 + .../DeregisterVmsInLoadBalancerRequest.d.ts | 39 + .../DeregisterVmsInLoadBalancerRequest.js | 40 + .../DeregisterVmsInLoadBalancerResponse.d.ts | 28 + .../DeregisterVmsInLoadBalancerResponse.js | 37 + dist/esm/models/DhcpOptionsSet.d.ts | 58 + dist/esm/models/DhcpOptionsSet.js | 47 + dist/esm/models/DirectLink.d.ts | 68 + dist/esm/models/DirectLink.js | 48 + dist/esm/models/DirectLinkInterface.d.ts | 63 + dist/esm/models/DirectLinkInterface.js | 48 + dist/esm/models/DirectLinkInterfaces.d.ts | 99 + dist/esm/models/DirectLinkInterfaces.js | 60 + dist/esm/models/ErrorResponse.d.ts | 35 + dist/esm/models/ErrorResponse.js | 40 + dist/esm/models/Errors.d.ts | 39 + dist/esm/models/Errors.js | 40 + dist/esm/models/FiltersAccessKeys.d.ts | 33 + dist/esm/models/FiltersAccessKeys.js | 38 + dist/esm/models/FiltersApiAccessRule.d.ts | 51 + dist/esm/models/FiltersApiAccessRule.js | 44 + dist/esm/models/FiltersApiLog.d.ts | 75 + dist/esm/models/FiltersApiLog.js | 52 + dist/esm/models/FiltersCa.d.ts | 39 + dist/esm/models/FiltersCa.js | 40 + dist/esm/models/FiltersClientGateway.d.ts | 69 + dist/esm/models/FiltersClientGateway.js | 50 + dist/esm/models/FiltersDhcpOptions.d.ts | 69 + dist/esm/models/FiltersDhcpOptions.js | 50 + dist/esm/models/FiltersDirectLink.d.ts | 27 + dist/esm/models/FiltersDirectLink.js | 36 + .../models/FiltersDirectLinkInterface.d.ts | 33 + dist/esm/models/FiltersDirectLinkInterface.js | 38 + dist/esm/models/FiltersExportTask.d.ts | 27 + dist/esm/models/FiltersExportTask.js | 36 + dist/esm/models/FiltersFlexibleGpu.d.ts | 63 + dist/esm/models/FiltersFlexibleGpu.js | 48 + dist/esm/models/FiltersImage.d.ts | 159 + dist/esm/models/FiltersImage.js | 80 + dist/esm/models/FiltersInternetService.d.ts | 57 + dist/esm/models/FiltersInternetService.js | 46 + dist/esm/models/FiltersKeypair.d.ts | 33 + dist/esm/models/FiltersKeypair.js | 38 + dist/esm/models/FiltersListenerRule.d.ts | 27 + dist/esm/models/FiltersListenerRule.js | 36 + dist/esm/models/FiltersLoadBalancer.d.ts | 27 + dist/esm/models/FiltersLoadBalancer.js | 36 + dist/esm/models/FiltersNatService.d.ts | 63 + dist/esm/models/FiltersNatService.js | 48 + dist/esm/models/FiltersNet.d.ts | 69 + dist/esm/models/FiltersNet.js | 50 + dist/esm/models/FiltersNetAccessPoint.d.ts | 63 + dist/esm/models/FiltersNetAccessPoint.js | 48 + dist/esm/models/FiltersNetPeering.d.ts | 93 + dist/esm/models/FiltersNetPeering.js | 58 + dist/esm/models/FiltersNic.d.ts | 189 ++ dist/esm/models/FiltersNic.js | 90 + dist/esm/models/FiltersProductType.d.ts | 27 + dist/esm/models/FiltersProductType.js | 36 + dist/esm/models/FiltersPublicIp.d.ts | 87 + dist/esm/models/FiltersPublicIp.js | 56 + dist/esm/models/FiltersQuota.d.ts | 45 + dist/esm/models/FiltersQuota.js | 42 + dist/esm/models/FiltersRouteTable.d.ts | 123 + dist/esm/models/FiltersRouteTable.js | 68 + dist/esm/models/FiltersSecurityGroup.d.ts | 153 + dist/esm/models/FiltersSecurityGroup.js | 78 + dist/esm/models/FiltersServerCertificate.d.ts | 27 + dist/esm/models/FiltersServerCertificate.js | 36 + dist/esm/models/FiltersService.d.ts | 33 + dist/esm/models/FiltersService.js | 38 + dist/esm/models/FiltersSnapshot.d.ts | 99 + dist/esm/models/FiltersSnapshot.js | 60 + dist/esm/models/FiltersSubnet.d.ts | 75 + dist/esm/models/FiltersSubnet.js | 52 + dist/esm/models/FiltersSubregion.d.ts | 27 + dist/esm/models/FiltersSubregion.js | 36 + dist/esm/models/FiltersTag.d.ts | 45 + dist/esm/models/FiltersTag.js | 42 + dist/esm/models/FiltersVirtualGateway.d.ts | 69 + dist/esm/models/FiltersVirtualGateway.js | 50 + dist/esm/models/FiltersVm.d.ts | 45 + dist/esm/models/FiltersVm.js | 42 + dist/esm/models/FiltersVmType.d.ts | 57 + dist/esm/models/FiltersVmType.js | 46 + dist/esm/models/FiltersVmsState.d.ts | 63 + dist/esm/models/FiltersVmsState.js | 48 + dist/esm/models/FiltersVolume.d.ts | 111 + dist/esm/models/FiltersVolume.js | 64 + dist/esm/models/FiltersVpnConnection.d.ts | 87 + dist/esm/models/FiltersVpnConnection.js | 56 + dist/esm/models/FlexibleGpu.d.ts | 63 + dist/esm/models/FlexibleGpu.js | 48 + dist/esm/models/FlexibleGpuCatalog.d.ts | 51 + dist/esm/models/FlexibleGpuCatalog.js | 44 + dist/esm/models/HealthCheck.d.ts | 63 + dist/esm/models/HealthCheck.js | 48 + dist/esm/models/Image.d.ts | 127 + dist/esm/models/Image.js | 72 + dist/esm/models/ImageExportTask.d.ts | 65 + dist/esm/models/ImageExportTask.js | 50 + dist/esm/models/InternetService.d.ts | 46 + dist/esm/models/InternetService.js | 43 + dist/esm/models/Keypair.d.ts | 33 + dist/esm/models/Keypair.js | 38 + dist/esm/models/KeypairCreated.d.ts | 39 + dist/esm/models/KeypairCreated.js | 40 + dist/esm/models/LinkFlexibleGpuRequest.d.ts | 39 + dist/esm/models/LinkFlexibleGpuRequest.js | 40 + dist/esm/models/LinkFlexibleGpuResponse.d.ts | 28 + dist/esm/models/LinkFlexibleGpuResponse.js | 37 + .../models/LinkInternetServiceRequest.d.ts | 39 + dist/esm/models/LinkInternetServiceRequest.js | 40 + .../models/LinkInternetServiceResponse.d.ts | 28 + .../esm/models/LinkInternetServiceResponse.js | 37 + ...inkLoadBalancerBackendMachinesRequest.d.ts | 45 + .../LinkLoadBalancerBackendMachinesRequest.js | 42 + ...nkLoadBalancerBackendMachinesResponse.d.ts | 28 + ...LinkLoadBalancerBackendMachinesResponse.js | 37 + dist/esm/models/LinkNic.d.ts | 57 + dist/esm/models/LinkNic.js | 46 + dist/esm/models/LinkNicLight.d.ts | 45 + dist/esm/models/LinkNicLight.js | 42 + dist/esm/models/LinkNicRequest.d.ts | 45 + dist/esm/models/LinkNicRequest.js | 42 + dist/esm/models/LinkNicResponse.d.ts | 34 + dist/esm/models/LinkNicResponse.js | 39 + dist/esm/models/LinkNicToUpdate.d.ts | 33 + dist/esm/models/LinkNicToUpdate.js | 38 + dist/esm/models/LinkPrivateIpsRequest.d.ts | 51 + dist/esm/models/LinkPrivateIpsRequest.js | 44 + dist/esm/models/LinkPrivateIpsResponse.d.ts | 28 + dist/esm/models/LinkPrivateIpsResponse.js | 37 + dist/esm/models/LinkPublicIp.d.ts | 51 + dist/esm/models/LinkPublicIp.js | 44 + dist/esm/models/LinkPublicIpLightForVm.d.ts | 39 + dist/esm/models/LinkPublicIpLightForVm.js | 40 + dist/esm/models/LinkPublicIpRequest.d.ts | 65 + dist/esm/models/LinkPublicIpRequest.js | 48 + dist/esm/models/LinkPublicIpResponse.d.ts | 34 + dist/esm/models/LinkPublicIpResponse.js | 39 + dist/esm/models/LinkRouteTable.d.ts | 45 + dist/esm/models/LinkRouteTable.js | 42 + dist/esm/models/LinkRouteTableRequest.d.ts | 39 + dist/esm/models/LinkRouteTableRequest.js | 40 + dist/esm/models/LinkRouteTableResponse.d.ts | 34 + dist/esm/models/LinkRouteTableResponse.js | 39 + .../esm/models/LinkVirtualGatewayRequest.d.ts | 39 + dist/esm/models/LinkVirtualGatewayRequest.js | 40 + .../models/LinkVirtualGatewayResponse.d.ts | 35 + dist/esm/models/LinkVirtualGatewayResponse.js | 40 + dist/esm/models/LinkVolumeRequest.d.ts | 45 + dist/esm/models/LinkVolumeRequest.js | 42 + dist/esm/models/LinkVolumeResponse.d.ts | 28 + dist/esm/models/LinkVolumeResponse.js | 37 + dist/esm/models/LinkedVolume.d.ts | 51 + dist/esm/models/LinkedVolume.js | 44 + dist/esm/models/Listener.d.ts | 57 + dist/esm/models/Listener.js | 46 + dist/esm/models/ListenerForCreation.d.ts | 51 + dist/esm/models/ListenerForCreation.js | 44 + dist/esm/models/ListenerRule.d.ts | 69 + dist/esm/models/ListenerRule.js | 50 + dist/esm/models/ListenerRuleForCreation.d.ts | 51 + dist/esm/models/ListenerRuleForCreation.js | 44 + dist/esm/models/LoadBalancer.d.ts | 132 + dist/esm/models/LoadBalancer.js | 75 + dist/esm/models/LoadBalancerLight.d.ts | 33 + dist/esm/models/LoadBalancerLight.js | 37 + .../LoadBalancerStickyCookiePolicy.d.ts | 34 + .../models/LoadBalancerStickyCookiePolicy.js | 38 + dist/esm/models/LoadBalancerTag.d.ts | 39 + dist/esm/models/LoadBalancerTag.js | 40 + dist/esm/models/Location.d.ts | 33 + dist/esm/models/Location.js | 38 + dist/esm/models/Log.d.ts | 117 + dist/esm/models/Log.js | 66 + dist/esm/models/MaintenanceEvent.d.ts | 45 + dist/esm/models/MaintenanceEvent.js | 42 + dist/esm/models/ModelResponseContext.d.ts | 27 + dist/esm/models/ModelResponseContext.js | 36 + dist/esm/models/NatService.d.ts | 59 + dist/esm/models/NatService.js | 48 + dist/esm/models/Net.d.ts | 58 + dist/esm/models/Net.js | 47 + dist/esm/models/NetAccessPoint.d.ts | 58 + dist/esm/models/NetAccessPoint.js | 47 + dist/esm/models/NetPeering.d.ts | 55 + dist/esm/models/NetPeering.js | 48 + dist/esm/models/NetPeeringState.d.ts | 33 + dist/esm/models/NetPeeringState.js | 38 + dist/esm/models/NetToVirtualGatewayLink.d.ts | 33 + dist/esm/models/NetToVirtualGatewayLink.js | 38 + dist/esm/models/Nic.d.ts | 116 + dist/esm/models/Nic.js | 69 + dist/esm/models/NicForVmCreation.d.ts | 70 + dist/esm/models/NicForVmCreation.js | 51 + dist/esm/models/NicLight.d.ts | 103 + dist/esm/models/NicLight.js | 64 + dist/esm/models/OsuApiKey.d.ts | 33 + dist/esm/models/OsuApiKey.js | 38 + dist/esm/models/OsuExportImageExportTask.d.ts | 45 + dist/esm/models/OsuExportImageExportTask.js | 42 + .../models/OsuExportSnapshotExportTask.d.ts | 39 + .../esm/models/OsuExportSnapshotExportTask.js | 40 + dist/esm/models/OsuExportToCreate.d.ts | 52 + dist/esm/models/OsuExportToCreate.js | 45 + dist/esm/models/PermissionsOnResource.d.ts | 33 + dist/esm/models/PermissionsOnResource.js | 38 + .../models/PermissionsOnResourceCreation.d.ts | 34 + .../models/PermissionsOnResourceCreation.js | 39 + dist/esm/models/Phase1Options.d.ts | 75 + dist/esm/models/Phase1Options.js | 52 + dist/esm/models/Phase2Options.d.ts | 51 + dist/esm/models/Phase2Options.js | 44 + dist/esm/models/Placement.d.ts | 33 + dist/esm/models/Placement.js | 38 + dist/esm/models/PrivateIp.d.ts | 46 + dist/esm/models/PrivateIp.js | 43 + dist/esm/models/PrivateIpLight.d.ts | 33 + dist/esm/models/PrivateIpLight.js | 38 + dist/esm/models/PrivateIpLightForVm.d.ts | 46 + dist/esm/models/PrivateIpLightForVm.js | 43 + dist/esm/models/ProductType.d.ts | 39 + dist/esm/models/ProductType.js | 40 + dist/esm/models/PublicIp.d.ts | 70 + dist/esm/models/PublicIp.js | 51 + dist/esm/models/PublicIpLight.d.ts | 33 + dist/esm/models/PublicIpLight.js | 38 + dist/esm/models/Quota.d.ts | 63 + dist/esm/models/Quota.js | 48 + dist/esm/models/QuotaTypes.d.ts | 34 + dist/esm/models/QuotaTypes.js | 39 + dist/esm/models/ReadAccessKeysRequest.d.ts | 34 + dist/esm/models/ReadAccessKeysRequest.js | 39 + dist/esm/models/ReadAccessKeysResponse.d.ts | 35 + dist/esm/models/ReadAccessKeysResponse.js | 40 + dist/esm/models/ReadAccountsRequest.d.ts | 27 + dist/esm/models/ReadAccountsRequest.js | 36 + dist/esm/models/ReadAccountsResponse.d.ts | 35 + dist/esm/models/ReadAccountsResponse.js | 40 + dist/esm/models/ReadAdminPasswordRequest.d.ts | 33 + dist/esm/models/ReadAdminPasswordRequest.js | 38 + .../esm/models/ReadAdminPasswordResponse.d.ts | 40 + dist/esm/models/ReadAdminPasswordResponse.js | 41 + .../models/ReadApiAccessPolicyRequest.d.ts | 27 + dist/esm/models/ReadApiAccessPolicyRequest.js | 36 + .../models/ReadApiAccessPolicyResponse.d.ts | 35 + .../esm/models/ReadApiAccessPolicyResponse.js | 40 + .../esm/models/ReadApiAccessRulesRequest.d.ts | 34 + dist/esm/models/ReadApiAccessRulesRequest.js | 39 + .../models/ReadApiAccessRulesResponse.d.ts | 35 + dist/esm/models/ReadApiAccessRulesResponse.js | 40 + dist/esm/models/ReadApiLogsRequest.d.ts | 53 + dist/esm/models/ReadApiLogsRequest.js | 46 + dist/esm/models/ReadApiLogsResponse.d.ts | 41 + dist/esm/models/ReadApiLogsResponse.js | 42 + dist/esm/models/ReadCasRequest.d.ts | 34 + dist/esm/models/ReadCasRequest.js | 39 + dist/esm/models/ReadCasResponse.d.ts | 35 + dist/esm/models/ReadCasResponse.js | 40 + dist/esm/models/ReadCatalogRequest.d.ts | 27 + dist/esm/models/ReadCatalogRequest.js | 36 + dist/esm/models/ReadCatalogResponse.d.ts | 35 + dist/esm/models/ReadCatalogResponse.js | 40 + .../esm/models/ReadClientGatewaysRequest.d.ts | 34 + dist/esm/models/ReadClientGatewaysRequest.js | 39 + .../models/ReadClientGatewaysResponse.d.ts | 35 + dist/esm/models/ReadClientGatewaysResponse.js | 40 + dist/esm/models/ReadConsoleOutputRequest.d.ts | 33 + dist/esm/models/ReadConsoleOutputRequest.js | 38 + .../esm/models/ReadConsoleOutputResponse.d.ts | 40 + dist/esm/models/ReadConsoleOutputResponse.js | 41 + .../models/ReadConsumptionAccountRequest.d.ts | 39 + .../models/ReadConsumptionAccountRequest.js | 40 + .../ReadConsumptionAccountResponse.d.ts | 35 + .../models/ReadConsumptionAccountResponse.js | 40 + dist/esm/models/ReadDhcpOptionsRequest.d.ts | 34 + dist/esm/models/ReadDhcpOptionsRequest.js | 39 + dist/esm/models/ReadDhcpOptionsResponse.d.ts | 35 + dist/esm/models/ReadDhcpOptionsResponse.js | 40 + .../ReadDirectLinkInterfacesRequest.d.ts | 34 + .../models/ReadDirectLinkInterfacesRequest.js | 39 + .../ReadDirectLinkInterfacesResponse.d.ts | 35 + .../ReadDirectLinkInterfacesResponse.js | 40 + dist/esm/models/ReadDirectLinksRequest.d.ts | 34 + dist/esm/models/ReadDirectLinksRequest.js | 39 + dist/esm/models/ReadDirectLinksResponse.d.ts | 35 + dist/esm/models/ReadDirectLinksResponse.js | 40 + .../models/ReadFlexibleGpuCatalogRequest.d.ts | 27 + .../models/ReadFlexibleGpuCatalogRequest.js | 36 + .../ReadFlexibleGpuCatalogResponse.d.ts | 35 + .../models/ReadFlexibleGpuCatalogResponse.js | 40 + dist/esm/models/ReadFlexibleGpusRequest.d.ts | 34 + dist/esm/models/ReadFlexibleGpusRequest.js | 39 + dist/esm/models/ReadFlexibleGpusResponse.d.ts | 35 + dist/esm/models/ReadFlexibleGpusResponse.js | 40 + .../models/ReadImageExportTasksRequest.d.ts | 34 + .../esm/models/ReadImageExportTasksRequest.js | 39 + .../models/ReadImageExportTasksResponse.d.ts | 35 + .../models/ReadImageExportTasksResponse.js | 40 + dist/esm/models/ReadImagesRequest.d.ts | 34 + dist/esm/models/ReadImagesRequest.js | 39 + dist/esm/models/ReadImagesResponse.d.ts | 35 + dist/esm/models/ReadImagesResponse.js | 40 + .../models/ReadInternetServicesRequest.d.ts | 34 + .../esm/models/ReadInternetServicesRequest.js | 39 + .../models/ReadInternetServicesResponse.d.ts | 35 + .../models/ReadInternetServicesResponse.js | 40 + dist/esm/models/ReadKeypairsRequest.d.ts | 34 + dist/esm/models/ReadKeypairsRequest.js | 39 + dist/esm/models/ReadKeypairsResponse.d.ts | 35 + dist/esm/models/ReadKeypairsResponse.js | 40 + dist/esm/models/ReadListenerRulesRequest.d.ts | 34 + dist/esm/models/ReadListenerRulesRequest.js | 39 + .../esm/models/ReadListenerRulesResponse.d.ts | 35 + dist/esm/models/ReadListenerRulesResponse.js | 40 + .../models/ReadLoadBalancerTagsRequest.d.ts | 33 + .../esm/models/ReadLoadBalancerTagsRequest.js | 38 + .../models/ReadLoadBalancerTagsResponse.d.ts | 35 + .../models/ReadLoadBalancerTagsResponse.js | 40 + dist/esm/models/ReadLoadBalancersRequest.d.ts | 34 + dist/esm/models/ReadLoadBalancersRequest.js | 39 + .../esm/models/ReadLoadBalancersResponse.d.ts | 35 + dist/esm/models/ReadLoadBalancersResponse.js | 40 + dist/esm/models/ReadLocationsRequest.d.ts | 27 + dist/esm/models/ReadLocationsRequest.js | 36 + dist/esm/models/ReadLocationsResponse.d.ts | 35 + dist/esm/models/ReadLocationsResponse.js | 40 + dist/esm/models/ReadNatServicesRequest.d.ts | 34 + dist/esm/models/ReadNatServicesRequest.js | 39 + dist/esm/models/ReadNatServicesResponse.d.ts | 35 + dist/esm/models/ReadNatServicesResponse.js | 40 + .../ReadNetAccessPointServicesRequest.d.ts | 34 + .../ReadNetAccessPointServicesRequest.js | 39 + .../ReadNetAccessPointServicesResponse.d.ts | 35 + .../ReadNetAccessPointServicesResponse.js | 40 + .../models/ReadNetAccessPointsRequest.d.ts | 34 + dist/esm/models/ReadNetAccessPointsRequest.js | 39 + .../models/ReadNetAccessPointsResponse.d.ts | 35 + .../esm/models/ReadNetAccessPointsResponse.js | 40 + dist/esm/models/ReadNetPeeringsRequest.d.ts | 34 + dist/esm/models/ReadNetPeeringsRequest.js | 39 + dist/esm/models/ReadNetPeeringsResponse.d.ts | 35 + dist/esm/models/ReadNetPeeringsResponse.js | 40 + dist/esm/models/ReadNetsRequest.d.ts | 34 + dist/esm/models/ReadNetsRequest.js | 39 + dist/esm/models/ReadNetsResponse.d.ts | 35 + dist/esm/models/ReadNetsResponse.js | 40 + dist/esm/models/ReadNicsRequest.d.ts | 34 + dist/esm/models/ReadNicsRequest.js | 39 + dist/esm/models/ReadNicsResponse.d.ts | 35 + dist/esm/models/ReadNicsResponse.js | 40 + dist/esm/models/ReadProductTypesRequest.d.ts | 34 + dist/esm/models/ReadProductTypesRequest.js | 39 + dist/esm/models/ReadProductTypesResponse.d.ts | 35 + dist/esm/models/ReadProductTypesResponse.js | 40 + dist/esm/models/ReadPublicCatalogRequest.d.ts | 27 + dist/esm/models/ReadPublicCatalogRequest.js | 36 + .../esm/models/ReadPublicCatalogResponse.d.ts | 35 + dist/esm/models/ReadPublicCatalogResponse.js | 40 + .../esm/models/ReadPublicIpRangesRequest.d.ts | 27 + dist/esm/models/ReadPublicIpRangesRequest.js | 36 + .../models/ReadPublicIpRangesResponse.d.ts | 34 + dist/esm/models/ReadPublicIpRangesResponse.js | 39 + dist/esm/models/ReadPublicIpsRequest.d.ts | 34 + dist/esm/models/ReadPublicIpsRequest.js | 39 + dist/esm/models/ReadPublicIpsResponse.d.ts | 35 + dist/esm/models/ReadPublicIpsResponse.js | 40 + dist/esm/models/ReadQuotasRequest.d.ts | 34 + dist/esm/models/ReadQuotasRequest.js | 39 + dist/esm/models/ReadQuotasResponse.d.ts | 35 + dist/esm/models/ReadQuotasResponse.js | 40 + dist/esm/models/ReadRegionsRequest.d.ts | 27 + dist/esm/models/ReadRegionsRequest.js | 36 + dist/esm/models/ReadRegionsResponse.d.ts | 35 + dist/esm/models/ReadRegionsResponse.js | 40 + dist/esm/models/ReadRouteTablesRequest.d.ts | 34 + dist/esm/models/ReadRouteTablesRequest.js | 39 + dist/esm/models/ReadRouteTablesResponse.d.ts | 35 + dist/esm/models/ReadRouteTablesResponse.js | 40 + .../models/ReadSecretAccessKeyRequest.d.ts | 33 + dist/esm/models/ReadSecretAccessKeyRequest.js | 38 + .../models/ReadSecretAccessKeyResponse.d.ts | 35 + .../esm/models/ReadSecretAccessKeyResponse.js | 40 + .../esm/models/ReadSecurityGroupsRequest.d.ts | 34 + dist/esm/models/ReadSecurityGroupsRequest.js | 39 + .../models/ReadSecurityGroupsResponse.d.ts | 35 + dist/esm/models/ReadSecurityGroupsResponse.js | 40 + .../models/ReadServerCertificatesRequest.d.ts | 34 + .../models/ReadServerCertificatesRequest.js | 39 + .../ReadServerCertificatesResponse.d.ts | 35 + .../models/ReadServerCertificatesResponse.js | 40 + .../ReadSnapshotExportTasksRequest.d.ts | 34 + .../models/ReadSnapshotExportTasksRequest.js | 39 + .../ReadSnapshotExportTasksResponse.d.ts | 35 + .../models/ReadSnapshotExportTasksResponse.js | 40 + dist/esm/models/ReadSnapshotsRequest.d.ts | 34 + dist/esm/models/ReadSnapshotsRequest.js | 39 + dist/esm/models/ReadSnapshotsResponse.d.ts | 35 + dist/esm/models/ReadSnapshotsResponse.js | 40 + dist/esm/models/ReadSubnetsRequest.d.ts | 34 + dist/esm/models/ReadSubnetsRequest.js | 39 + dist/esm/models/ReadSubnetsResponse.d.ts | 35 + dist/esm/models/ReadSubnetsResponse.js | 40 + dist/esm/models/ReadSubregionsRequest.d.ts | 34 + dist/esm/models/ReadSubregionsRequest.js | 39 + dist/esm/models/ReadSubregionsResponse.d.ts | 35 + dist/esm/models/ReadSubregionsResponse.js | 40 + dist/esm/models/ReadTagsRequest.d.ts | 34 + dist/esm/models/ReadTagsRequest.js | 39 + dist/esm/models/ReadTagsResponse.d.ts | 35 + dist/esm/models/ReadTagsResponse.js | 40 + .../models/ReadVirtualGatewaysRequest.d.ts | 34 + dist/esm/models/ReadVirtualGatewaysRequest.js | 39 + .../models/ReadVirtualGatewaysResponse.d.ts | 35 + .../esm/models/ReadVirtualGatewaysResponse.js | 40 + dist/esm/models/ReadVmTypesRequest.d.ts | 34 + dist/esm/models/ReadVmTypesRequest.js | 39 + dist/esm/models/ReadVmTypesResponse.d.ts | 35 + dist/esm/models/ReadVmTypesResponse.js | 40 + dist/esm/models/ReadVmsHealthRequest.d.ts | 39 + dist/esm/models/ReadVmsHealthRequest.js | 40 + dist/esm/models/ReadVmsHealthResponse.d.ts | 35 + dist/esm/models/ReadVmsHealthResponse.js | 40 + dist/esm/models/ReadVmsRequest.d.ts | 34 + dist/esm/models/ReadVmsRequest.js | 39 + dist/esm/models/ReadVmsResponse.d.ts | 35 + dist/esm/models/ReadVmsResponse.js | 40 + dist/esm/models/ReadVmsStateRequest.d.ts | 40 + dist/esm/models/ReadVmsStateRequest.js | 41 + dist/esm/models/ReadVmsStateResponse.d.ts | 35 + dist/esm/models/ReadVmsStateResponse.js | 40 + dist/esm/models/ReadVolumesRequest.d.ts | 34 + dist/esm/models/ReadVolumesRequest.js | 39 + dist/esm/models/ReadVolumesResponse.d.ts | 35 + dist/esm/models/ReadVolumesResponse.js | 40 + .../esm/models/ReadVpnConnectionsRequest.d.ts | 34 + dist/esm/models/ReadVpnConnectionsRequest.js | 39 + .../models/ReadVpnConnectionsResponse.d.ts | 35 + dist/esm/models/ReadVpnConnectionsResponse.js | 40 + dist/esm/models/RebootVmsRequest.d.ts | 33 + dist/esm/models/RebootVmsRequest.js | 38 + dist/esm/models/RebootVmsResponse.d.ts | 28 + dist/esm/models/RebootVmsResponse.js | 37 + dist/esm/models/Region.d.ts | 33 + dist/esm/models/Region.js | 38 + .../RegisterVmsInLoadBalancerRequest.d.ts | 40 + .../RegisterVmsInLoadBalancerRequest.js | 40 + .../RegisterVmsInLoadBalancerResponse.d.ts | 28 + .../RegisterVmsInLoadBalancerResponse.js | 37 + dist/esm/models/RejectNetPeeringRequest.d.ts | 33 + dist/esm/models/RejectNetPeeringRequest.js | 38 + dist/esm/models/RejectNetPeeringResponse.d.ts | 28 + dist/esm/models/RejectNetPeeringResponse.js | 37 + .../models/ResetAccountPasswordRequest.d.ts | 39 + .../esm/models/ResetAccountPasswordRequest.js | 40 + .../models/ResetAccountPasswordResponse.d.ts | 28 + .../models/ResetAccountPasswordResponse.js | 37 + dist/esm/models/ResourceLoadBalancerTag.d.ts | 27 + dist/esm/models/ResourceLoadBalancerTag.js | 36 + dist/esm/models/ResourceTag.d.ts | 33 + dist/esm/models/ResourceTag.js | 37 + dist/esm/models/Route.d.ts | 87 + dist/esm/models/Route.js | 56 + dist/esm/models/RouteLight.d.ts | 39 + dist/esm/models/RouteLight.js | 40 + .../RoutePropagatingVirtualGateway.d.ts | 27 + .../models/RoutePropagatingVirtualGateway.js | 36 + dist/esm/models/RouteTable.d.ts | 61 + dist/esm/models/RouteTable.js | 50 + dist/esm/models/SecurityGroup.d.ts | 71 + dist/esm/models/SecurityGroup.js | 52 + dist/esm/models/SecurityGroupLight.d.ts | 33 + dist/esm/models/SecurityGroupLight.js | 38 + dist/esm/models/SecurityGroupRule.d.ts | 58 + dist/esm/models/SecurityGroupRule.js | 47 + dist/esm/models/SecurityGroupsMember.d.ts | 39 + dist/esm/models/SecurityGroupsMember.js | 40 + .../models/SendResetPasswordEmailRequest.d.ts | 33 + .../models/SendResetPasswordEmailRequest.js | 38 + .../SendResetPasswordEmailResponse.d.ts | 28 + .../models/SendResetPasswordEmailResponse.js | 37 + dist/esm/models/ServerCertificate.d.ts | 51 + dist/esm/models/ServerCertificate.js | 44 + dist/esm/models/Service.d.ts | 39 + dist/esm/models/Service.js | 40 + dist/esm/models/Snapshot.d.ts | 89 + dist/esm/models/Snapshot.js | 58 + dist/esm/models/SnapshotExportTask.d.ts | 65 + dist/esm/models/SnapshotExportTask.js | 50 + dist/esm/models/SourceNet.d.ts | 39 + dist/esm/models/SourceNet.js | 40 + dist/esm/models/SourceSecurityGroup.d.ts | 34 + dist/esm/models/SourceSecurityGroup.js | 38 + dist/esm/models/StartVmsRequest.d.ts | 33 + dist/esm/models/StartVmsRequest.js | 38 + dist/esm/models/StartVmsResponse.d.ts | 35 + dist/esm/models/StartVmsResponse.js | 40 + dist/esm/models/StateComment.d.ts | 33 + dist/esm/models/StateComment.js | 38 + dist/esm/models/StopVmsRequest.d.ts | 39 + dist/esm/models/StopVmsRequest.js | 40 + dist/esm/models/StopVmsResponse.d.ts | 35 + dist/esm/models/StopVmsResponse.js | 40 + dist/esm/models/Subnet.d.ts | 70 + dist/esm/models/Subnet.js | 51 + dist/esm/models/Subregion.d.ts | 39 + dist/esm/models/Subregion.js | 40 + dist/esm/models/Tag.d.ts | 45 + dist/esm/models/Tag.js | 42 + dist/esm/models/UnlinkFlexibleGpuRequest.d.ts | 33 + dist/esm/models/UnlinkFlexibleGpuRequest.js | 38 + .../esm/models/UnlinkFlexibleGpuResponse.d.ts | 28 + dist/esm/models/UnlinkFlexibleGpuResponse.js | 37 + .../models/UnlinkInternetServiceRequest.d.ts | 39 + .../models/UnlinkInternetServiceRequest.js | 40 + .../models/UnlinkInternetServiceResponse.d.ts | 28 + .../models/UnlinkInternetServiceResponse.js | 37 + ...inkLoadBalancerBackendMachinesRequest.d.ts | 45 + ...nlinkLoadBalancerBackendMachinesRequest.js | 42 + ...nkLoadBalancerBackendMachinesResponse.d.ts | 28 + ...linkLoadBalancerBackendMachinesResponse.js | 37 + dist/esm/models/UnlinkNicRequest.d.ts | 33 + dist/esm/models/UnlinkNicRequest.js | 38 + dist/esm/models/UnlinkNicResponse.d.ts | 28 + dist/esm/models/UnlinkNicResponse.js | 37 + dist/esm/models/UnlinkPrivateIpsRequest.d.ts | 39 + dist/esm/models/UnlinkPrivateIpsRequest.js | 40 + dist/esm/models/UnlinkPrivateIpsResponse.d.ts | 28 + dist/esm/models/UnlinkPrivateIpsResponse.js | 37 + dist/esm/models/UnlinkPublicIpRequest.d.ts | 39 + dist/esm/models/UnlinkPublicIpRequest.js | 40 + dist/esm/models/UnlinkPublicIpResponse.d.ts | 28 + dist/esm/models/UnlinkPublicIpResponse.js | 37 + dist/esm/models/UnlinkRouteTableRequest.d.ts | 33 + dist/esm/models/UnlinkRouteTableRequest.js | 38 + dist/esm/models/UnlinkRouteTableResponse.d.ts | 28 + dist/esm/models/UnlinkRouteTableResponse.js | 37 + .../models/UnlinkVirtualGatewayRequest.d.ts | 39 + .../esm/models/UnlinkVirtualGatewayRequest.js | 40 + .../models/UnlinkVirtualGatewayResponse.d.ts | 28 + .../models/UnlinkVirtualGatewayResponse.js | 37 + dist/esm/models/UnlinkVolumeRequest.d.ts | 39 + dist/esm/models/UnlinkVolumeRequest.js | 40 + dist/esm/models/UnlinkVolumeResponse.d.ts | 28 + dist/esm/models/UnlinkVolumeResponse.js | 37 + dist/esm/models/UpdateAccessKeyRequest.d.ts | 45 + dist/esm/models/UpdateAccessKeyRequest.js | 42 + dist/esm/models/UpdateAccessKeyResponse.d.ts | 35 + dist/esm/models/UpdateAccessKeyResponse.js | 40 + dist/esm/models/UpdateAccountRequest.d.ts | 105 + dist/esm/models/UpdateAccountRequest.js | 62 + dist/esm/models/UpdateAccountResponse.d.ts | 35 + dist/esm/models/UpdateAccountResponse.js | 40 + .../models/UpdateApiAccessPolicyRequest.d.ts | 39 + .../models/UpdateApiAccessPolicyRequest.js | 40 + .../models/UpdateApiAccessPolicyResponse.d.ts | 35 + .../models/UpdateApiAccessPolicyResponse.js | 40 + .../models/UpdateApiAccessRuleRequest.d.ts | 57 + dist/esm/models/UpdateApiAccessRuleRequest.js | 46 + .../models/UpdateApiAccessRuleResponse.d.ts | 35 + .../esm/models/UpdateApiAccessRuleResponse.js | 40 + dist/esm/models/UpdateCaRequest.d.ts | 39 + dist/esm/models/UpdateCaRequest.js | 40 + dist/esm/models/UpdateCaResponse.d.ts | 35 + dist/esm/models/UpdateCaResponse.js | 40 + dist/esm/models/UpdateFlexibleGpuRequest.d.ts | 39 + dist/esm/models/UpdateFlexibleGpuRequest.js | 40 + .../esm/models/UpdateFlexibleGpuResponse.d.ts | 35 + dist/esm/models/UpdateFlexibleGpuResponse.js | 40 + dist/esm/models/UpdateImageRequest.d.ts | 40 + dist/esm/models/UpdateImageRequest.js | 41 + dist/esm/models/UpdateImageResponse.d.ts | 35 + dist/esm/models/UpdateImageResponse.js | 40 + .../esm/models/UpdateListenerRuleRequest.d.ts | 45 + dist/esm/models/UpdateListenerRuleRequest.js | 42 + .../models/UpdateListenerRuleResponse.d.ts | 35 + dist/esm/models/UpdateListenerRuleResponse.js | 40 + .../esm/models/UpdateLoadBalancerRequest.d.ts | 77 + dist/esm/models/UpdateLoadBalancerRequest.js | 54 + .../models/UpdateLoadBalancerResponse.d.ts | 35 + dist/esm/models/UpdateLoadBalancerResponse.js | 40 + .../models/UpdateNetAccessPointRequest.d.ts | 45 + .../esm/models/UpdateNetAccessPointRequest.js | 42 + .../models/UpdateNetAccessPointResponse.d.ts | 35 + .../models/UpdateNetAccessPointResponse.js | 40 + dist/esm/models/UpdateNetRequest.d.ts | 39 + dist/esm/models/UpdateNetRequest.js | 40 + dist/esm/models/UpdateNetResponse.d.ts | 35 + dist/esm/models/UpdateNetResponse.js | 40 + dist/esm/models/UpdateNicRequest.d.ts | 53 + dist/esm/models/UpdateNicRequest.js | 45 + dist/esm/models/UpdateNicResponse.d.ts | 35 + dist/esm/models/UpdateNicResponse.js | 40 + .../models/UpdateRoutePropagationRequest.d.ts | 45 + .../models/UpdateRoutePropagationRequest.js | 42 + .../UpdateRoutePropagationResponse.d.ts | 35 + .../models/UpdateRoutePropagationResponse.js | 40 + dist/esm/models/UpdateRouteRequest.d.ts | 69 + dist/esm/models/UpdateRouteRequest.js | 50 + dist/esm/models/UpdateRouteResponse.d.ts | 35 + dist/esm/models/UpdateRouteResponse.js | 40 + .../UpdateServerCertificateRequest.d.ts | 45 + .../models/UpdateServerCertificateRequest.js | 42 + .../UpdateServerCertificateResponse.d.ts | 35 + .../models/UpdateServerCertificateResponse.js | 40 + dist/esm/models/UpdateSnapshotRequest.d.ts | 40 + dist/esm/models/UpdateSnapshotRequest.js | 41 + dist/esm/models/UpdateSnapshotResponse.d.ts | 35 + dist/esm/models/UpdateSnapshotResponse.js | 40 + dist/esm/models/UpdateSubnetRequest.d.ts | 39 + dist/esm/models/UpdateSubnetRequest.js | 40 + dist/esm/models/UpdateSubnetResponse.d.ts | 35 + dist/esm/models/UpdateSubnetResponse.js | 40 + dist/esm/models/UpdateVmRequest.d.ts | 104 + dist/esm/models/UpdateVmRequest.js | 67 + dist/esm/models/UpdateVmResponse.d.ts | 35 + dist/esm/models/UpdateVmResponse.js | 40 + dist/esm/models/UpdateVolumeRequest.d.ts | 51 + dist/esm/models/UpdateVolumeRequest.js | 44 + dist/esm/models/UpdateVolumeResponse.d.ts | 35 + dist/esm/models/UpdateVolumeResponse.js | 40 + .../models/UpdateVpnConnectionRequest.d.ts | 52 + dist/esm/models/UpdateVpnConnectionRequest.js | 45 + .../models/UpdateVpnConnectionResponse.d.ts | 35 + .../esm/models/UpdateVpnConnectionResponse.js | 40 + dist/esm/models/VgwTelemetry.d.ts | 51 + dist/esm/models/VgwTelemetry.js | 44 + dist/esm/models/VirtualGateway.d.ts | 53 + dist/esm/models/VirtualGateway.js | 46 + dist/esm/models/Vm.d.ts | 224 ++ dist/esm/models/Vm.js | 105 + dist/esm/models/VmState.d.ts | 39 + dist/esm/models/VmState.js | 40 + dist/esm/models/VmStates.d.ts | 46 + dist/esm/models/VmStates.js | 43 + dist/esm/models/VmType.d.ts | 63 + dist/esm/models/VmType.js | 48 + dist/esm/models/Volume.d.ts | 85 + dist/esm/models/Volume.js | 56 + dist/esm/models/VpnConnection.d.ts | 91 + dist/esm/models/VpnConnection.js | 60 + dist/esm/models/VpnOptions.d.ts | 41 + dist/esm/models/VpnOptions.js | 42 + dist/esm/models/With.d.ts | 117 + dist/esm/models/With.js | 66 + dist/esm/models/index.d.ts | 496 ++++ dist/esm/models/index.js | 498 ++++ dist/esm/runtime.d.ts | 173 ++ dist/esm/runtime.js | 300 ++ examples/node-volumes/.gitignore | 1 + examples/node-volumes/.nvmrc | 1 + examples/node-volumes/README.md | 24 + examples/node-volumes/package-lock.json | 56 + examples/node-volumes/package.json | 20 + examples/node-volumes/src/index.ts | 78 + examples/node-volumes/src/types/index.d.ts | 8 + examples/node-volumes/tsconfig.json | 16 + examples/web-vms/.gitignore | 2 + examples/web-vms/.nvmrc | 1 + examples/web-vms/README.md | 19 + examples/web-vms/dist/index.html | 26 + examples/web-vms/package-lock.json | 2599 +++++++++++++++++ examples/web-vms/package.json | 20 + examples/web-vms/src/index.ts | 139 + examples/web-vms/tsconfig.json | 14 + examples/web-vms/webpack.config.js | 13 + gen.yml | 6 + package-lock.json | 49 + package.json | 28 + sdk_version | 1 + src/apis/AccessKeyApi.ts | 389 +++ src/apis/AccountApi.ts | 502 ++++ src/apis/ApiAccessPolicyApi.ts | 179 ++ src/apis/ApiAccessRuleApi.ts | 318 ++ src/apis/ApiLogApi.ts | 102 + src/apis/CaApi.ts | 318 ++ src/apis/CatalogApi.ts | 102 + src/apis/ClientGatewayApi.ts | 238 ++ src/apis/DhcpOptionApi.ts | 238 ++ src/apis/DirectLinkApi.ts | 238 ++ src/apis/DirectLinkInterfaceApi.ts | 238 ++ src/apis/FlexibleGpuApi.ts | 506 ++++ src/apis/ImageApi.ts | 445 +++ src/apis/InternetServiceApi.ts | 377 +++ src/apis/KeypairApi.ts | 241 ++ src/apis/ListenerApi.ts | 442 +++ src/apis/LoadBalancerApi.ts | 850 ++++++ src/apis/LoadBalancerPolicyApi.ts | 170 ++ src/apis/LocationApi.ts | 98 + src/apis/NatServiceApi.ts | 241 ++ src/apis/NetAccessPointApi.ts | 370 +++ src/apis/NetApi.ts | 309 ++ src/apis/NetPeeringApi.ts | 377 +++ src/apis/NicApi.ts | 581 ++++ src/apis/ProductTypeApi.ts | 98 + src/apis/PublicCatalogApi.ts | 98 + src/apis/PublicIpApi.ts | 441 +++ src/apis/QuotaApi.ts | 102 + src/apis/RegionApi.ts | 98 + src/apis/RouteApi.ts | 241 ++ src/apis/RouteTableApi.ts | 377 +++ src/apis/SecurityGroupApi.ts | 241 ++ src/apis/SecurityGroupRuleApi.ts | 173 ++ src/apis/ServerCertificateApi.ts | 306 ++ src/apis/SnapshotApi.ts | 445 +++ src/apis/SubnetApi.ts | 309 ++ src/apis/SubregionApi.ts | 102 + src/apis/TagApi.ts | 241 ++ src/apis/TaskApi.ts | 102 + src/apis/VirtualGatewayApi.ts | 442 +++ src/apis/VmApi.ts | 781 +++++ src/apis/VolumeApi.ts | 445 +++ src/apis/VpnConnectionApi.ts | 445 +++ src/apis/index.ts | 45 + src/index.ts | 5 + src/models/AcceptNetPeeringRequest.ts | 64 + src/models/AcceptNetPeeringResponse.ts | 77 + src/models/AccepterNet.ts | 72 + src/models/AccessKey.ts | 88 + src/models/AccessKeySecretKey.ts | 96 + src/models/AccessLog.ts | 80 + src/models/Account.ts | 168 ++ src/models/ApiAccessPolicy.ts | 64 + src/models/ApiAccessRule.ts | 88 + src/models/ApplicationStickyCookiePolicy.ts | 64 + src/models/BackendVmHealth.ts | 81 + src/models/BlockDeviceMappingCreated.ts | 71 + src/models/BlockDeviceMappingImage.ts | 79 + src/models/BlockDeviceMappingVmCreation.ts | 87 + src/models/BlockDeviceMappingVmUpdate.ts | 87 + src/models/BsuCreated.ts | 80 + src/models/BsuToCreate.ts | 91 + src/models/BsuToUpdateVm.ts | 64 + src/models/Ca.ts | 72 + src/models/Catalog.ts | 63 + src/models/CatalogEntry.ts | 112 + src/models/CheckAuthenticationRequest.ts | 72 + src/models/CheckAuthenticationResponse.ts | 63 + src/models/ClientGateway.ts | 103 + src/models/ConsumptionEntry.ts | 136 + src/models/CreateAccessKeyRequest.ts | 64 + src/models/CreateAccessKeyResponse.ts | 77 + src/models/CreateAccountRequest.ts | 168 ++ src/models/CreateAccountResponse.ts | 77 + src/models/CreateApiAccessRuleRequest.ts | 88 + src/models/CreateApiAccessRuleResponse.ts | 77 + src/models/CreateCaRequest.ts | 72 + src/models/CreateCaResponse.ts | 77 + src/models/CreateClientGatewayRequest.ts | 80 + src/models/CreateClientGatewayResponse.ts | 77 + src/models/CreateDhcpOptionsRequest.ts | 80 + src/models/CreateDhcpOptionsResponse.ts | 77 + .../CreateDirectLinkInterfaceRequest.ts | 79 + .../CreateDirectLinkInterfaceResponse.ts | 77 + src/models/CreateDirectLinkRequest.ts | 80 + src/models/CreateDirectLinkResponse.ts | 77 + src/models/CreateFlexibleGpuRequest.ts | 88 + src/models/CreateFlexibleGpuResponse.ts | 77 + src/models/CreateImageExportTaskRequest.ts | 79 + src/models/CreateImageExportTaskResponse.ts | 77 + src/models/CreateImageRequest.ts | 144 + src/models/CreateImageResponse.ts | 77 + src/models/CreateInternetServiceRequest.ts | 56 + src/models/CreateInternetServiceResponse.ts | 77 + src/models/CreateKeypairRequest.ts | 72 + src/models/CreateKeypairResponse.ts | 77 + src/models/CreateListenerRuleRequest.ts | 93 + src/models/CreateListenerRuleResponse.ts | 77 + .../CreateLoadBalancerListenersRequest.ts | 79 + .../CreateLoadBalancerListenersResponse.ts | 77 + src/models/CreateLoadBalancerPolicyRequest.ts | 96 + .../CreateLoadBalancerPolicyResponse.ts | 77 + src/models/CreateLoadBalancerRequest.ts | 133 + src/models/CreateLoadBalancerResponse.ts | 77 + src/models/CreateLoadBalancerTagsRequest.ts | 79 + src/models/CreateLoadBalancerTagsResponse.ts | 63 + src/models/CreateNatServiceRequest.ts | 73 + src/models/CreateNatServiceResponse.ts | 77 + src/models/CreateNetAccessPointRequest.ts | 80 + src/models/CreateNetAccessPointResponse.ts | 77 + src/models/CreateNetPeeringRequest.ts | 72 + src/models/CreateNetPeeringResponse.ts | 77 + src/models/CreateNetRequest.ts | 72 + src/models/CreateNetResponse.ts | 77 + src/models/CreateNicRequest.ts | 97 + src/models/CreateNicResponse.ts | 77 + src/models/CreatePublicIpRequest.ts | 56 + src/models/CreatePublicIpResponse.ts | 77 + src/models/CreateRouteRequest.ts | 112 + src/models/CreateRouteResponse.ts | 77 + src/models/CreateRouteTableRequest.ts | 64 + src/models/CreateRouteTableResponse.ts | 77 + src/models/CreateSecurityGroupRequest.ts | 82 + src/models/CreateSecurityGroupResponse.ts | 77 + src/models/CreateSecurityGroupRuleRequest.ts | 135 + src/models/CreateSecurityGroupRuleResponse.ts | 77 + src/models/CreateServerCertificateRequest.ts | 96 + src/models/CreateServerCertificateResponse.ts | 77 + src/models/CreateSnapshotExportTaskRequest.ts | 79 + .../CreateSnapshotExportTaskResponse.ts | 77 + src/models/CreateSnapshotRequest.ts | 104 + src/models/CreateSnapshotResponse.ts | 77 + src/models/CreateSubnetRequest.ts | 80 + src/models/CreateSubnetResponse.ts | 77 + src/models/CreateTagsRequest.ts | 79 + src/models/CreateTagsResponse.ts | 63 + src/models/CreateVirtualGatewayRequest.ts | 64 + src/models/CreateVirtualGatewayResponse.ts | 77 + src/models/CreateVmsRequest.ts | 240 ++ src/models/CreateVmsResponse.ts | 77 + src/models/CreateVolumeRequest.ts | 97 + src/models/CreateVolumeResponse.ts | 77 + src/models/CreateVpnConnectionRequest.ts | 88 + src/models/CreateVpnConnectionResponse.ts | 77 + src/models/CreateVpnConnectionRouteRequest.ts | 72 + .../CreateVpnConnectionRouteResponse.ts | 63 + src/models/DeleteAccessKeyRequest.ts | 64 + src/models/DeleteAccessKeyResponse.ts | 63 + src/models/DeleteApiAccessRuleRequest.ts | 64 + src/models/DeleteApiAccessRuleResponse.ts | 63 + src/models/DeleteCaRequest.ts | 64 + src/models/DeleteCaResponse.ts | 63 + src/models/DeleteClientGatewayRequest.ts | 64 + src/models/DeleteClientGatewayResponse.ts | 63 + src/models/DeleteDhcpOptionsRequest.ts | 64 + src/models/DeleteDhcpOptionsResponse.ts | 63 + .../DeleteDirectLinkInterfaceRequest.ts | 64 + .../DeleteDirectLinkInterfaceResponse.ts | 63 + src/models/DeleteDirectLinkRequest.ts | 64 + src/models/DeleteDirectLinkResponse.ts | 63 + src/models/DeleteExportTaskRequest.ts | 64 + src/models/DeleteExportTaskResponse.ts | 63 + src/models/DeleteFlexibleGpuRequest.ts | 64 + src/models/DeleteFlexibleGpuResponse.ts | 63 + src/models/DeleteImageRequest.ts | 64 + src/models/DeleteImageResponse.ts | 63 + src/models/DeleteInternetServiceRequest.ts | 64 + src/models/DeleteInternetServiceResponse.ts | 63 + src/models/DeleteKeypairRequest.ts | 64 + src/models/DeleteKeypairResponse.ts | 63 + src/models/DeleteListenerRuleRequest.ts | 64 + src/models/DeleteListenerRuleResponse.ts | 63 + .../DeleteLoadBalancerListenersRequest.ts | 72 + .../DeleteLoadBalancerListenersResponse.ts | 77 + src/models/DeleteLoadBalancerPolicyRequest.ts | 72 + .../DeleteLoadBalancerPolicyResponse.ts | 77 + src/models/DeleteLoadBalancerRequest.ts | 64 + src/models/DeleteLoadBalancerResponse.ts | 63 + src/models/DeleteLoadBalancerTagsRequest.ts | 79 + src/models/DeleteLoadBalancerTagsResponse.ts | 63 + src/models/DeleteNatServiceRequest.ts | 64 + src/models/DeleteNatServiceResponse.ts | 63 + src/models/DeleteNetAccessPointRequest.ts | 64 + src/models/DeleteNetAccessPointResponse.ts | 63 + src/models/DeleteNetPeeringRequest.ts | 64 + src/models/DeleteNetPeeringResponse.ts | 63 + src/models/DeleteNetRequest.ts | 64 + src/models/DeleteNetResponse.ts | 63 + src/models/DeleteNicRequest.ts | 64 + src/models/DeleteNicResponse.ts | 63 + src/models/DeletePublicIpRequest.ts | 72 + src/models/DeletePublicIpResponse.ts | 63 + src/models/DeleteRouteRequest.ts | 72 + src/models/DeleteRouteResponse.ts | 77 + src/models/DeleteRouteTableRequest.ts | 64 + src/models/DeleteRouteTableResponse.ts | 63 + src/models/DeleteSecurityGroupRequest.ts | 72 + src/models/DeleteSecurityGroupResponse.ts | 63 + src/models/DeleteSecurityGroupRuleRequest.ts | 135 + src/models/DeleteSecurityGroupRuleResponse.ts | 77 + src/models/DeleteServerCertificateRequest.ts | 64 + src/models/DeleteServerCertificateResponse.ts | 63 + src/models/DeleteSnapshotRequest.ts | 64 + src/models/DeleteSnapshotResponse.ts | 63 + src/models/DeleteSubnetRequest.ts | 64 + src/models/DeleteSubnetResponse.ts | 63 + src/models/DeleteTagsRequest.ts | 79 + src/models/DeleteTagsResponse.ts | 63 + src/models/DeleteVirtualGatewayRequest.ts | 64 + src/models/DeleteVirtualGatewayResponse.ts | 63 + src/models/DeleteVmsRequest.ts | 64 + src/models/DeleteVmsResponse.ts | 77 + src/models/DeleteVolumeRequest.ts | 64 + src/models/DeleteVolumeResponse.ts | 63 + src/models/DeleteVpnConnectionRequest.ts | 64 + src/models/DeleteVpnConnectionResponse.ts | 63 + src/models/DeleteVpnConnectionRouteRequest.ts | 72 + .../DeleteVpnConnectionRouteResponse.ts | 63 + .../DeregisterVmsInLoadBalancerRequest.ts | 72 + .../DeregisterVmsInLoadBalancerResponse.ts | 63 + src/models/DhcpOptionsSet.ts | 103 + src/models/DirectLink.ts | 109 + src/models/DirectLinkInterface.ts | 104 + src/models/DirectLinkInterfaces.ts | 152 + src/models/ErrorResponse.ts | 77 + src/models/Errors.ts | 72 + src/models/FiltersAccessKeys.ts | 64 + src/models/FiltersApiAccessRule.ts | 88 + src/models/FiltersApiLog.ts | 120 + src/models/FiltersCa.ts | 72 + src/models/FiltersClientGateway.ts | 112 + src/models/FiltersDhcpOptions.ts | 112 + src/models/FiltersDirectLink.ts | 56 + src/models/FiltersDirectLinkInterface.ts | 64 + src/models/FiltersExportTask.ts | 56 + src/models/FiltersFlexibleGpu.ts | 104 + src/models/FiltersImage.ts | 232 ++ src/models/FiltersInternetService.ts | 96 + src/models/FiltersKeypair.ts | 64 + src/models/FiltersListenerRule.ts | 56 + src/models/FiltersLoadBalancer.ts | 56 + src/models/FiltersNatService.ts | 104 + src/models/FiltersNet.ts | 112 + src/models/FiltersNetAccessPoint.ts | 104 + src/models/FiltersNetPeering.ts | 144 + src/models/FiltersNic.ts | 272 ++ src/models/FiltersProductType.ts | 56 + src/models/FiltersPublicIp.ts | 136 + src/models/FiltersQuota.ts | 80 + src/models/FiltersRouteTable.ts | 184 ++ src/models/FiltersSecurityGroup.ts | 224 ++ src/models/FiltersServerCertificate.ts | 56 + src/models/FiltersService.ts | 64 + src/models/FiltersSnapshot.ts | 152 + src/models/FiltersSubnet.ts | 120 + src/models/FiltersSubregion.ts | 56 + src/models/FiltersTag.ts | 80 + src/models/FiltersVirtualGateway.ts | 112 + src/models/FiltersVm.ts | 80 + src/models/FiltersVmType.ts | 96 + src/models/FiltersVmsState.ts | 104 + src/models/FiltersVolume.ts | 168 ++ src/models/FiltersVpnConnection.ts | 136 + src/models/FlexibleGpu.ts | 104 + src/models/FlexibleGpuCatalog.ts | 88 + src/models/HealthCheck.ts | 104 + src/models/Image.ts | 209 ++ src/models/ImageExportTask.ts | 117 + src/models/InternetService.ts | 87 + src/models/Keypair.ts | 64 + src/models/KeypairCreated.ts | 72 + src/models/LinkFlexibleGpuRequest.ts | 72 + src/models/LinkFlexibleGpuResponse.ts | 63 + src/models/LinkInternetServiceRequest.ts | 72 + src/models/LinkInternetServiceResponse.ts | 63 + .../LinkLoadBalancerBackendMachinesRequest.ts | 80 + ...LinkLoadBalancerBackendMachinesResponse.ts | 63 + src/models/LinkNic.ts | 96 + src/models/LinkNicLight.ts | 80 + src/models/LinkNicRequest.ts | 80 + src/models/LinkNicResponse.ts | 71 + src/models/LinkNicToUpdate.ts | 64 + src/models/LinkPrivateIpsRequest.ts | 88 + src/models/LinkPrivateIpsResponse.ts | 63 + src/models/LinkPublicIp.ts | 88 + src/models/LinkPublicIpLightForVm.ts | 72 + src/models/LinkPublicIpRequest.ts | 106 + src/models/LinkPublicIpResponse.ts | 71 + src/models/LinkRouteTable.ts | 80 + src/models/LinkRouteTableRequest.ts | 72 + src/models/LinkRouteTableResponse.ts | 71 + src/models/LinkVirtualGatewayRequest.ts | 72 + src/models/LinkVirtualGatewayResponse.ts | 77 + src/models/LinkVolumeRequest.ts | 80 + src/models/LinkVolumeResponse.ts | 63 + src/models/LinkedVolume.ts | 88 + src/models/Listener.ts | 96 + src/models/ListenerForCreation.ts | 88 + src/models/ListenerRule.ts | 112 + src/models/ListenerRuleForCreation.ts | 88 + src/models/LoadBalancer.ts | 229 ++ src/models/LoadBalancerLight.ts | 64 + src/models/LoadBalancerStickyCookiePolicy.ts | 65 + src/models/LoadBalancerTag.ts | 72 + src/models/Location.ts | 64 + src/models/Log.ts | 176 ++ src/models/MaintenanceEvent.ts | 80 + src/models/ModelResponseContext.ts | 56 + src/models/NatService.ts | 109 + src/models/Net.ts | 103 + src/models/NetAccessPoint.ts | 103 + src/models/NetPeering.ts | 113 + src/models/NetPeeringState.ts | 64 + src/models/NetToVirtualGatewayLink.ts | 64 + src/models/Nic.ts | 199 ++ src/models/NicForVmCreation.ts | 119 + src/models/NicLight.ts | 177 ++ src/models/OsuApiKey.ts | 64 + src/models/OsuExportImageExportTask.ts | 80 + src/models/OsuExportSnapshotExportTask.ts | 72 + src/models/OsuExportToCreate.ts | 95 + src/models/PermissionsOnResource.ts | 64 + src/models/PermissionsOnResourceCreation.ts | 71 + src/models/Phase1Options.ts | 120 + src/models/Phase2Options.ts | 88 + src/models/Placement.ts | 64 + src/models/PrivateIp.ts | 87 + src/models/PrivateIpLight.ts | 64 + src/models/PrivateIpLightForVm.ts | 87 + src/models/ProductType.ts | 72 + src/models/PublicIp.ts | 119 + src/models/PublicIpLight.ts | 64 + src/models/Quota.ts | 104 + src/models/QuotaTypes.ts | 71 + src/models/ReadAccessKeysRequest.ts | 71 + src/models/ReadAccessKeysResponse.ts | 77 + src/models/ReadAccountsRequest.ts | 56 + src/models/ReadAccountsResponse.ts | 77 + src/models/ReadAdminPasswordRequest.ts | 64 + src/models/ReadAdminPasswordResponse.ts | 79 + src/models/ReadApiAccessPolicyRequest.ts | 56 + src/models/ReadApiAccessPolicyResponse.ts | 77 + src/models/ReadApiAccessRulesRequest.ts | 71 + src/models/ReadApiAccessRulesResponse.ts | 77 + src/models/ReadApiLogsRequest.ts | 101 + src/models/ReadApiLogsResponse.ts | 85 + src/models/ReadCasRequest.ts | 71 + src/models/ReadCasResponse.ts | 77 + src/models/ReadCatalogRequest.ts | 56 + src/models/ReadCatalogResponse.ts | 77 + src/models/ReadClientGatewaysRequest.ts | 71 + src/models/ReadClientGatewaysResponse.ts | 77 + src/models/ReadConsoleOutputRequest.ts | 64 + src/models/ReadConsoleOutputResponse.ts | 79 + src/models/ReadConsumptionAccountRequest.ts | 72 + src/models/ReadConsumptionAccountResponse.ts | 77 + src/models/ReadDhcpOptionsRequest.ts | 71 + src/models/ReadDhcpOptionsResponse.ts | 77 + src/models/ReadDirectLinkInterfacesRequest.ts | 71 + .../ReadDirectLinkInterfacesResponse.ts | 77 + src/models/ReadDirectLinksRequest.ts | 71 + src/models/ReadDirectLinksResponse.ts | 77 + src/models/ReadFlexibleGpuCatalogRequest.ts | 56 + src/models/ReadFlexibleGpuCatalogResponse.ts | 77 + src/models/ReadFlexibleGpusRequest.ts | 71 + src/models/ReadFlexibleGpusResponse.ts | 77 + src/models/ReadImageExportTasksRequest.ts | 71 + src/models/ReadImageExportTasksResponse.ts | 77 + src/models/ReadImagesRequest.ts | 71 + src/models/ReadImagesResponse.ts | 77 + src/models/ReadInternetServicesRequest.ts | 71 + src/models/ReadInternetServicesResponse.ts | 77 + src/models/ReadKeypairsRequest.ts | 71 + src/models/ReadKeypairsResponse.ts | 77 + src/models/ReadListenerRulesRequest.ts | 71 + src/models/ReadListenerRulesResponse.ts | 77 + src/models/ReadLoadBalancerTagsRequest.ts | 64 + src/models/ReadLoadBalancerTagsResponse.ts | 77 + src/models/ReadLoadBalancersRequest.ts | 71 + src/models/ReadLoadBalancersResponse.ts | 77 + src/models/ReadLocationsRequest.ts | 56 + src/models/ReadLocationsResponse.ts | 77 + src/models/ReadNatServicesRequest.ts | 71 + src/models/ReadNatServicesResponse.ts | 77 + .../ReadNetAccessPointServicesRequest.ts | 71 + .../ReadNetAccessPointServicesResponse.ts | 77 + src/models/ReadNetAccessPointsRequest.ts | 71 + src/models/ReadNetAccessPointsResponse.ts | 77 + src/models/ReadNetPeeringsRequest.ts | 71 + src/models/ReadNetPeeringsResponse.ts | 77 + src/models/ReadNetsRequest.ts | 71 + src/models/ReadNetsResponse.ts | 77 + src/models/ReadNicsRequest.ts | 71 + src/models/ReadNicsResponse.ts | 77 + src/models/ReadProductTypesRequest.ts | 71 + src/models/ReadProductTypesResponse.ts | 77 + src/models/ReadPublicCatalogRequest.ts | 56 + src/models/ReadPublicCatalogResponse.ts | 77 + src/models/ReadPublicIpRangesRequest.ts | 56 + src/models/ReadPublicIpRangesResponse.ts | 71 + src/models/ReadPublicIpsRequest.ts | 71 + src/models/ReadPublicIpsResponse.ts | 77 + src/models/ReadQuotasRequest.ts | 71 + src/models/ReadQuotasResponse.ts | 77 + src/models/ReadRegionsRequest.ts | 56 + src/models/ReadRegionsResponse.ts | 77 + src/models/ReadRouteTablesRequest.ts | 71 + src/models/ReadRouteTablesResponse.ts | 77 + src/models/ReadSecretAccessKeyRequest.ts | 64 + src/models/ReadSecretAccessKeyResponse.ts | 77 + src/models/ReadSecurityGroupsRequest.ts | 71 + src/models/ReadSecurityGroupsResponse.ts | 77 + src/models/ReadServerCertificatesRequest.ts | 71 + src/models/ReadServerCertificatesResponse.ts | 77 + src/models/ReadSnapshotExportTasksRequest.ts | 71 + src/models/ReadSnapshotExportTasksResponse.ts | 77 + src/models/ReadSnapshotsRequest.ts | 71 + src/models/ReadSnapshotsResponse.ts | 77 + src/models/ReadSubnetsRequest.ts | 71 + src/models/ReadSubnetsResponse.ts | 77 + src/models/ReadSubregionsRequest.ts | 71 + src/models/ReadSubregionsResponse.ts | 77 + src/models/ReadTagsRequest.ts | 71 + src/models/ReadTagsResponse.ts | 77 + src/models/ReadVirtualGatewaysRequest.ts | 71 + src/models/ReadVirtualGatewaysResponse.ts | 77 + src/models/ReadVmTypesRequest.ts | 71 + src/models/ReadVmTypesResponse.ts | 77 + src/models/ReadVmsHealthRequest.ts | 72 + src/models/ReadVmsHealthResponse.ts | 77 + src/models/ReadVmsRequest.ts | 71 + src/models/ReadVmsResponse.ts | 77 + src/models/ReadVmsStateRequest.ts | 79 + src/models/ReadVmsStateResponse.ts | 77 + src/models/ReadVolumesRequest.ts | 71 + src/models/ReadVolumesResponse.ts | 77 + src/models/ReadVpnConnectionsRequest.ts | 71 + src/models/ReadVpnConnectionsResponse.ts | 77 + src/models/RebootVmsRequest.ts | 64 + src/models/RebootVmsResponse.ts | 63 + src/models/Region.ts | 64 + .../RegisterVmsInLoadBalancerRequest.ts | 73 + .../RegisterVmsInLoadBalancerResponse.ts | 63 + src/models/RejectNetPeeringRequest.ts | 64 + src/models/RejectNetPeeringResponse.ts | 63 + src/models/ResetAccountPasswordRequest.ts | 72 + src/models/ResetAccountPasswordResponse.ts | 63 + src/models/ResourceLoadBalancerTag.ts | 56 + src/models/ResourceTag.ts | 64 + src/models/Route.ts | 136 + src/models/RouteLight.ts | 72 + src/models/RoutePropagatingVirtualGateway.ts | 56 + src/models/RouteTable.ts | 121 + src/models/SecurityGroup.ts | 125 + src/models/SecurityGroupLight.ts | 64 + src/models/SecurityGroupRule.ts | 103 + src/models/SecurityGroupsMember.ts | 72 + src/models/SendResetPasswordEmailRequest.ts | 64 + src/models/SendResetPasswordEmailResponse.ts | 63 + src/models/ServerCertificate.ts | 88 + src/models/Service.ts | 72 + src/models/Snapshot.ts | 149 + src/models/SnapshotExportTask.ts | 117 + src/models/SourceNet.ts | 72 + src/models/SourceSecurityGroup.ts | 65 + src/models/StartVmsRequest.ts | 64 + src/models/StartVmsResponse.ts | 77 + src/models/StateComment.ts | 64 + src/models/StopVmsRequest.ts | 72 + src/models/StopVmsResponse.ts | 77 + src/models/Subnet.ts | 119 + src/models/Subregion.ts | 72 + src/models/Tag.ts | 80 + src/models/UnlinkFlexibleGpuRequest.ts | 64 + src/models/UnlinkFlexibleGpuResponse.ts | 63 + src/models/UnlinkInternetServiceRequest.ts | 72 + src/models/UnlinkInternetServiceResponse.ts | 63 + ...nlinkLoadBalancerBackendMachinesRequest.ts | 80 + ...linkLoadBalancerBackendMachinesResponse.ts | 63 + src/models/UnlinkNicRequest.ts | 64 + src/models/UnlinkNicResponse.ts | 63 + src/models/UnlinkPrivateIpsRequest.ts | 72 + src/models/UnlinkPrivateIpsResponse.ts | 63 + src/models/UnlinkPublicIpRequest.ts | 72 + src/models/UnlinkPublicIpResponse.ts | 63 + src/models/UnlinkRouteTableRequest.ts | 64 + src/models/UnlinkRouteTableResponse.ts | 63 + src/models/UnlinkVirtualGatewayRequest.ts | 72 + src/models/UnlinkVirtualGatewayResponse.ts | 63 + src/models/UnlinkVolumeRequest.ts | 72 + src/models/UnlinkVolumeResponse.ts | 63 + src/models/UpdateAccessKeyRequest.ts | 80 + src/models/UpdateAccessKeyResponse.ts | 77 + src/models/UpdateAccountRequest.ts | 160 + src/models/UpdateAccountResponse.ts | 77 + src/models/UpdateApiAccessPolicyRequest.ts | 72 + src/models/UpdateApiAccessPolicyResponse.ts | 77 + src/models/UpdateApiAccessRuleRequest.ts | 96 + src/models/UpdateApiAccessRuleResponse.ts | 77 + src/models/UpdateCaRequest.ts | 72 + src/models/UpdateCaResponse.ts | 77 + src/models/UpdateFlexibleGpuRequest.ts | 72 + src/models/UpdateFlexibleGpuResponse.ts | 77 + src/models/UpdateImageRequest.ts | 79 + src/models/UpdateImageResponse.ts | 77 + src/models/UpdateListenerRuleRequest.ts | 80 + src/models/UpdateListenerRuleResponse.ts | 77 + src/models/UpdateLoadBalancerRequest.ts | 133 + src/models/UpdateLoadBalancerResponse.ts | 77 + src/models/UpdateNetAccessPointRequest.ts | 80 + src/models/UpdateNetAccessPointResponse.ts | 77 + src/models/UpdateNetRequest.ts | 72 + src/models/UpdateNetResponse.ts | 77 + src/models/UpdateNicRequest.ts | 96 + src/models/UpdateNicResponse.ts | 77 + src/models/UpdateRoutePropagationRequest.ts | 80 + src/models/UpdateRoutePropagationResponse.ts | 77 + src/models/UpdateRouteRequest.ts | 112 + src/models/UpdateRouteResponse.ts | 77 + src/models/UpdateServerCertificateRequest.ts | 80 + src/models/UpdateServerCertificateResponse.ts | 77 + src/models/UpdateSnapshotRequest.ts | 79 + src/models/UpdateSnapshotResponse.ts | 77 + src/models/UpdateSubnetRequest.ts | 72 + src/models/UpdateSubnetResponse.ts | 77 + src/models/UpdateVmRequest.ts | 164 ++ src/models/UpdateVmResponse.ts | 77 + src/models/UpdateVolumeRequest.ts | 88 + src/models/UpdateVolumeResponse.ts | 77 + src/models/UpdateVpnConnectionRequest.ts | 95 + src/models/UpdateVpnConnectionResponse.ts | 77 + src/models/VgwTelemetry.ts | 88 + src/models/VirtualGateway.ts | 101 + src/models/Vm.ts | 343 +++ src/models/VmState.ts | 72 + src/models/VmStates.ts | 87 + src/models/VmType.ts | 104 + src/models/Volume.ts | 143 + src/models/VpnConnection.ts | 161 + src/models/VpnOptions.ts | 85 + src/models/With.ts | 176 ++ src/models/index.ts | 498 ++++ src/runtime.ts | 400 +++ tsconfig-cjs.json | 7 + tsconfig-esm.json | 19 + 2759 files changed, 176098 insertions(+) create mode 100644 .github/dependabot.yml create mode 100755 .github/scripts/check-creds-settings.sh create mode 100755 .github/scripts/osc-api-check.sh create mode 100755 .github/scripts/release-build.sh create mode 100755 .github/scripts/release-check-duplicate.sh create mode 100755 .github/scripts/release-pr.sh create mode 100755 .github/scripts/release-push.sh create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/cred-scan.yml create mode 100644 .github/workflows/pull-request.yml create mode 100644 .gitignore create mode 100644 .npmignore create mode 100644 .nvmrc create mode 100644 .reuse/dep5 create mode 100644 CONTRIBUTING.md create mode 100644 LICENSES/BSD-3-Clause.txt create mode 100644 LICENSES/CC-BY-4.0.txt create mode 100644 Makefile create mode 100644 api_version create mode 100644 changelog.md create mode 100644 dist/cjs/apis/AccessKeyApi.d.ts create mode 100644 dist/cjs/apis/AccessKeyApi.js create mode 100644 dist/cjs/apis/AccountApi.d.ts create mode 100644 dist/cjs/apis/AccountApi.js create mode 100644 dist/cjs/apis/ApiAccessPolicyApi.d.ts create mode 100644 dist/cjs/apis/ApiAccessPolicyApi.js create mode 100644 dist/cjs/apis/ApiAccessRuleApi.d.ts create mode 100644 dist/cjs/apis/ApiAccessRuleApi.js create mode 100644 dist/cjs/apis/ApiLogApi.d.ts create mode 100644 dist/cjs/apis/ApiLogApi.js create mode 100644 dist/cjs/apis/CaApi.d.ts create mode 100644 dist/cjs/apis/CaApi.js create mode 100644 dist/cjs/apis/CatalogApi.d.ts create mode 100644 dist/cjs/apis/CatalogApi.js create mode 100644 dist/cjs/apis/ClientGatewayApi.d.ts create mode 100644 dist/cjs/apis/ClientGatewayApi.js create mode 100644 dist/cjs/apis/DhcpOptionApi.d.ts create mode 100644 dist/cjs/apis/DhcpOptionApi.js create mode 100644 dist/cjs/apis/DirectLinkApi.d.ts create mode 100644 dist/cjs/apis/DirectLinkApi.js create mode 100644 dist/cjs/apis/DirectLinkInterfaceApi.d.ts create mode 100644 dist/cjs/apis/DirectLinkInterfaceApi.js create mode 100644 dist/cjs/apis/FlexibleGpuApi.d.ts create mode 100644 dist/cjs/apis/FlexibleGpuApi.js create mode 100644 dist/cjs/apis/ImageApi.d.ts create mode 100644 dist/cjs/apis/ImageApi.js create mode 100644 dist/cjs/apis/InternetServiceApi.d.ts create mode 100644 dist/cjs/apis/InternetServiceApi.js create mode 100644 dist/cjs/apis/KeypairApi.d.ts create mode 100644 dist/cjs/apis/KeypairApi.js create mode 100644 dist/cjs/apis/ListenerApi.d.ts create mode 100644 dist/cjs/apis/ListenerApi.js create mode 100644 dist/cjs/apis/LoadBalancerApi.d.ts create mode 100644 dist/cjs/apis/LoadBalancerApi.js create mode 100644 dist/cjs/apis/LoadBalancerPolicyApi.d.ts create mode 100644 dist/cjs/apis/LoadBalancerPolicyApi.js create mode 100644 dist/cjs/apis/LocationApi.d.ts create mode 100644 dist/cjs/apis/LocationApi.js create mode 100644 dist/cjs/apis/NatServiceApi.d.ts create mode 100644 dist/cjs/apis/NatServiceApi.js create mode 100644 dist/cjs/apis/NetAccessPointApi.d.ts create mode 100644 dist/cjs/apis/NetAccessPointApi.js create mode 100644 dist/cjs/apis/NetApi.d.ts create mode 100644 dist/cjs/apis/NetApi.js create mode 100644 dist/cjs/apis/NetPeeringApi.d.ts create mode 100644 dist/cjs/apis/NetPeeringApi.js create mode 100644 dist/cjs/apis/NicApi.d.ts create mode 100644 dist/cjs/apis/NicApi.js create mode 100644 dist/cjs/apis/ProductTypeApi.d.ts create mode 100644 dist/cjs/apis/ProductTypeApi.js create mode 100644 dist/cjs/apis/PublicCatalogApi.d.ts create mode 100644 dist/cjs/apis/PublicCatalogApi.js create mode 100644 dist/cjs/apis/PublicIpApi.d.ts create mode 100644 dist/cjs/apis/PublicIpApi.js create mode 100644 dist/cjs/apis/QuotaApi.d.ts create mode 100644 dist/cjs/apis/QuotaApi.js create mode 100644 dist/cjs/apis/RegionApi.d.ts create mode 100644 dist/cjs/apis/RegionApi.js create mode 100644 dist/cjs/apis/RouteApi.d.ts create mode 100644 dist/cjs/apis/RouteApi.js create mode 100644 dist/cjs/apis/RouteTableApi.d.ts create mode 100644 dist/cjs/apis/RouteTableApi.js create mode 100644 dist/cjs/apis/SecurityGroupApi.d.ts create mode 100644 dist/cjs/apis/SecurityGroupApi.js create mode 100644 dist/cjs/apis/SecurityGroupRuleApi.d.ts create mode 100644 dist/cjs/apis/SecurityGroupRuleApi.js create mode 100644 dist/cjs/apis/ServerCertificateApi.d.ts create mode 100644 dist/cjs/apis/ServerCertificateApi.js create mode 100644 dist/cjs/apis/SnapshotApi.d.ts create mode 100644 dist/cjs/apis/SnapshotApi.js create mode 100644 dist/cjs/apis/SubnetApi.d.ts create mode 100644 dist/cjs/apis/SubnetApi.js create mode 100644 dist/cjs/apis/SubregionApi.d.ts create mode 100644 dist/cjs/apis/SubregionApi.js create mode 100644 dist/cjs/apis/TagApi.d.ts create mode 100644 dist/cjs/apis/TagApi.js create mode 100644 dist/cjs/apis/TaskApi.d.ts create mode 100644 dist/cjs/apis/TaskApi.js create mode 100644 dist/cjs/apis/VirtualGatewayApi.d.ts create mode 100644 dist/cjs/apis/VirtualGatewayApi.js create mode 100644 dist/cjs/apis/VmApi.d.ts create mode 100644 dist/cjs/apis/VmApi.js create mode 100644 dist/cjs/apis/VolumeApi.d.ts create mode 100644 dist/cjs/apis/VolumeApi.js create mode 100644 dist/cjs/apis/VpnConnectionApi.d.ts create mode 100644 dist/cjs/apis/VpnConnectionApi.js create mode 100644 dist/cjs/apis/index.d.ts create mode 100644 dist/cjs/apis/index.js create mode 100644 dist/cjs/index.d.ts create mode 100644 dist/cjs/index.js create mode 100644 dist/cjs/models/AcceptNetPeeringRequest.d.ts create mode 100644 dist/cjs/models/AcceptNetPeeringRequest.js create mode 100644 dist/cjs/models/AcceptNetPeeringResponse.d.ts create mode 100644 dist/cjs/models/AcceptNetPeeringResponse.js create mode 100644 dist/cjs/models/AccepterNet.d.ts create mode 100644 dist/cjs/models/AccepterNet.js create mode 100644 dist/cjs/models/AccessKey.d.ts create mode 100644 dist/cjs/models/AccessKey.js create mode 100644 dist/cjs/models/AccessKeySecretKey.d.ts create mode 100644 dist/cjs/models/AccessKeySecretKey.js create mode 100644 dist/cjs/models/AccessLog.d.ts create mode 100644 dist/cjs/models/AccessLog.js create mode 100644 dist/cjs/models/Account.d.ts create mode 100644 dist/cjs/models/Account.js create mode 100644 dist/cjs/models/ApiAccessPolicy.d.ts create mode 100644 dist/cjs/models/ApiAccessPolicy.js create mode 100644 dist/cjs/models/ApiAccessRule.d.ts create mode 100644 dist/cjs/models/ApiAccessRule.js create mode 100644 dist/cjs/models/ApplicationStickyCookiePolicy.d.ts create mode 100644 dist/cjs/models/ApplicationStickyCookiePolicy.js create mode 100644 dist/cjs/models/BackendVmHealth.d.ts create mode 100644 dist/cjs/models/BackendVmHealth.js create mode 100644 dist/cjs/models/BlockDeviceMappingCreated.d.ts create mode 100644 dist/cjs/models/BlockDeviceMappingCreated.js create mode 100644 dist/cjs/models/BlockDeviceMappingImage.d.ts create mode 100644 dist/cjs/models/BlockDeviceMappingImage.js create mode 100644 dist/cjs/models/BlockDeviceMappingVmCreation.d.ts create mode 100644 dist/cjs/models/BlockDeviceMappingVmCreation.js create mode 100644 dist/cjs/models/BlockDeviceMappingVmUpdate.d.ts create mode 100644 dist/cjs/models/BlockDeviceMappingVmUpdate.js create mode 100644 dist/cjs/models/BsuCreated.d.ts create mode 100644 dist/cjs/models/BsuCreated.js create mode 100644 dist/cjs/models/BsuToCreate.d.ts create mode 100644 dist/cjs/models/BsuToCreate.js create mode 100644 dist/cjs/models/BsuToUpdateVm.d.ts create mode 100644 dist/cjs/models/BsuToUpdateVm.js create mode 100644 dist/cjs/models/Ca.d.ts create mode 100644 dist/cjs/models/Ca.js create mode 100644 dist/cjs/models/Catalog.d.ts create mode 100644 dist/cjs/models/Catalog.js create mode 100644 dist/cjs/models/CatalogEntry.d.ts create mode 100644 dist/cjs/models/CatalogEntry.js create mode 100644 dist/cjs/models/CheckAuthenticationRequest.d.ts create mode 100644 dist/cjs/models/CheckAuthenticationRequest.js create mode 100644 dist/cjs/models/CheckAuthenticationResponse.d.ts create mode 100644 dist/cjs/models/CheckAuthenticationResponse.js create mode 100644 dist/cjs/models/ClientGateway.d.ts create mode 100644 dist/cjs/models/ClientGateway.js create mode 100644 dist/cjs/models/ConsumptionEntry.d.ts create mode 100644 dist/cjs/models/ConsumptionEntry.js create mode 100644 dist/cjs/models/CreateAccessKeyRequest.d.ts create mode 100644 dist/cjs/models/CreateAccessKeyRequest.js create mode 100644 dist/cjs/models/CreateAccessKeyResponse.d.ts create mode 100644 dist/cjs/models/CreateAccessKeyResponse.js create mode 100644 dist/cjs/models/CreateAccountRequest.d.ts create mode 100644 dist/cjs/models/CreateAccountRequest.js create mode 100644 dist/cjs/models/CreateAccountResponse.d.ts create mode 100644 dist/cjs/models/CreateAccountResponse.js create mode 100644 dist/cjs/models/CreateApiAccessRuleRequest.d.ts create mode 100644 dist/cjs/models/CreateApiAccessRuleRequest.js create mode 100644 dist/cjs/models/CreateApiAccessRuleResponse.d.ts create mode 100644 dist/cjs/models/CreateApiAccessRuleResponse.js create mode 100644 dist/cjs/models/CreateCaRequest.d.ts create mode 100644 dist/cjs/models/CreateCaRequest.js create mode 100644 dist/cjs/models/CreateCaResponse.d.ts create mode 100644 dist/cjs/models/CreateCaResponse.js create mode 100644 dist/cjs/models/CreateClientGatewayRequest.d.ts create mode 100644 dist/cjs/models/CreateClientGatewayRequest.js create mode 100644 dist/cjs/models/CreateClientGatewayResponse.d.ts create mode 100644 dist/cjs/models/CreateClientGatewayResponse.js create mode 100644 dist/cjs/models/CreateDhcpOptionsRequest.d.ts create mode 100644 dist/cjs/models/CreateDhcpOptionsRequest.js create mode 100644 dist/cjs/models/CreateDhcpOptionsResponse.d.ts create mode 100644 dist/cjs/models/CreateDhcpOptionsResponse.js create mode 100644 dist/cjs/models/CreateDirectLinkInterfaceRequest.d.ts create mode 100644 dist/cjs/models/CreateDirectLinkInterfaceRequest.js create mode 100644 dist/cjs/models/CreateDirectLinkInterfaceResponse.d.ts create mode 100644 dist/cjs/models/CreateDirectLinkInterfaceResponse.js create mode 100644 dist/cjs/models/CreateDirectLinkRequest.d.ts create mode 100644 dist/cjs/models/CreateDirectLinkRequest.js create mode 100644 dist/cjs/models/CreateDirectLinkResponse.d.ts create mode 100644 dist/cjs/models/CreateDirectLinkResponse.js create mode 100644 dist/cjs/models/CreateFlexibleGpuRequest.d.ts create mode 100644 dist/cjs/models/CreateFlexibleGpuRequest.js create mode 100644 dist/cjs/models/CreateFlexibleGpuResponse.d.ts create mode 100644 dist/cjs/models/CreateFlexibleGpuResponse.js create mode 100644 dist/cjs/models/CreateImageExportTaskRequest.d.ts create mode 100644 dist/cjs/models/CreateImageExportTaskRequest.js create mode 100644 dist/cjs/models/CreateImageExportTaskResponse.d.ts create mode 100644 dist/cjs/models/CreateImageExportTaskResponse.js create mode 100644 dist/cjs/models/CreateImageRequest.d.ts create mode 100644 dist/cjs/models/CreateImageRequest.js create mode 100644 dist/cjs/models/CreateImageResponse.d.ts create mode 100644 dist/cjs/models/CreateImageResponse.js create mode 100644 dist/cjs/models/CreateInternetServiceRequest.d.ts create mode 100644 dist/cjs/models/CreateInternetServiceRequest.js create mode 100644 dist/cjs/models/CreateInternetServiceResponse.d.ts create mode 100644 dist/cjs/models/CreateInternetServiceResponse.js create mode 100644 dist/cjs/models/CreateKeypairRequest.d.ts create mode 100644 dist/cjs/models/CreateKeypairRequest.js create mode 100644 dist/cjs/models/CreateKeypairResponse.d.ts create mode 100644 dist/cjs/models/CreateKeypairResponse.js create mode 100644 dist/cjs/models/CreateListenerRuleRequest.d.ts create mode 100644 dist/cjs/models/CreateListenerRuleRequest.js create mode 100644 dist/cjs/models/CreateListenerRuleResponse.d.ts create mode 100644 dist/cjs/models/CreateListenerRuleResponse.js create mode 100644 dist/cjs/models/CreateLoadBalancerListenersRequest.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerListenersRequest.js create mode 100644 dist/cjs/models/CreateLoadBalancerListenersResponse.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerListenersResponse.js create mode 100644 dist/cjs/models/CreateLoadBalancerPolicyRequest.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerPolicyRequest.js create mode 100644 dist/cjs/models/CreateLoadBalancerPolicyResponse.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerPolicyResponse.js create mode 100644 dist/cjs/models/CreateLoadBalancerRequest.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerRequest.js create mode 100644 dist/cjs/models/CreateLoadBalancerResponse.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerResponse.js create mode 100644 dist/cjs/models/CreateLoadBalancerTagsRequest.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerTagsRequest.js create mode 100644 dist/cjs/models/CreateLoadBalancerTagsResponse.d.ts create mode 100644 dist/cjs/models/CreateLoadBalancerTagsResponse.js create mode 100644 dist/cjs/models/CreateNatServiceRequest.d.ts create mode 100644 dist/cjs/models/CreateNatServiceRequest.js create mode 100644 dist/cjs/models/CreateNatServiceResponse.d.ts create mode 100644 dist/cjs/models/CreateNatServiceResponse.js create mode 100644 dist/cjs/models/CreateNetAccessPointRequest.d.ts create mode 100644 dist/cjs/models/CreateNetAccessPointRequest.js create mode 100644 dist/cjs/models/CreateNetAccessPointResponse.d.ts create mode 100644 dist/cjs/models/CreateNetAccessPointResponse.js create mode 100644 dist/cjs/models/CreateNetPeeringRequest.d.ts create mode 100644 dist/cjs/models/CreateNetPeeringRequest.js create mode 100644 dist/cjs/models/CreateNetPeeringResponse.d.ts create mode 100644 dist/cjs/models/CreateNetPeeringResponse.js create mode 100644 dist/cjs/models/CreateNetRequest.d.ts create mode 100644 dist/cjs/models/CreateNetRequest.js create mode 100644 dist/cjs/models/CreateNetResponse.d.ts create mode 100644 dist/cjs/models/CreateNetResponse.js create mode 100644 dist/cjs/models/CreateNicRequest.d.ts create mode 100644 dist/cjs/models/CreateNicRequest.js create mode 100644 dist/cjs/models/CreateNicResponse.d.ts create mode 100644 dist/cjs/models/CreateNicResponse.js create mode 100644 dist/cjs/models/CreatePublicIpRequest.d.ts create mode 100644 dist/cjs/models/CreatePublicIpRequest.js create mode 100644 dist/cjs/models/CreatePublicIpResponse.d.ts create mode 100644 dist/cjs/models/CreatePublicIpResponse.js create mode 100644 dist/cjs/models/CreateRouteRequest.d.ts create mode 100644 dist/cjs/models/CreateRouteRequest.js create mode 100644 dist/cjs/models/CreateRouteResponse.d.ts create mode 100644 dist/cjs/models/CreateRouteResponse.js create mode 100644 dist/cjs/models/CreateRouteTableRequest.d.ts create mode 100644 dist/cjs/models/CreateRouteTableRequest.js create mode 100644 dist/cjs/models/CreateRouteTableResponse.d.ts create mode 100644 dist/cjs/models/CreateRouteTableResponse.js create mode 100644 dist/cjs/models/CreateSecurityGroupRequest.d.ts create mode 100644 dist/cjs/models/CreateSecurityGroupRequest.js create mode 100644 dist/cjs/models/CreateSecurityGroupResponse.d.ts create mode 100644 dist/cjs/models/CreateSecurityGroupResponse.js create mode 100644 dist/cjs/models/CreateSecurityGroupRuleRequest.d.ts create mode 100644 dist/cjs/models/CreateSecurityGroupRuleRequest.js create mode 100644 dist/cjs/models/CreateSecurityGroupRuleResponse.d.ts create mode 100644 dist/cjs/models/CreateSecurityGroupRuleResponse.js create mode 100644 dist/cjs/models/CreateServerCertificateRequest.d.ts create mode 100644 dist/cjs/models/CreateServerCertificateRequest.js create mode 100644 dist/cjs/models/CreateServerCertificateResponse.d.ts create mode 100644 dist/cjs/models/CreateServerCertificateResponse.js create mode 100644 dist/cjs/models/CreateSnapshotExportTaskRequest.d.ts create mode 100644 dist/cjs/models/CreateSnapshotExportTaskRequest.js create mode 100644 dist/cjs/models/CreateSnapshotExportTaskResponse.d.ts create mode 100644 dist/cjs/models/CreateSnapshotExportTaskResponse.js create mode 100644 dist/cjs/models/CreateSnapshotRequest.d.ts create mode 100644 dist/cjs/models/CreateSnapshotRequest.js create mode 100644 dist/cjs/models/CreateSnapshotResponse.d.ts create mode 100644 dist/cjs/models/CreateSnapshotResponse.js create mode 100644 dist/cjs/models/CreateSubnetRequest.d.ts create mode 100644 dist/cjs/models/CreateSubnetRequest.js create mode 100644 dist/cjs/models/CreateSubnetResponse.d.ts create mode 100644 dist/cjs/models/CreateSubnetResponse.js create mode 100644 dist/cjs/models/CreateTagsRequest.d.ts create mode 100644 dist/cjs/models/CreateTagsRequest.js create mode 100644 dist/cjs/models/CreateTagsResponse.d.ts create mode 100644 dist/cjs/models/CreateTagsResponse.js create mode 100644 dist/cjs/models/CreateVirtualGatewayRequest.d.ts create mode 100644 dist/cjs/models/CreateVirtualGatewayRequest.js create mode 100644 dist/cjs/models/CreateVirtualGatewayResponse.d.ts create mode 100644 dist/cjs/models/CreateVirtualGatewayResponse.js create mode 100644 dist/cjs/models/CreateVmsRequest.d.ts create mode 100644 dist/cjs/models/CreateVmsRequest.js create mode 100644 dist/cjs/models/CreateVmsResponse.d.ts create mode 100644 dist/cjs/models/CreateVmsResponse.js create mode 100644 dist/cjs/models/CreateVolumeRequest.d.ts create mode 100644 dist/cjs/models/CreateVolumeRequest.js create mode 100644 dist/cjs/models/CreateVolumeResponse.d.ts create mode 100644 dist/cjs/models/CreateVolumeResponse.js create mode 100644 dist/cjs/models/CreateVpnConnectionRequest.d.ts create mode 100644 dist/cjs/models/CreateVpnConnectionRequest.js create mode 100644 dist/cjs/models/CreateVpnConnectionResponse.d.ts create mode 100644 dist/cjs/models/CreateVpnConnectionResponse.js create mode 100644 dist/cjs/models/CreateVpnConnectionRouteRequest.d.ts create mode 100644 dist/cjs/models/CreateVpnConnectionRouteRequest.js create mode 100644 dist/cjs/models/CreateVpnConnectionRouteResponse.d.ts create mode 100644 dist/cjs/models/CreateVpnConnectionRouteResponse.js create mode 100644 dist/cjs/models/DeleteAccessKeyRequest.d.ts create mode 100644 dist/cjs/models/DeleteAccessKeyRequest.js create mode 100644 dist/cjs/models/DeleteAccessKeyResponse.d.ts create mode 100644 dist/cjs/models/DeleteAccessKeyResponse.js create mode 100644 dist/cjs/models/DeleteApiAccessRuleRequest.d.ts create mode 100644 dist/cjs/models/DeleteApiAccessRuleRequest.js create mode 100644 dist/cjs/models/DeleteApiAccessRuleResponse.d.ts create mode 100644 dist/cjs/models/DeleteApiAccessRuleResponse.js create mode 100644 dist/cjs/models/DeleteCaRequest.d.ts create mode 100644 dist/cjs/models/DeleteCaRequest.js create mode 100644 dist/cjs/models/DeleteCaResponse.d.ts create mode 100644 dist/cjs/models/DeleteCaResponse.js create mode 100644 dist/cjs/models/DeleteClientGatewayRequest.d.ts create mode 100644 dist/cjs/models/DeleteClientGatewayRequest.js create mode 100644 dist/cjs/models/DeleteClientGatewayResponse.d.ts create mode 100644 dist/cjs/models/DeleteClientGatewayResponse.js create mode 100644 dist/cjs/models/DeleteDhcpOptionsRequest.d.ts create mode 100644 dist/cjs/models/DeleteDhcpOptionsRequest.js create mode 100644 dist/cjs/models/DeleteDhcpOptionsResponse.d.ts create mode 100644 dist/cjs/models/DeleteDhcpOptionsResponse.js create mode 100644 dist/cjs/models/DeleteDirectLinkInterfaceRequest.d.ts create mode 100644 dist/cjs/models/DeleteDirectLinkInterfaceRequest.js create mode 100644 dist/cjs/models/DeleteDirectLinkInterfaceResponse.d.ts create mode 100644 dist/cjs/models/DeleteDirectLinkInterfaceResponse.js create mode 100644 dist/cjs/models/DeleteDirectLinkRequest.d.ts create mode 100644 dist/cjs/models/DeleteDirectLinkRequest.js create mode 100644 dist/cjs/models/DeleteDirectLinkResponse.d.ts create mode 100644 dist/cjs/models/DeleteDirectLinkResponse.js create mode 100644 dist/cjs/models/DeleteExportTaskRequest.d.ts create mode 100644 dist/cjs/models/DeleteExportTaskRequest.js create mode 100644 dist/cjs/models/DeleteExportTaskResponse.d.ts create mode 100644 dist/cjs/models/DeleteExportTaskResponse.js create mode 100644 dist/cjs/models/DeleteFlexibleGpuRequest.d.ts create mode 100644 dist/cjs/models/DeleteFlexibleGpuRequest.js create mode 100644 dist/cjs/models/DeleteFlexibleGpuResponse.d.ts create mode 100644 dist/cjs/models/DeleteFlexibleGpuResponse.js create mode 100644 dist/cjs/models/DeleteImageRequest.d.ts create mode 100644 dist/cjs/models/DeleteImageRequest.js create mode 100644 dist/cjs/models/DeleteImageResponse.d.ts create mode 100644 dist/cjs/models/DeleteImageResponse.js create mode 100644 dist/cjs/models/DeleteInternetServiceRequest.d.ts create mode 100644 dist/cjs/models/DeleteInternetServiceRequest.js create mode 100644 dist/cjs/models/DeleteInternetServiceResponse.d.ts create mode 100644 dist/cjs/models/DeleteInternetServiceResponse.js create mode 100644 dist/cjs/models/DeleteKeypairRequest.d.ts create mode 100644 dist/cjs/models/DeleteKeypairRequest.js create mode 100644 dist/cjs/models/DeleteKeypairResponse.d.ts create mode 100644 dist/cjs/models/DeleteKeypairResponse.js create mode 100644 dist/cjs/models/DeleteListenerRuleRequest.d.ts create mode 100644 dist/cjs/models/DeleteListenerRuleRequest.js create mode 100644 dist/cjs/models/DeleteListenerRuleResponse.d.ts create mode 100644 dist/cjs/models/DeleteListenerRuleResponse.js create mode 100644 dist/cjs/models/DeleteLoadBalancerListenersRequest.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerListenersRequest.js create mode 100644 dist/cjs/models/DeleteLoadBalancerListenersResponse.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerListenersResponse.js create mode 100644 dist/cjs/models/DeleteLoadBalancerPolicyRequest.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerPolicyRequest.js create mode 100644 dist/cjs/models/DeleteLoadBalancerPolicyResponse.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerPolicyResponse.js create mode 100644 dist/cjs/models/DeleteLoadBalancerRequest.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerRequest.js create mode 100644 dist/cjs/models/DeleteLoadBalancerResponse.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerResponse.js create mode 100644 dist/cjs/models/DeleteLoadBalancerTagsRequest.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerTagsRequest.js create mode 100644 dist/cjs/models/DeleteLoadBalancerTagsResponse.d.ts create mode 100644 dist/cjs/models/DeleteLoadBalancerTagsResponse.js create mode 100644 dist/cjs/models/DeleteNatServiceRequest.d.ts create mode 100644 dist/cjs/models/DeleteNatServiceRequest.js create mode 100644 dist/cjs/models/DeleteNatServiceResponse.d.ts create mode 100644 dist/cjs/models/DeleteNatServiceResponse.js create mode 100644 dist/cjs/models/DeleteNetAccessPointRequest.d.ts create mode 100644 dist/cjs/models/DeleteNetAccessPointRequest.js create mode 100644 dist/cjs/models/DeleteNetAccessPointResponse.d.ts create mode 100644 dist/cjs/models/DeleteNetAccessPointResponse.js create mode 100644 dist/cjs/models/DeleteNetPeeringRequest.d.ts create mode 100644 dist/cjs/models/DeleteNetPeeringRequest.js create mode 100644 dist/cjs/models/DeleteNetPeeringResponse.d.ts create mode 100644 dist/cjs/models/DeleteNetPeeringResponse.js create mode 100644 dist/cjs/models/DeleteNetRequest.d.ts create mode 100644 dist/cjs/models/DeleteNetRequest.js create mode 100644 dist/cjs/models/DeleteNetResponse.d.ts create mode 100644 dist/cjs/models/DeleteNetResponse.js create mode 100644 dist/cjs/models/DeleteNicRequest.d.ts create mode 100644 dist/cjs/models/DeleteNicRequest.js create mode 100644 dist/cjs/models/DeleteNicResponse.d.ts create mode 100644 dist/cjs/models/DeleteNicResponse.js create mode 100644 dist/cjs/models/DeletePublicIpRequest.d.ts create mode 100644 dist/cjs/models/DeletePublicIpRequest.js create mode 100644 dist/cjs/models/DeletePublicIpResponse.d.ts create mode 100644 dist/cjs/models/DeletePublicIpResponse.js create mode 100644 dist/cjs/models/DeleteRouteRequest.d.ts create mode 100644 dist/cjs/models/DeleteRouteRequest.js create mode 100644 dist/cjs/models/DeleteRouteResponse.d.ts create mode 100644 dist/cjs/models/DeleteRouteResponse.js create mode 100644 dist/cjs/models/DeleteRouteTableRequest.d.ts create mode 100644 dist/cjs/models/DeleteRouteTableRequest.js create mode 100644 dist/cjs/models/DeleteRouteTableResponse.d.ts create mode 100644 dist/cjs/models/DeleteRouteTableResponse.js create mode 100644 dist/cjs/models/DeleteSecurityGroupRequest.d.ts create mode 100644 dist/cjs/models/DeleteSecurityGroupRequest.js create mode 100644 dist/cjs/models/DeleteSecurityGroupResponse.d.ts create mode 100644 dist/cjs/models/DeleteSecurityGroupResponse.js create mode 100644 dist/cjs/models/DeleteSecurityGroupRuleRequest.d.ts create mode 100644 dist/cjs/models/DeleteSecurityGroupRuleRequest.js create mode 100644 dist/cjs/models/DeleteSecurityGroupRuleResponse.d.ts create mode 100644 dist/cjs/models/DeleteSecurityGroupRuleResponse.js create mode 100644 dist/cjs/models/DeleteServerCertificateRequest.d.ts create mode 100644 dist/cjs/models/DeleteServerCertificateRequest.js create mode 100644 dist/cjs/models/DeleteServerCertificateResponse.d.ts create mode 100644 dist/cjs/models/DeleteServerCertificateResponse.js create mode 100644 dist/cjs/models/DeleteSnapshotRequest.d.ts create mode 100644 dist/cjs/models/DeleteSnapshotRequest.js create mode 100644 dist/cjs/models/DeleteSnapshotResponse.d.ts create mode 100644 dist/cjs/models/DeleteSnapshotResponse.js create mode 100644 dist/cjs/models/DeleteSubnetRequest.d.ts create mode 100644 dist/cjs/models/DeleteSubnetRequest.js create mode 100644 dist/cjs/models/DeleteSubnetResponse.d.ts create mode 100644 dist/cjs/models/DeleteSubnetResponse.js create mode 100644 dist/cjs/models/DeleteTagsRequest.d.ts create mode 100644 dist/cjs/models/DeleteTagsRequest.js create mode 100644 dist/cjs/models/DeleteTagsResponse.d.ts create mode 100644 dist/cjs/models/DeleteTagsResponse.js create mode 100644 dist/cjs/models/DeleteVirtualGatewayRequest.d.ts create mode 100644 dist/cjs/models/DeleteVirtualGatewayRequest.js create mode 100644 dist/cjs/models/DeleteVirtualGatewayResponse.d.ts create mode 100644 dist/cjs/models/DeleteVirtualGatewayResponse.js create mode 100644 dist/cjs/models/DeleteVmsRequest.d.ts create mode 100644 dist/cjs/models/DeleteVmsRequest.js create mode 100644 dist/cjs/models/DeleteVmsResponse.d.ts create mode 100644 dist/cjs/models/DeleteVmsResponse.js create mode 100644 dist/cjs/models/DeleteVolumeRequest.d.ts create mode 100644 dist/cjs/models/DeleteVolumeRequest.js create mode 100644 dist/cjs/models/DeleteVolumeResponse.d.ts create mode 100644 dist/cjs/models/DeleteVolumeResponse.js create mode 100644 dist/cjs/models/DeleteVpnConnectionRequest.d.ts create mode 100644 dist/cjs/models/DeleteVpnConnectionRequest.js create mode 100644 dist/cjs/models/DeleteVpnConnectionResponse.d.ts create mode 100644 dist/cjs/models/DeleteVpnConnectionResponse.js create mode 100644 dist/cjs/models/DeleteVpnConnectionRouteRequest.d.ts create mode 100644 dist/cjs/models/DeleteVpnConnectionRouteRequest.js create mode 100644 dist/cjs/models/DeleteVpnConnectionRouteResponse.d.ts create mode 100644 dist/cjs/models/DeleteVpnConnectionRouteResponse.js create mode 100644 dist/cjs/models/DeregisterVmsInLoadBalancerRequest.d.ts create mode 100644 dist/cjs/models/DeregisterVmsInLoadBalancerRequest.js create mode 100644 dist/cjs/models/DeregisterVmsInLoadBalancerResponse.d.ts create mode 100644 dist/cjs/models/DeregisterVmsInLoadBalancerResponse.js create mode 100644 dist/cjs/models/DhcpOptionsSet.d.ts create mode 100644 dist/cjs/models/DhcpOptionsSet.js create mode 100644 dist/cjs/models/DirectLink.d.ts create mode 100644 dist/cjs/models/DirectLink.js create mode 100644 dist/cjs/models/DirectLinkInterface.d.ts create mode 100644 dist/cjs/models/DirectLinkInterface.js create mode 100644 dist/cjs/models/DirectLinkInterfaces.d.ts create mode 100644 dist/cjs/models/DirectLinkInterfaces.js create mode 100644 dist/cjs/models/ErrorResponse.d.ts create mode 100644 dist/cjs/models/ErrorResponse.js create mode 100644 dist/cjs/models/Errors.d.ts create mode 100644 dist/cjs/models/Errors.js create mode 100644 dist/cjs/models/FiltersAccessKeys.d.ts create mode 100644 dist/cjs/models/FiltersAccessKeys.js create mode 100644 dist/cjs/models/FiltersApiAccessRule.d.ts create mode 100644 dist/cjs/models/FiltersApiAccessRule.js create mode 100644 dist/cjs/models/FiltersApiLog.d.ts create mode 100644 dist/cjs/models/FiltersApiLog.js create mode 100644 dist/cjs/models/FiltersCa.d.ts create mode 100644 dist/cjs/models/FiltersCa.js create mode 100644 dist/cjs/models/FiltersClientGateway.d.ts create mode 100644 dist/cjs/models/FiltersClientGateway.js create mode 100644 dist/cjs/models/FiltersDhcpOptions.d.ts create mode 100644 dist/cjs/models/FiltersDhcpOptions.js create mode 100644 dist/cjs/models/FiltersDirectLink.d.ts create mode 100644 dist/cjs/models/FiltersDirectLink.js create mode 100644 dist/cjs/models/FiltersDirectLinkInterface.d.ts create mode 100644 dist/cjs/models/FiltersDirectLinkInterface.js create mode 100644 dist/cjs/models/FiltersExportTask.d.ts create mode 100644 dist/cjs/models/FiltersExportTask.js create mode 100644 dist/cjs/models/FiltersFlexibleGpu.d.ts create mode 100644 dist/cjs/models/FiltersFlexibleGpu.js create mode 100644 dist/cjs/models/FiltersImage.d.ts create mode 100644 dist/cjs/models/FiltersImage.js create mode 100644 dist/cjs/models/FiltersInternetService.d.ts create mode 100644 dist/cjs/models/FiltersInternetService.js create mode 100644 dist/cjs/models/FiltersKeypair.d.ts create mode 100644 dist/cjs/models/FiltersKeypair.js create mode 100644 dist/cjs/models/FiltersListenerRule.d.ts create mode 100644 dist/cjs/models/FiltersListenerRule.js create mode 100644 dist/cjs/models/FiltersLoadBalancer.d.ts create mode 100644 dist/cjs/models/FiltersLoadBalancer.js create mode 100644 dist/cjs/models/FiltersNatService.d.ts create mode 100644 dist/cjs/models/FiltersNatService.js create mode 100644 dist/cjs/models/FiltersNet.d.ts create mode 100644 dist/cjs/models/FiltersNet.js create mode 100644 dist/cjs/models/FiltersNetAccessPoint.d.ts create mode 100644 dist/cjs/models/FiltersNetAccessPoint.js create mode 100644 dist/cjs/models/FiltersNetPeering.d.ts create mode 100644 dist/cjs/models/FiltersNetPeering.js create mode 100644 dist/cjs/models/FiltersNic.d.ts create mode 100644 dist/cjs/models/FiltersNic.js create mode 100644 dist/cjs/models/FiltersProductType.d.ts create mode 100644 dist/cjs/models/FiltersProductType.js create mode 100644 dist/cjs/models/FiltersPublicIp.d.ts create mode 100644 dist/cjs/models/FiltersPublicIp.js create mode 100644 dist/cjs/models/FiltersQuota.d.ts create mode 100644 dist/cjs/models/FiltersQuota.js create mode 100644 dist/cjs/models/FiltersRouteTable.d.ts create mode 100644 dist/cjs/models/FiltersRouteTable.js create mode 100644 dist/cjs/models/FiltersSecurityGroup.d.ts create mode 100644 dist/cjs/models/FiltersSecurityGroup.js create mode 100644 dist/cjs/models/FiltersServerCertificate.d.ts create mode 100644 dist/cjs/models/FiltersServerCertificate.js create mode 100644 dist/cjs/models/FiltersService.d.ts create mode 100644 dist/cjs/models/FiltersService.js create mode 100644 dist/cjs/models/FiltersSnapshot.d.ts create mode 100644 dist/cjs/models/FiltersSnapshot.js create mode 100644 dist/cjs/models/FiltersSubnet.d.ts create mode 100644 dist/cjs/models/FiltersSubnet.js create mode 100644 dist/cjs/models/FiltersSubregion.d.ts create mode 100644 dist/cjs/models/FiltersSubregion.js create mode 100644 dist/cjs/models/FiltersTag.d.ts create mode 100644 dist/cjs/models/FiltersTag.js create mode 100644 dist/cjs/models/FiltersVirtualGateway.d.ts create mode 100644 dist/cjs/models/FiltersVirtualGateway.js create mode 100644 dist/cjs/models/FiltersVm.d.ts create mode 100644 dist/cjs/models/FiltersVm.js create mode 100644 dist/cjs/models/FiltersVmType.d.ts create mode 100644 dist/cjs/models/FiltersVmType.js create mode 100644 dist/cjs/models/FiltersVmsState.d.ts create mode 100644 dist/cjs/models/FiltersVmsState.js create mode 100644 dist/cjs/models/FiltersVolume.d.ts create mode 100644 dist/cjs/models/FiltersVolume.js create mode 100644 dist/cjs/models/FiltersVpnConnection.d.ts create mode 100644 dist/cjs/models/FiltersVpnConnection.js create mode 100644 dist/cjs/models/FlexibleGpu.d.ts create mode 100644 dist/cjs/models/FlexibleGpu.js create mode 100644 dist/cjs/models/FlexibleGpuCatalog.d.ts create mode 100644 dist/cjs/models/FlexibleGpuCatalog.js create mode 100644 dist/cjs/models/HealthCheck.d.ts create mode 100644 dist/cjs/models/HealthCheck.js create mode 100644 dist/cjs/models/Image.d.ts create mode 100644 dist/cjs/models/Image.js create mode 100644 dist/cjs/models/ImageExportTask.d.ts create mode 100644 dist/cjs/models/ImageExportTask.js create mode 100644 dist/cjs/models/InternetService.d.ts create mode 100644 dist/cjs/models/InternetService.js create mode 100644 dist/cjs/models/Keypair.d.ts create mode 100644 dist/cjs/models/Keypair.js create mode 100644 dist/cjs/models/KeypairCreated.d.ts create mode 100644 dist/cjs/models/KeypairCreated.js create mode 100644 dist/cjs/models/LinkFlexibleGpuRequest.d.ts create mode 100644 dist/cjs/models/LinkFlexibleGpuRequest.js create mode 100644 dist/cjs/models/LinkFlexibleGpuResponse.d.ts create mode 100644 dist/cjs/models/LinkFlexibleGpuResponse.js create mode 100644 dist/cjs/models/LinkInternetServiceRequest.d.ts create mode 100644 dist/cjs/models/LinkInternetServiceRequest.js create mode 100644 dist/cjs/models/LinkInternetServiceResponse.d.ts create mode 100644 dist/cjs/models/LinkInternetServiceResponse.js create mode 100644 dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.d.ts create mode 100644 dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.js create mode 100644 dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.d.ts create mode 100644 dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.js create mode 100644 dist/cjs/models/LinkNic.d.ts create mode 100644 dist/cjs/models/LinkNic.js create mode 100644 dist/cjs/models/LinkNicLight.d.ts create mode 100644 dist/cjs/models/LinkNicLight.js create mode 100644 dist/cjs/models/LinkNicRequest.d.ts create mode 100644 dist/cjs/models/LinkNicRequest.js create mode 100644 dist/cjs/models/LinkNicResponse.d.ts create mode 100644 dist/cjs/models/LinkNicResponse.js create mode 100644 dist/cjs/models/LinkNicToUpdate.d.ts create mode 100644 dist/cjs/models/LinkNicToUpdate.js create mode 100644 dist/cjs/models/LinkPrivateIpsRequest.d.ts create mode 100644 dist/cjs/models/LinkPrivateIpsRequest.js create mode 100644 dist/cjs/models/LinkPrivateIpsResponse.d.ts create mode 100644 dist/cjs/models/LinkPrivateIpsResponse.js create mode 100644 dist/cjs/models/LinkPublicIp.d.ts create mode 100644 dist/cjs/models/LinkPublicIp.js create mode 100644 dist/cjs/models/LinkPublicIpLightForVm.d.ts create mode 100644 dist/cjs/models/LinkPublicIpLightForVm.js create mode 100644 dist/cjs/models/LinkPublicIpRequest.d.ts create mode 100644 dist/cjs/models/LinkPublicIpRequest.js create mode 100644 dist/cjs/models/LinkPublicIpResponse.d.ts create mode 100644 dist/cjs/models/LinkPublicIpResponse.js create mode 100644 dist/cjs/models/LinkRouteTable.d.ts create mode 100644 dist/cjs/models/LinkRouteTable.js create mode 100644 dist/cjs/models/LinkRouteTableRequest.d.ts create mode 100644 dist/cjs/models/LinkRouteTableRequest.js create mode 100644 dist/cjs/models/LinkRouteTableResponse.d.ts create mode 100644 dist/cjs/models/LinkRouteTableResponse.js create mode 100644 dist/cjs/models/LinkVirtualGatewayRequest.d.ts create mode 100644 dist/cjs/models/LinkVirtualGatewayRequest.js create mode 100644 dist/cjs/models/LinkVirtualGatewayResponse.d.ts create mode 100644 dist/cjs/models/LinkVirtualGatewayResponse.js create mode 100644 dist/cjs/models/LinkVolumeRequest.d.ts create mode 100644 dist/cjs/models/LinkVolumeRequest.js create mode 100644 dist/cjs/models/LinkVolumeResponse.d.ts create mode 100644 dist/cjs/models/LinkVolumeResponse.js create mode 100644 dist/cjs/models/LinkedVolume.d.ts create mode 100644 dist/cjs/models/LinkedVolume.js create mode 100644 dist/cjs/models/Listener.d.ts create mode 100644 dist/cjs/models/Listener.js create mode 100644 dist/cjs/models/ListenerForCreation.d.ts create mode 100644 dist/cjs/models/ListenerForCreation.js create mode 100644 dist/cjs/models/ListenerRule.d.ts create mode 100644 dist/cjs/models/ListenerRule.js create mode 100644 dist/cjs/models/ListenerRuleForCreation.d.ts create mode 100644 dist/cjs/models/ListenerRuleForCreation.js create mode 100644 dist/cjs/models/LoadBalancer.d.ts create mode 100644 dist/cjs/models/LoadBalancer.js create mode 100644 dist/cjs/models/LoadBalancerLight.d.ts create mode 100644 dist/cjs/models/LoadBalancerLight.js create mode 100644 dist/cjs/models/LoadBalancerStickyCookiePolicy.d.ts create mode 100644 dist/cjs/models/LoadBalancerStickyCookiePolicy.js create mode 100644 dist/cjs/models/LoadBalancerTag.d.ts create mode 100644 dist/cjs/models/LoadBalancerTag.js create mode 100644 dist/cjs/models/Location.d.ts create mode 100644 dist/cjs/models/Location.js create mode 100644 dist/cjs/models/Log.d.ts create mode 100644 dist/cjs/models/Log.js create mode 100644 dist/cjs/models/MaintenanceEvent.d.ts create mode 100644 dist/cjs/models/MaintenanceEvent.js create mode 100644 dist/cjs/models/ModelResponseContext.d.ts create mode 100644 dist/cjs/models/ModelResponseContext.js create mode 100644 dist/cjs/models/NatService.d.ts create mode 100644 dist/cjs/models/NatService.js create mode 100644 dist/cjs/models/Net.d.ts create mode 100644 dist/cjs/models/Net.js create mode 100644 dist/cjs/models/NetAccessPoint.d.ts create mode 100644 dist/cjs/models/NetAccessPoint.js create mode 100644 dist/cjs/models/NetPeering.d.ts create mode 100644 dist/cjs/models/NetPeering.js create mode 100644 dist/cjs/models/NetPeeringState.d.ts create mode 100644 dist/cjs/models/NetPeeringState.js create mode 100644 dist/cjs/models/NetToVirtualGatewayLink.d.ts create mode 100644 dist/cjs/models/NetToVirtualGatewayLink.js create mode 100644 dist/cjs/models/Nic.d.ts create mode 100644 dist/cjs/models/Nic.js create mode 100644 dist/cjs/models/NicForVmCreation.d.ts create mode 100644 dist/cjs/models/NicForVmCreation.js create mode 100644 dist/cjs/models/NicLight.d.ts create mode 100644 dist/cjs/models/NicLight.js create mode 100644 dist/cjs/models/OsuApiKey.d.ts create mode 100644 dist/cjs/models/OsuApiKey.js create mode 100644 dist/cjs/models/OsuExportImageExportTask.d.ts create mode 100644 dist/cjs/models/OsuExportImageExportTask.js create mode 100644 dist/cjs/models/OsuExportSnapshotExportTask.d.ts create mode 100644 dist/cjs/models/OsuExportSnapshotExportTask.js create mode 100644 dist/cjs/models/OsuExportToCreate.d.ts create mode 100644 dist/cjs/models/OsuExportToCreate.js create mode 100644 dist/cjs/models/PermissionsOnResource.d.ts create mode 100644 dist/cjs/models/PermissionsOnResource.js create mode 100644 dist/cjs/models/PermissionsOnResourceCreation.d.ts create mode 100644 dist/cjs/models/PermissionsOnResourceCreation.js create mode 100644 dist/cjs/models/Phase1Options.d.ts create mode 100644 dist/cjs/models/Phase1Options.js create mode 100644 dist/cjs/models/Phase2Options.d.ts create mode 100644 dist/cjs/models/Phase2Options.js create mode 100644 dist/cjs/models/Placement.d.ts create mode 100644 dist/cjs/models/Placement.js create mode 100644 dist/cjs/models/PrivateIp.d.ts create mode 100644 dist/cjs/models/PrivateIp.js create mode 100644 dist/cjs/models/PrivateIpLight.d.ts create mode 100644 dist/cjs/models/PrivateIpLight.js create mode 100644 dist/cjs/models/PrivateIpLightForVm.d.ts create mode 100644 dist/cjs/models/PrivateIpLightForVm.js create mode 100644 dist/cjs/models/ProductType.d.ts create mode 100644 dist/cjs/models/ProductType.js create mode 100644 dist/cjs/models/PublicIp.d.ts create mode 100644 dist/cjs/models/PublicIp.js create mode 100644 dist/cjs/models/PublicIpLight.d.ts create mode 100644 dist/cjs/models/PublicIpLight.js create mode 100644 dist/cjs/models/Quota.d.ts create mode 100644 dist/cjs/models/Quota.js create mode 100644 dist/cjs/models/QuotaTypes.d.ts create mode 100644 dist/cjs/models/QuotaTypes.js create mode 100644 dist/cjs/models/ReadAccessKeysRequest.d.ts create mode 100644 dist/cjs/models/ReadAccessKeysRequest.js create mode 100644 dist/cjs/models/ReadAccessKeysResponse.d.ts create mode 100644 dist/cjs/models/ReadAccessKeysResponse.js create mode 100644 dist/cjs/models/ReadAccountsRequest.d.ts create mode 100644 dist/cjs/models/ReadAccountsRequest.js create mode 100644 dist/cjs/models/ReadAccountsResponse.d.ts create mode 100644 dist/cjs/models/ReadAccountsResponse.js create mode 100644 dist/cjs/models/ReadAdminPasswordRequest.d.ts create mode 100644 dist/cjs/models/ReadAdminPasswordRequest.js create mode 100644 dist/cjs/models/ReadAdminPasswordResponse.d.ts create mode 100644 dist/cjs/models/ReadAdminPasswordResponse.js create mode 100644 dist/cjs/models/ReadApiAccessPolicyRequest.d.ts create mode 100644 dist/cjs/models/ReadApiAccessPolicyRequest.js create mode 100644 dist/cjs/models/ReadApiAccessPolicyResponse.d.ts create mode 100644 dist/cjs/models/ReadApiAccessPolicyResponse.js create mode 100644 dist/cjs/models/ReadApiAccessRulesRequest.d.ts create mode 100644 dist/cjs/models/ReadApiAccessRulesRequest.js create mode 100644 dist/cjs/models/ReadApiAccessRulesResponse.d.ts create mode 100644 dist/cjs/models/ReadApiAccessRulesResponse.js create mode 100644 dist/cjs/models/ReadApiLogsRequest.d.ts create mode 100644 dist/cjs/models/ReadApiLogsRequest.js create mode 100644 dist/cjs/models/ReadApiLogsResponse.d.ts create mode 100644 dist/cjs/models/ReadApiLogsResponse.js create mode 100644 dist/cjs/models/ReadCasRequest.d.ts create mode 100644 dist/cjs/models/ReadCasRequest.js create mode 100644 dist/cjs/models/ReadCasResponse.d.ts create mode 100644 dist/cjs/models/ReadCasResponse.js create mode 100644 dist/cjs/models/ReadCatalogRequest.d.ts create mode 100644 dist/cjs/models/ReadCatalogRequest.js create mode 100644 dist/cjs/models/ReadCatalogResponse.d.ts create mode 100644 dist/cjs/models/ReadCatalogResponse.js create mode 100644 dist/cjs/models/ReadClientGatewaysRequest.d.ts create mode 100644 dist/cjs/models/ReadClientGatewaysRequest.js create mode 100644 dist/cjs/models/ReadClientGatewaysResponse.d.ts create mode 100644 dist/cjs/models/ReadClientGatewaysResponse.js create mode 100644 dist/cjs/models/ReadConsoleOutputRequest.d.ts create mode 100644 dist/cjs/models/ReadConsoleOutputRequest.js create mode 100644 dist/cjs/models/ReadConsoleOutputResponse.d.ts create mode 100644 dist/cjs/models/ReadConsoleOutputResponse.js create mode 100644 dist/cjs/models/ReadConsumptionAccountRequest.d.ts create mode 100644 dist/cjs/models/ReadConsumptionAccountRequest.js create mode 100644 dist/cjs/models/ReadConsumptionAccountResponse.d.ts create mode 100644 dist/cjs/models/ReadConsumptionAccountResponse.js create mode 100644 dist/cjs/models/ReadDhcpOptionsRequest.d.ts create mode 100644 dist/cjs/models/ReadDhcpOptionsRequest.js create mode 100644 dist/cjs/models/ReadDhcpOptionsResponse.d.ts create mode 100644 dist/cjs/models/ReadDhcpOptionsResponse.js create mode 100644 dist/cjs/models/ReadDirectLinkInterfacesRequest.d.ts create mode 100644 dist/cjs/models/ReadDirectLinkInterfacesRequest.js create mode 100644 dist/cjs/models/ReadDirectLinkInterfacesResponse.d.ts create mode 100644 dist/cjs/models/ReadDirectLinkInterfacesResponse.js create mode 100644 dist/cjs/models/ReadDirectLinksRequest.d.ts create mode 100644 dist/cjs/models/ReadDirectLinksRequest.js create mode 100644 dist/cjs/models/ReadDirectLinksResponse.d.ts create mode 100644 dist/cjs/models/ReadDirectLinksResponse.js create mode 100644 dist/cjs/models/ReadFlexibleGpuCatalogRequest.d.ts create mode 100644 dist/cjs/models/ReadFlexibleGpuCatalogRequest.js create mode 100644 dist/cjs/models/ReadFlexibleGpuCatalogResponse.d.ts create mode 100644 dist/cjs/models/ReadFlexibleGpuCatalogResponse.js create mode 100644 dist/cjs/models/ReadFlexibleGpusRequest.d.ts create mode 100644 dist/cjs/models/ReadFlexibleGpusRequest.js create mode 100644 dist/cjs/models/ReadFlexibleGpusResponse.d.ts create mode 100644 dist/cjs/models/ReadFlexibleGpusResponse.js create mode 100644 dist/cjs/models/ReadImageExportTasksRequest.d.ts create mode 100644 dist/cjs/models/ReadImageExportTasksRequest.js create mode 100644 dist/cjs/models/ReadImageExportTasksResponse.d.ts create mode 100644 dist/cjs/models/ReadImageExportTasksResponse.js create mode 100644 dist/cjs/models/ReadImagesRequest.d.ts create mode 100644 dist/cjs/models/ReadImagesRequest.js create mode 100644 dist/cjs/models/ReadImagesResponse.d.ts create mode 100644 dist/cjs/models/ReadImagesResponse.js create mode 100644 dist/cjs/models/ReadInternetServicesRequest.d.ts create mode 100644 dist/cjs/models/ReadInternetServicesRequest.js create mode 100644 dist/cjs/models/ReadInternetServicesResponse.d.ts create mode 100644 dist/cjs/models/ReadInternetServicesResponse.js create mode 100644 dist/cjs/models/ReadKeypairsRequest.d.ts create mode 100644 dist/cjs/models/ReadKeypairsRequest.js create mode 100644 dist/cjs/models/ReadKeypairsResponse.d.ts create mode 100644 dist/cjs/models/ReadKeypairsResponse.js create mode 100644 dist/cjs/models/ReadListenerRulesRequest.d.ts create mode 100644 dist/cjs/models/ReadListenerRulesRequest.js create mode 100644 dist/cjs/models/ReadListenerRulesResponse.d.ts create mode 100644 dist/cjs/models/ReadListenerRulesResponse.js create mode 100644 dist/cjs/models/ReadLoadBalancerTagsRequest.d.ts create mode 100644 dist/cjs/models/ReadLoadBalancerTagsRequest.js create mode 100644 dist/cjs/models/ReadLoadBalancerTagsResponse.d.ts create mode 100644 dist/cjs/models/ReadLoadBalancerTagsResponse.js create mode 100644 dist/cjs/models/ReadLoadBalancersRequest.d.ts create mode 100644 dist/cjs/models/ReadLoadBalancersRequest.js create mode 100644 dist/cjs/models/ReadLoadBalancersResponse.d.ts create mode 100644 dist/cjs/models/ReadLoadBalancersResponse.js create mode 100644 dist/cjs/models/ReadLocationsRequest.d.ts create mode 100644 dist/cjs/models/ReadLocationsRequest.js create mode 100644 dist/cjs/models/ReadLocationsResponse.d.ts create mode 100644 dist/cjs/models/ReadLocationsResponse.js create mode 100644 dist/cjs/models/ReadNatServicesRequest.d.ts create mode 100644 dist/cjs/models/ReadNatServicesRequest.js create mode 100644 dist/cjs/models/ReadNatServicesResponse.d.ts create mode 100644 dist/cjs/models/ReadNatServicesResponse.js create mode 100644 dist/cjs/models/ReadNetAccessPointServicesRequest.d.ts create mode 100644 dist/cjs/models/ReadNetAccessPointServicesRequest.js create mode 100644 dist/cjs/models/ReadNetAccessPointServicesResponse.d.ts create mode 100644 dist/cjs/models/ReadNetAccessPointServicesResponse.js create mode 100644 dist/cjs/models/ReadNetAccessPointsRequest.d.ts create mode 100644 dist/cjs/models/ReadNetAccessPointsRequest.js create mode 100644 dist/cjs/models/ReadNetAccessPointsResponse.d.ts create mode 100644 dist/cjs/models/ReadNetAccessPointsResponse.js create mode 100644 dist/cjs/models/ReadNetPeeringsRequest.d.ts create mode 100644 dist/cjs/models/ReadNetPeeringsRequest.js create mode 100644 dist/cjs/models/ReadNetPeeringsResponse.d.ts create mode 100644 dist/cjs/models/ReadNetPeeringsResponse.js create mode 100644 dist/cjs/models/ReadNetsRequest.d.ts create mode 100644 dist/cjs/models/ReadNetsRequest.js create mode 100644 dist/cjs/models/ReadNetsResponse.d.ts create mode 100644 dist/cjs/models/ReadNetsResponse.js create mode 100644 dist/cjs/models/ReadNicsRequest.d.ts create mode 100644 dist/cjs/models/ReadNicsRequest.js create mode 100644 dist/cjs/models/ReadNicsResponse.d.ts create mode 100644 dist/cjs/models/ReadNicsResponse.js create mode 100644 dist/cjs/models/ReadProductTypesRequest.d.ts create mode 100644 dist/cjs/models/ReadProductTypesRequest.js create mode 100644 dist/cjs/models/ReadProductTypesResponse.d.ts create mode 100644 dist/cjs/models/ReadProductTypesResponse.js create mode 100644 dist/cjs/models/ReadPublicCatalogRequest.d.ts create mode 100644 dist/cjs/models/ReadPublicCatalogRequest.js create mode 100644 dist/cjs/models/ReadPublicCatalogResponse.d.ts create mode 100644 dist/cjs/models/ReadPublicCatalogResponse.js create mode 100644 dist/cjs/models/ReadPublicIpRangesRequest.d.ts create mode 100644 dist/cjs/models/ReadPublicIpRangesRequest.js create mode 100644 dist/cjs/models/ReadPublicIpRangesResponse.d.ts create mode 100644 dist/cjs/models/ReadPublicIpRangesResponse.js create mode 100644 dist/cjs/models/ReadPublicIpsRequest.d.ts create mode 100644 dist/cjs/models/ReadPublicIpsRequest.js create mode 100644 dist/cjs/models/ReadPublicIpsResponse.d.ts create mode 100644 dist/cjs/models/ReadPublicIpsResponse.js create mode 100644 dist/cjs/models/ReadQuotasRequest.d.ts create mode 100644 dist/cjs/models/ReadQuotasRequest.js create mode 100644 dist/cjs/models/ReadQuotasResponse.d.ts create mode 100644 dist/cjs/models/ReadQuotasResponse.js create mode 100644 dist/cjs/models/ReadRegionsRequest.d.ts create mode 100644 dist/cjs/models/ReadRegionsRequest.js create mode 100644 dist/cjs/models/ReadRegionsResponse.d.ts create mode 100644 dist/cjs/models/ReadRegionsResponse.js create mode 100644 dist/cjs/models/ReadRouteTablesRequest.d.ts create mode 100644 dist/cjs/models/ReadRouteTablesRequest.js create mode 100644 dist/cjs/models/ReadRouteTablesResponse.d.ts create mode 100644 dist/cjs/models/ReadRouteTablesResponse.js create mode 100644 dist/cjs/models/ReadSecretAccessKeyRequest.d.ts create mode 100644 dist/cjs/models/ReadSecretAccessKeyRequest.js create mode 100644 dist/cjs/models/ReadSecretAccessKeyResponse.d.ts create mode 100644 dist/cjs/models/ReadSecretAccessKeyResponse.js create mode 100644 dist/cjs/models/ReadSecurityGroupsRequest.d.ts create mode 100644 dist/cjs/models/ReadSecurityGroupsRequest.js create mode 100644 dist/cjs/models/ReadSecurityGroupsResponse.d.ts create mode 100644 dist/cjs/models/ReadSecurityGroupsResponse.js create mode 100644 dist/cjs/models/ReadServerCertificatesRequest.d.ts create mode 100644 dist/cjs/models/ReadServerCertificatesRequest.js create mode 100644 dist/cjs/models/ReadServerCertificatesResponse.d.ts create mode 100644 dist/cjs/models/ReadServerCertificatesResponse.js create mode 100644 dist/cjs/models/ReadSnapshotExportTasksRequest.d.ts create mode 100644 dist/cjs/models/ReadSnapshotExportTasksRequest.js create mode 100644 dist/cjs/models/ReadSnapshotExportTasksResponse.d.ts create mode 100644 dist/cjs/models/ReadSnapshotExportTasksResponse.js create mode 100644 dist/cjs/models/ReadSnapshotsRequest.d.ts create mode 100644 dist/cjs/models/ReadSnapshotsRequest.js create mode 100644 dist/cjs/models/ReadSnapshotsResponse.d.ts create mode 100644 dist/cjs/models/ReadSnapshotsResponse.js create mode 100644 dist/cjs/models/ReadSubnetsRequest.d.ts create mode 100644 dist/cjs/models/ReadSubnetsRequest.js create mode 100644 dist/cjs/models/ReadSubnetsResponse.d.ts create mode 100644 dist/cjs/models/ReadSubnetsResponse.js create mode 100644 dist/cjs/models/ReadSubregionsRequest.d.ts create mode 100644 dist/cjs/models/ReadSubregionsRequest.js create mode 100644 dist/cjs/models/ReadSubregionsResponse.d.ts create mode 100644 dist/cjs/models/ReadSubregionsResponse.js create mode 100644 dist/cjs/models/ReadTagsRequest.d.ts create mode 100644 dist/cjs/models/ReadTagsRequest.js create mode 100644 dist/cjs/models/ReadTagsResponse.d.ts create mode 100644 dist/cjs/models/ReadTagsResponse.js create mode 100644 dist/cjs/models/ReadVirtualGatewaysRequest.d.ts create mode 100644 dist/cjs/models/ReadVirtualGatewaysRequest.js create mode 100644 dist/cjs/models/ReadVirtualGatewaysResponse.d.ts create mode 100644 dist/cjs/models/ReadVirtualGatewaysResponse.js create mode 100644 dist/cjs/models/ReadVmTypesRequest.d.ts create mode 100644 dist/cjs/models/ReadVmTypesRequest.js create mode 100644 dist/cjs/models/ReadVmTypesResponse.d.ts create mode 100644 dist/cjs/models/ReadVmTypesResponse.js create mode 100644 dist/cjs/models/ReadVmsHealthRequest.d.ts create mode 100644 dist/cjs/models/ReadVmsHealthRequest.js create mode 100644 dist/cjs/models/ReadVmsHealthResponse.d.ts create mode 100644 dist/cjs/models/ReadVmsHealthResponse.js create mode 100644 dist/cjs/models/ReadVmsRequest.d.ts create mode 100644 dist/cjs/models/ReadVmsRequest.js create mode 100644 dist/cjs/models/ReadVmsResponse.d.ts create mode 100644 dist/cjs/models/ReadVmsResponse.js create mode 100644 dist/cjs/models/ReadVmsStateRequest.d.ts create mode 100644 dist/cjs/models/ReadVmsStateRequest.js create mode 100644 dist/cjs/models/ReadVmsStateResponse.d.ts create mode 100644 dist/cjs/models/ReadVmsStateResponse.js create mode 100644 dist/cjs/models/ReadVolumesRequest.d.ts create mode 100644 dist/cjs/models/ReadVolumesRequest.js create mode 100644 dist/cjs/models/ReadVolumesResponse.d.ts create mode 100644 dist/cjs/models/ReadVolumesResponse.js create mode 100644 dist/cjs/models/ReadVpnConnectionsRequest.d.ts create mode 100644 dist/cjs/models/ReadVpnConnectionsRequest.js create mode 100644 dist/cjs/models/ReadVpnConnectionsResponse.d.ts create mode 100644 dist/cjs/models/ReadVpnConnectionsResponse.js create mode 100644 dist/cjs/models/RebootVmsRequest.d.ts create mode 100644 dist/cjs/models/RebootVmsRequest.js create mode 100644 dist/cjs/models/RebootVmsResponse.d.ts create mode 100644 dist/cjs/models/RebootVmsResponse.js create mode 100644 dist/cjs/models/Region.d.ts create mode 100644 dist/cjs/models/Region.js create mode 100644 dist/cjs/models/RegisterVmsInLoadBalancerRequest.d.ts create mode 100644 dist/cjs/models/RegisterVmsInLoadBalancerRequest.js create mode 100644 dist/cjs/models/RegisterVmsInLoadBalancerResponse.d.ts create mode 100644 dist/cjs/models/RegisterVmsInLoadBalancerResponse.js create mode 100644 dist/cjs/models/RejectNetPeeringRequest.d.ts create mode 100644 dist/cjs/models/RejectNetPeeringRequest.js create mode 100644 dist/cjs/models/RejectNetPeeringResponse.d.ts create mode 100644 dist/cjs/models/RejectNetPeeringResponse.js create mode 100644 dist/cjs/models/ResetAccountPasswordRequest.d.ts create mode 100644 dist/cjs/models/ResetAccountPasswordRequest.js create mode 100644 dist/cjs/models/ResetAccountPasswordResponse.d.ts create mode 100644 dist/cjs/models/ResetAccountPasswordResponse.js create mode 100644 dist/cjs/models/ResourceLoadBalancerTag.d.ts create mode 100644 dist/cjs/models/ResourceLoadBalancerTag.js create mode 100644 dist/cjs/models/ResourceTag.d.ts create mode 100644 dist/cjs/models/ResourceTag.js create mode 100644 dist/cjs/models/Route.d.ts create mode 100644 dist/cjs/models/Route.js create mode 100644 dist/cjs/models/RouteLight.d.ts create mode 100644 dist/cjs/models/RouteLight.js create mode 100644 dist/cjs/models/RoutePropagatingVirtualGateway.d.ts create mode 100644 dist/cjs/models/RoutePropagatingVirtualGateway.js create mode 100644 dist/cjs/models/RouteTable.d.ts create mode 100644 dist/cjs/models/RouteTable.js create mode 100644 dist/cjs/models/SecurityGroup.d.ts create mode 100644 dist/cjs/models/SecurityGroup.js create mode 100644 dist/cjs/models/SecurityGroupLight.d.ts create mode 100644 dist/cjs/models/SecurityGroupLight.js create mode 100644 dist/cjs/models/SecurityGroupRule.d.ts create mode 100644 dist/cjs/models/SecurityGroupRule.js create mode 100644 dist/cjs/models/SecurityGroupsMember.d.ts create mode 100644 dist/cjs/models/SecurityGroupsMember.js create mode 100644 dist/cjs/models/SendResetPasswordEmailRequest.d.ts create mode 100644 dist/cjs/models/SendResetPasswordEmailRequest.js create mode 100644 dist/cjs/models/SendResetPasswordEmailResponse.d.ts create mode 100644 dist/cjs/models/SendResetPasswordEmailResponse.js create mode 100644 dist/cjs/models/ServerCertificate.d.ts create mode 100644 dist/cjs/models/ServerCertificate.js create mode 100644 dist/cjs/models/Service.d.ts create mode 100644 dist/cjs/models/Service.js create mode 100644 dist/cjs/models/Snapshot.d.ts create mode 100644 dist/cjs/models/Snapshot.js create mode 100644 dist/cjs/models/SnapshotExportTask.d.ts create mode 100644 dist/cjs/models/SnapshotExportTask.js create mode 100644 dist/cjs/models/SourceNet.d.ts create mode 100644 dist/cjs/models/SourceNet.js create mode 100644 dist/cjs/models/SourceSecurityGroup.d.ts create mode 100644 dist/cjs/models/SourceSecurityGroup.js create mode 100644 dist/cjs/models/StartVmsRequest.d.ts create mode 100644 dist/cjs/models/StartVmsRequest.js create mode 100644 dist/cjs/models/StartVmsResponse.d.ts create mode 100644 dist/cjs/models/StartVmsResponse.js create mode 100644 dist/cjs/models/StateComment.d.ts create mode 100644 dist/cjs/models/StateComment.js create mode 100644 dist/cjs/models/StopVmsRequest.d.ts create mode 100644 dist/cjs/models/StopVmsRequest.js create mode 100644 dist/cjs/models/StopVmsResponse.d.ts create mode 100644 dist/cjs/models/StopVmsResponse.js create mode 100644 dist/cjs/models/Subnet.d.ts create mode 100644 dist/cjs/models/Subnet.js create mode 100644 dist/cjs/models/Subregion.d.ts create mode 100644 dist/cjs/models/Subregion.js create mode 100644 dist/cjs/models/Tag.d.ts create mode 100644 dist/cjs/models/Tag.js create mode 100644 dist/cjs/models/UnlinkFlexibleGpuRequest.d.ts create mode 100644 dist/cjs/models/UnlinkFlexibleGpuRequest.js create mode 100644 dist/cjs/models/UnlinkFlexibleGpuResponse.d.ts create mode 100644 dist/cjs/models/UnlinkFlexibleGpuResponse.js create mode 100644 dist/cjs/models/UnlinkInternetServiceRequest.d.ts create mode 100644 dist/cjs/models/UnlinkInternetServiceRequest.js create mode 100644 dist/cjs/models/UnlinkInternetServiceResponse.d.ts create mode 100644 dist/cjs/models/UnlinkInternetServiceResponse.js create mode 100644 dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts create mode 100644 dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.js create mode 100644 dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts create mode 100644 dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.js create mode 100644 dist/cjs/models/UnlinkNicRequest.d.ts create mode 100644 dist/cjs/models/UnlinkNicRequest.js create mode 100644 dist/cjs/models/UnlinkNicResponse.d.ts create mode 100644 dist/cjs/models/UnlinkNicResponse.js create mode 100644 dist/cjs/models/UnlinkPrivateIpsRequest.d.ts create mode 100644 dist/cjs/models/UnlinkPrivateIpsRequest.js create mode 100644 dist/cjs/models/UnlinkPrivateIpsResponse.d.ts create mode 100644 dist/cjs/models/UnlinkPrivateIpsResponse.js create mode 100644 dist/cjs/models/UnlinkPublicIpRequest.d.ts create mode 100644 dist/cjs/models/UnlinkPublicIpRequest.js create mode 100644 dist/cjs/models/UnlinkPublicIpResponse.d.ts create mode 100644 dist/cjs/models/UnlinkPublicIpResponse.js create mode 100644 dist/cjs/models/UnlinkRouteTableRequest.d.ts create mode 100644 dist/cjs/models/UnlinkRouteTableRequest.js create mode 100644 dist/cjs/models/UnlinkRouteTableResponse.d.ts create mode 100644 dist/cjs/models/UnlinkRouteTableResponse.js create mode 100644 dist/cjs/models/UnlinkVirtualGatewayRequest.d.ts create mode 100644 dist/cjs/models/UnlinkVirtualGatewayRequest.js create mode 100644 dist/cjs/models/UnlinkVirtualGatewayResponse.d.ts create mode 100644 dist/cjs/models/UnlinkVirtualGatewayResponse.js create mode 100644 dist/cjs/models/UnlinkVolumeRequest.d.ts create mode 100644 dist/cjs/models/UnlinkVolumeRequest.js create mode 100644 dist/cjs/models/UnlinkVolumeResponse.d.ts create mode 100644 dist/cjs/models/UnlinkVolumeResponse.js create mode 100644 dist/cjs/models/UpdateAccessKeyRequest.d.ts create mode 100644 dist/cjs/models/UpdateAccessKeyRequest.js create mode 100644 dist/cjs/models/UpdateAccessKeyResponse.d.ts create mode 100644 dist/cjs/models/UpdateAccessKeyResponse.js create mode 100644 dist/cjs/models/UpdateAccountRequest.d.ts create mode 100644 dist/cjs/models/UpdateAccountRequest.js create mode 100644 dist/cjs/models/UpdateAccountResponse.d.ts create mode 100644 dist/cjs/models/UpdateAccountResponse.js create mode 100644 dist/cjs/models/UpdateApiAccessPolicyRequest.d.ts create mode 100644 dist/cjs/models/UpdateApiAccessPolicyRequest.js create mode 100644 dist/cjs/models/UpdateApiAccessPolicyResponse.d.ts create mode 100644 dist/cjs/models/UpdateApiAccessPolicyResponse.js create mode 100644 dist/cjs/models/UpdateApiAccessRuleRequest.d.ts create mode 100644 dist/cjs/models/UpdateApiAccessRuleRequest.js create mode 100644 dist/cjs/models/UpdateApiAccessRuleResponse.d.ts create mode 100644 dist/cjs/models/UpdateApiAccessRuleResponse.js create mode 100644 dist/cjs/models/UpdateCaRequest.d.ts create mode 100644 dist/cjs/models/UpdateCaRequest.js create mode 100644 dist/cjs/models/UpdateCaResponse.d.ts create mode 100644 dist/cjs/models/UpdateCaResponse.js create mode 100644 dist/cjs/models/UpdateFlexibleGpuRequest.d.ts create mode 100644 dist/cjs/models/UpdateFlexibleGpuRequest.js create mode 100644 dist/cjs/models/UpdateFlexibleGpuResponse.d.ts create mode 100644 dist/cjs/models/UpdateFlexibleGpuResponse.js create mode 100644 dist/cjs/models/UpdateImageRequest.d.ts create mode 100644 dist/cjs/models/UpdateImageRequest.js create mode 100644 dist/cjs/models/UpdateImageResponse.d.ts create mode 100644 dist/cjs/models/UpdateImageResponse.js create mode 100644 dist/cjs/models/UpdateListenerRuleRequest.d.ts create mode 100644 dist/cjs/models/UpdateListenerRuleRequest.js create mode 100644 dist/cjs/models/UpdateListenerRuleResponse.d.ts create mode 100644 dist/cjs/models/UpdateListenerRuleResponse.js create mode 100644 dist/cjs/models/UpdateLoadBalancerRequest.d.ts create mode 100644 dist/cjs/models/UpdateLoadBalancerRequest.js create mode 100644 dist/cjs/models/UpdateLoadBalancerResponse.d.ts create mode 100644 dist/cjs/models/UpdateLoadBalancerResponse.js create mode 100644 dist/cjs/models/UpdateNetAccessPointRequest.d.ts create mode 100644 dist/cjs/models/UpdateNetAccessPointRequest.js create mode 100644 dist/cjs/models/UpdateNetAccessPointResponse.d.ts create mode 100644 dist/cjs/models/UpdateNetAccessPointResponse.js create mode 100644 dist/cjs/models/UpdateNetRequest.d.ts create mode 100644 dist/cjs/models/UpdateNetRequest.js create mode 100644 dist/cjs/models/UpdateNetResponse.d.ts create mode 100644 dist/cjs/models/UpdateNetResponse.js create mode 100644 dist/cjs/models/UpdateNicRequest.d.ts create mode 100644 dist/cjs/models/UpdateNicRequest.js create mode 100644 dist/cjs/models/UpdateNicResponse.d.ts create mode 100644 dist/cjs/models/UpdateNicResponse.js create mode 100644 dist/cjs/models/UpdateRoutePropagationRequest.d.ts create mode 100644 dist/cjs/models/UpdateRoutePropagationRequest.js create mode 100644 dist/cjs/models/UpdateRoutePropagationResponse.d.ts create mode 100644 dist/cjs/models/UpdateRoutePropagationResponse.js create mode 100644 dist/cjs/models/UpdateRouteRequest.d.ts create mode 100644 dist/cjs/models/UpdateRouteRequest.js create mode 100644 dist/cjs/models/UpdateRouteResponse.d.ts create mode 100644 dist/cjs/models/UpdateRouteResponse.js create mode 100644 dist/cjs/models/UpdateServerCertificateRequest.d.ts create mode 100644 dist/cjs/models/UpdateServerCertificateRequest.js create mode 100644 dist/cjs/models/UpdateServerCertificateResponse.d.ts create mode 100644 dist/cjs/models/UpdateServerCertificateResponse.js create mode 100644 dist/cjs/models/UpdateSnapshotRequest.d.ts create mode 100644 dist/cjs/models/UpdateSnapshotRequest.js create mode 100644 dist/cjs/models/UpdateSnapshotResponse.d.ts create mode 100644 dist/cjs/models/UpdateSnapshotResponse.js create mode 100644 dist/cjs/models/UpdateSubnetRequest.d.ts create mode 100644 dist/cjs/models/UpdateSubnetRequest.js create mode 100644 dist/cjs/models/UpdateSubnetResponse.d.ts create mode 100644 dist/cjs/models/UpdateSubnetResponse.js create mode 100644 dist/cjs/models/UpdateVmRequest.d.ts create mode 100644 dist/cjs/models/UpdateVmRequest.js create mode 100644 dist/cjs/models/UpdateVmResponse.d.ts create mode 100644 dist/cjs/models/UpdateVmResponse.js create mode 100644 dist/cjs/models/UpdateVolumeRequest.d.ts create mode 100644 dist/cjs/models/UpdateVolumeRequest.js create mode 100644 dist/cjs/models/UpdateVolumeResponse.d.ts create mode 100644 dist/cjs/models/UpdateVolumeResponse.js create mode 100644 dist/cjs/models/UpdateVpnConnectionRequest.d.ts create mode 100644 dist/cjs/models/UpdateVpnConnectionRequest.js create mode 100644 dist/cjs/models/UpdateVpnConnectionResponse.d.ts create mode 100644 dist/cjs/models/UpdateVpnConnectionResponse.js create mode 100644 dist/cjs/models/VgwTelemetry.d.ts create mode 100644 dist/cjs/models/VgwTelemetry.js create mode 100644 dist/cjs/models/VirtualGateway.d.ts create mode 100644 dist/cjs/models/VirtualGateway.js create mode 100644 dist/cjs/models/Vm.d.ts create mode 100644 dist/cjs/models/Vm.js create mode 100644 dist/cjs/models/VmState.d.ts create mode 100644 dist/cjs/models/VmState.js create mode 100644 dist/cjs/models/VmStates.d.ts create mode 100644 dist/cjs/models/VmStates.js create mode 100644 dist/cjs/models/VmType.d.ts create mode 100644 dist/cjs/models/VmType.js create mode 100644 dist/cjs/models/Volume.d.ts create mode 100644 dist/cjs/models/Volume.js create mode 100644 dist/cjs/models/VpnConnection.d.ts create mode 100644 dist/cjs/models/VpnConnection.js create mode 100644 dist/cjs/models/VpnOptions.d.ts create mode 100644 dist/cjs/models/VpnOptions.js create mode 100644 dist/cjs/models/With.d.ts create mode 100644 dist/cjs/models/With.js create mode 100644 dist/cjs/models/index.d.ts create mode 100644 dist/cjs/models/index.js create mode 100644 dist/cjs/runtime.d.ts create mode 100644 dist/cjs/runtime.js create mode 100644 dist/esm/apis/AccessKeyApi.d.ts create mode 100644 dist/esm/apis/AccessKeyApi.js create mode 100644 dist/esm/apis/AccountApi.d.ts create mode 100644 dist/esm/apis/AccountApi.js create mode 100644 dist/esm/apis/ApiAccessPolicyApi.d.ts create mode 100644 dist/esm/apis/ApiAccessPolicyApi.js create mode 100644 dist/esm/apis/ApiAccessRuleApi.d.ts create mode 100644 dist/esm/apis/ApiAccessRuleApi.js create mode 100644 dist/esm/apis/ApiLogApi.d.ts create mode 100644 dist/esm/apis/ApiLogApi.js create mode 100644 dist/esm/apis/CaApi.d.ts create mode 100644 dist/esm/apis/CaApi.js create mode 100644 dist/esm/apis/CatalogApi.d.ts create mode 100644 dist/esm/apis/CatalogApi.js create mode 100644 dist/esm/apis/ClientGatewayApi.d.ts create mode 100644 dist/esm/apis/ClientGatewayApi.js create mode 100644 dist/esm/apis/DhcpOptionApi.d.ts create mode 100644 dist/esm/apis/DhcpOptionApi.js create mode 100644 dist/esm/apis/DirectLinkApi.d.ts create mode 100644 dist/esm/apis/DirectLinkApi.js create mode 100644 dist/esm/apis/DirectLinkInterfaceApi.d.ts create mode 100644 dist/esm/apis/DirectLinkInterfaceApi.js create mode 100644 dist/esm/apis/FlexibleGpuApi.d.ts create mode 100644 dist/esm/apis/FlexibleGpuApi.js create mode 100644 dist/esm/apis/ImageApi.d.ts create mode 100644 dist/esm/apis/ImageApi.js create mode 100644 dist/esm/apis/InternetServiceApi.d.ts create mode 100644 dist/esm/apis/InternetServiceApi.js create mode 100644 dist/esm/apis/KeypairApi.d.ts create mode 100644 dist/esm/apis/KeypairApi.js create mode 100644 dist/esm/apis/ListenerApi.d.ts create mode 100644 dist/esm/apis/ListenerApi.js create mode 100644 dist/esm/apis/LoadBalancerApi.d.ts create mode 100644 dist/esm/apis/LoadBalancerApi.js create mode 100644 dist/esm/apis/LoadBalancerPolicyApi.d.ts create mode 100644 dist/esm/apis/LoadBalancerPolicyApi.js create mode 100644 dist/esm/apis/LocationApi.d.ts create mode 100644 dist/esm/apis/LocationApi.js create mode 100644 dist/esm/apis/NatServiceApi.d.ts create mode 100644 dist/esm/apis/NatServiceApi.js create mode 100644 dist/esm/apis/NetAccessPointApi.d.ts create mode 100644 dist/esm/apis/NetAccessPointApi.js create mode 100644 dist/esm/apis/NetApi.d.ts create mode 100644 dist/esm/apis/NetApi.js create mode 100644 dist/esm/apis/NetPeeringApi.d.ts create mode 100644 dist/esm/apis/NetPeeringApi.js create mode 100644 dist/esm/apis/NicApi.d.ts create mode 100644 dist/esm/apis/NicApi.js create mode 100644 dist/esm/apis/ProductTypeApi.d.ts create mode 100644 dist/esm/apis/ProductTypeApi.js create mode 100644 dist/esm/apis/PublicCatalogApi.d.ts create mode 100644 dist/esm/apis/PublicCatalogApi.js create mode 100644 dist/esm/apis/PublicIpApi.d.ts create mode 100644 dist/esm/apis/PublicIpApi.js create mode 100644 dist/esm/apis/QuotaApi.d.ts create mode 100644 dist/esm/apis/QuotaApi.js create mode 100644 dist/esm/apis/RegionApi.d.ts create mode 100644 dist/esm/apis/RegionApi.js create mode 100644 dist/esm/apis/RouteApi.d.ts create mode 100644 dist/esm/apis/RouteApi.js create mode 100644 dist/esm/apis/RouteTableApi.d.ts create mode 100644 dist/esm/apis/RouteTableApi.js create mode 100644 dist/esm/apis/SecurityGroupApi.d.ts create mode 100644 dist/esm/apis/SecurityGroupApi.js create mode 100644 dist/esm/apis/SecurityGroupRuleApi.d.ts create mode 100644 dist/esm/apis/SecurityGroupRuleApi.js create mode 100644 dist/esm/apis/ServerCertificateApi.d.ts create mode 100644 dist/esm/apis/ServerCertificateApi.js create mode 100644 dist/esm/apis/SnapshotApi.d.ts create mode 100644 dist/esm/apis/SnapshotApi.js create mode 100644 dist/esm/apis/SubnetApi.d.ts create mode 100644 dist/esm/apis/SubnetApi.js create mode 100644 dist/esm/apis/SubregionApi.d.ts create mode 100644 dist/esm/apis/SubregionApi.js create mode 100644 dist/esm/apis/TagApi.d.ts create mode 100644 dist/esm/apis/TagApi.js create mode 100644 dist/esm/apis/TaskApi.d.ts create mode 100644 dist/esm/apis/TaskApi.js create mode 100644 dist/esm/apis/VirtualGatewayApi.d.ts create mode 100644 dist/esm/apis/VirtualGatewayApi.js create mode 100644 dist/esm/apis/VmApi.d.ts create mode 100644 dist/esm/apis/VmApi.js create mode 100644 dist/esm/apis/VolumeApi.d.ts create mode 100644 dist/esm/apis/VolumeApi.js create mode 100644 dist/esm/apis/VpnConnectionApi.d.ts create mode 100644 dist/esm/apis/VpnConnectionApi.js create mode 100644 dist/esm/apis/index.d.ts create mode 100644 dist/esm/apis/index.js create mode 100644 dist/esm/index.d.ts create mode 100644 dist/esm/index.js create mode 100644 dist/esm/models/AcceptNetPeeringRequest.d.ts create mode 100644 dist/esm/models/AcceptNetPeeringRequest.js create mode 100644 dist/esm/models/AcceptNetPeeringResponse.d.ts create mode 100644 dist/esm/models/AcceptNetPeeringResponse.js create mode 100644 dist/esm/models/AccepterNet.d.ts create mode 100644 dist/esm/models/AccepterNet.js create mode 100644 dist/esm/models/AccessKey.d.ts create mode 100644 dist/esm/models/AccessKey.js create mode 100644 dist/esm/models/AccessKeySecretKey.d.ts create mode 100644 dist/esm/models/AccessKeySecretKey.js create mode 100644 dist/esm/models/AccessLog.d.ts create mode 100644 dist/esm/models/AccessLog.js create mode 100644 dist/esm/models/Account.d.ts create mode 100644 dist/esm/models/Account.js create mode 100644 dist/esm/models/ApiAccessPolicy.d.ts create mode 100644 dist/esm/models/ApiAccessPolicy.js create mode 100644 dist/esm/models/ApiAccessRule.d.ts create mode 100644 dist/esm/models/ApiAccessRule.js create mode 100644 dist/esm/models/ApplicationStickyCookiePolicy.d.ts create mode 100644 dist/esm/models/ApplicationStickyCookiePolicy.js create mode 100644 dist/esm/models/BackendVmHealth.d.ts create mode 100644 dist/esm/models/BackendVmHealth.js create mode 100644 dist/esm/models/BlockDeviceMappingCreated.d.ts create mode 100644 dist/esm/models/BlockDeviceMappingCreated.js create mode 100644 dist/esm/models/BlockDeviceMappingImage.d.ts create mode 100644 dist/esm/models/BlockDeviceMappingImage.js create mode 100644 dist/esm/models/BlockDeviceMappingVmCreation.d.ts create mode 100644 dist/esm/models/BlockDeviceMappingVmCreation.js create mode 100644 dist/esm/models/BlockDeviceMappingVmUpdate.d.ts create mode 100644 dist/esm/models/BlockDeviceMappingVmUpdate.js create mode 100644 dist/esm/models/BsuCreated.d.ts create mode 100644 dist/esm/models/BsuCreated.js create mode 100644 dist/esm/models/BsuToCreate.d.ts create mode 100644 dist/esm/models/BsuToCreate.js create mode 100644 dist/esm/models/BsuToUpdateVm.d.ts create mode 100644 dist/esm/models/BsuToUpdateVm.js create mode 100644 dist/esm/models/Ca.d.ts create mode 100644 dist/esm/models/Ca.js create mode 100644 dist/esm/models/Catalog.d.ts create mode 100644 dist/esm/models/Catalog.js create mode 100644 dist/esm/models/CatalogEntry.d.ts create mode 100644 dist/esm/models/CatalogEntry.js create mode 100644 dist/esm/models/CheckAuthenticationRequest.d.ts create mode 100644 dist/esm/models/CheckAuthenticationRequest.js create mode 100644 dist/esm/models/CheckAuthenticationResponse.d.ts create mode 100644 dist/esm/models/CheckAuthenticationResponse.js create mode 100644 dist/esm/models/ClientGateway.d.ts create mode 100644 dist/esm/models/ClientGateway.js create mode 100644 dist/esm/models/ConsumptionEntry.d.ts create mode 100644 dist/esm/models/ConsumptionEntry.js create mode 100644 dist/esm/models/CreateAccessKeyRequest.d.ts create mode 100644 dist/esm/models/CreateAccessKeyRequest.js create mode 100644 dist/esm/models/CreateAccessKeyResponse.d.ts create mode 100644 dist/esm/models/CreateAccessKeyResponse.js create mode 100644 dist/esm/models/CreateAccountRequest.d.ts create mode 100644 dist/esm/models/CreateAccountRequest.js create mode 100644 dist/esm/models/CreateAccountResponse.d.ts create mode 100644 dist/esm/models/CreateAccountResponse.js create mode 100644 dist/esm/models/CreateApiAccessRuleRequest.d.ts create mode 100644 dist/esm/models/CreateApiAccessRuleRequest.js create mode 100644 dist/esm/models/CreateApiAccessRuleResponse.d.ts create mode 100644 dist/esm/models/CreateApiAccessRuleResponse.js create mode 100644 dist/esm/models/CreateCaRequest.d.ts create mode 100644 dist/esm/models/CreateCaRequest.js create mode 100644 dist/esm/models/CreateCaResponse.d.ts create mode 100644 dist/esm/models/CreateCaResponse.js create mode 100644 dist/esm/models/CreateClientGatewayRequest.d.ts create mode 100644 dist/esm/models/CreateClientGatewayRequest.js create mode 100644 dist/esm/models/CreateClientGatewayResponse.d.ts create mode 100644 dist/esm/models/CreateClientGatewayResponse.js create mode 100644 dist/esm/models/CreateDhcpOptionsRequest.d.ts create mode 100644 dist/esm/models/CreateDhcpOptionsRequest.js create mode 100644 dist/esm/models/CreateDhcpOptionsResponse.d.ts create mode 100644 dist/esm/models/CreateDhcpOptionsResponse.js create mode 100644 dist/esm/models/CreateDirectLinkInterfaceRequest.d.ts create mode 100644 dist/esm/models/CreateDirectLinkInterfaceRequest.js create mode 100644 dist/esm/models/CreateDirectLinkInterfaceResponse.d.ts create mode 100644 dist/esm/models/CreateDirectLinkInterfaceResponse.js create mode 100644 dist/esm/models/CreateDirectLinkRequest.d.ts create mode 100644 dist/esm/models/CreateDirectLinkRequest.js create mode 100644 dist/esm/models/CreateDirectLinkResponse.d.ts create mode 100644 dist/esm/models/CreateDirectLinkResponse.js create mode 100644 dist/esm/models/CreateFlexibleGpuRequest.d.ts create mode 100644 dist/esm/models/CreateFlexibleGpuRequest.js create mode 100644 dist/esm/models/CreateFlexibleGpuResponse.d.ts create mode 100644 dist/esm/models/CreateFlexibleGpuResponse.js create mode 100644 dist/esm/models/CreateImageExportTaskRequest.d.ts create mode 100644 dist/esm/models/CreateImageExportTaskRequest.js create mode 100644 dist/esm/models/CreateImageExportTaskResponse.d.ts create mode 100644 dist/esm/models/CreateImageExportTaskResponse.js create mode 100644 dist/esm/models/CreateImageRequest.d.ts create mode 100644 dist/esm/models/CreateImageRequest.js create mode 100644 dist/esm/models/CreateImageResponse.d.ts create mode 100644 dist/esm/models/CreateImageResponse.js create mode 100644 dist/esm/models/CreateInternetServiceRequest.d.ts create mode 100644 dist/esm/models/CreateInternetServiceRequest.js create mode 100644 dist/esm/models/CreateInternetServiceResponse.d.ts create mode 100644 dist/esm/models/CreateInternetServiceResponse.js create mode 100644 dist/esm/models/CreateKeypairRequest.d.ts create mode 100644 dist/esm/models/CreateKeypairRequest.js create mode 100644 dist/esm/models/CreateKeypairResponse.d.ts create mode 100644 dist/esm/models/CreateKeypairResponse.js create mode 100644 dist/esm/models/CreateListenerRuleRequest.d.ts create mode 100644 dist/esm/models/CreateListenerRuleRequest.js create mode 100644 dist/esm/models/CreateListenerRuleResponse.d.ts create mode 100644 dist/esm/models/CreateListenerRuleResponse.js create mode 100644 dist/esm/models/CreateLoadBalancerListenersRequest.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerListenersRequest.js create mode 100644 dist/esm/models/CreateLoadBalancerListenersResponse.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerListenersResponse.js create mode 100644 dist/esm/models/CreateLoadBalancerPolicyRequest.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerPolicyRequest.js create mode 100644 dist/esm/models/CreateLoadBalancerPolicyResponse.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerPolicyResponse.js create mode 100644 dist/esm/models/CreateLoadBalancerRequest.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerRequest.js create mode 100644 dist/esm/models/CreateLoadBalancerResponse.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerResponse.js create mode 100644 dist/esm/models/CreateLoadBalancerTagsRequest.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerTagsRequest.js create mode 100644 dist/esm/models/CreateLoadBalancerTagsResponse.d.ts create mode 100644 dist/esm/models/CreateLoadBalancerTagsResponse.js create mode 100644 dist/esm/models/CreateNatServiceRequest.d.ts create mode 100644 dist/esm/models/CreateNatServiceRequest.js create mode 100644 dist/esm/models/CreateNatServiceResponse.d.ts create mode 100644 dist/esm/models/CreateNatServiceResponse.js create mode 100644 dist/esm/models/CreateNetAccessPointRequest.d.ts create mode 100644 dist/esm/models/CreateNetAccessPointRequest.js create mode 100644 dist/esm/models/CreateNetAccessPointResponse.d.ts create mode 100644 dist/esm/models/CreateNetAccessPointResponse.js create mode 100644 dist/esm/models/CreateNetPeeringRequest.d.ts create mode 100644 dist/esm/models/CreateNetPeeringRequest.js create mode 100644 dist/esm/models/CreateNetPeeringResponse.d.ts create mode 100644 dist/esm/models/CreateNetPeeringResponse.js create mode 100644 dist/esm/models/CreateNetRequest.d.ts create mode 100644 dist/esm/models/CreateNetRequest.js create mode 100644 dist/esm/models/CreateNetResponse.d.ts create mode 100644 dist/esm/models/CreateNetResponse.js create mode 100644 dist/esm/models/CreateNicRequest.d.ts create mode 100644 dist/esm/models/CreateNicRequest.js create mode 100644 dist/esm/models/CreateNicResponse.d.ts create mode 100644 dist/esm/models/CreateNicResponse.js create mode 100644 dist/esm/models/CreatePublicIpRequest.d.ts create mode 100644 dist/esm/models/CreatePublicIpRequest.js create mode 100644 dist/esm/models/CreatePublicIpResponse.d.ts create mode 100644 dist/esm/models/CreatePublicIpResponse.js create mode 100644 dist/esm/models/CreateRouteRequest.d.ts create mode 100644 dist/esm/models/CreateRouteRequest.js create mode 100644 dist/esm/models/CreateRouteResponse.d.ts create mode 100644 dist/esm/models/CreateRouteResponse.js create mode 100644 dist/esm/models/CreateRouteTableRequest.d.ts create mode 100644 dist/esm/models/CreateRouteTableRequest.js create mode 100644 dist/esm/models/CreateRouteTableResponse.d.ts create mode 100644 dist/esm/models/CreateRouteTableResponse.js create mode 100644 dist/esm/models/CreateSecurityGroupRequest.d.ts create mode 100644 dist/esm/models/CreateSecurityGroupRequest.js create mode 100644 dist/esm/models/CreateSecurityGroupResponse.d.ts create mode 100644 dist/esm/models/CreateSecurityGroupResponse.js create mode 100644 dist/esm/models/CreateSecurityGroupRuleRequest.d.ts create mode 100644 dist/esm/models/CreateSecurityGroupRuleRequest.js create mode 100644 dist/esm/models/CreateSecurityGroupRuleResponse.d.ts create mode 100644 dist/esm/models/CreateSecurityGroupRuleResponse.js create mode 100644 dist/esm/models/CreateServerCertificateRequest.d.ts create mode 100644 dist/esm/models/CreateServerCertificateRequest.js create mode 100644 dist/esm/models/CreateServerCertificateResponse.d.ts create mode 100644 dist/esm/models/CreateServerCertificateResponse.js create mode 100644 dist/esm/models/CreateSnapshotExportTaskRequest.d.ts create mode 100644 dist/esm/models/CreateSnapshotExportTaskRequest.js create mode 100644 dist/esm/models/CreateSnapshotExportTaskResponse.d.ts create mode 100644 dist/esm/models/CreateSnapshotExportTaskResponse.js create mode 100644 dist/esm/models/CreateSnapshotRequest.d.ts create mode 100644 dist/esm/models/CreateSnapshotRequest.js create mode 100644 dist/esm/models/CreateSnapshotResponse.d.ts create mode 100644 dist/esm/models/CreateSnapshotResponse.js create mode 100644 dist/esm/models/CreateSubnetRequest.d.ts create mode 100644 dist/esm/models/CreateSubnetRequest.js create mode 100644 dist/esm/models/CreateSubnetResponse.d.ts create mode 100644 dist/esm/models/CreateSubnetResponse.js create mode 100644 dist/esm/models/CreateTagsRequest.d.ts create mode 100644 dist/esm/models/CreateTagsRequest.js create mode 100644 dist/esm/models/CreateTagsResponse.d.ts create mode 100644 dist/esm/models/CreateTagsResponse.js create mode 100644 dist/esm/models/CreateVirtualGatewayRequest.d.ts create mode 100644 dist/esm/models/CreateVirtualGatewayRequest.js create mode 100644 dist/esm/models/CreateVirtualGatewayResponse.d.ts create mode 100644 dist/esm/models/CreateVirtualGatewayResponse.js create mode 100644 dist/esm/models/CreateVmsRequest.d.ts create mode 100644 dist/esm/models/CreateVmsRequest.js create mode 100644 dist/esm/models/CreateVmsResponse.d.ts create mode 100644 dist/esm/models/CreateVmsResponse.js create mode 100644 dist/esm/models/CreateVolumeRequest.d.ts create mode 100644 dist/esm/models/CreateVolumeRequest.js create mode 100644 dist/esm/models/CreateVolumeResponse.d.ts create mode 100644 dist/esm/models/CreateVolumeResponse.js create mode 100644 dist/esm/models/CreateVpnConnectionRequest.d.ts create mode 100644 dist/esm/models/CreateVpnConnectionRequest.js create mode 100644 dist/esm/models/CreateVpnConnectionResponse.d.ts create mode 100644 dist/esm/models/CreateVpnConnectionResponse.js create mode 100644 dist/esm/models/CreateVpnConnectionRouteRequest.d.ts create mode 100644 dist/esm/models/CreateVpnConnectionRouteRequest.js create mode 100644 dist/esm/models/CreateVpnConnectionRouteResponse.d.ts create mode 100644 dist/esm/models/CreateVpnConnectionRouteResponse.js create mode 100644 dist/esm/models/DeleteAccessKeyRequest.d.ts create mode 100644 dist/esm/models/DeleteAccessKeyRequest.js create mode 100644 dist/esm/models/DeleteAccessKeyResponse.d.ts create mode 100644 dist/esm/models/DeleteAccessKeyResponse.js create mode 100644 dist/esm/models/DeleteApiAccessRuleRequest.d.ts create mode 100644 dist/esm/models/DeleteApiAccessRuleRequest.js create mode 100644 dist/esm/models/DeleteApiAccessRuleResponse.d.ts create mode 100644 dist/esm/models/DeleteApiAccessRuleResponse.js create mode 100644 dist/esm/models/DeleteCaRequest.d.ts create mode 100644 dist/esm/models/DeleteCaRequest.js create mode 100644 dist/esm/models/DeleteCaResponse.d.ts create mode 100644 dist/esm/models/DeleteCaResponse.js create mode 100644 dist/esm/models/DeleteClientGatewayRequest.d.ts create mode 100644 dist/esm/models/DeleteClientGatewayRequest.js create mode 100644 dist/esm/models/DeleteClientGatewayResponse.d.ts create mode 100644 dist/esm/models/DeleteClientGatewayResponse.js create mode 100644 dist/esm/models/DeleteDhcpOptionsRequest.d.ts create mode 100644 dist/esm/models/DeleteDhcpOptionsRequest.js create mode 100644 dist/esm/models/DeleteDhcpOptionsResponse.d.ts create mode 100644 dist/esm/models/DeleteDhcpOptionsResponse.js create mode 100644 dist/esm/models/DeleteDirectLinkInterfaceRequest.d.ts create mode 100644 dist/esm/models/DeleteDirectLinkInterfaceRequest.js create mode 100644 dist/esm/models/DeleteDirectLinkInterfaceResponse.d.ts create mode 100644 dist/esm/models/DeleteDirectLinkInterfaceResponse.js create mode 100644 dist/esm/models/DeleteDirectLinkRequest.d.ts create mode 100644 dist/esm/models/DeleteDirectLinkRequest.js create mode 100644 dist/esm/models/DeleteDirectLinkResponse.d.ts create mode 100644 dist/esm/models/DeleteDirectLinkResponse.js create mode 100644 dist/esm/models/DeleteExportTaskRequest.d.ts create mode 100644 dist/esm/models/DeleteExportTaskRequest.js create mode 100644 dist/esm/models/DeleteExportTaskResponse.d.ts create mode 100644 dist/esm/models/DeleteExportTaskResponse.js create mode 100644 dist/esm/models/DeleteFlexibleGpuRequest.d.ts create mode 100644 dist/esm/models/DeleteFlexibleGpuRequest.js create mode 100644 dist/esm/models/DeleteFlexibleGpuResponse.d.ts create mode 100644 dist/esm/models/DeleteFlexibleGpuResponse.js create mode 100644 dist/esm/models/DeleteImageRequest.d.ts create mode 100644 dist/esm/models/DeleteImageRequest.js create mode 100644 dist/esm/models/DeleteImageResponse.d.ts create mode 100644 dist/esm/models/DeleteImageResponse.js create mode 100644 dist/esm/models/DeleteInternetServiceRequest.d.ts create mode 100644 dist/esm/models/DeleteInternetServiceRequest.js create mode 100644 dist/esm/models/DeleteInternetServiceResponse.d.ts create mode 100644 dist/esm/models/DeleteInternetServiceResponse.js create mode 100644 dist/esm/models/DeleteKeypairRequest.d.ts create mode 100644 dist/esm/models/DeleteKeypairRequest.js create mode 100644 dist/esm/models/DeleteKeypairResponse.d.ts create mode 100644 dist/esm/models/DeleteKeypairResponse.js create mode 100644 dist/esm/models/DeleteListenerRuleRequest.d.ts create mode 100644 dist/esm/models/DeleteListenerRuleRequest.js create mode 100644 dist/esm/models/DeleteListenerRuleResponse.d.ts create mode 100644 dist/esm/models/DeleteListenerRuleResponse.js create mode 100644 dist/esm/models/DeleteLoadBalancerListenersRequest.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerListenersRequest.js create mode 100644 dist/esm/models/DeleteLoadBalancerListenersResponse.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerListenersResponse.js create mode 100644 dist/esm/models/DeleteLoadBalancerPolicyRequest.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerPolicyRequest.js create mode 100644 dist/esm/models/DeleteLoadBalancerPolicyResponse.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerPolicyResponse.js create mode 100644 dist/esm/models/DeleteLoadBalancerRequest.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerRequest.js create mode 100644 dist/esm/models/DeleteLoadBalancerResponse.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerResponse.js create mode 100644 dist/esm/models/DeleteLoadBalancerTagsRequest.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerTagsRequest.js create mode 100644 dist/esm/models/DeleteLoadBalancerTagsResponse.d.ts create mode 100644 dist/esm/models/DeleteLoadBalancerTagsResponse.js create mode 100644 dist/esm/models/DeleteNatServiceRequest.d.ts create mode 100644 dist/esm/models/DeleteNatServiceRequest.js create mode 100644 dist/esm/models/DeleteNatServiceResponse.d.ts create mode 100644 dist/esm/models/DeleteNatServiceResponse.js create mode 100644 dist/esm/models/DeleteNetAccessPointRequest.d.ts create mode 100644 dist/esm/models/DeleteNetAccessPointRequest.js create mode 100644 dist/esm/models/DeleteNetAccessPointResponse.d.ts create mode 100644 dist/esm/models/DeleteNetAccessPointResponse.js create mode 100644 dist/esm/models/DeleteNetPeeringRequest.d.ts create mode 100644 dist/esm/models/DeleteNetPeeringRequest.js create mode 100644 dist/esm/models/DeleteNetPeeringResponse.d.ts create mode 100644 dist/esm/models/DeleteNetPeeringResponse.js create mode 100644 dist/esm/models/DeleteNetRequest.d.ts create mode 100644 dist/esm/models/DeleteNetRequest.js create mode 100644 dist/esm/models/DeleteNetResponse.d.ts create mode 100644 dist/esm/models/DeleteNetResponse.js create mode 100644 dist/esm/models/DeleteNicRequest.d.ts create mode 100644 dist/esm/models/DeleteNicRequest.js create mode 100644 dist/esm/models/DeleteNicResponse.d.ts create mode 100644 dist/esm/models/DeleteNicResponse.js create mode 100644 dist/esm/models/DeletePublicIpRequest.d.ts create mode 100644 dist/esm/models/DeletePublicIpRequest.js create mode 100644 dist/esm/models/DeletePublicIpResponse.d.ts create mode 100644 dist/esm/models/DeletePublicIpResponse.js create mode 100644 dist/esm/models/DeleteRouteRequest.d.ts create mode 100644 dist/esm/models/DeleteRouteRequest.js create mode 100644 dist/esm/models/DeleteRouteResponse.d.ts create mode 100644 dist/esm/models/DeleteRouteResponse.js create mode 100644 dist/esm/models/DeleteRouteTableRequest.d.ts create mode 100644 dist/esm/models/DeleteRouteTableRequest.js create mode 100644 dist/esm/models/DeleteRouteTableResponse.d.ts create mode 100644 dist/esm/models/DeleteRouteTableResponse.js create mode 100644 dist/esm/models/DeleteSecurityGroupRequest.d.ts create mode 100644 dist/esm/models/DeleteSecurityGroupRequest.js create mode 100644 dist/esm/models/DeleteSecurityGroupResponse.d.ts create mode 100644 dist/esm/models/DeleteSecurityGroupResponse.js create mode 100644 dist/esm/models/DeleteSecurityGroupRuleRequest.d.ts create mode 100644 dist/esm/models/DeleteSecurityGroupRuleRequest.js create mode 100644 dist/esm/models/DeleteSecurityGroupRuleResponse.d.ts create mode 100644 dist/esm/models/DeleteSecurityGroupRuleResponse.js create mode 100644 dist/esm/models/DeleteServerCertificateRequest.d.ts create mode 100644 dist/esm/models/DeleteServerCertificateRequest.js create mode 100644 dist/esm/models/DeleteServerCertificateResponse.d.ts create mode 100644 dist/esm/models/DeleteServerCertificateResponse.js create mode 100644 dist/esm/models/DeleteSnapshotRequest.d.ts create mode 100644 dist/esm/models/DeleteSnapshotRequest.js create mode 100644 dist/esm/models/DeleteSnapshotResponse.d.ts create mode 100644 dist/esm/models/DeleteSnapshotResponse.js create mode 100644 dist/esm/models/DeleteSubnetRequest.d.ts create mode 100644 dist/esm/models/DeleteSubnetRequest.js create mode 100644 dist/esm/models/DeleteSubnetResponse.d.ts create mode 100644 dist/esm/models/DeleteSubnetResponse.js create mode 100644 dist/esm/models/DeleteTagsRequest.d.ts create mode 100644 dist/esm/models/DeleteTagsRequest.js create mode 100644 dist/esm/models/DeleteTagsResponse.d.ts create mode 100644 dist/esm/models/DeleteTagsResponse.js create mode 100644 dist/esm/models/DeleteVirtualGatewayRequest.d.ts create mode 100644 dist/esm/models/DeleteVirtualGatewayRequest.js create mode 100644 dist/esm/models/DeleteVirtualGatewayResponse.d.ts create mode 100644 dist/esm/models/DeleteVirtualGatewayResponse.js create mode 100644 dist/esm/models/DeleteVmsRequest.d.ts create mode 100644 dist/esm/models/DeleteVmsRequest.js create mode 100644 dist/esm/models/DeleteVmsResponse.d.ts create mode 100644 dist/esm/models/DeleteVmsResponse.js create mode 100644 dist/esm/models/DeleteVolumeRequest.d.ts create mode 100644 dist/esm/models/DeleteVolumeRequest.js create mode 100644 dist/esm/models/DeleteVolumeResponse.d.ts create mode 100644 dist/esm/models/DeleteVolumeResponse.js create mode 100644 dist/esm/models/DeleteVpnConnectionRequest.d.ts create mode 100644 dist/esm/models/DeleteVpnConnectionRequest.js create mode 100644 dist/esm/models/DeleteVpnConnectionResponse.d.ts create mode 100644 dist/esm/models/DeleteVpnConnectionResponse.js create mode 100644 dist/esm/models/DeleteVpnConnectionRouteRequest.d.ts create mode 100644 dist/esm/models/DeleteVpnConnectionRouteRequest.js create mode 100644 dist/esm/models/DeleteVpnConnectionRouteResponse.d.ts create mode 100644 dist/esm/models/DeleteVpnConnectionRouteResponse.js create mode 100644 dist/esm/models/DeregisterVmsInLoadBalancerRequest.d.ts create mode 100644 dist/esm/models/DeregisterVmsInLoadBalancerRequest.js create mode 100644 dist/esm/models/DeregisterVmsInLoadBalancerResponse.d.ts create mode 100644 dist/esm/models/DeregisterVmsInLoadBalancerResponse.js create mode 100644 dist/esm/models/DhcpOptionsSet.d.ts create mode 100644 dist/esm/models/DhcpOptionsSet.js create mode 100644 dist/esm/models/DirectLink.d.ts create mode 100644 dist/esm/models/DirectLink.js create mode 100644 dist/esm/models/DirectLinkInterface.d.ts create mode 100644 dist/esm/models/DirectLinkInterface.js create mode 100644 dist/esm/models/DirectLinkInterfaces.d.ts create mode 100644 dist/esm/models/DirectLinkInterfaces.js create mode 100644 dist/esm/models/ErrorResponse.d.ts create mode 100644 dist/esm/models/ErrorResponse.js create mode 100644 dist/esm/models/Errors.d.ts create mode 100644 dist/esm/models/Errors.js create mode 100644 dist/esm/models/FiltersAccessKeys.d.ts create mode 100644 dist/esm/models/FiltersAccessKeys.js create mode 100644 dist/esm/models/FiltersApiAccessRule.d.ts create mode 100644 dist/esm/models/FiltersApiAccessRule.js create mode 100644 dist/esm/models/FiltersApiLog.d.ts create mode 100644 dist/esm/models/FiltersApiLog.js create mode 100644 dist/esm/models/FiltersCa.d.ts create mode 100644 dist/esm/models/FiltersCa.js create mode 100644 dist/esm/models/FiltersClientGateway.d.ts create mode 100644 dist/esm/models/FiltersClientGateway.js create mode 100644 dist/esm/models/FiltersDhcpOptions.d.ts create mode 100644 dist/esm/models/FiltersDhcpOptions.js create mode 100644 dist/esm/models/FiltersDirectLink.d.ts create mode 100644 dist/esm/models/FiltersDirectLink.js create mode 100644 dist/esm/models/FiltersDirectLinkInterface.d.ts create mode 100644 dist/esm/models/FiltersDirectLinkInterface.js create mode 100644 dist/esm/models/FiltersExportTask.d.ts create mode 100644 dist/esm/models/FiltersExportTask.js create mode 100644 dist/esm/models/FiltersFlexibleGpu.d.ts create mode 100644 dist/esm/models/FiltersFlexibleGpu.js create mode 100644 dist/esm/models/FiltersImage.d.ts create mode 100644 dist/esm/models/FiltersImage.js create mode 100644 dist/esm/models/FiltersInternetService.d.ts create mode 100644 dist/esm/models/FiltersInternetService.js create mode 100644 dist/esm/models/FiltersKeypair.d.ts create mode 100644 dist/esm/models/FiltersKeypair.js create mode 100644 dist/esm/models/FiltersListenerRule.d.ts create mode 100644 dist/esm/models/FiltersListenerRule.js create mode 100644 dist/esm/models/FiltersLoadBalancer.d.ts create mode 100644 dist/esm/models/FiltersLoadBalancer.js create mode 100644 dist/esm/models/FiltersNatService.d.ts create mode 100644 dist/esm/models/FiltersNatService.js create mode 100644 dist/esm/models/FiltersNet.d.ts create mode 100644 dist/esm/models/FiltersNet.js create mode 100644 dist/esm/models/FiltersNetAccessPoint.d.ts create mode 100644 dist/esm/models/FiltersNetAccessPoint.js create mode 100644 dist/esm/models/FiltersNetPeering.d.ts create mode 100644 dist/esm/models/FiltersNetPeering.js create mode 100644 dist/esm/models/FiltersNic.d.ts create mode 100644 dist/esm/models/FiltersNic.js create mode 100644 dist/esm/models/FiltersProductType.d.ts create mode 100644 dist/esm/models/FiltersProductType.js create mode 100644 dist/esm/models/FiltersPublicIp.d.ts create mode 100644 dist/esm/models/FiltersPublicIp.js create mode 100644 dist/esm/models/FiltersQuota.d.ts create mode 100644 dist/esm/models/FiltersQuota.js create mode 100644 dist/esm/models/FiltersRouteTable.d.ts create mode 100644 dist/esm/models/FiltersRouteTable.js create mode 100644 dist/esm/models/FiltersSecurityGroup.d.ts create mode 100644 dist/esm/models/FiltersSecurityGroup.js create mode 100644 dist/esm/models/FiltersServerCertificate.d.ts create mode 100644 dist/esm/models/FiltersServerCertificate.js create mode 100644 dist/esm/models/FiltersService.d.ts create mode 100644 dist/esm/models/FiltersService.js create mode 100644 dist/esm/models/FiltersSnapshot.d.ts create mode 100644 dist/esm/models/FiltersSnapshot.js create mode 100644 dist/esm/models/FiltersSubnet.d.ts create mode 100644 dist/esm/models/FiltersSubnet.js create mode 100644 dist/esm/models/FiltersSubregion.d.ts create mode 100644 dist/esm/models/FiltersSubregion.js create mode 100644 dist/esm/models/FiltersTag.d.ts create mode 100644 dist/esm/models/FiltersTag.js create mode 100644 dist/esm/models/FiltersVirtualGateway.d.ts create mode 100644 dist/esm/models/FiltersVirtualGateway.js create mode 100644 dist/esm/models/FiltersVm.d.ts create mode 100644 dist/esm/models/FiltersVm.js create mode 100644 dist/esm/models/FiltersVmType.d.ts create mode 100644 dist/esm/models/FiltersVmType.js create mode 100644 dist/esm/models/FiltersVmsState.d.ts create mode 100644 dist/esm/models/FiltersVmsState.js create mode 100644 dist/esm/models/FiltersVolume.d.ts create mode 100644 dist/esm/models/FiltersVolume.js create mode 100644 dist/esm/models/FiltersVpnConnection.d.ts create mode 100644 dist/esm/models/FiltersVpnConnection.js create mode 100644 dist/esm/models/FlexibleGpu.d.ts create mode 100644 dist/esm/models/FlexibleGpu.js create mode 100644 dist/esm/models/FlexibleGpuCatalog.d.ts create mode 100644 dist/esm/models/FlexibleGpuCatalog.js create mode 100644 dist/esm/models/HealthCheck.d.ts create mode 100644 dist/esm/models/HealthCheck.js create mode 100644 dist/esm/models/Image.d.ts create mode 100644 dist/esm/models/Image.js create mode 100644 dist/esm/models/ImageExportTask.d.ts create mode 100644 dist/esm/models/ImageExportTask.js create mode 100644 dist/esm/models/InternetService.d.ts create mode 100644 dist/esm/models/InternetService.js create mode 100644 dist/esm/models/Keypair.d.ts create mode 100644 dist/esm/models/Keypair.js create mode 100644 dist/esm/models/KeypairCreated.d.ts create mode 100644 dist/esm/models/KeypairCreated.js create mode 100644 dist/esm/models/LinkFlexibleGpuRequest.d.ts create mode 100644 dist/esm/models/LinkFlexibleGpuRequest.js create mode 100644 dist/esm/models/LinkFlexibleGpuResponse.d.ts create mode 100644 dist/esm/models/LinkFlexibleGpuResponse.js create mode 100644 dist/esm/models/LinkInternetServiceRequest.d.ts create mode 100644 dist/esm/models/LinkInternetServiceRequest.js create mode 100644 dist/esm/models/LinkInternetServiceResponse.d.ts create mode 100644 dist/esm/models/LinkInternetServiceResponse.js create mode 100644 dist/esm/models/LinkLoadBalancerBackendMachinesRequest.d.ts create mode 100644 dist/esm/models/LinkLoadBalancerBackendMachinesRequest.js create mode 100644 dist/esm/models/LinkLoadBalancerBackendMachinesResponse.d.ts create mode 100644 dist/esm/models/LinkLoadBalancerBackendMachinesResponse.js create mode 100644 dist/esm/models/LinkNic.d.ts create mode 100644 dist/esm/models/LinkNic.js create mode 100644 dist/esm/models/LinkNicLight.d.ts create mode 100644 dist/esm/models/LinkNicLight.js create mode 100644 dist/esm/models/LinkNicRequest.d.ts create mode 100644 dist/esm/models/LinkNicRequest.js create mode 100644 dist/esm/models/LinkNicResponse.d.ts create mode 100644 dist/esm/models/LinkNicResponse.js create mode 100644 dist/esm/models/LinkNicToUpdate.d.ts create mode 100644 dist/esm/models/LinkNicToUpdate.js create mode 100644 dist/esm/models/LinkPrivateIpsRequest.d.ts create mode 100644 dist/esm/models/LinkPrivateIpsRequest.js create mode 100644 dist/esm/models/LinkPrivateIpsResponse.d.ts create mode 100644 dist/esm/models/LinkPrivateIpsResponse.js create mode 100644 dist/esm/models/LinkPublicIp.d.ts create mode 100644 dist/esm/models/LinkPublicIp.js create mode 100644 dist/esm/models/LinkPublicIpLightForVm.d.ts create mode 100644 dist/esm/models/LinkPublicIpLightForVm.js create mode 100644 dist/esm/models/LinkPublicIpRequest.d.ts create mode 100644 dist/esm/models/LinkPublicIpRequest.js create mode 100644 dist/esm/models/LinkPublicIpResponse.d.ts create mode 100644 dist/esm/models/LinkPublicIpResponse.js create mode 100644 dist/esm/models/LinkRouteTable.d.ts create mode 100644 dist/esm/models/LinkRouteTable.js create mode 100644 dist/esm/models/LinkRouteTableRequest.d.ts create mode 100644 dist/esm/models/LinkRouteTableRequest.js create mode 100644 dist/esm/models/LinkRouteTableResponse.d.ts create mode 100644 dist/esm/models/LinkRouteTableResponse.js create mode 100644 dist/esm/models/LinkVirtualGatewayRequest.d.ts create mode 100644 dist/esm/models/LinkVirtualGatewayRequest.js create mode 100644 dist/esm/models/LinkVirtualGatewayResponse.d.ts create mode 100644 dist/esm/models/LinkVirtualGatewayResponse.js create mode 100644 dist/esm/models/LinkVolumeRequest.d.ts create mode 100644 dist/esm/models/LinkVolumeRequest.js create mode 100644 dist/esm/models/LinkVolumeResponse.d.ts create mode 100644 dist/esm/models/LinkVolumeResponse.js create mode 100644 dist/esm/models/LinkedVolume.d.ts create mode 100644 dist/esm/models/LinkedVolume.js create mode 100644 dist/esm/models/Listener.d.ts create mode 100644 dist/esm/models/Listener.js create mode 100644 dist/esm/models/ListenerForCreation.d.ts create mode 100644 dist/esm/models/ListenerForCreation.js create mode 100644 dist/esm/models/ListenerRule.d.ts create mode 100644 dist/esm/models/ListenerRule.js create mode 100644 dist/esm/models/ListenerRuleForCreation.d.ts create mode 100644 dist/esm/models/ListenerRuleForCreation.js create mode 100644 dist/esm/models/LoadBalancer.d.ts create mode 100644 dist/esm/models/LoadBalancer.js create mode 100644 dist/esm/models/LoadBalancerLight.d.ts create mode 100644 dist/esm/models/LoadBalancerLight.js create mode 100644 dist/esm/models/LoadBalancerStickyCookiePolicy.d.ts create mode 100644 dist/esm/models/LoadBalancerStickyCookiePolicy.js create mode 100644 dist/esm/models/LoadBalancerTag.d.ts create mode 100644 dist/esm/models/LoadBalancerTag.js create mode 100644 dist/esm/models/Location.d.ts create mode 100644 dist/esm/models/Location.js create mode 100644 dist/esm/models/Log.d.ts create mode 100644 dist/esm/models/Log.js create mode 100644 dist/esm/models/MaintenanceEvent.d.ts create mode 100644 dist/esm/models/MaintenanceEvent.js create mode 100644 dist/esm/models/ModelResponseContext.d.ts create mode 100644 dist/esm/models/ModelResponseContext.js create mode 100644 dist/esm/models/NatService.d.ts create mode 100644 dist/esm/models/NatService.js create mode 100644 dist/esm/models/Net.d.ts create mode 100644 dist/esm/models/Net.js create mode 100644 dist/esm/models/NetAccessPoint.d.ts create mode 100644 dist/esm/models/NetAccessPoint.js create mode 100644 dist/esm/models/NetPeering.d.ts create mode 100644 dist/esm/models/NetPeering.js create mode 100644 dist/esm/models/NetPeeringState.d.ts create mode 100644 dist/esm/models/NetPeeringState.js create mode 100644 dist/esm/models/NetToVirtualGatewayLink.d.ts create mode 100644 dist/esm/models/NetToVirtualGatewayLink.js create mode 100644 dist/esm/models/Nic.d.ts create mode 100644 dist/esm/models/Nic.js create mode 100644 dist/esm/models/NicForVmCreation.d.ts create mode 100644 dist/esm/models/NicForVmCreation.js create mode 100644 dist/esm/models/NicLight.d.ts create mode 100644 dist/esm/models/NicLight.js create mode 100644 dist/esm/models/OsuApiKey.d.ts create mode 100644 dist/esm/models/OsuApiKey.js create mode 100644 dist/esm/models/OsuExportImageExportTask.d.ts create mode 100644 dist/esm/models/OsuExportImageExportTask.js create mode 100644 dist/esm/models/OsuExportSnapshotExportTask.d.ts create mode 100644 dist/esm/models/OsuExportSnapshotExportTask.js create mode 100644 dist/esm/models/OsuExportToCreate.d.ts create mode 100644 dist/esm/models/OsuExportToCreate.js create mode 100644 dist/esm/models/PermissionsOnResource.d.ts create mode 100644 dist/esm/models/PermissionsOnResource.js create mode 100644 dist/esm/models/PermissionsOnResourceCreation.d.ts create mode 100644 dist/esm/models/PermissionsOnResourceCreation.js create mode 100644 dist/esm/models/Phase1Options.d.ts create mode 100644 dist/esm/models/Phase1Options.js create mode 100644 dist/esm/models/Phase2Options.d.ts create mode 100644 dist/esm/models/Phase2Options.js create mode 100644 dist/esm/models/Placement.d.ts create mode 100644 dist/esm/models/Placement.js create mode 100644 dist/esm/models/PrivateIp.d.ts create mode 100644 dist/esm/models/PrivateIp.js create mode 100644 dist/esm/models/PrivateIpLight.d.ts create mode 100644 dist/esm/models/PrivateIpLight.js create mode 100644 dist/esm/models/PrivateIpLightForVm.d.ts create mode 100644 dist/esm/models/PrivateIpLightForVm.js create mode 100644 dist/esm/models/ProductType.d.ts create mode 100644 dist/esm/models/ProductType.js create mode 100644 dist/esm/models/PublicIp.d.ts create mode 100644 dist/esm/models/PublicIp.js create mode 100644 dist/esm/models/PublicIpLight.d.ts create mode 100644 dist/esm/models/PublicIpLight.js create mode 100644 dist/esm/models/Quota.d.ts create mode 100644 dist/esm/models/Quota.js create mode 100644 dist/esm/models/QuotaTypes.d.ts create mode 100644 dist/esm/models/QuotaTypes.js create mode 100644 dist/esm/models/ReadAccessKeysRequest.d.ts create mode 100644 dist/esm/models/ReadAccessKeysRequest.js create mode 100644 dist/esm/models/ReadAccessKeysResponse.d.ts create mode 100644 dist/esm/models/ReadAccessKeysResponse.js create mode 100644 dist/esm/models/ReadAccountsRequest.d.ts create mode 100644 dist/esm/models/ReadAccountsRequest.js create mode 100644 dist/esm/models/ReadAccountsResponse.d.ts create mode 100644 dist/esm/models/ReadAccountsResponse.js create mode 100644 dist/esm/models/ReadAdminPasswordRequest.d.ts create mode 100644 dist/esm/models/ReadAdminPasswordRequest.js create mode 100644 dist/esm/models/ReadAdminPasswordResponse.d.ts create mode 100644 dist/esm/models/ReadAdminPasswordResponse.js create mode 100644 dist/esm/models/ReadApiAccessPolicyRequest.d.ts create mode 100644 dist/esm/models/ReadApiAccessPolicyRequest.js create mode 100644 dist/esm/models/ReadApiAccessPolicyResponse.d.ts create mode 100644 dist/esm/models/ReadApiAccessPolicyResponse.js create mode 100644 dist/esm/models/ReadApiAccessRulesRequest.d.ts create mode 100644 dist/esm/models/ReadApiAccessRulesRequest.js create mode 100644 dist/esm/models/ReadApiAccessRulesResponse.d.ts create mode 100644 dist/esm/models/ReadApiAccessRulesResponse.js create mode 100644 dist/esm/models/ReadApiLogsRequest.d.ts create mode 100644 dist/esm/models/ReadApiLogsRequest.js create mode 100644 dist/esm/models/ReadApiLogsResponse.d.ts create mode 100644 dist/esm/models/ReadApiLogsResponse.js create mode 100644 dist/esm/models/ReadCasRequest.d.ts create mode 100644 dist/esm/models/ReadCasRequest.js create mode 100644 dist/esm/models/ReadCasResponse.d.ts create mode 100644 dist/esm/models/ReadCasResponse.js create mode 100644 dist/esm/models/ReadCatalogRequest.d.ts create mode 100644 dist/esm/models/ReadCatalogRequest.js create mode 100644 dist/esm/models/ReadCatalogResponse.d.ts create mode 100644 dist/esm/models/ReadCatalogResponse.js create mode 100644 dist/esm/models/ReadClientGatewaysRequest.d.ts create mode 100644 dist/esm/models/ReadClientGatewaysRequest.js create mode 100644 dist/esm/models/ReadClientGatewaysResponse.d.ts create mode 100644 dist/esm/models/ReadClientGatewaysResponse.js create mode 100644 dist/esm/models/ReadConsoleOutputRequest.d.ts create mode 100644 dist/esm/models/ReadConsoleOutputRequest.js create mode 100644 dist/esm/models/ReadConsoleOutputResponse.d.ts create mode 100644 dist/esm/models/ReadConsoleOutputResponse.js create mode 100644 dist/esm/models/ReadConsumptionAccountRequest.d.ts create mode 100644 dist/esm/models/ReadConsumptionAccountRequest.js create mode 100644 dist/esm/models/ReadConsumptionAccountResponse.d.ts create mode 100644 dist/esm/models/ReadConsumptionAccountResponse.js create mode 100644 dist/esm/models/ReadDhcpOptionsRequest.d.ts create mode 100644 dist/esm/models/ReadDhcpOptionsRequest.js create mode 100644 dist/esm/models/ReadDhcpOptionsResponse.d.ts create mode 100644 dist/esm/models/ReadDhcpOptionsResponse.js create mode 100644 dist/esm/models/ReadDirectLinkInterfacesRequest.d.ts create mode 100644 dist/esm/models/ReadDirectLinkInterfacesRequest.js create mode 100644 dist/esm/models/ReadDirectLinkInterfacesResponse.d.ts create mode 100644 dist/esm/models/ReadDirectLinkInterfacesResponse.js create mode 100644 dist/esm/models/ReadDirectLinksRequest.d.ts create mode 100644 dist/esm/models/ReadDirectLinksRequest.js create mode 100644 dist/esm/models/ReadDirectLinksResponse.d.ts create mode 100644 dist/esm/models/ReadDirectLinksResponse.js create mode 100644 dist/esm/models/ReadFlexibleGpuCatalogRequest.d.ts create mode 100644 dist/esm/models/ReadFlexibleGpuCatalogRequest.js create mode 100644 dist/esm/models/ReadFlexibleGpuCatalogResponse.d.ts create mode 100644 dist/esm/models/ReadFlexibleGpuCatalogResponse.js create mode 100644 dist/esm/models/ReadFlexibleGpusRequest.d.ts create mode 100644 dist/esm/models/ReadFlexibleGpusRequest.js create mode 100644 dist/esm/models/ReadFlexibleGpusResponse.d.ts create mode 100644 dist/esm/models/ReadFlexibleGpusResponse.js create mode 100644 dist/esm/models/ReadImageExportTasksRequest.d.ts create mode 100644 dist/esm/models/ReadImageExportTasksRequest.js create mode 100644 dist/esm/models/ReadImageExportTasksResponse.d.ts create mode 100644 dist/esm/models/ReadImageExportTasksResponse.js create mode 100644 dist/esm/models/ReadImagesRequest.d.ts create mode 100644 dist/esm/models/ReadImagesRequest.js create mode 100644 dist/esm/models/ReadImagesResponse.d.ts create mode 100644 dist/esm/models/ReadImagesResponse.js create mode 100644 dist/esm/models/ReadInternetServicesRequest.d.ts create mode 100644 dist/esm/models/ReadInternetServicesRequest.js create mode 100644 dist/esm/models/ReadInternetServicesResponse.d.ts create mode 100644 dist/esm/models/ReadInternetServicesResponse.js create mode 100644 dist/esm/models/ReadKeypairsRequest.d.ts create mode 100644 dist/esm/models/ReadKeypairsRequest.js create mode 100644 dist/esm/models/ReadKeypairsResponse.d.ts create mode 100644 dist/esm/models/ReadKeypairsResponse.js create mode 100644 dist/esm/models/ReadListenerRulesRequest.d.ts create mode 100644 dist/esm/models/ReadListenerRulesRequest.js create mode 100644 dist/esm/models/ReadListenerRulesResponse.d.ts create mode 100644 dist/esm/models/ReadListenerRulesResponse.js create mode 100644 dist/esm/models/ReadLoadBalancerTagsRequest.d.ts create mode 100644 dist/esm/models/ReadLoadBalancerTagsRequest.js create mode 100644 dist/esm/models/ReadLoadBalancerTagsResponse.d.ts create mode 100644 dist/esm/models/ReadLoadBalancerTagsResponse.js create mode 100644 dist/esm/models/ReadLoadBalancersRequest.d.ts create mode 100644 dist/esm/models/ReadLoadBalancersRequest.js create mode 100644 dist/esm/models/ReadLoadBalancersResponse.d.ts create mode 100644 dist/esm/models/ReadLoadBalancersResponse.js create mode 100644 dist/esm/models/ReadLocationsRequest.d.ts create mode 100644 dist/esm/models/ReadLocationsRequest.js create mode 100644 dist/esm/models/ReadLocationsResponse.d.ts create mode 100644 dist/esm/models/ReadLocationsResponse.js create mode 100644 dist/esm/models/ReadNatServicesRequest.d.ts create mode 100644 dist/esm/models/ReadNatServicesRequest.js create mode 100644 dist/esm/models/ReadNatServicesResponse.d.ts create mode 100644 dist/esm/models/ReadNatServicesResponse.js create mode 100644 dist/esm/models/ReadNetAccessPointServicesRequest.d.ts create mode 100644 dist/esm/models/ReadNetAccessPointServicesRequest.js create mode 100644 dist/esm/models/ReadNetAccessPointServicesResponse.d.ts create mode 100644 dist/esm/models/ReadNetAccessPointServicesResponse.js create mode 100644 dist/esm/models/ReadNetAccessPointsRequest.d.ts create mode 100644 dist/esm/models/ReadNetAccessPointsRequest.js create mode 100644 dist/esm/models/ReadNetAccessPointsResponse.d.ts create mode 100644 dist/esm/models/ReadNetAccessPointsResponse.js create mode 100644 dist/esm/models/ReadNetPeeringsRequest.d.ts create mode 100644 dist/esm/models/ReadNetPeeringsRequest.js create mode 100644 dist/esm/models/ReadNetPeeringsResponse.d.ts create mode 100644 dist/esm/models/ReadNetPeeringsResponse.js create mode 100644 dist/esm/models/ReadNetsRequest.d.ts create mode 100644 dist/esm/models/ReadNetsRequest.js create mode 100644 dist/esm/models/ReadNetsResponse.d.ts create mode 100644 dist/esm/models/ReadNetsResponse.js create mode 100644 dist/esm/models/ReadNicsRequest.d.ts create mode 100644 dist/esm/models/ReadNicsRequest.js create mode 100644 dist/esm/models/ReadNicsResponse.d.ts create mode 100644 dist/esm/models/ReadNicsResponse.js create mode 100644 dist/esm/models/ReadProductTypesRequest.d.ts create mode 100644 dist/esm/models/ReadProductTypesRequest.js create mode 100644 dist/esm/models/ReadProductTypesResponse.d.ts create mode 100644 dist/esm/models/ReadProductTypesResponse.js create mode 100644 dist/esm/models/ReadPublicCatalogRequest.d.ts create mode 100644 dist/esm/models/ReadPublicCatalogRequest.js create mode 100644 dist/esm/models/ReadPublicCatalogResponse.d.ts create mode 100644 dist/esm/models/ReadPublicCatalogResponse.js create mode 100644 dist/esm/models/ReadPublicIpRangesRequest.d.ts create mode 100644 dist/esm/models/ReadPublicIpRangesRequest.js create mode 100644 dist/esm/models/ReadPublicIpRangesResponse.d.ts create mode 100644 dist/esm/models/ReadPublicIpRangesResponse.js create mode 100644 dist/esm/models/ReadPublicIpsRequest.d.ts create mode 100644 dist/esm/models/ReadPublicIpsRequest.js create mode 100644 dist/esm/models/ReadPublicIpsResponse.d.ts create mode 100644 dist/esm/models/ReadPublicIpsResponse.js create mode 100644 dist/esm/models/ReadQuotasRequest.d.ts create mode 100644 dist/esm/models/ReadQuotasRequest.js create mode 100644 dist/esm/models/ReadQuotasResponse.d.ts create mode 100644 dist/esm/models/ReadQuotasResponse.js create mode 100644 dist/esm/models/ReadRegionsRequest.d.ts create mode 100644 dist/esm/models/ReadRegionsRequest.js create mode 100644 dist/esm/models/ReadRegionsResponse.d.ts create mode 100644 dist/esm/models/ReadRegionsResponse.js create mode 100644 dist/esm/models/ReadRouteTablesRequest.d.ts create mode 100644 dist/esm/models/ReadRouteTablesRequest.js create mode 100644 dist/esm/models/ReadRouteTablesResponse.d.ts create mode 100644 dist/esm/models/ReadRouteTablesResponse.js create mode 100644 dist/esm/models/ReadSecretAccessKeyRequest.d.ts create mode 100644 dist/esm/models/ReadSecretAccessKeyRequest.js create mode 100644 dist/esm/models/ReadSecretAccessKeyResponse.d.ts create mode 100644 dist/esm/models/ReadSecretAccessKeyResponse.js create mode 100644 dist/esm/models/ReadSecurityGroupsRequest.d.ts create mode 100644 dist/esm/models/ReadSecurityGroupsRequest.js create mode 100644 dist/esm/models/ReadSecurityGroupsResponse.d.ts create mode 100644 dist/esm/models/ReadSecurityGroupsResponse.js create mode 100644 dist/esm/models/ReadServerCertificatesRequest.d.ts create mode 100644 dist/esm/models/ReadServerCertificatesRequest.js create mode 100644 dist/esm/models/ReadServerCertificatesResponse.d.ts create mode 100644 dist/esm/models/ReadServerCertificatesResponse.js create mode 100644 dist/esm/models/ReadSnapshotExportTasksRequest.d.ts create mode 100644 dist/esm/models/ReadSnapshotExportTasksRequest.js create mode 100644 dist/esm/models/ReadSnapshotExportTasksResponse.d.ts create mode 100644 dist/esm/models/ReadSnapshotExportTasksResponse.js create mode 100644 dist/esm/models/ReadSnapshotsRequest.d.ts create mode 100644 dist/esm/models/ReadSnapshotsRequest.js create mode 100644 dist/esm/models/ReadSnapshotsResponse.d.ts create mode 100644 dist/esm/models/ReadSnapshotsResponse.js create mode 100644 dist/esm/models/ReadSubnetsRequest.d.ts create mode 100644 dist/esm/models/ReadSubnetsRequest.js create mode 100644 dist/esm/models/ReadSubnetsResponse.d.ts create mode 100644 dist/esm/models/ReadSubnetsResponse.js create mode 100644 dist/esm/models/ReadSubregionsRequest.d.ts create mode 100644 dist/esm/models/ReadSubregionsRequest.js create mode 100644 dist/esm/models/ReadSubregionsResponse.d.ts create mode 100644 dist/esm/models/ReadSubregionsResponse.js create mode 100644 dist/esm/models/ReadTagsRequest.d.ts create mode 100644 dist/esm/models/ReadTagsRequest.js create mode 100644 dist/esm/models/ReadTagsResponse.d.ts create mode 100644 dist/esm/models/ReadTagsResponse.js create mode 100644 dist/esm/models/ReadVirtualGatewaysRequest.d.ts create mode 100644 dist/esm/models/ReadVirtualGatewaysRequest.js create mode 100644 dist/esm/models/ReadVirtualGatewaysResponse.d.ts create mode 100644 dist/esm/models/ReadVirtualGatewaysResponse.js create mode 100644 dist/esm/models/ReadVmTypesRequest.d.ts create mode 100644 dist/esm/models/ReadVmTypesRequest.js create mode 100644 dist/esm/models/ReadVmTypesResponse.d.ts create mode 100644 dist/esm/models/ReadVmTypesResponse.js create mode 100644 dist/esm/models/ReadVmsHealthRequest.d.ts create mode 100644 dist/esm/models/ReadVmsHealthRequest.js create mode 100644 dist/esm/models/ReadVmsHealthResponse.d.ts create mode 100644 dist/esm/models/ReadVmsHealthResponse.js create mode 100644 dist/esm/models/ReadVmsRequest.d.ts create mode 100644 dist/esm/models/ReadVmsRequest.js create mode 100644 dist/esm/models/ReadVmsResponse.d.ts create mode 100644 dist/esm/models/ReadVmsResponse.js create mode 100644 dist/esm/models/ReadVmsStateRequest.d.ts create mode 100644 dist/esm/models/ReadVmsStateRequest.js create mode 100644 dist/esm/models/ReadVmsStateResponse.d.ts create mode 100644 dist/esm/models/ReadVmsStateResponse.js create mode 100644 dist/esm/models/ReadVolumesRequest.d.ts create mode 100644 dist/esm/models/ReadVolumesRequest.js create mode 100644 dist/esm/models/ReadVolumesResponse.d.ts create mode 100644 dist/esm/models/ReadVolumesResponse.js create mode 100644 dist/esm/models/ReadVpnConnectionsRequest.d.ts create mode 100644 dist/esm/models/ReadVpnConnectionsRequest.js create mode 100644 dist/esm/models/ReadVpnConnectionsResponse.d.ts create mode 100644 dist/esm/models/ReadVpnConnectionsResponse.js create mode 100644 dist/esm/models/RebootVmsRequest.d.ts create mode 100644 dist/esm/models/RebootVmsRequest.js create mode 100644 dist/esm/models/RebootVmsResponse.d.ts create mode 100644 dist/esm/models/RebootVmsResponse.js create mode 100644 dist/esm/models/Region.d.ts create mode 100644 dist/esm/models/Region.js create mode 100644 dist/esm/models/RegisterVmsInLoadBalancerRequest.d.ts create mode 100644 dist/esm/models/RegisterVmsInLoadBalancerRequest.js create mode 100644 dist/esm/models/RegisterVmsInLoadBalancerResponse.d.ts create mode 100644 dist/esm/models/RegisterVmsInLoadBalancerResponse.js create mode 100644 dist/esm/models/RejectNetPeeringRequest.d.ts create mode 100644 dist/esm/models/RejectNetPeeringRequest.js create mode 100644 dist/esm/models/RejectNetPeeringResponse.d.ts create mode 100644 dist/esm/models/RejectNetPeeringResponse.js create mode 100644 dist/esm/models/ResetAccountPasswordRequest.d.ts create mode 100644 dist/esm/models/ResetAccountPasswordRequest.js create mode 100644 dist/esm/models/ResetAccountPasswordResponse.d.ts create mode 100644 dist/esm/models/ResetAccountPasswordResponse.js create mode 100644 dist/esm/models/ResourceLoadBalancerTag.d.ts create mode 100644 dist/esm/models/ResourceLoadBalancerTag.js create mode 100644 dist/esm/models/ResourceTag.d.ts create mode 100644 dist/esm/models/ResourceTag.js create mode 100644 dist/esm/models/Route.d.ts create mode 100644 dist/esm/models/Route.js create mode 100644 dist/esm/models/RouteLight.d.ts create mode 100644 dist/esm/models/RouteLight.js create mode 100644 dist/esm/models/RoutePropagatingVirtualGateway.d.ts create mode 100644 dist/esm/models/RoutePropagatingVirtualGateway.js create mode 100644 dist/esm/models/RouteTable.d.ts create mode 100644 dist/esm/models/RouteTable.js create mode 100644 dist/esm/models/SecurityGroup.d.ts create mode 100644 dist/esm/models/SecurityGroup.js create mode 100644 dist/esm/models/SecurityGroupLight.d.ts create mode 100644 dist/esm/models/SecurityGroupLight.js create mode 100644 dist/esm/models/SecurityGroupRule.d.ts create mode 100644 dist/esm/models/SecurityGroupRule.js create mode 100644 dist/esm/models/SecurityGroupsMember.d.ts create mode 100644 dist/esm/models/SecurityGroupsMember.js create mode 100644 dist/esm/models/SendResetPasswordEmailRequest.d.ts create mode 100644 dist/esm/models/SendResetPasswordEmailRequest.js create mode 100644 dist/esm/models/SendResetPasswordEmailResponse.d.ts create mode 100644 dist/esm/models/SendResetPasswordEmailResponse.js create mode 100644 dist/esm/models/ServerCertificate.d.ts create mode 100644 dist/esm/models/ServerCertificate.js create mode 100644 dist/esm/models/Service.d.ts create mode 100644 dist/esm/models/Service.js create mode 100644 dist/esm/models/Snapshot.d.ts create mode 100644 dist/esm/models/Snapshot.js create mode 100644 dist/esm/models/SnapshotExportTask.d.ts create mode 100644 dist/esm/models/SnapshotExportTask.js create mode 100644 dist/esm/models/SourceNet.d.ts create mode 100644 dist/esm/models/SourceNet.js create mode 100644 dist/esm/models/SourceSecurityGroup.d.ts create mode 100644 dist/esm/models/SourceSecurityGroup.js create mode 100644 dist/esm/models/StartVmsRequest.d.ts create mode 100644 dist/esm/models/StartVmsRequest.js create mode 100644 dist/esm/models/StartVmsResponse.d.ts create mode 100644 dist/esm/models/StartVmsResponse.js create mode 100644 dist/esm/models/StateComment.d.ts create mode 100644 dist/esm/models/StateComment.js create mode 100644 dist/esm/models/StopVmsRequest.d.ts create mode 100644 dist/esm/models/StopVmsRequest.js create mode 100644 dist/esm/models/StopVmsResponse.d.ts create mode 100644 dist/esm/models/StopVmsResponse.js create mode 100644 dist/esm/models/Subnet.d.ts create mode 100644 dist/esm/models/Subnet.js create mode 100644 dist/esm/models/Subregion.d.ts create mode 100644 dist/esm/models/Subregion.js create mode 100644 dist/esm/models/Tag.d.ts create mode 100644 dist/esm/models/Tag.js create mode 100644 dist/esm/models/UnlinkFlexibleGpuRequest.d.ts create mode 100644 dist/esm/models/UnlinkFlexibleGpuRequest.js create mode 100644 dist/esm/models/UnlinkFlexibleGpuResponse.d.ts create mode 100644 dist/esm/models/UnlinkFlexibleGpuResponse.js create mode 100644 dist/esm/models/UnlinkInternetServiceRequest.d.ts create mode 100644 dist/esm/models/UnlinkInternetServiceRequest.js create mode 100644 dist/esm/models/UnlinkInternetServiceResponse.d.ts create mode 100644 dist/esm/models/UnlinkInternetServiceResponse.js create mode 100644 dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts create mode 100644 dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.js create mode 100644 dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts create mode 100644 dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.js create mode 100644 dist/esm/models/UnlinkNicRequest.d.ts create mode 100644 dist/esm/models/UnlinkNicRequest.js create mode 100644 dist/esm/models/UnlinkNicResponse.d.ts create mode 100644 dist/esm/models/UnlinkNicResponse.js create mode 100644 dist/esm/models/UnlinkPrivateIpsRequest.d.ts create mode 100644 dist/esm/models/UnlinkPrivateIpsRequest.js create mode 100644 dist/esm/models/UnlinkPrivateIpsResponse.d.ts create mode 100644 dist/esm/models/UnlinkPrivateIpsResponse.js create mode 100644 dist/esm/models/UnlinkPublicIpRequest.d.ts create mode 100644 dist/esm/models/UnlinkPublicIpRequest.js create mode 100644 dist/esm/models/UnlinkPublicIpResponse.d.ts create mode 100644 dist/esm/models/UnlinkPublicIpResponse.js create mode 100644 dist/esm/models/UnlinkRouteTableRequest.d.ts create mode 100644 dist/esm/models/UnlinkRouteTableRequest.js create mode 100644 dist/esm/models/UnlinkRouteTableResponse.d.ts create mode 100644 dist/esm/models/UnlinkRouteTableResponse.js create mode 100644 dist/esm/models/UnlinkVirtualGatewayRequest.d.ts create mode 100644 dist/esm/models/UnlinkVirtualGatewayRequest.js create mode 100644 dist/esm/models/UnlinkVirtualGatewayResponse.d.ts create mode 100644 dist/esm/models/UnlinkVirtualGatewayResponse.js create mode 100644 dist/esm/models/UnlinkVolumeRequest.d.ts create mode 100644 dist/esm/models/UnlinkVolumeRequest.js create mode 100644 dist/esm/models/UnlinkVolumeResponse.d.ts create mode 100644 dist/esm/models/UnlinkVolumeResponse.js create mode 100644 dist/esm/models/UpdateAccessKeyRequest.d.ts create mode 100644 dist/esm/models/UpdateAccessKeyRequest.js create mode 100644 dist/esm/models/UpdateAccessKeyResponse.d.ts create mode 100644 dist/esm/models/UpdateAccessKeyResponse.js create mode 100644 dist/esm/models/UpdateAccountRequest.d.ts create mode 100644 dist/esm/models/UpdateAccountRequest.js create mode 100644 dist/esm/models/UpdateAccountResponse.d.ts create mode 100644 dist/esm/models/UpdateAccountResponse.js create mode 100644 dist/esm/models/UpdateApiAccessPolicyRequest.d.ts create mode 100644 dist/esm/models/UpdateApiAccessPolicyRequest.js create mode 100644 dist/esm/models/UpdateApiAccessPolicyResponse.d.ts create mode 100644 dist/esm/models/UpdateApiAccessPolicyResponse.js create mode 100644 dist/esm/models/UpdateApiAccessRuleRequest.d.ts create mode 100644 dist/esm/models/UpdateApiAccessRuleRequest.js create mode 100644 dist/esm/models/UpdateApiAccessRuleResponse.d.ts create mode 100644 dist/esm/models/UpdateApiAccessRuleResponse.js create mode 100644 dist/esm/models/UpdateCaRequest.d.ts create mode 100644 dist/esm/models/UpdateCaRequest.js create mode 100644 dist/esm/models/UpdateCaResponse.d.ts create mode 100644 dist/esm/models/UpdateCaResponse.js create mode 100644 dist/esm/models/UpdateFlexibleGpuRequest.d.ts create mode 100644 dist/esm/models/UpdateFlexibleGpuRequest.js create mode 100644 dist/esm/models/UpdateFlexibleGpuResponse.d.ts create mode 100644 dist/esm/models/UpdateFlexibleGpuResponse.js create mode 100644 dist/esm/models/UpdateImageRequest.d.ts create mode 100644 dist/esm/models/UpdateImageRequest.js create mode 100644 dist/esm/models/UpdateImageResponse.d.ts create mode 100644 dist/esm/models/UpdateImageResponse.js create mode 100644 dist/esm/models/UpdateListenerRuleRequest.d.ts create mode 100644 dist/esm/models/UpdateListenerRuleRequest.js create mode 100644 dist/esm/models/UpdateListenerRuleResponse.d.ts create mode 100644 dist/esm/models/UpdateListenerRuleResponse.js create mode 100644 dist/esm/models/UpdateLoadBalancerRequest.d.ts create mode 100644 dist/esm/models/UpdateLoadBalancerRequest.js create mode 100644 dist/esm/models/UpdateLoadBalancerResponse.d.ts create mode 100644 dist/esm/models/UpdateLoadBalancerResponse.js create mode 100644 dist/esm/models/UpdateNetAccessPointRequest.d.ts create mode 100644 dist/esm/models/UpdateNetAccessPointRequest.js create mode 100644 dist/esm/models/UpdateNetAccessPointResponse.d.ts create mode 100644 dist/esm/models/UpdateNetAccessPointResponse.js create mode 100644 dist/esm/models/UpdateNetRequest.d.ts create mode 100644 dist/esm/models/UpdateNetRequest.js create mode 100644 dist/esm/models/UpdateNetResponse.d.ts create mode 100644 dist/esm/models/UpdateNetResponse.js create mode 100644 dist/esm/models/UpdateNicRequest.d.ts create mode 100644 dist/esm/models/UpdateNicRequest.js create mode 100644 dist/esm/models/UpdateNicResponse.d.ts create mode 100644 dist/esm/models/UpdateNicResponse.js create mode 100644 dist/esm/models/UpdateRoutePropagationRequest.d.ts create mode 100644 dist/esm/models/UpdateRoutePropagationRequest.js create mode 100644 dist/esm/models/UpdateRoutePropagationResponse.d.ts create mode 100644 dist/esm/models/UpdateRoutePropagationResponse.js create mode 100644 dist/esm/models/UpdateRouteRequest.d.ts create mode 100644 dist/esm/models/UpdateRouteRequest.js create mode 100644 dist/esm/models/UpdateRouteResponse.d.ts create mode 100644 dist/esm/models/UpdateRouteResponse.js create mode 100644 dist/esm/models/UpdateServerCertificateRequest.d.ts create mode 100644 dist/esm/models/UpdateServerCertificateRequest.js create mode 100644 dist/esm/models/UpdateServerCertificateResponse.d.ts create mode 100644 dist/esm/models/UpdateServerCertificateResponse.js create mode 100644 dist/esm/models/UpdateSnapshotRequest.d.ts create mode 100644 dist/esm/models/UpdateSnapshotRequest.js create mode 100644 dist/esm/models/UpdateSnapshotResponse.d.ts create mode 100644 dist/esm/models/UpdateSnapshotResponse.js create mode 100644 dist/esm/models/UpdateSubnetRequest.d.ts create mode 100644 dist/esm/models/UpdateSubnetRequest.js create mode 100644 dist/esm/models/UpdateSubnetResponse.d.ts create mode 100644 dist/esm/models/UpdateSubnetResponse.js create mode 100644 dist/esm/models/UpdateVmRequest.d.ts create mode 100644 dist/esm/models/UpdateVmRequest.js create mode 100644 dist/esm/models/UpdateVmResponse.d.ts create mode 100644 dist/esm/models/UpdateVmResponse.js create mode 100644 dist/esm/models/UpdateVolumeRequest.d.ts create mode 100644 dist/esm/models/UpdateVolumeRequest.js create mode 100644 dist/esm/models/UpdateVolumeResponse.d.ts create mode 100644 dist/esm/models/UpdateVolumeResponse.js create mode 100644 dist/esm/models/UpdateVpnConnectionRequest.d.ts create mode 100644 dist/esm/models/UpdateVpnConnectionRequest.js create mode 100644 dist/esm/models/UpdateVpnConnectionResponse.d.ts create mode 100644 dist/esm/models/UpdateVpnConnectionResponse.js create mode 100644 dist/esm/models/VgwTelemetry.d.ts create mode 100644 dist/esm/models/VgwTelemetry.js create mode 100644 dist/esm/models/VirtualGateway.d.ts create mode 100644 dist/esm/models/VirtualGateway.js create mode 100644 dist/esm/models/Vm.d.ts create mode 100644 dist/esm/models/Vm.js create mode 100644 dist/esm/models/VmState.d.ts create mode 100644 dist/esm/models/VmState.js create mode 100644 dist/esm/models/VmStates.d.ts create mode 100644 dist/esm/models/VmStates.js create mode 100644 dist/esm/models/VmType.d.ts create mode 100644 dist/esm/models/VmType.js create mode 100644 dist/esm/models/Volume.d.ts create mode 100644 dist/esm/models/Volume.js create mode 100644 dist/esm/models/VpnConnection.d.ts create mode 100644 dist/esm/models/VpnConnection.js create mode 100644 dist/esm/models/VpnOptions.d.ts create mode 100644 dist/esm/models/VpnOptions.js create mode 100644 dist/esm/models/With.d.ts create mode 100644 dist/esm/models/With.js create mode 100644 dist/esm/models/index.d.ts create mode 100644 dist/esm/models/index.js create mode 100644 dist/esm/runtime.d.ts create mode 100644 dist/esm/runtime.js create mode 100644 examples/node-volumes/.gitignore create mode 100644 examples/node-volumes/.nvmrc create mode 100644 examples/node-volumes/README.md create mode 100644 examples/node-volumes/package-lock.json create mode 100644 examples/node-volumes/package.json create mode 100644 examples/node-volumes/src/index.ts create mode 100644 examples/node-volumes/src/types/index.d.ts create mode 100644 examples/node-volumes/tsconfig.json create mode 100644 examples/web-vms/.gitignore create mode 100644 examples/web-vms/.nvmrc create mode 100644 examples/web-vms/README.md create mode 100644 examples/web-vms/dist/index.html create mode 100644 examples/web-vms/package-lock.json create mode 100644 examples/web-vms/package.json create mode 100644 examples/web-vms/src/index.ts create mode 100644 examples/web-vms/tsconfig.json create mode 100644 examples/web-vms/webpack.config.js create mode 100644 gen.yml create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 sdk_version create mode 100644 src/apis/AccessKeyApi.ts create mode 100644 src/apis/AccountApi.ts create mode 100644 src/apis/ApiAccessPolicyApi.ts create mode 100644 src/apis/ApiAccessRuleApi.ts create mode 100644 src/apis/ApiLogApi.ts create mode 100644 src/apis/CaApi.ts create mode 100644 src/apis/CatalogApi.ts create mode 100644 src/apis/ClientGatewayApi.ts create mode 100644 src/apis/DhcpOptionApi.ts create mode 100644 src/apis/DirectLinkApi.ts create mode 100644 src/apis/DirectLinkInterfaceApi.ts create mode 100644 src/apis/FlexibleGpuApi.ts create mode 100644 src/apis/ImageApi.ts create mode 100644 src/apis/InternetServiceApi.ts create mode 100644 src/apis/KeypairApi.ts create mode 100644 src/apis/ListenerApi.ts create mode 100644 src/apis/LoadBalancerApi.ts create mode 100644 src/apis/LoadBalancerPolicyApi.ts create mode 100644 src/apis/LocationApi.ts create mode 100644 src/apis/NatServiceApi.ts create mode 100644 src/apis/NetAccessPointApi.ts create mode 100644 src/apis/NetApi.ts create mode 100644 src/apis/NetPeeringApi.ts create mode 100644 src/apis/NicApi.ts create mode 100644 src/apis/ProductTypeApi.ts create mode 100644 src/apis/PublicCatalogApi.ts create mode 100644 src/apis/PublicIpApi.ts create mode 100644 src/apis/QuotaApi.ts create mode 100644 src/apis/RegionApi.ts create mode 100644 src/apis/RouteApi.ts create mode 100644 src/apis/RouteTableApi.ts create mode 100644 src/apis/SecurityGroupApi.ts create mode 100644 src/apis/SecurityGroupRuleApi.ts create mode 100644 src/apis/ServerCertificateApi.ts create mode 100644 src/apis/SnapshotApi.ts create mode 100644 src/apis/SubnetApi.ts create mode 100644 src/apis/SubregionApi.ts create mode 100644 src/apis/TagApi.ts create mode 100644 src/apis/TaskApi.ts create mode 100644 src/apis/VirtualGatewayApi.ts create mode 100644 src/apis/VmApi.ts create mode 100644 src/apis/VolumeApi.ts create mode 100644 src/apis/VpnConnectionApi.ts create mode 100644 src/apis/index.ts create mode 100644 src/index.ts create mode 100644 src/models/AcceptNetPeeringRequest.ts create mode 100644 src/models/AcceptNetPeeringResponse.ts create mode 100644 src/models/AccepterNet.ts create mode 100644 src/models/AccessKey.ts create mode 100644 src/models/AccessKeySecretKey.ts create mode 100644 src/models/AccessLog.ts create mode 100644 src/models/Account.ts create mode 100644 src/models/ApiAccessPolicy.ts create mode 100644 src/models/ApiAccessRule.ts create mode 100644 src/models/ApplicationStickyCookiePolicy.ts create mode 100644 src/models/BackendVmHealth.ts create mode 100644 src/models/BlockDeviceMappingCreated.ts create mode 100644 src/models/BlockDeviceMappingImage.ts create mode 100644 src/models/BlockDeviceMappingVmCreation.ts create mode 100644 src/models/BlockDeviceMappingVmUpdate.ts create mode 100644 src/models/BsuCreated.ts create mode 100644 src/models/BsuToCreate.ts create mode 100644 src/models/BsuToUpdateVm.ts create mode 100644 src/models/Ca.ts create mode 100644 src/models/Catalog.ts create mode 100644 src/models/CatalogEntry.ts create mode 100644 src/models/CheckAuthenticationRequest.ts create mode 100644 src/models/CheckAuthenticationResponse.ts create mode 100644 src/models/ClientGateway.ts create mode 100644 src/models/ConsumptionEntry.ts create mode 100644 src/models/CreateAccessKeyRequest.ts create mode 100644 src/models/CreateAccessKeyResponse.ts create mode 100644 src/models/CreateAccountRequest.ts create mode 100644 src/models/CreateAccountResponse.ts create mode 100644 src/models/CreateApiAccessRuleRequest.ts create mode 100644 src/models/CreateApiAccessRuleResponse.ts create mode 100644 src/models/CreateCaRequest.ts create mode 100644 src/models/CreateCaResponse.ts create mode 100644 src/models/CreateClientGatewayRequest.ts create mode 100644 src/models/CreateClientGatewayResponse.ts create mode 100644 src/models/CreateDhcpOptionsRequest.ts create mode 100644 src/models/CreateDhcpOptionsResponse.ts create mode 100644 src/models/CreateDirectLinkInterfaceRequest.ts create mode 100644 src/models/CreateDirectLinkInterfaceResponse.ts create mode 100644 src/models/CreateDirectLinkRequest.ts create mode 100644 src/models/CreateDirectLinkResponse.ts create mode 100644 src/models/CreateFlexibleGpuRequest.ts create mode 100644 src/models/CreateFlexibleGpuResponse.ts create mode 100644 src/models/CreateImageExportTaskRequest.ts create mode 100644 src/models/CreateImageExportTaskResponse.ts create mode 100644 src/models/CreateImageRequest.ts create mode 100644 src/models/CreateImageResponse.ts create mode 100644 src/models/CreateInternetServiceRequest.ts create mode 100644 src/models/CreateInternetServiceResponse.ts create mode 100644 src/models/CreateKeypairRequest.ts create mode 100644 src/models/CreateKeypairResponse.ts create mode 100644 src/models/CreateListenerRuleRequest.ts create mode 100644 src/models/CreateListenerRuleResponse.ts create mode 100644 src/models/CreateLoadBalancerListenersRequest.ts create mode 100644 src/models/CreateLoadBalancerListenersResponse.ts create mode 100644 src/models/CreateLoadBalancerPolicyRequest.ts create mode 100644 src/models/CreateLoadBalancerPolicyResponse.ts create mode 100644 src/models/CreateLoadBalancerRequest.ts create mode 100644 src/models/CreateLoadBalancerResponse.ts create mode 100644 src/models/CreateLoadBalancerTagsRequest.ts create mode 100644 src/models/CreateLoadBalancerTagsResponse.ts create mode 100644 src/models/CreateNatServiceRequest.ts create mode 100644 src/models/CreateNatServiceResponse.ts create mode 100644 src/models/CreateNetAccessPointRequest.ts create mode 100644 src/models/CreateNetAccessPointResponse.ts create mode 100644 src/models/CreateNetPeeringRequest.ts create mode 100644 src/models/CreateNetPeeringResponse.ts create mode 100644 src/models/CreateNetRequest.ts create mode 100644 src/models/CreateNetResponse.ts create mode 100644 src/models/CreateNicRequest.ts create mode 100644 src/models/CreateNicResponse.ts create mode 100644 src/models/CreatePublicIpRequest.ts create mode 100644 src/models/CreatePublicIpResponse.ts create mode 100644 src/models/CreateRouteRequest.ts create mode 100644 src/models/CreateRouteResponse.ts create mode 100644 src/models/CreateRouteTableRequest.ts create mode 100644 src/models/CreateRouteTableResponse.ts create mode 100644 src/models/CreateSecurityGroupRequest.ts create mode 100644 src/models/CreateSecurityGroupResponse.ts create mode 100644 src/models/CreateSecurityGroupRuleRequest.ts create mode 100644 src/models/CreateSecurityGroupRuleResponse.ts create mode 100644 src/models/CreateServerCertificateRequest.ts create mode 100644 src/models/CreateServerCertificateResponse.ts create mode 100644 src/models/CreateSnapshotExportTaskRequest.ts create mode 100644 src/models/CreateSnapshotExportTaskResponse.ts create mode 100644 src/models/CreateSnapshotRequest.ts create mode 100644 src/models/CreateSnapshotResponse.ts create mode 100644 src/models/CreateSubnetRequest.ts create mode 100644 src/models/CreateSubnetResponse.ts create mode 100644 src/models/CreateTagsRequest.ts create mode 100644 src/models/CreateTagsResponse.ts create mode 100644 src/models/CreateVirtualGatewayRequest.ts create mode 100644 src/models/CreateVirtualGatewayResponse.ts create mode 100644 src/models/CreateVmsRequest.ts create mode 100644 src/models/CreateVmsResponse.ts create mode 100644 src/models/CreateVolumeRequest.ts create mode 100644 src/models/CreateVolumeResponse.ts create mode 100644 src/models/CreateVpnConnectionRequest.ts create mode 100644 src/models/CreateVpnConnectionResponse.ts create mode 100644 src/models/CreateVpnConnectionRouteRequest.ts create mode 100644 src/models/CreateVpnConnectionRouteResponse.ts create mode 100644 src/models/DeleteAccessKeyRequest.ts create mode 100644 src/models/DeleteAccessKeyResponse.ts create mode 100644 src/models/DeleteApiAccessRuleRequest.ts create mode 100644 src/models/DeleteApiAccessRuleResponse.ts create mode 100644 src/models/DeleteCaRequest.ts create mode 100644 src/models/DeleteCaResponse.ts create mode 100644 src/models/DeleteClientGatewayRequest.ts create mode 100644 src/models/DeleteClientGatewayResponse.ts create mode 100644 src/models/DeleteDhcpOptionsRequest.ts create mode 100644 src/models/DeleteDhcpOptionsResponse.ts create mode 100644 src/models/DeleteDirectLinkInterfaceRequest.ts create mode 100644 src/models/DeleteDirectLinkInterfaceResponse.ts create mode 100644 src/models/DeleteDirectLinkRequest.ts create mode 100644 src/models/DeleteDirectLinkResponse.ts create mode 100644 src/models/DeleteExportTaskRequest.ts create mode 100644 src/models/DeleteExportTaskResponse.ts create mode 100644 src/models/DeleteFlexibleGpuRequest.ts create mode 100644 src/models/DeleteFlexibleGpuResponse.ts create mode 100644 src/models/DeleteImageRequest.ts create mode 100644 src/models/DeleteImageResponse.ts create mode 100644 src/models/DeleteInternetServiceRequest.ts create mode 100644 src/models/DeleteInternetServiceResponse.ts create mode 100644 src/models/DeleteKeypairRequest.ts create mode 100644 src/models/DeleteKeypairResponse.ts create mode 100644 src/models/DeleteListenerRuleRequest.ts create mode 100644 src/models/DeleteListenerRuleResponse.ts create mode 100644 src/models/DeleteLoadBalancerListenersRequest.ts create mode 100644 src/models/DeleteLoadBalancerListenersResponse.ts create mode 100644 src/models/DeleteLoadBalancerPolicyRequest.ts create mode 100644 src/models/DeleteLoadBalancerPolicyResponse.ts create mode 100644 src/models/DeleteLoadBalancerRequest.ts create mode 100644 src/models/DeleteLoadBalancerResponse.ts create mode 100644 src/models/DeleteLoadBalancerTagsRequest.ts create mode 100644 src/models/DeleteLoadBalancerTagsResponse.ts create mode 100644 src/models/DeleteNatServiceRequest.ts create mode 100644 src/models/DeleteNatServiceResponse.ts create mode 100644 src/models/DeleteNetAccessPointRequest.ts create mode 100644 src/models/DeleteNetAccessPointResponse.ts create mode 100644 src/models/DeleteNetPeeringRequest.ts create mode 100644 src/models/DeleteNetPeeringResponse.ts create mode 100644 src/models/DeleteNetRequest.ts create mode 100644 src/models/DeleteNetResponse.ts create mode 100644 src/models/DeleteNicRequest.ts create mode 100644 src/models/DeleteNicResponse.ts create mode 100644 src/models/DeletePublicIpRequest.ts create mode 100644 src/models/DeletePublicIpResponse.ts create mode 100644 src/models/DeleteRouteRequest.ts create mode 100644 src/models/DeleteRouteResponse.ts create mode 100644 src/models/DeleteRouteTableRequest.ts create mode 100644 src/models/DeleteRouteTableResponse.ts create mode 100644 src/models/DeleteSecurityGroupRequest.ts create mode 100644 src/models/DeleteSecurityGroupResponse.ts create mode 100644 src/models/DeleteSecurityGroupRuleRequest.ts create mode 100644 src/models/DeleteSecurityGroupRuleResponse.ts create mode 100644 src/models/DeleteServerCertificateRequest.ts create mode 100644 src/models/DeleteServerCertificateResponse.ts create mode 100644 src/models/DeleteSnapshotRequest.ts create mode 100644 src/models/DeleteSnapshotResponse.ts create mode 100644 src/models/DeleteSubnetRequest.ts create mode 100644 src/models/DeleteSubnetResponse.ts create mode 100644 src/models/DeleteTagsRequest.ts create mode 100644 src/models/DeleteTagsResponse.ts create mode 100644 src/models/DeleteVirtualGatewayRequest.ts create mode 100644 src/models/DeleteVirtualGatewayResponse.ts create mode 100644 src/models/DeleteVmsRequest.ts create mode 100644 src/models/DeleteVmsResponse.ts create mode 100644 src/models/DeleteVolumeRequest.ts create mode 100644 src/models/DeleteVolumeResponse.ts create mode 100644 src/models/DeleteVpnConnectionRequest.ts create mode 100644 src/models/DeleteVpnConnectionResponse.ts create mode 100644 src/models/DeleteVpnConnectionRouteRequest.ts create mode 100644 src/models/DeleteVpnConnectionRouteResponse.ts create mode 100644 src/models/DeregisterVmsInLoadBalancerRequest.ts create mode 100644 src/models/DeregisterVmsInLoadBalancerResponse.ts create mode 100644 src/models/DhcpOptionsSet.ts create mode 100644 src/models/DirectLink.ts create mode 100644 src/models/DirectLinkInterface.ts create mode 100644 src/models/DirectLinkInterfaces.ts create mode 100644 src/models/ErrorResponse.ts create mode 100644 src/models/Errors.ts create mode 100644 src/models/FiltersAccessKeys.ts create mode 100644 src/models/FiltersApiAccessRule.ts create mode 100644 src/models/FiltersApiLog.ts create mode 100644 src/models/FiltersCa.ts create mode 100644 src/models/FiltersClientGateway.ts create mode 100644 src/models/FiltersDhcpOptions.ts create mode 100644 src/models/FiltersDirectLink.ts create mode 100644 src/models/FiltersDirectLinkInterface.ts create mode 100644 src/models/FiltersExportTask.ts create mode 100644 src/models/FiltersFlexibleGpu.ts create mode 100644 src/models/FiltersImage.ts create mode 100644 src/models/FiltersInternetService.ts create mode 100644 src/models/FiltersKeypair.ts create mode 100644 src/models/FiltersListenerRule.ts create mode 100644 src/models/FiltersLoadBalancer.ts create mode 100644 src/models/FiltersNatService.ts create mode 100644 src/models/FiltersNet.ts create mode 100644 src/models/FiltersNetAccessPoint.ts create mode 100644 src/models/FiltersNetPeering.ts create mode 100644 src/models/FiltersNic.ts create mode 100644 src/models/FiltersProductType.ts create mode 100644 src/models/FiltersPublicIp.ts create mode 100644 src/models/FiltersQuota.ts create mode 100644 src/models/FiltersRouteTable.ts create mode 100644 src/models/FiltersSecurityGroup.ts create mode 100644 src/models/FiltersServerCertificate.ts create mode 100644 src/models/FiltersService.ts create mode 100644 src/models/FiltersSnapshot.ts create mode 100644 src/models/FiltersSubnet.ts create mode 100644 src/models/FiltersSubregion.ts create mode 100644 src/models/FiltersTag.ts create mode 100644 src/models/FiltersVirtualGateway.ts create mode 100644 src/models/FiltersVm.ts create mode 100644 src/models/FiltersVmType.ts create mode 100644 src/models/FiltersVmsState.ts create mode 100644 src/models/FiltersVolume.ts create mode 100644 src/models/FiltersVpnConnection.ts create mode 100644 src/models/FlexibleGpu.ts create mode 100644 src/models/FlexibleGpuCatalog.ts create mode 100644 src/models/HealthCheck.ts create mode 100644 src/models/Image.ts create mode 100644 src/models/ImageExportTask.ts create mode 100644 src/models/InternetService.ts create mode 100644 src/models/Keypair.ts create mode 100644 src/models/KeypairCreated.ts create mode 100644 src/models/LinkFlexibleGpuRequest.ts create mode 100644 src/models/LinkFlexibleGpuResponse.ts create mode 100644 src/models/LinkInternetServiceRequest.ts create mode 100644 src/models/LinkInternetServiceResponse.ts create mode 100644 src/models/LinkLoadBalancerBackendMachinesRequest.ts create mode 100644 src/models/LinkLoadBalancerBackendMachinesResponse.ts create mode 100644 src/models/LinkNic.ts create mode 100644 src/models/LinkNicLight.ts create mode 100644 src/models/LinkNicRequest.ts create mode 100644 src/models/LinkNicResponse.ts create mode 100644 src/models/LinkNicToUpdate.ts create mode 100644 src/models/LinkPrivateIpsRequest.ts create mode 100644 src/models/LinkPrivateIpsResponse.ts create mode 100644 src/models/LinkPublicIp.ts create mode 100644 src/models/LinkPublicIpLightForVm.ts create mode 100644 src/models/LinkPublicIpRequest.ts create mode 100644 src/models/LinkPublicIpResponse.ts create mode 100644 src/models/LinkRouteTable.ts create mode 100644 src/models/LinkRouteTableRequest.ts create mode 100644 src/models/LinkRouteTableResponse.ts create mode 100644 src/models/LinkVirtualGatewayRequest.ts create mode 100644 src/models/LinkVirtualGatewayResponse.ts create mode 100644 src/models/LinkVolumeRequest.ts create mode 100644 src/models/LinkVolumeResponse.ts create mode 100644 src/models/LinkedVolume.ts create mode 100644 src/models/Listener.ts create mode 100644 src/models/ListenerForCreation.ts create mode 100644 src/models/ListenerRule.ts create mode 100644 src/models/ListenerRuleForCreation.ts create mode 100644 src/models/LoadBalancer.ts create mode 100644 src/models/LoadBalancerLight.ts create mode 100644 src/models/LoadBalancerStickyCookiePolicy.ts create mode 100644 src/models/LoadBalancerTag.ts create mode 100644 src/models/Location.ts create mode 100644 src/models/Log.ts create mode 100644 src/models/MaintenanceEvent.ts create mode 100644 src/models/ModelResponseContext.ts create mode 100644 src/models/NatService.ts create mode 100644 src/models/Net.ts create mode 100644 src/models/NetAccessPoint.ts create mode 100644 src/models/NetPeering.ts create mode 100644 src/models/NetPeeringState.ts create mode 100644 src/models/NetToVirtualGatewayLink.ts create mode 100644 src/models/Nic.ts create mode 100644 src/models/NicForVmCreation.ts create mode 100644 src/models/NicLight.ts create mode 100644 src/models/OsuApiKey.ts create mode 100644 src/models/OsuExportImageExportTask.ts create mode 100644 src/models/OsuExportSnapshotExportTask.ts create mode 100644 src/models/OsuExportToCreate.ts create mode 100644 src/models/PermissionsOnResource.ts create mode 100644 src/models/PermissionsOnResourceCreation.ts create mode 100644 src/models/Phase1Options.ts create mode 100644 src/models/Phase2Options.ts create mode 100644 src/models/Placement.ts create mode 100644 src/models/PrivateIp.ts create mode 100644 src/models/PrivateIpLight.ts create mode 100644 src/models/PrivateIpLightForVm.ts create mode 100644 src/models/ProductType.ts create mode 100644 src/models/PublicIp.ts create mode 100644 src/models/PublicIpLight.ts create mode 100644 src/models/Quota.ts create mode 100644 src/models/QuotaTypes.ts create mode 100644 src/models/ReadAccessKeysRequest.ts create mode 100644 src/models/ReadAccessKeysResponse.ts create mode 100644 src/models/ReadAccountsRequest.ts create mode 100644 src/models/ReadAccountsResponse.ts create mode 100644 src/models/ReadAdminPasswordRequest.ts create mode 100644 src/models/ReadAdminPasswordResponse.ts create mode 100644 src/models/ReadApiAccessPolicyRequest.ts create mode 100644 src/models/ReadApiAccessPolicyResponse.ts create mode 100644 src/models/ReadApiAccessRulesRequest.ts create mode 100644 src/models/ReadApiAccessRulesResponse.ts create mode 100644 src/models/ReadApiLogsRequest.ts create mode 100644 src/models/ReadApiLogsResponse.ts create mode 100644 src/models/ReadCasRequest.ts create mode 100644 src/models/ReadCasResponse.ts create mode 100644 src/models/ReadCatalogRequest.ts create mode 100644 src/models/ReadCatalogResponse.ts create mode 100644 src/models/ReadClientGatewaysRequest.ts create mode 100644 src/models/ReadClientGatewaysResponse.ts create mode 100644 src/models/ReadConsoleOutputRequest.ts create mode 100644 src/models/ReadConsoleOutputResponse.ts create mode 100644 src/models/ReadConsumptionAccountRequest.ts create mode 100644 src/models/ReadConsumptionAccountResponse.ts create mode 100644 src/models/ReadDhcpOptionsRequest.ts create mode 100644 src/models/ReadDhcpOptionsResponse.ts create mode 100644 src/models/ReadDirectLinkInterfacesRequest.ts create mode 100644 src/models/ReadDirectLinkInterfacesResponse.ts create mode 100644 src/models/ReadDirectLinksRequest.ts create mode 100644 src/models/ReadDirectLinksResponse.ts create mode 100644 src/models/ReadFlexibleGpuCatalogRequest.ts create mode 100644 src/models/ReadFlexibleGpuCatalogResponse.ts create mode 100644 src/models/ReadFlexibleGpusRequest.ts create mode 100644 src/models/ReadFlexibleGpusResponse.ts create mode 100644 src/models/ReadImageExportTasksRequest.ts create mode 100644 src/models/ReadImageExportTasksResponse.ts create mode 100644 src/models/ReadImagesRequest.ts create mode 100644 src/models/ReadImagesResponse.ts create mode 100644 src/models/ReadInternetServicesRequest.ts create mode 100644 src/models/ReadInternetServicesResponse.ts create mode 100644 src/models/ReadKeypairsRequest.ts create mode 100644 src/models/ReadKeypairsResponse.ts create mode 100644 src/models/ReadListenerRulesRequest.ts create mode 100644 src/models/ReadListenerRulesResponse.ts create mode 100644 src/models/ReadLoadBalancerTagsRequest.ts create mode 100644 src/models/ReadLoadBalancerTagsResponse.ts create mode 100644 src/models/ReadLoadBalancersRequest.ts create mode 100644 src/models/ReadLoadBalancersResponse.ts create mode 100644 src/models/ReadLocationsRequest.ts create mode 100644 src/models/ReadLocationsResponse.ts create mode 100644 src/models/ReadNatServicesRequest.ts create mode 100644 src/models/ReadNatServicesResponse.ts create mode 100644 src/models/ReadNetAccessPointServicesRequest.ts create mode 100644 src/models/ReadNetAccessPointServicesResponse.ts create mode 100644 src/models/ReadNetAccessPointsRequest.ts create mode 100644 src/models/ReadNetAccessPointsResponse.ts create mode 100644 src/models/ReadNetPeeringsRequest.ts create mode 100644 src/models/ReadNetPeeringsResponse.ts create mode 100644 src/models/ReadNetsRequest.ts create mode 100644 src/models/ReadNetsResponse.ts create mode 100644 src/models/ReadNicsRequest.ts create mode 100644 src/models/ReadNicsResponse.ts create mode 100644 src/models/ReadProductTypesRequest.ts create mode 100644 src/models/ReadProductTypesResponse.ts create mode 100644 src/models/ReadPublicCatalogRequest.ts create mode 100644 src/models/ReadPublicCatalogResponse.ts create mode 100644 src/models/ReadPublicIpRangesRequest.ts create mode 100644 src/models/ReadPublicIpRangesResponse.ts create mode 100644 src/models/ReadPublicIpsRequest.ts create mode 100644 src/models/ReadPublicIpsResponse.ts create mode 100644 src/models/ReadQuotasRequest.ts create mode 100644 src/models/ReadQuotasResponse.ts create mode 100644 src/models/ReadRegionsRequest.ts create mode 100644 src/models/ReadRegionsResponse.ts create mode 100644 src/models/ReadRouteTablesRequest.ts create mode 100644 src/models/ReadRouteTablesResponse.ts create mode 100644 src/models/ReadSecretAccessKeyRequest.ts create mode 100644 src/models/ReadSecretAccessKeyResponse.ts create mode 100644 src/models/ReadSecurityGroupsRequest.ts create mode 100644 src/models/ReadSecurityGroupsResponse.ts create mode 100644 src/models/ReadServerCertificatesRequest.ts create mode 100644 src/models/ReadServerCertificatesResponse.ts create mode 100644 src/models/ReadSnapshotExportTasksRequest.ts create mode 100644 src/models/ReadSnapshotExportTasksResponse.ts create mode 100644 src/models/ReadSnapshotsRequest.ts create mode 100644 src/models/ReadSnapshotsResponse.ts create mode 100644 src/models/ReadSubnetsRequest.ts create mode 100644 src/models/ReadSubnetsResponse.ts create mode 100644 src/models/ReadSubregionsRequest.ts create mode 100644 src/models/ReadSubregionsResponse.ts create mode 100644 src/models/ReadTagsRequest.ts create mode 100644 src/models/ReadTagsResponse.ts create mode 100644 src/models/ReadVirtualGatewaysRequest.ts create mode 100644 src/models/ReadVirtualGatewaysResponse.ts create mode 100644 src/models/ReadVmTypesRequest.ts create mode 100644 src/models/ReadVmTypesResponse.ts create mode 100644 src/models/ReadVmsHealthRequest.ts create mode 100644 src/models/ReadVmsHealthResponse.ts create mode 100644 src/models/ReadVmsRequest.ts create mode 100644 src/models/ReadVmsResponse.ts create mode 100644 src/models/ReadVmsStateRequest.ts create mode 100644 src/models/ReadVmsStateResponse.ts create mode 100644 src/models/ReadVolumesRequest.ts create mode 100644 src/models/ReadVolumesResponse.ts create mode 100644 src/models/ReadVpnConnectionsRequest.ts create mode 100644 src/models/ReadVpnConnectionsResponse.ts create mode 100644 src/models/RebootVmsRequest.ts create mode 100644 src/models/RebootVmsResponse.ts create mode 100644 src/models/Region.ts create mode 100644 src/models/RegisterVmsInLoadBalancerRequest.ts create mode 100644 src/models/RegisterVmsInLoadBalancerResponse.ts create mode 100644 src/models/RejectNetPeeringRequest.ts create mode 100644 src/models/RejectNetPeeringResponse.ts create mode 100644 src/models/ResetAccountPasswordRequest.ts create mode 100644 src/models/ResetAccountPasswordResponse.ts create mode 100644 src/models/ResourceLoadBalancerTag.ts create mode 100644 src/models/ResourceTag.ts create mode 100644 src/models/Route.ts create mode 100644 src/models/RouteLight.ts create mode 100644 src/models/RoutePropagatingVirtualGateway.ts create mode 100644 src/models/RouteTable.ts create mode 100644 src/models/SecurityGroup.ts create mode 100644 src/models/SecurityGroupLight.ts create mode 100644 src/models/SecurityGroupRule.ts create mode 100644 src/models/SecurityGroupsMember.ts create mode 100644 src/models/SendResetPasswordEmailRequest.ts create mode 100644 src/models/SendResetPasswordEmailResponse.ts create mode 100644 src/models/ServerCertificate.ts create mode 100644 src/models/Service.ts create mode 100644 src/models/Snapshot.ts create mode 100644 src/models/SnapshotExportTask.ts create mode 100644 src/models/SourceNet.ts create mode 100644 src/models/SourceSecurityGroup.ts create mode 100644 src/models/StartVmsRequest.ts create mode 100644 src/models/StartVmsResponse.ts create mode 100644 src/models/StateComment.ts create mode 100644 src/models/StopVmsRequest.ts create mode 100644 src/models/StopVmsResponse.ts create mode 100644 src/models/Subnet.ts create mode 100644 src/models/Subregion.ts create mode 100644 src/models/Tag.ts create mode 100644 src/models/UnlinkFlexibleGpuRequest.ts create mode 100644 src/models/UnlinkFlexibleGpuResponse.ts create mode 100644 src/models/UnlinkInternetServiceRequest.ts create mode 100644 src/models/UnlinkInternetServiceResponse.ts create mode 100644 src/models/UnlinkLoadBalancerBackendMachinesRequest.ts create mode 100644 src/models/UnlinkLoadBalancerBackendMachinesResponse.ts create mode 100644 src/models/UnlinkNicRequest.ts create mode 100644 src/models/UnlinkNicResponse.ts create mode 100644 src/models/UnlinkPrivateIpsRequest.ts create mode 100644 src/models/UnlinkPrivateIpsResponse.ts create mode 100644 src/models/UnlinkPublicIpRequest.ts create mode 100644 src/models/UnlinkPublicIpResponse.ts create mode 100644 src/models/UnlinkRouteTableRequest.ts create mode 100644 src/models/UnlinkRouteTableResponse.ts create mode 100644 src/models/UnlinkVirtualGatewayRequest.ts create mode 100644 src/models/UnlinkVirtualGatewayResponse.ts create mode 100644 src/models/UnlinkVolumeRequest.ts create mode 100644 src/models/UnlinkVolumeResponse.ts create mode 100644 src/models/UpdateAccessKeyRequest.ts create mode 100644 src/models/UpdateAccessKeyResponse.ts create mode 100644 src/models/UpdateAccountRequest.ts create mode 100644 src/models/UpdateAccountResponse.ts create mode 100644 src/models/UpdateApiAccessPolicyRequest.ts create mode 100644 src/models/UpdateApiAccessPolicyResponse.ts create mode 100644 src/models/UpdateApiAccessRuleRequest.ts create mode 100644 src/models/UpdateApiAccessRuleResponse.ts create mode 100644 src/models/UpdateCaRequest.ts create mode 100644 src/models/UpdateCaResponse.ts create mode 100644 src/models/UpdateFlexibleGpuRequest.ts create mode 100644 src/models/UpdateFlexibleGpuResponse.ts create mode 100644 src/models/UpdateImageRequest.ts create mode 100644 src/models/UpdateImageResponse.ts create mode 100644 src/models/UpdateListenerRuleRequest.ts create mode 100644 src/models/UpdateListenerRuleResponse.ts create mode 100644 src/models/UpdateLoadBalancerRequest.ts create mode 100644 src/models/UpdateLoadBalancerResponse.ts create mode 100644 src/models/UpdateNetAccessPointRequest.ts create mode 100644 src/models/UpdateNetAccessPointResponse.ts create mode 100644 src/models/UpdateNetRequest.ts create mode 100644 src/models/UpdateNetResponse.ts create mode 100644 src/models/UpdateNicRequest.ts create mode 100644 src/models/UpdateNicResponse.ts create mode 100644 src/models/UpdateRoutePropagationRequest.ts create mode 100644 src/models/UpdateRoutePropagationResponse.ts create mode 100644 src/models/UpdateRouteRequest.ts create mode 100644 src/models/UpdateRouteResponse.ts create mode 100644 src/models/UpdateServerCertificateRequest.ts create mode 100644 src/models/UpdateServerCertificateResponse.ts create mode 100644 src/models/UpdateSnapshotRequest.ts create mode 100644 src/models/UpdateSnapshotResponse.ts create mode 100644 src/models/UpdateSubnetRequest.ts create mode 100644 src/models/UpdateSubnetResponse.ts create mode 100644 src/models/UpdateVmRequest.ts create mode 100644 src/models/UpdateVmResponse.ts create mode 100644 src/models/UpdateVolumeRequest.ts create mode 100644 src/models/UpdateVolumeResponse.ts create mode 100644 src/models/UpdateVpnConnectionRequest.ts create mode 100644 src/models/UpdateVpnConnectionResponse.ts create mode 100644 src/models/VgwTelemetry.ts create mode 100644 src/models/VirtualGateway.ts create mode 100644 src/models/Vm.ts create mode 100644 src/models/VmState.ts create mode 100644 src/models/VmStates.ts create mode 100644 src/models/VmType.ts create mode 100644 src/models/Volume.ts create mode 100644 src/models/VpnConnection.ts create mode 100644 src/models/VpnOptions.ts create mode 100644 src/models/With.ts create mode 100644 src/models/index.ts create mode 100644 src/runtime.ts create mode 100644 tsconfig-cjs.json create mode 100644 tsconfig-esm.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..b945d92d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + target-branch: "main" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/scripts/check-creds-settings.sh b/.github/scripts/check-creds-settings.sh new file mode 100755 index 00000000..6523324a --- /dev/null +++ b/.github/scripts/check-creds-settings.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e + +exit_code=0 +if [ -z "$OSC_ACCESS_KEY" ]; then + echo "OSC_ACCESS_KEY var is not set, please fix" + exit_code=1 +fi +if [ -z "$OSC_SECRET_KEY" ]; then + echo "OSC_SECRET_KEY var is not set, please fix" + exit_code=1 +fi +if [ -z "$OSC_REGION" ]; then + echo "OSC_REGION var is not set, please fix" + exit_code=1 +fi +exit $exit_code \ No newline at end of file diff --git a/.github/scripts/osc-api-check.sh b/.github/scripts/osc-api-check.sh new file mode 100755 index 00000000..6c768a55 --- /dev/null +++ b/.github/scripts/osc-api-check.sh @@ -0,0 +1,28 @@ +#!/bin/env bash +set -e + +root=$(cd "$(dirname $0)/../.." && pwd) +if [ -e "$root/.auto-release-abort" ]; then + echo "previous step triggered stop, abort" + exit 0 +fi +github_url="https://api.github.com/repos/outscale/osc-api/releases" + +if [ -z "$GH_TOKEN" ]; then + echo "GH_TOKEN is missing, abort." + exit 1 +fi + +osc_api_last_release=$(curl -s -H "Authorization: token $GH_TOKEN" $github_url | jq ".[] | select(.prerelease == false) | select(.draft == false) | .tag_name" | sort -r --version-sort | head -n 1 | cut -f 2 -d '"') +local_api_version=$(cat $root/api_version) + +echo "last API version used: $local_api_version" +echo "last available version: $osc_api_last_release" + +if [[ "$local_api_version" = "$osc_api_last_release" ]]; then + echo "no update needed, exiting" + touch "$root/.auto-release-abort" + exit 0 +fi + +echo "$osc_api_last_release" > $root/api_version diff --git a/.github/scripts/release-build.sh b/.github/scripts/release-build.sh new file mode 100755 index 00000000..40def240 --- /dev/null +++ b/.github/scripts/release-build.sh @@ -0,0 +1,40 @@ +#!/bin/env bash +set -e + +root=$(cd "$(dirname $0)/../.." && pwd) +if [ -e "$root/.auto-release-abort" ]; then + echo "previous step triggered stop, abort" + exit 0 +fi +# build new version number +local_sdk_version=$(cat $root/sdk_version) +local_sdk_version_major=$(echo $local_sdk_version | cut -d '.' -f 1) +local_sdk_version_minor=$(echo $local_sdk_version | cut -d '.' -f 2) +new_sdk_version_minor=$(( local_sdk_version_minor + 1 )) +new_sdk_version="$local_sdk_version_major.$new_sdk_version_minor.0" + +branch_name="autobuild-$new_sdk_version" +git branch -m $branch_name + +echo "$new_sdk_version" > $root/sdk_version + +# build release notes +new_api_version=$(cat $root/api_version) +release_notes="# $new_sdk_version + + - SDK update for Outscale API v$new_api_version + +" +echo "$release_notes$(cat $root/changelog.md)" > $root/changelog.md + +# generate SDK +cd "$root" +make gen + +# setup git && commit +git config user.name "Outscale Bot" +git config user.email "opensource+bot@outscale.com" +for f in src dist; do + git add $f || true +done +git commit -asm "osc-sdk-js v$new_sdk_version" diff --git a/.github/scripts/release-check-duplicate.sh b/.github/scripts/release-check-duplicate.sh new file mode 100755 index 00000000..9df45bfc --- /dev/null +++ b/.github/scripts/release-check-duplicate.sh @@ -0,0 +1,29 @@ +#!/bin/env bash +set -e + +root=$(cd "$(dirname $0)/../.." && pwd) +if [ -e "$root/.auto-release-abort" ]; then + echo "previous step triggered stop, abort" + exit 0 +fi +# build new version number +local_sdk_version=$(cat $root/sdk_version) +local_sdk_version_major=$(echo $local_sdk_version | cut -d '.' -f 1) +local_sdk_version_minor=$(echo $local_sdk_version | cut -d '.' -f 2) +new_sdk_version_minor=$(( local_sdk_version_minor + 1 )) +new_sdk_version="$local_sdk_version_major.$new_sdk_version_minor.0" + +branch_name="autobuild-$new_sdk_version" + +if [ -z "$GH_TOKEN" ]; then + echo "GH_TOKEN is missing, abort." + exit 1 +fi + +result=$(curl -s -H "Authorization: token $GH_TOKEN" "https://api.github.com/repos/outscale/osc-sdk-js/pulls" | jq ".[] | select(.title == \"SDK v$new_sdk_version\") | .title") + +if [ ! -z "$result" ]; then + echo "Pull request seems to alread exist, abort." + touch "$root/.auto-release-abort" + exit 0 +fi diff --git a/.github/scripts/release-pr.sh b/.github/scripts/release-pr.sh new file mode 100755 index 00000000..dee801d6 --- /dev/null +++ b/.github/scripts/release-pr.sh @@ -0,0 +1,27 @@ +#!/bin/env bash +set -e + +root=$(cd "$(dirname $0)/../.." && pwd) +if [ -e "$root/.auto-release-abort" ]; then + echo "previous step triggered stop, abort" + exit 0 +fi +new_sdk_version=$(cat $root/sdk_version) +branch_name="autobuild-$new_sdk_version" +osc_api_version="$(cat $root/api_version)" + +if [ -z "$GH_TOKEN" ]; then + echo "GH_TOKEN is missing, abort." + exit 1 +fi + +# https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls#create-a-pull-request +result=$(curl -s -X POST -H "Authorization: token $GH_TOKEN" -d "{\"head\":\"$branch_name\",\"base\":\"main\",\"title\":\"SDK v$new_sdk_version\",\"body\":\"Automatic build of SDK v$new_sdk_version version based on Outscale API v$osc_api_version\"}" "https://api.github.com/repos/outscale/osc-sdk-js/pulls") + +errors=$(echo $result | jq .errors) + +if [ "$errors" != "null" ]; then + echo $errors + echo "errors while creating pull request, abort." + exit 1 +fi diff --git a/.github/scripts/release-push.sh b/.github/scripts/release-push.sh new file mode 100755 index 00000000..57f71e20 --- /dev/null +++ b/.github/scripts/release-push.sh @@ -0,0 +1,18 @@ +#!/bin/env bash +set -e + +root=$(cd "$(dirname $0)/../.." && pwd) +if [ -e "$root/.auto-release-abort" ]; then + echo "previous step triggered stop, abort" + exit 0 +fi +new_sdk_version=$(cat $root/sdk_version) +branch_name="autobuild-$new_sdk_version" + +if [ -z "$SSH_PRIVATE_KEY" ]; then + echo "SSH_PRIVATE_KEY is missing, abort." + exit 1 +fi + +echo "$SSH_PRIVATE_KEY" > $root/bot.key +GIT_SSH_COMMAND="ssh -i $root/bot.key" git push -f origin $branch_name diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..8bc6ef7b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: osc-sdk-js release build +on: + workflow_dispatch: + inputs: + api_version: + description: 'Outscale API version' + required: true + +jobs: + auto-build: + environment: auto-build + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + ref: main + - uses: actions/setup-node@v3 + with: + node-version: 16.3.0 + - name: make nvm available + run: | + sudo cp ~/.nvm/nvm.sh /usr/local/bin/nvm + sudo chmod +x /usr/local/bin/nvm + - name: Write Outscale API version to use + run: echo "${{ github.event.inputs.api_version }}" > api_version + - name: check for release duplicate + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + run: make release-check-duplicate + - name: auto-generate release + run: make release-build + - name: push release branch + run: make release-push + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + - name: create pull request + run: make release-pr + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/cred-scan.yml b/.github/workflows/cred-scan.yml new file mode 100644 index 00000000..b82ff165 --- /dev/null +++ b/.github/workflows/cred-scan.yml @@ -0,0 +1,16 @@ +name: Credential Scanner + +on: + pull_request: + branches: + - main + +jobs: + cred-scan: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Scan credentials + uses: outscale-dev/cred-scan@main + with: + scan_path: "./" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..da0b3720 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,63 @@ +name: pull-request + +on: + pull_request: + branches: [ main ] + +permissions: + pull-requests: write + contents: write + +jobs: + reuse-test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Reuse specification test + run: make reuse-test + examples-test: + environment: eu-west-2 + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.3.0 + - name: make nvm available + run: | + sudo cp ~/.nvm/nvm.sh /usr/local/bin/nvm + sudo chmod +x /usr/local/bin/nvm + - name: Example tests + env: + OSC_ACCESS_KEY: ${{ secrets.OSC_ACCESS_KEY }} + OSC_SECRET_KEY: ${{ secrets.OSC_SECRET_KEY }} + OSC_REGION: ${{ secrets.OSC_REGION }} + run: make examples-test + regeneration-test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.3.0 + - name: make nvm available + run: | + sudo cp ~/.nvm/nvm.sh /usr/local/bin/nvm + sudo chmod +x /usr/local/bin/nvm + - name: SDK re-generation test + run: make regen-test + dependabot-auto-merge: + needs: [reuse-test, examples-test, regeneration-test] + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1.1.1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Auto-merge + run: gh pr merge --auto --rebase "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..66754d4c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.sdk +osc-api +node_modules +.vscode \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..4c807a10 --- /dev/null +++ b/.npmignore @@ -0,0 +1,8 @@ +README.md +Makefile +api_version +changelog.md +CONTRIBUTING.md +sdk_version +examples +osc-api \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..585739b6 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18.2.0 \ No newline at end of file diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 00000000..d4502ae9 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,12 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: osc-sdk-js +Upstream-Contact: Outscale support +Source: https://gitlab.com/outscale/osc-sdk-js/ + +Files: *.md +Copyright: 2019 Outscale SAS +License: CC-BY-4.0 + +Files: Makefile sdk_version api_version *.go .git* src/* dist/* *.yml *.yaml .patch/*.patch *.sum *.mod *.patch examples/* *.json .npmignore .nvmrc +Copyright: 2019 Outscale SAS +License: BSD-3-Clause diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..725dd119 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,63 @@ +# Needed tools + +- npm +- nvm +- GNU Make + +# Build process overview + +Here is a quick overview of what happen when calling `make gen`: +1. cleanup existing files +2. download Outscale API description (OpenAPI format) (in /osc-api) +3. call openapi-generator in order to generate typescript-based SDK (in /src) +4. call typescipt compiler to build .js and .d.ts declaration files (in /dist) + +# Hacking Outscale SDK + +SDK itself is generated from Outscale's [OpenAPI description](https://github.com/outscale/osc-api) using OpenAPI Genetator. + +Other contributions like examples and tests are welcome! + +# Versioning + +This SDK follows [semantic versioning](https://semver.org/) from the SDK perspective (not API). +Some events may trigger a major (breaking) version of the SDK: +1. OpenAPI generator introduce a new major version +2. Outscale introduce a new major version of its API + +When OpenAPI generator introduce a breaking change, SDK can be generated in several versions (see corresponding branches) + +# Generate SDK + +1. have some tools ready: GNU make, git, docker +2. edit `api_version` file and to the latest Outscale API version +3. edit `sdk_version` file and change it according to [semantic versioning](https://semver.org/) +4. launch sdk generation by running `make gen` +5. new sdk is now generated + +Under the hood: +- we get official Outscale yaml +- run openapi-generator through docker to build osc folder + +# Sending a Merge Request + +Content in `src` folder is generated at each release. +If you plan to make some change here, consider making a pull request in [openapi-generator project](https://github.com/OpenAPITools/openapi-generator/). + +Otherwise: +- your merge request must be rebased on the corresponding major version branch. +- be sure that tests still pass by running `make test` + +# How to release + +1. fetch outscale and be sure to be on main branch +2. update `api_version` to the last Outscale API version +3. update `sdk_version` following [semantic versioning](https://semver.org/) logic. +5. `make gen` to re-build the sdk +6. `make test` and fix any issue +8. commit changes +9. tag version +10. push to corresponding branch +11. create github release + +Note that CI should automatically detect new release on osc-api, update the SDK and push a new version. diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt new file mode 100644 index 00000000..7e2c96ae --- /dev/null +++ b/LICENSES/BSD-3-Clause.txt @@ -0,0 +1,26 @@ +Copyright (c) Outscale SAS. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors +may be used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 00000000..3f92dfc5 --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,324 @@ +Creative Commons Attribution 4.0 International Creative Commons Corporation +("Creative Commons") is not a law firm and does not provide legal services +or legal advice. Distribution of Creative Commons public licenses does not +create a lawyer-client or other relationship. Creative Commons makes its licenses +and related information available on an "as-is" basis. Creative Commons gives +no warranties regarding its licenses, any material licensed under their terms +and conditions, or any related information. Creative Commons disclaims all +liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions +that creators and other rights holders may use to share original works of +authorship and other material subject to copyright and certain other rights +specified in the public license below. The following considerations are for +informational purposes only, are not exhaustive, and do not form part of our +licenses. + +Considerations for licensors: Our public licenses are intended for use by +those authorized to give the public permission to use material in ways otherwise +restricted by copyright and certain other rights. Our licenses are irrevocable. +Licensors should read and understand the terms and conditions of the license +they choose before applying it. Licensors should also secure all rights necessary +before applying our licenses so that the public can reuse the material as +expected. Licensors should clearly mark any material not subject to the license. +This includes other CC-licensed material, or material used under an exception +or limitation to copyright. More considerations for licensors : wiki.creativecommons.org/Considerations_for_licensors + +Considerations for the public: By using one of our public licenses, a licensor +grants the public permission to use the licensed material under specified +terms and conditions. If the licensor's permission is not necessary for any +reason–for example, because of any applicable exception or limitation to copyright–then +that use is not regulated by the license. Our licenses grant only permissions +under copyright and certain other rights that a licensor has authority to +grant. Use of the licensed material may still be restricted for other reasons, +including because others have copyright or other rights in the material. A +licensor may make special requests, such as asking that all changes be marked +or described. Although not required by our licenses, you are encouraged to +respect those requests where reasonable. More considerations for the public +: wiki.creativecommons.org/Considerations_for_licensees Creative Commons Attribution +4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to +be bound by the terms and conditions of this Creative Commons Attribution +4.0 International Public License ("Public License"). To the extent this Public +License may be interpreted as a contract, You are granted the Licensed Rights +in consideration of Your acceptance of these terms and conditions, and the +Licensor grants You such rights in consideration of benefits the Licensor +receives from making the Licensed Material available under these terms and +conditions. + +Section 1 – Definitions. + +a. Adapted Material means material subject to Copyright and Similar Rights +that is derived from or based upon the Licensed Material and in which the +Licensed Material is translated, altered, arranged, transformed, or otherwise +modified in a manner requiring permission under the Copyright and Similar +Rights held by the Licensor. For purposes of this Public License, where the +Licensed Material is a musical work, performance, or sound recording, Adapted +Material is always produced where the Licensed Material is synched in timed +relation with a moving image. + +b. Adapter's License means the license You apply to Your Copyright and Similar +Rights in Your contributions to Adapted Material in accordance with the terms +and conditions of this Public License. + +c. Copyright and Similar Rights means copyright and/or similar rights closely +related to copyright including, without limitation, performance, broadcast, +sound recording, and Sui Generis Database Rights, without regard to how the +rights are labeled or categorized. For purposes of this Public License, the +rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + +d. Effective Technological Measures means those measures that, in the absence +of proper authority, may not be circumvented under laws fulfilling obligations +under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, +and/or similar international agreements. + +e. Exceptions and Limitations means fair use, fair dealing, and/or any other +exception or limitation to Copyright and Similar Rights that applies to Your +use of the Licensed Material. + +f. Licensed Material means the artistic or literary work, database, or other +material to which the Licensor applied this Public License. + +g. Licensed Rights means the rights granted to You subject to the terms and +conditions of this Public License, which are limited to all Copyright and +Similar Rights that apply to Your use of the Licensed Material and that the +Licensor has authority to license. + +h. Licensor means the individual(s) or entity(ies) granting rights under this +Public License. + +i. Share means to provide material to the public by any means or process that +requires permission under the Licensed Rights, such as reproduction, public +display, public performance, distribution, dissemination, communication, or +importation, and to make material available to the public including in ways +that members of the public may access the material from a place and at a time +individually chosen by them. + +j. Sui Generis Database Rights means rights other than copyright resulting +from Directive 96/9/EC of the European Parliament and of the Council of 11 +March 1996 on the legal protection of databases, as amended and/or succeeded, +as well as other essentially equivalent rights anywhere in the world. + +k. You means the individual or entity exercising the Licensed Rights under +this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + +1. Subject to the terms and conditions of this Public License, the Licensor +hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, +irrevocable license to exercise the Licensed Rights in the Licensed Material +to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + +2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions +and Limitations apply to Your use, this Public License does not apply, and +You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + +4. Media and formats; technical modifications allowed. The Licensor authorizes +You to exercise the Licensed Rights in all media and formats whether now known +or hereafter created, and to make technical modifications necessary to do +so. The Licensor waives and/or agrees not to assert any right or authority +to forbid You from making technical modifications necessary to exercise the +Licensed Rights, including technical modifications necessary to circumvent +Effective Technological Measures. For purposes of this Public License, simply +making modifications authorized by this Section 2(a)(4) never produces Adapted +Material. + + 5. Downstream recipients. + +A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed +Material automatically receives an offer from the Licensor to exercise the +Licensed Rights under the terms and conditions of this Public License. + +B. No downstream restrictions. You may not offer or impose any additional +or different terms or conditions on, or apply any Effective Technological +Measures to, the Licensed Material if doing so restricts exercise of the Licensed +Rights by any recipient of the Licensed Material. + +6. No endorsement. Nothing in this Public License constitutes or may be construed +as permission to assert or imply that You are, or that Your use of the Licensed +Material is, connected with, or sponsored, endorsed, or granted official status +by, the Licensor or others designated to receive attribution as provided in +Section 3(a)(1)(A)(i). + + b. Other rights. + +1. Moral rights, such as the right of integrity, are not licensed under this +Public License, nor are publicity, privacy, and/or other similar personality +rights; however, to the extent possible, the Licensor waives and/or agrees +not to assert any such rights held by the Licensor to the limited extent necessary +to allow You to exercise the Licensed Rights, but not otherwise. + +2. Patent and trademark rights are not licensed under this Public License. + +3. To the extent possible, the Licensor waives any right to collect royalties +from You for the exercise of the Licensed Rights, whether directly or through +a collecting society under any voluntary or waivable statutory or compulsory +licensing scheme. In all other cases the Licensor expressly reserves any right +to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following +conditions. + + a. Attribution. + +1. If You Share the Licensed Material (including in modified form), You must: + +A. retain the following if it is supplied by the Licensor with the Licensed +Material: + +i. identification of the creator(s) of the Licensed Material and any others +designated to receive attribution, in any reasonable manner requested by the +Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + +v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + +B. indicate if You modified the Licensed Material and retain an indication +of any previous modifications; and + +C. indicate the Licensed Material is licensed under this Public License, and +include the text of, or the URI or hyperlink to, this Public License. + +2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner +based on the medium, means, and context in which You Share the Licensed Material. +For example, it may be reasonable to satisfy the conditions by providing a +URI or hyperlink to a resource that includes the required information. + +3. If requested by the Licensor, You must remove any of the information required +by Section 3(a)(1)(A) to the extent reasonably practicable. + +4. If You Share Adapted Material You produce, the Adapter's License You apply +must not prevent recipients of the Adapted Material from complying with this +Public License. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to +Your use of the Licensed Material: + +a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, +reuse, reproduce, and Share all or a substantial portion of the contents of +the database; + +b. if You include all or a substantial portion of the database contents in +a database in which You have Sui Generis Database Rights, then the database +in which You have Sui Generis Database Rights (but not its individual contents) +is Adapted Material; and + +c. You must comply with the conditions in Section 3(a) if You Share all or +a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not replace +Your obligations under this Public License where the Licensed Rights include +other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + +a. Unless otherwise separately undertaken by the Licensor, to the extent possible, +the Licensor offers the Licensed Material as-is and as-available, and makes +no representations or warranties of any kind concerning the Licensed Material, +whether express, implied, statutory, or other. This includes, without limitation, +warranties of title, merchantability, fitness for a particular purpose, non-infringement, +absence of latent or other defects, accuracy, or the presence or absence of +errors, whether or not known or discoverable. Where disclaimers of warranties +are not allowed in full or in part, this disclaimer may not apply to You. + +b. To the extent possible, in no event will the Licensor be liable to You +on any legal theory (including, without limitation, negligence) or otherwise +for any direct, special, indirect, incidental, consequential, punitive, exemplary, +or other losses, costs, expenses, or damages arising out of this Public License +or use of the Licensed Material, even if the Licensor has been advised of +the possibility of such losses, costs, expenses, or damages. Where a limitation +of liability is not allowed in full or in part, this limitation may not apply +to You. + +c. The disclaimer of warranties and limitation of liability provided above +shall be interpreted in a manner that, to the extent possible, most closely +approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + +a. This Public License applies for the term of the Copyright and Similar Rights +licensed here. However, if You fail to comply with this Public License, then +Your rights under this Public License terminate automatically. + +b. Where Your right to use the Licensed Material has terminated under Section +6(a), it reinstates: + +1. automatically as of the date the violation is cured, provided it is cured +within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + +c. For the avoidance of doubt, this Section 6(b) does not affect any right +the Licensor may have to seek remedies for Your violations of this Public +License. + +d. For the avoidance of doubt, the Licensor may also offer the Licensed Material +under separate terms or conditions or stop distributing the Licensed Material +at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + +a. The Licensor shall not be bound by any additional or different terms or +conditions communicated by You unless expressly agreed. + +b. Any arrangements, understandings, or agreements regarding the Licensed +Material not stated herein are separate from and independent of the terms +and conditions of this Public License. + +Section 8 – Interpretation. + +a. For the avoidance of doubt, this Public License does not, and shall not +be interpreted to, reduce, limit, restrict, or impose conditions on any use +of the Licensed Material that could lawfully be made without permission under +this Public License. + +b. To the extent possible, if any provision of this Public License is deemed +unenforceable, it shall be automatically reformed to the minimum extent necessary +to make it enforceable. If the provision cannot be reformed, it shall be severed +from this Public License without affecting the enforceability of the remaining +terms and conditions. + +c. No term or condition of this Public License will be waived and no failure +to comply consented to unless expressly agreed to by the Licensor. + +d. Nothing in this Public License constitutes or may be interpreted as a limitation +upon, or waiver of, any privileges and immunities that apply to the Licensor +or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative +Commons may elect to apply one of its public licenses to material it publishes +and in those instances will be considered the "Licensor." The text of the +Creative Commons public licenses is dedicated to the public domain under the +CC0 Public Domain Dedication. Except for the limited purpose of indicating +that material is shared under a Creative Commons public license or as otherwise +permitted by the Creative Commons policies published at creativecommons.org/policies, +Creative Commons does not authorize the use of the trademark "Creative Commons" +or any other trademark or logo of Creative Commons without its prior written +consent including, without limitation, in connection with any unauthorized +modifications to any of its public licenses or any other arrangements, understandings, +or agreements concerning use of licensed material. For the avoidance of doubt, +this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..31356b31 --- /dev/null +++ b/Makefile @@ -0,0 +1,138 @@ +API_VERSION=$(shell cat api_version) +SDK_VERSION=$(shell cat sdk_version) +USER_ID=$(shell id -u) +GROUP_ID=$(shell id -g) +OPENAPI_IMG=outscale/openapi-generator:ts-fetch-aws-v4 +SHELL := /bin/bash + +all: help + +.PHONY: help +help: + @echo "help:" + @echo "- make gen : regenerate SDK" + @echo "- make test : run all tests" + +.PHONY: gen +gen: clean osc-generate + +.PNONY: openapi-generator-help +openapi-generator-help: + docker run -v $(PWD):/sdk --rm $(OPENAPI_IMG) config-help -g typescript-fetch + +.PHONY: osc-generate +osc-generate: osc-api/outscale.yaml + @echo start generating SDK... + rm -rf .sdk || true + mkdir .sdk + docker run -v $(PWD):/sdk --rm $(OPENAPI_IMG) generate -i /sdk/osc-api/outscale.yaml -g typescript-fetch -c /sdk/gen.yml -o /sdk/.sdk --additional-properties=npmVersion=$(SDK_VERSION) + # Set default user agent including sdk version using reproductible sed. + docker run -v $(PWD):/sdk --rm $(OPENAPI_IMG) chown -R $(USER_ID).$(GROUP_ID) /sdk/.sdk + mv .sdk/src ./ + @echo SDK generated + @echo testing SDK build... + @source ~/.nvm/nvm.sh; \ + echo "nvm --version:"; \ + nvm --version; \ + echo "nvm install..."; \ + nvm install; \ + echo "nvm use..."; \ + nvm use; \ + echo "npm version..."; \ + npm version; \ + echo "npm install..."; \ + npm install --local + +osc-api/outscale.yaml: + @echo getting osc-api description... + git clone https://github.com/outscale/osc-api.git && cd osc-api && git checkout -b $(API_VERSION) $(API_VERSION) + +.PHONY: clean +clean: + @echo cleaning build artifacts... + rm -rf .sdk osc-api src node_modules dist || true + +.PHONY: test +test: reuse-test examples-test regen-test + @echo all tests OK... + +.PHONY: reuse-test +reuse-test: + @echo testing licensing with reuse... + docker run --rm --volume $(PWD):/data fsfe/reuse:0.11.1 lint + +.PHONY: examples-test +examples-test: example-web-vms example-node-volumes + @echo examples are OK + +.PHONY: example-web-vms +example-web-vms: + @echo testing examples/web-vms example... + @source ~/.nvm/nvm.sh; \ + cd examples/web-vms; \ + echo "nvm --version:"; \ + nvm --version; \ + echo "installing nvm..."; \ + nvm install; \ + echo "using nvm..."; \ + nvm use; \ + echo "npm version:"; \ + npm version; \ + echo "npm install..."; \ + npm install --local --install-links + +.PHONY: example-node-volumes +example-node-volumes: + @echo testing examples/node-volumes example... + @source ~/.nvm/nvm.sh; \ + cd examples/node-volumes; \ + echo "nvm version:"; \ + nvm --version; \ + echo "nvm install..."; \ + nvm install; \ + echo "nvm use..."; \ + nvm use; \ + echo "npm version:"; \ + npm version; \ + echo "npm install..."; \ + npm install --local --install-links; \ + echo "running node example..."; \ + node ./src/index.js > /dev/null + +# try to regen, should not have any difference +.PHONY: regen-test +regen-test: gen + @echo SDK regeneration test... + git add src dist + git diff --cached -s --exit-code + git diff -s --exit-code + +# Used by bot to auto-release +# GH_TOKEN and SSH_PRIVATE_KEY are needed +.PHONY: auto-release +auto-release: auto-release-cleanup osc-api-check release-check-duplicate release-build release-push release-pr + @echo OK + +.PHONY: auto-release-cleanup +auto-release-cleanup: + rm -rf .auto-release-abort || true + +.PHONY: osc-api-check +osc-api-check: + bash .github/scripts/osc-api-check.sh + +.PHONY: release-check-duplicate +release-check-duplicate: + bash .github/scripts/release-check-duplicate.sh + +.PHONY: release-build +release-build: + bash .github/scripts/release-build.sh + +.PHONY: release-push +release-push: + bash .github/scripts/release-push.sh + +.PHONY: release-pr +release-pr: + bash .github/scripts/release-pr.sh diff --git a/README.md b/README.md index e69de29b..84c20ee4 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,36 @@ +# Outscale SDK for TypeScript/JavaScript + +Welcome to Outscale SDK for [typescript](https://www.typescriptlang.org/)/[javascript](https://en.wikipedia.org/wiki/JavaScript). + +This SDK provides a TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). + +# How to use this SDK ? + +Add `outscale-api` to your `package.json`: + +``` + "dependencies": { + "outscale-api": "github:outscale/osc-sdk-js", + } +``` + +See [examples](examples/) folder to jump straight into the code! + +# Building from sources + +``` +npm install --local +npm run build +``` + +# Contributing + +Check [contributing documentation](CONTRIBUTING.md). + +# License + +> Copyright Outscale SAS +> +> BSD-3-Clause + +This project is compliant with [REUSE](https://reuse.software/). diff --git a/api_version b/api_version new file mode 100644 index 00000000..815d5ca0 --- /dev/null +++ b/api_version @@ -0,0 +1 @@ +1.19.0 diff --git a/changelog.md b/changelog.md new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/changelog.md @@ -0,0 +1 @@ + diff --git a/dist/cjs/apis/AccessKeyApi.d.ts b/dist/cjs/apis/AccessKeyApi.d.ts new file mode 100644 index 00000000..3b233d2b --- /dev/null +++ b/dist/cjs/apis/AccessKeyApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateAccessKeyRequest, CreateAccessKeyResponse, DeleteAccessKeyRequest, DeleteAccessKeyResponse, ReadAccessKeysRequest, ReadAccessKeysResponse, ReadSecretAccessKeyRequest, ReadSecretAccessKeyResponse, UpdateAccessKeyRequest, UpdateAccessKeyResponse } from '../models'; +export interface CreateAccessKeyOperationRequest { + createAccessKeyRequest?: CreateAccessKeyRequest; +} +export interface DeleteAccessKeyOperationRequest { + deleteAccessKeyRequest?: DeleteAccessKeyRequest; +} +export interface ReadAccessKeysOperationRequest { + readAccessKeysRequest?: ReadAccessKeysRequest; +} +export interface ReadSecretAccessKeyOperationRequest { + readSecretAccessKeyRequest?: ReadSecretAccessKeyRequest; +} +export interface UpdateAccessKeyOperationRequest { + updateAccessKeyRequest?: UpdateAccessKeyRequest; +} +/** + * AccessKeyApi - interface + * + * @export + * @interface AccessKeyApiInterface + */ +export interface AccessKeyApiInterface { + /** + * + * @param {CreateAccessKeyRequest} [createAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + createAccessKeyRaw(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccessKey(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteAccessKeyRequest} [deleteAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + deleteAccessKeyRaw(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteAccessKey(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadAccessKeysRequest} [readAccessKeysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + readAccessKeysRaw(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccessKeys(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSecretAccessKeyRequest} [readSecretAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + readSecretAccessKeyRaw(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecretAccessKey(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateAccessKeyRequest} [updateAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + updateAccessKeyRaw(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccessKey(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class AccessKeyApi extends runtime.BaseAPI implements AccessKeyApiInterface { + /** + */ + createAccessKeyRaw(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccessKey(requestParameters?: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteAccessKeyRaw(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteAccessKey(requestParameters?: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readAccessKeysRaw(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccessKeys(requestParameters?: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSecretAccessKeyRaw(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecretAccessKey(requestParameters?: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateAccessKeyRaw(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccessKey(requestParameters?: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/AccessKeyApi.js b/dist/cjs/apis/AccessKeyApi.js new file mode 100644 index 00000000..657c416c --- /dev/null +++ b/dist/cjs/apis/AccessKeyApi.js @@ -0,0 +1,266 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccessKeyApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class AccessKeyApi extends runtime.BaseAPI { + /** + */ + createAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.CreateAccessKeyRequestToJSON)(requestParameters.createAccessKeyRequest); + const request = { + path: `/CreateAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateAccessKeyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.DeleteAccessKeyRequestToJSON)(requestParameters.deleteAccessKeyRequest); + const request = { + path: `/DeleteAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteAccessKeyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readAccessKeysRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.ReadAccessKeysRequestToJSON)(requestParameters.readAccessKeysRequest); + const request = { + path: `/ReadAccessKeys`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadAccessKeysResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readAccessKeys(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readAccessKeysRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSecretAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.ReadSecretAccessKeyRequestToJSON)(requestParameters.readSecretAccessKeyRequest); + const request = { + path: `/ReadSecretAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadSecretAccessKeyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readSecretAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSecretAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.UpdateAccessKeyRequestToJSON)(requestParameters.updateAccessKeyRequest); + const request = { + path: `/UpdateAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateAccessKeyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.AccessKeyApi = AccessKeyApi; diff --git a/dist/cjs/apis/AccountApi.d.ts b/dist/cjs/apis/AccountApi.d.ts new file mode 100644 index 00000000..b62f629f --- /dev/null +++ b/dist/cjs/apis/AccountApi.d.ts @@ -0,0 +1,166 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CheckAuthenticationRequest, CheckAuthenticationResponse, CreateAccountRequest, CreateAccountResponse, ReadAccountsRequest, ReadAccountsResponse, ReadConsumptionAccountRequest, ReadConsumptionAccountResponse, ResetAccountPasswordRequest, ResetAccountPasswordResponse, SendResetPasswordEmailRequest, SendResetPasswordEmailResponse, UpdateAccountRequest, UpdateAccountResponse } from '../models'; +export interface CheckAuthenticationOperationRequest { + checkAuthenticationRequest?: CheckAuthenticationRequest; +} +export interface CreateAccountOperationRequest { + createAccountRequest?: CreateAccountRequest; +} +export interface ReadAccountsOperationRequest { + readAccountsRequest?: ReadAccountsRequest; +} +export interface ReadConsumptionAccountOperationRequest { + readConsumptionAccountRequest?: ReadConsumptionAccountRequest; +} +export interface ResetAccountPasswordOperationRequest { + resetAccountPasswordRequest?: ResetAccountPasswordRequest; +} +export interface SendResetPasswordEmailOperationRequest { + sendResetPasswordEmailRequest?: SendResetPasswordEmailRequest; +} +export interface UpdateAccountOperationRequest { + updateAccountRequest?: UpdateAccountRequest; +} +/** + * AccountApi - interface + * + * @export + * @interface AccountApiInterface + */ +export interface AccountApiInterface { + /** + * + * @param {CheckAuthenticationRequest} [checkAuthenticationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + checkAuthenticationRaw(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + checkAuthentication(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateAccountRequest} [createAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccount(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadAccountsRequest} [readAccountsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + readAccountsRaw(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccounts(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadConsumptionAccountRequest} [readConsumptionAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + readConsumptionAccountRaw(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsumptionAccount(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ResetAccountPasswordRequest} [resetAccountPasswordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + resetAccountPasswordRaw(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + resetAccountPassword(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {SendResetPasswordEmailRequest} [sendResetPasswordEmailRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + sendResetPasswordEmailRaw(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + sendResetPasswordEmail(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateAccountRequest} [updateAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccount(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class AccountApi extends runtime.BaseAPI implements AccountApiInterface { + /** + */ + checkAuthenticationRaw(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + checkAuthentication(requestParameters?: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccount(requestParameters?: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readAccountsRaw(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccounts(requestParameters?: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readConsumptionAccountRaw(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsumptionAccount(requestParameters?: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + resetAccountPasswordRaw(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + resetAccountPassword(requestParameters?: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + sendResetPasswordEmailRaw(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + sendResetPasswordEmail(requestParameters?: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccount(requestParameters?: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/AccountApi.js b/dist/cjs/apis/AccountApi.js new file mode 100644 index 00000000..99091ff0 --- /dev/null +++ b/dist/cjs/apis/AccountApi.js @@ -0,0 +1,323 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccountApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class AccountApi extends runtime.BaseAPI { + /** + */ + checkAuthenticationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CheckAuthenticationRequestToJSON)(requestParameters.checkAuthenticationRequest); + const request = { + path: `/CheckAuthentication`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CheckAuthenticationResponseFromJSON)(jsonValue)); + }); + } + /** + */ + checkAuthentication(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.checkAuthenticationRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createAccountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateAccountRequestToJSON)(requestParameters.createAccountRequest); + const request = { + path: `/CreateAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateAccountResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createAccount(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createAccountRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readAccountsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadAccountsRequestToJSON)(requestParameters.readAccountsRequest); + const request = { + path: `/ReadAccounts`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadAccountsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readAccounts(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readAccountsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readConsumptionAccountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadConsumptionAccountRequestToJSON)(requestParameters.readConsumptionAccountRequest); + const request = { + path: `/ReadConsumptionAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadConsumptionAccountResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readConsumptionAccount(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readConsumptionAccountRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + resetAccountPasswordRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ResetAccountPasswordRequestToJSON)(requestParameters.resetAccountPasswordRequest); + const request = { + path: `/ResetAccountPassword`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ResetAccountPasswordResponseFromJSON)(jsonValue)); + }); + } + /** + */ + resetAccountPassword(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.resetAccountPasswordRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + sendResetPasswordEmailRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.SendResetPasswordEmailRequestToJSON)(requestParameters.sendResetPasswordEmailRequest); + const request = { + path: `/SendResetPasswordEmail`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SendResetPasswordEmailResponseFromJSON)(jsonValue)); + }); + } + /** + */ + sendResetPasswordEmail(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sendResetPasswordEmailRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateAccountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateAccountRequestToJSON)(requestParameters.updateAccountRequest); + const request = { + path: `/UpdateAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateAccountResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateAccount(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateAccountRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.AccountApi = AccountApi; diff --git a/dist/cjs/apis/ApiAccessPolicyApi.d.ts b/dist/cjs/apis/ApiAccessPolicyApi.d.ts new file mode 100644 index 00000000..73a53932 --- /dev/null +++ b/dist/cjs/apis/ApiAccessPolicyApi.d.ts @@ -0,0 +1,66 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadApiAccessPolicyRequest, ReadApiAccessPolicyResponse, UpdateApiAccessPolicyRequest, UpdateApiAccessPolicyResponse } from '../models'; +export interface ReadApiAccessPolicyOperationRequest { + readApiAccessPolicyRequest?: ReadApiAccessPolicyRequest; +} +export interface UpdateApiAccessPolicyOperationRequest { + updateApiAccessPolicyRequest?: UpdateApiAccessPolicyRequest; +} +/** + * ApiAccessPolicyApi - interface + * + * @export + * @interface ApiAccessPolicyApiInterface + */ +export interface ApiAccessPolicyApiInterface { + /** + * + * @param {ReadApiAccessPolicyRequest} [readApiAccessPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessPolicyApiInterface + */ + readApiAccessPolicyRaw(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessPolicy(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateApiAccessPolicyRequest} [updateApiAccessPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessPolicyApiInterface + */ + updateApiAccessPolicyRaw(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessPolicy(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ApiAccessPolicyApi extends runtime.BaseAPI implements ApiAccessPolicyApiInterface { + /** + */ + readApiAccessPolicyRaw(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessPolicy(requestParameters?: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateApiAccessPolicyRaw(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessPolicy(requestParameters?: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ApiAccessPolicyApi.js b/dist/cjs/apis/ApiAccessPolicyApi.js new file mode 100644 index 00000000..109e8ddc --- /dev/null +++ b/dist/cjs/apis/ApiAccessPolicyApi.js @@ -0,0 +1,140 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiAccessPolicyApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ApiAccessPolicyApi extends runtime.BaseAPI { + /** + */ + readApiAccessPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.ReadApiAccessPolicyRequestToJSON)(requestParameters.readApiAccessPolicyRequest); + const request = { + path: `/ReadApiAccessPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadApiAccessPolicyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readApiAccessPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readApiAccessPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateApiAccessPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.UpdateApiAccessPolicyRequestToJSON)(requestParameters.updateApiAccessPolicyRequest); + const request = { + path: `/UpdateApiAccessPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateApiAccessPolicyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateApiAccessPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateApiAccessPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ApiAccessPolicyApi = ApiAccessPolicyApi; diff --git a/dist/cjs/apis/ApiAccessRuleApi.d.ts b/dist/cjs/apis/ApiAccessRuleApi.d.ts new file mode 100644 index 00000000..5e7e5742 --- /dev/null +++ b/dist/cjs/apis/ApiAccessRuleApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateApiAccessRuleRequest, CreateApiAccessRuleResponse, DeleteApiAccessRuleRequest, DeleteApiAccessRuleResponse, ReadApiAccessRulesRequest, ReadApiAccessRulesResponse, UpdateApiAccessRuleRequest, UpdateApiAccessRuleResponse } from '../models'; +export interface CreateApiAccessRuleOperationRequest { + createApiAccessRuleRequest?: CreateApiAccessRuleRequest; +} +export interface DeleteApiAccessRuleOperationRequest { + deleteApiAccessRuleRequest?: DeleteApiAccessRuleRequest; +} +export interface ReadApiAccessRulesOperationRequest { + readApiAccessRulesRequest?: ReadApiAccessRulesRequest; +} +export interface UpdateApiAccessRuleOperationRequest { + updateApiAccessRuleRequest?: UpdateApiAccessRuleRequest; +} +/** + * ApiAccessRuleApi - interface + * + * @export + * @interface ApiAccessRuleApiInterface + */ +export interface ApiAccessRuleApiInterface { + /** + * + * @param {CreateApiAccessRuleRequest} [createApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + createApiAccessRuleRaw(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createApiAccessRule(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteApiAccessRuleRequest} [deleteApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + deleteApiAccessRuleRaw(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteApiAccessRule(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadApiAccessRulesRequest} [readApiAccessRulesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + readApiAccessRulesRaw(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessRules(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateApiAccessRuleRequest} [updateApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + updateApiAccessRuleRaw(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessRule(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ApiAccessRuleApi extends runtime.BaseAPI implements ApiAccessRuleApiInterface { + /** + */ + createApiAccessRuleRaw(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createApiAccessRule(requestParameters?: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteApiAccessRuleRaw(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteApiAccessRule(requestParameters?: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readApiAccessRulesRaw(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessRules(requestParameters?: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateApiAccessRuleRaw(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessRule(requestParameters?: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ApiAccessRuleApi.js b/dist/cjs/apis/ApiAccessRuleApi.js new file mode 100644 index 00000000..f38d8d63 --- /dev/null +++ b/dist/cjs/apis/ApiAccessRuleApi.js @@ -0,0 +1,224 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiAccessRuleApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ApiAccessRuleApi extends runtime.BaseAPI { + /** + */ + createApiAccessRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.CreateApiAccessRuleRequestToJSON)(requestParameters.createApiAccessRuleRequest); + const request = { + path: `/CreateApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateApiAccessRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createApiAccessRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createApiAccessRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteApiAccessRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.DeleteApiAccessRuleRequestToJSON)(requestParameters.deleteApiAccessRuleRequest); + const request = { + path: `/DeleteApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteApiAccessRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteApiAccessRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteApiAccessRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readApiAccessRulesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.ReadApiAccessRulesRequestToJSON)(requestParameters.readApiAccessRulesRequest); + const request = { + path: `/ReadApiAccessRules`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadApiAccessRulesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readApiAccessRules(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readApiAccessRulesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateApiAccessRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.UpdateApiAccessRuleRequestToJSON)(requestParameters.updateApiAccessRuleRequest); + const request = { + path: `/UpdateApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateApiAccessRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateApiAccessRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateApiAccessRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ApiAccessRuleApi = ApiAccessRuleApi; diff --git a/dist/cjs/apis/ApiLogApi.d.ts b/dist/cjs/apis/ApiLogApi.d.ts new file mode 100644 index 00000000..339d1d65 --- /dev/null +++ b/dist/cjs/apis/ApiLogApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadApiLogsRequest, ReadApiLogsResponse } from '../models'; +export interface ReadApiLogsOperationRequest { + readApiLogsRequest?: ReadApiLogsRequest; +} +/** + * ApiLogApi - interface + * + * @export + * @interface ApiLogApiInterface + */ +export interface ApiLogApiInterface { + /** + * + * @param {ReadApiLogsRequest} [readApiLogsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiLogApiInterface + */ + readApiLogsRaw(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiLogs(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ApiLogApi extends runtime.BaseAPI implements ApiLogApiInterface { + /** + */ + readApiLogsRaw(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiLogs(requestParameters?: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ApiLogApi.js b/dist/cjs/apis/ApiLogApi.js new file mode 100644 index 00000000..10df8c62 --- /dev/null +++ b/dist/cjs/apis/ApiLogApi.js @@ -0,0 +1,95 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiLogApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ApiLogApi extends runtime.BaseAPI { + /** + */ + readApiLogsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadApiLogsRequestToJSON)(requestParameters.readApiLogsRequest); + const request = { + path: `/ReadApiLogs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadApiLogsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readApiLogs(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readApiLogsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ApiLogApi = ApiLogApi; diff --git a/dist/cjs/apis/CaApi.d.ts b/dist/cjs/apis/CaApi.d.ts new file mode 100644 index 00000000..abc71785 --- /dev/null +++ b/dist/cjs/apis/CaApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateCaRequest, CreateCaResponse, DeleteCaRequest, DeleteCaResponse, ReadCasRequest, ReadCasResponse, UpdateCaRequest, UpdateCaResponse } from '../models'; +export interface CreateCaOperationRequest { + createCaRequest?: CreateCaRequest; +} +export interface DeleteCaOperationRequest { + deleteCaRequest?: DeleteCaRequest; +} +export interface ReadCasOperationRequest { + readCasRequest?: ReadCasRequest; +} +export interface UpdateCaOperationRequest { + updateCaRequest?: UpdateCaRequest; +} +/** + * CaApi - interface + * + * @export + * @interface CaApiInterface + */ +export interface CaApiInterface { + /** + * + * @param {CreateCaRequest} [createCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + createCaRaw(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createCa(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteCaRequest} [deleteCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + deleteCaRaw(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteCa(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadCasRequest} [readCasRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + readCasRaw(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCas(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateCaRequest} [updateCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + updateCaRaw(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateCa(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class CaApi extends runtime.BaseAPI implements CaApiInterface { + /** + */ + createCaRaw(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createCa(requestParameters?: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteCaRaw(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteCa(requestParameters?: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readCasRaw(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCas(requestParameters?: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateCaRaw(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateCa(requestParameters?: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/CaApi.js b/dist/cjs/apis/CaApi.js new file mode 100644 index 00000000..1860265b --- /dev/null +++ b/dist/cjs/apis/CaApi.js @@ -0,0 +1,224 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CaApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class CaApi extends runtime.BaseAPI { + /** + */ + createCaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.CreateCaRequestToJSON)(requestParameters.createCaRequest); + const request = { + path: `/CreateCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateCaResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createCa(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createCaRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteCaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.DeleteCaRequestToJSON)(requestParameters.deleteCaRequest); + const request = { + path: `/DeleteCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteCaResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteCa(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteCaRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readCasRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.ReadCasRequestToJSON)(requestParameters.readCasRequest); + const request = { + path: `/ReadCas`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadCasResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readCas(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readCasRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateCaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = (0, models_1.UpdateCaRequestToJSON)(requestParameters.updateCaRequest); + const request = { + path: `/UpdateCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateCaResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateCa(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateCaRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.CaApi = CaApi; diff --git a/dist/cjs/apis/CatalogApi.d.ts b/dist/cjs/apis/CatalogApi.d.ts new file mode 100644 index 00000000..ad7a4680 --- /dev/null +++ b/dist/cjs/apis/CatalogApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadCatalogRequest, ReadCatalogResponse } from '../models'; +export interface ReadCatalogOperationRequest { + readCatalogRequest?: ReadCatalogRequest; +} +/** + * CatalogApi - interface + * + * @export + * @interface CatalogApiInterface + */ +export interface CatalogApiInterface { + /** + * + * @param {ReadCatalogRequest} [readCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CatalogApiInterface + */ + readCatalogRaw(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCatalog(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class CatalogApi extends runtime.BaseAPI implements CatalogApiInterface { + /** + */ + readCatalogRaw(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCatalog(requestParameters?: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/CatalogApi.js b/dist/cjs/apis/CatalogApi.js new file mode 100644 index 00000000..380e78b4 --- /dev/null +++ b/dist/cjs/apis/CatalogApi.js @@ -0,0 +1,95 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatalogApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class CatalogApi extends runtime.BaseAPI { + /** + */ + readCatalogRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadCatalogRequestToJSON)(requestParameters.readCatalogRequest); + const request = { + path: `/ReadCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadCatalogResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readCatalog(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readCatalogRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.CatalogApi = CatalogApi; diff --git a/dist/cjs/apis/ClientGatewayApi.d.ts b/dist/cjs/apis/ClientGatewayApi.d.ts new file mode 100644 index 00000000..77def004 --- /dev/null +++ b/dist/cjs/apis/ClientGatewayApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateClientGatewayRequest, CreateClientGatewayResponse, DeleteClientGatewayRequest, DeleteClientGatewayResponse, ReadClientGatewaysRequest, ReadClientGatewaysResponse } from '../models'; +export interface CreateClientGatewayOperationRequest { + createClientGatewayRequest?: CreateClientGatewayRequest; +} +export interface DeleteClientGatewayOperationRequest { + deleteClientGatewayRequest?: DeleteClientGatewayRequest; +} +export interface ReadClientGatewaysOperationRequest { + readClientGatewaysRequest?: ReadClientGatewaysRequest; +} +/** + * ClientGatewayApi - interface + * + * @export + * @interface ClientGatewayApiInterface + */ +export interface ClientGatewayApiInterface { + /** + * + * @param {CreateClientGatewayRequest} [createClientGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + createClientGatewayRaw(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createClientGateway(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteClientGatewayRequest} [deleteClientGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + deleteClientGatewayRaw(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteClientGateway(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadClientGatewaysRequest} [readClientGatewaysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + readClientGatewaysRaw(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readClientGateways(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ClientGatewayApi extends runtime.BaseAPI implements ClientGatewayApiInterface { + /** + */ + createClientGatewayRaw(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createClientGateway(requestParameters?: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteClientGatewayRaw(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteClientGateway(requestParameters?: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readClientGatewaysRaw(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readClientGateways(requestParameters?: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ClientGatewayApi.js b/dist/cjs/apis/ClientGatewayApi.js new file mode 100644 index 00000000..214e7671 --- /dev/null +++ b/dist/cjs/apis/ClientGatewayApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClientGatewayApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ClientGatewayApi extends runtime.BaseAPI { + /** + */ + createClientGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateClientGatewayRequestToJSON)(requestParameters.createClientGatewayRequest); + const request = { + path: `/CreateClientGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateClientGatewayResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createClientGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createClientGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteClientGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteClientGatewayRequestToJSON)(requestParameters.deleteClientGatewayRequest); + const request = { + path: `/DeleteClientGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteClientGatewayResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteClientGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteClientGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readClientGatewaysRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadClientGatewaysRequestToJSON)(requestParameters.readClientGatewaysRequest); + const request = { + path: `/ReadClientGateways`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadClientGatewaysResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readClientGateways(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readClientGatewaysRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ClientGatewayApi = ClientGatewayApi; diff --git a/dist/cjs/apis/DhcpOptionApi.d.ts b/dist/cjs/apis/DhcpOptionApi.d.ts new file mode 100644 index 00000000..821d5631 --- /dev/null +++ b/dist/cjs/apis/DhcpOptionApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateDhcpOptionsRequest, CreateDhcpOptionsResponse, DeleteDhcpOptionsRequest, DeleteDhcpOptionsResponse, ReadDhcpOptionsRequest, ReadDhcpOptionsResponse } from '../models'; +export interface CreateDhcpOptionsOperationRequest { + createDhcpOptionsRequest?: CreateDhcpOptionsRequest; +} +export interface DeleteDhcpOptionsOperationRequest { + deleteDhcpOptionsRequest?: DeleteDhcpOptionsRequest; +} +export interface ReadDhcpOptionsOperationRequest { + readDhcpOptionsRequest?: ReadDhcpOptionsRequest; +} +/** + * DhcpOptionApi - interface + * + * @export + * @interface DhcpOptionApiInterface + */ +export interface DhcpOptionApiInterface { + /** + * + * @param {CreateDhcpOptionsRequest} [createDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + createDhcpOptionsRaw(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDhcpOptions(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteDhcpOptionsRequest} [deleteDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + deleteDhcpOptionsRaw(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDhcpOptions(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadDhcpOptionsRequest} [readDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + readDhcpOptionsRaw(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDhcpOptions(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class DhcpOptionApi extends runtime.BaseAPI implements DhcpOptionApiInterface { + /** + */ + createDhcpOptionsRaw(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDhcpOptions(requestParameters?: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteDhcpOptionsRaw(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDhcpOptions(requestParameters?: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readDhcpOptionsRaw(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDhcpOptions(requestParameters?: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/DhcpOptionApi.js b/dist/cjs/apis/DhcpOptionApi.js new file mode 100644 index 00000000..b31db402 --- /dev/null +++ b/dist/cjs/apis/DhcpOptionApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DhcpOptionApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class DhcpOptionApi extends runtime.BaseAPI { + /** + */ + createDhcpOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateDhcpOptionsRequestToJSON)(requestParameters.createDhcpOptionsRequest); + const request = { + path: `/CreateDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateDhcpOptionsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createDhcpOptions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createDhcpOptionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteDhcpOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteDhcpOptionsRequestToJSON)(requestParameters.deleteDhcpOptionsRequest); + const request = { + path: `/DeleteDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteDhcpOptionsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteDhcpOptions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteDhcpOptionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readDhcpOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadDhcpOptionsRequestToJSON)(requestParameters.readDhcpOptionsRequest); + const request = { + path: `/ReadDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadDhcpOptionsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readDhcpOptions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readDhcpOptionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.DhcpOptionApi = DhcpOptionApi; diff --git a/dist/cjs/apis/DirectLinkApi.d.ts b/dist/cjs/apis/DirectLinkApi.d.ts new file mode 100644 index 00000000..39325740 --- /dev/null +++ b/dist/cjs/apis/DirectLinkApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateDirectLinkRequest, CreateDirectLinkResponse, DeleteDirectLinkRequest, DeleteDirectLinkResponse, ReadDirectLinksRequest, ReadDirectLinksResponse } from '../models'; +export interface CreateDirectLinkOperationRequest { + createDirectLinkRequest?: CreateDirectLinkRequest; +} +export interface DeleteDirectLinkOperationRequest { + deleteDirectLinkRequest?: DeleteDirectLinkRequest; +} +export interface ReadDirectLinksOperationRequest { + readDirectLinksRequest?: ReadDirectLinksRequest; +} +/** + * DirectLinkApi - interface + * + * @export + * @interface DirectLinkApiInterface + */ +export interface DirectLinkApiInterface { + /** + * + * @param {CreateDirectLinkRequest} [createDirectLinkRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + createDirectLinkRaw(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLink(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteDirectLinkRequest} [deleteDirectLinkRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + deleteDirectLinkRaw(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLink(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadDirectLinksRequest} [readDirectLinksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + readDirectLinksRaw(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinks(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class DirectLinkApi extends runtime.BaseAPI implements DirectLinkApiInterface { + /** + */ + createDirectLinkRaw(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLink(requestParameters?: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteDirectLinkRaw(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLink(requestParameters?: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readDirectLinksRaw(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinks(requestParameters?: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/DirectLinkApi.js b/dist/cjs/apis/DirectLinkApi.js new file mode 100644 index 00000000..25fd40c1 --- /dev/null +++ b/dist/cjs/apis/DirectLinkApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirectLinkApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class DirectLinkApi extends runtime.BaseAPI { + /** + */ + createDirectLinkRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateDirectLinkRequestToJSON)(requestParameters.createDirectLinkRequest); + const request = { + path: `/CreateDirectLink`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateDirectLinkResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createDirectLink(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createDirectLinkRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteDirectLinkRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteDirectLinkRequestToJSON)(requestParameters.deleteDirectLinkRequest); + const request = { + path: `/DeleteDirectLink`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteDirectLinkResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteDirectLink(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteDirectLinkRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readDirectLinksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadDirectLinksRequestToJSON)(requestParameters.readDirectLinksRequest); + const request = { + path: `/ReadDirectLinks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadDirectLinksResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readDirectLinks(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readDirectLinksRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.DirectLinkApi = DirectLinkApi; diff --git a/dist/cjs/apis/DirectLinkInterfaceApi.d.ts b/dist/cjs/apis/DirectLinkInterfaceApi.d.ts new file mode 100644 index 00000000..d777c776 --- /dev/null +++ b/dist/cjs/apis/DirectLinkInterfaceApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateDirectLinkInterfaceRequest, CreateDirectLinkInterfaceResponse, DeleteDirectLinkInterfaceRequest, DeleteDirectLinkInterfaceResponse, ReadDirectLinkInterfacesRequest, ReadDirectLinkInterfacesResponse } from '../models'; +export interface CreateDirectLinkInterfaceOperationRequest { + createDirectLinkInterfaceRequest?: CreateDirectLinkInterfaceRequest; +} +export interface DeleteDirectLinkInterfaceOperationRequest { + deleteDirectLinkInterfaceRequest?: DeleteDirectLinkInterfaceRequest; +} +export interface ReadDirectLinkInterfacesOperationRequest { + readDirectLinkInterfacesRequest?: ReadDirectLinkInterfacesRequest; +} +/** + * DirectLinkInterfaceApi - interface + * + * @export + * @interface DirectLinkInterfaceApiInterface + */ +export interface DirectLinkInterfaceApiInterface { + /** + * + * @param {CreateDirectLinkInterfaceRequest} [createDirectLinkInterfaceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + createDirectLinkInterfaceRaw(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLinkInterface(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteDirectLinkInterfaceRequest} [deleteDirectLinkInterfaceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + deleteDirectLinkInterfaceRaw(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLinkInterface(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadDirectLinkInterfacesRequest} [readDirectLinkInterfacesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + readDirectLinkInterfacesRaw(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinkInterfaces(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class DirectLinkInterfaceApi extends runtime.BaseAPI implements DirectLinkInterfaceApiInterface { + /** + */ + createDirectLinkInterfaceRaw(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLinkInterface(requestParameters?: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteDirectLinkInterfaceRaw(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLinkInterface(requestParameters?: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readDirectLinkInterfacesRaw(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinkInterfaces(requestParameters?: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/DirectLinkInterfaceApi.js b/dist/cjs/apis/DirectLinkInterfaceApi.js new file mode 100644 index 00000000..5fc66a2f --- /dev/null +++ b/dist/cjs/apis/DirectLinkInterfaceApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirectLinkInterfaceApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class DirectLinkInterfaceApi extends runtime.BaseAPI { + /** + */ + createDirectLinkInterfaceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateDirectLinkInterfaceRequestToJSON)(requestParameters.createDirectLinkInterfaceRequest); + const request = { + path: `/CreateDirectLinkInterface`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateDirectLinkInterfaceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createDirectLinkInterface(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createDirectLinkInterfaceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteDirectLinkInterfaceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteDirectLinkInterfaceRequestToJSON)(requestParameters.deleteDirectLinkInterfaceRequest); + const request = { + path: `/DeleteDirectLinkInterface`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteDirectLinkInterfaceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteDirectLinkInterface(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteDirectLinkInterfaceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readDirectLinkInterfacesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadDirectLinkInterfacesRequestToJSON)(requestParameters.readDirectLinkInterfacesRequest); + const request = { + path: `/ReadDirectLinkInterfaces`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadDirectLinkInterfacesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readDirectLinkInterfaces(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readDirectLinkInterfacesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.DirectLinkInterfaceApi = DirectLinkInterfaceApi; diff --git a/dist/cjs/apis/FlexibleGpuApi.d.ts b/dist/cjs/apis/FlexibleGpuApi.d.ts new file mode 100644 index 00000000..0dbc8867 --- /dev/null +++ b/dist/cjs/apis/FlexibleGpuApi.d.ts @@ -0,0 +1,166 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateFlexibleGpuRequest, CreateFlexibleGpuResponse, DeleteFlexibleGpuRequest, DeleteFlexibleGpuResponse, LinkFlexibleGpuRequest, LinkFlexibleGpuResponse, ReadFlexibleGpuCatalogRequest, ReadFlexibleGpuCatalogResponse, ReadFlexibleGpusRequest, ReadFlexibleGpusResponse, UnlinkFlexibleGpuRequest, UnlinkFlexibleGpuResponse, UpdateFlexibleGpuRequest, UpdateFlexibleGpuResponse } from '../models'; +export interface CreateFlexibleGpuOperationRequest { + createFlexibleGpuRequest?: CreateFlexibleGpuRequest; +} +export interface DeleteFlexibleGpuOperationRequest { + deleteFlexibleGpuRequest?: DeleteFlexibleGpuRequest; +} +export interface LinkFlexibleGpuOperationRequest { + linkFlexibleGpuRequest?: LinkFlexibleGpuRequest; +} +export interface ReadFlexibleGpuCatalogOperationRequest { + readFlexibleGpuCatalogRequest?: ReadFlexibleGpuCatalogRequest; +} +export interface ReadFlexibleGpusOperationRequest { + readFlexibleGpusRequest?: ReadFlexibleGpusRequest; +} +export interface UnlinkFlexibleGpuOperationRequest { + unlinkFlexibleGpuRequest?: UnlinkFlexibleGpuRequest; +} +export interface UpdateFlexibleGpuOperationRequest { + updateFlexibleGpuRequest?: UpdateFlexibleGpuRequest; +} +/** + * FlexibleGpuApi - interface + * + * @export + * @interface FlexibleGpuApiInterface + */ +export interface FlexibleGpuApiInterface { + /** + * + * @param {CreateFlexibleGpuRequest} [createFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + createFlexibleGpuRaw(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createFlexibleGpu(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteFlexibleGpuRequest} [deleteFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + deleteFlexibleGpuRaw(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteFlexibleGpu(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkFlexibleGpuRequest} [linkFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + linkFlexibleGpuRaw(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkFlexibleGpu(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadFlexibleGpuCatalogRequest} [readFlexibleGpuCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + readFlexibleGpuCatalogRaw(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpuCatalog(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadFlexibleGpusRequest} [readFlexibleGpusRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + readFlexibleGpusRaw(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpus(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkFlexibleGpuRequest} [unlinkFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + unlinkFlexibleGpuRaw(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkFlexibleGpu(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateFlexibleGpuRequest} [updateFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + updateFlexibleGpuRaw(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateFlexibleGpu(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class FlexibleGpuApi extends runtime.BaseAPI implements FlexibleGpuApiInterface { + /** + */ + createFlexibleGpuRaw(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createFlexibleGpu(requestParameters?: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteFlexibleGpuRaw(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteFlexibleGpu(requestParameters?: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkFlexibleGpuRaw(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkFlexibleGpu(requestParameters?: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readFlexibleGpuCatalogRaw(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpuCatalog(requestParameters?: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readFlexibleGpusRaw(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpus(requestParameters?: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkFlexibleGpuRaw(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkFlexibleGpu(requestParameters?: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateFlexibleGpuRaw(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateFlexibleGpu(requestParameters?: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/FlexibleGpuApi.js b/dist/cjs/apis/FlexibleGpuApi.js new file mode 100644 index 00000000..a934b5a0 --- /dev/null +++ b/dist/cjs/apis/FlexibleGpuApi.js @@ -0,0 +1,326 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FlexibleGpuApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class FlexibleGpuApi extends runtime.BaseAPI { + /** + */ + createFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateFlexibleGpuRequestToJSON)(requestParameters.createFlexibleGpuRequest); + const request = { + path: `/CreateFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateFlexibleGpuResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteFlexibleGpuRequestToJSON)(requestParameters.deleteFlexibleGpuRequest); + const request = { + path: `/DeleteFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteFlexibleGpuResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkFlexibleGpuRequestToJSON)(requestParameters.linkFlexibleGpuRequest); + const request = { + path: `/LinkFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkFlexibleGpuResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readFlexibleGpuCatalogRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadFlexibleGpuCatalogRequestToJSON)(requestParameters.readFlexibleGpuCatalogRequest); + const request = { + path: `/ReadFlexibleGpuCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadFlexibleGpuCatalogResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readFlexibleGpuCatalog(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readFlexibleGpuCatalogRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readFlexibleGpusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadFlexibleGpusRequestToJSON)(requestParameters.readFlexibleGpusRequest); + const request = { + path: `/ReadFlexibleGpus`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadFlexibleGpusResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readFlexibleGpus(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readFlexibleGpusRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkFlexibleGpuRequestToJSON)(requestParameters.unlinkFlexibleGpuRequest); + const request = { + path: `/UnlinkFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkFlexibleGpuResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateFlexibleGpuRequestToJSON)(requestParameters.updateFlexibleGpuRequest); + const request = { + path: `/UpdateFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateFlexibleGpuResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.FlexibleGpuApi = FlexibleGpuApi; diff --git a/dist/cjs/apis/ImageApi.d.ts b/dist/cjs/apis/ImageApi.d.ts new file mode 100644 index 00000000..a41e755d --- /dev/null +++ b/dist/cjs/apis/ImageApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateImageExportTaskRequest, CreateImageExportTaskResponse, CreateImageRequest, CreateImageResponse, DeleteImageRequest, DeleteImageResponse, ReadImageExportTasksRequest, ReadImageExportTasksResponse, ReadImagesRequest, ReadImagesResponse, UpdateImageRequest, UpdateImageResponse } from '../models'; +export interface CreateImageOperationRequest { + createImageRequest?: CreateImageRequest; +} +export interface CreateImageExportTaskOperationRequest { + createImageExportTaskRequest?: CreateImageExportTaskRequest; +} +export interface DeleteImageOperationRequest { + deleteImageRequest?: DeleteImageRequest; +} +export interface ReadImageExportTasksOperationRequest { + readImageExportTasksRequest?: ReadImageExportTasksRequest; +} +export interface ReadImagesOperationRequest { + readImagesRequest?: ReadImagesRequest; +} +export interface UpdateImageOperationRequest { + updateImageRequest?: UpdateImageRequest; +} +/** + * ImageApi - interface + * + * @export + * @interface ImageApiInterface + */ +export interface ImageApiInterface { + /** + * + * @param {CreateImageRequest} [createImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + createImageRaw(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImage(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateImageExportTaskRequest} [createImageExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + createImageExportTaskRaw(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImageExportTask(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteImageRequest} [deleteImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + deleteImageRaw(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteImage(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadImageExportTasksRequest} [readImageExportTasksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + readImageExportTasksRaw(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImageExportTasks(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadImagesRequest} [readImagesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + readImagesRaw(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImages(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateImageRequest} [updateImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + updateImageRaw(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateImage(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterface { + /** + */ + createImageRaw(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImage(requestParameters?: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createImageExportTaskRaw(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImageExportTask(requestParameters?: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteImageRaw(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteImage(requestParameters?: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readImageExportTasksRaw(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImageExportTasks(requestParameters?: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readImagesRaw(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImages(requestParameters?: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateImageRaw(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateImage(requestParameters?: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ImageApi.js b/dist/cjs/apis/ImageApi.js new file mode 100644 index 00000000..15145e77 --- /dev/null +++ b/dist/cjs/apis/ImageApi.js @@ -0,0 +1,290 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImageApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ImageApi extends runtime.BaseAPI { + /** + */ + createImageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateImageRequestToJSON)(requestParameters.createImageRequest); + const request = { + path: `/CreateImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateImageResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createImage(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createImageRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createImageExportTaskRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateImageExportTaskRequestToJSON)(requestParameters.createImageExportTaskRequest); + const request = { + path: `/CreateImageExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateImageExportTaskResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createImageExportTask(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createImageExportTaskRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteImageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteImageRequestToJSON)(requestParameters.deleteImageRequest); + const request = { + path: `/DeleteImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteImageResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteImage(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteImageRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readImageExportTasksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadImageExportTasksRequestToJSON)(requestParameters.readImageExportTasksRequest); + const request = { + path: `/ReadImageExportTasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadImageExportTasksResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readImageExportTasks(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readImageExportTasksRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readImagesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadImagesRequestToJSON)(requestParameters.readImagesRequest); + const request = { + path: `/ReadImages`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadImagesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readImages(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readImagesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateImageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateImageRequestToJSON)(requestParameters.updateImageRequest); + const request = { + path: `/UpdateImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateImageResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateImage(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateImageRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ImageApi = ImageApi; diff --git a/dist/cjs/apis/InternetServiceApi.d.ts b/dist/cjs/apis/InternetServiceApi.d.ts new file mode 100644 index 00000000..9b6ab1ce --- /dev/null +++ b/dist/cjs/apis/InternetServiceApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateInternetServiceRequest, CreateInternetServiceResponse, DeleteInternetServiceRequest, DeleteInternetServiceResponse, LinkInternetServiceRequest, LinkInternetServiceResponse, ReadInternetServicesRequest, ReadInternetServicesResponse, UnlinkInternetServiceRequest, UnlinkInternetServiceResponse } from '../models'; +export interface CreateInternetServiceOperationRequest { + createInternetServiceRequest?: CreateInternetServiceRequest; +} +export interface DeleteInternetServiceOperationRequest { + deleteInternetServiceRequest?: DeleteInternetServiceRequest; +} +export interface LinkInternetServiceOperationRequest { + linkInternetServiceRequest?: LinkInternetServiceRequest; +} +export interface ReadInternetServicesOperationRequest { + readInternetServicesRequest?: ReadInternetServicesRequest; +} +export interface UnlinkInternetServiceOperationRequest { + unlinkInternetServiceRequest?: UnlinkInternetServiceRequest; +} +/** + * InternetServiceApi - interface + * + * @export + * @interface InternetServiceApiInterface + */ +export interface InternetServiceApiInterface { + /** + * + * @param {CreateInternetServiceRequest} [createInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + createInternetServiceRaw(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createInternetService(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteInternetServiceRequest} [deleteInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + deleteInternetServiceRaw(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteInternetService(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkInternetServiceRequest} [linkInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + linkInternetServiceRaw(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkInternetService(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadInternetServicesRequest} [readInternetServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + readInternetServicesRaw(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readInternetServices(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkInternetServiceRequest} [unlinkInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + unlinkInternetServiceRaw(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkInternetService(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class InternetServiceApi extends runtime.BaseAPI implements InternetServiceApiInterface { + /** + */ + createInternetServiceRaw(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createInternetService(requestParameters?: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteInternetServiceRaw(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteInternetService(requestParameters?: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkInternetServiceRaw(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkInternetService(requestParameters?: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readInternetServicesRaw(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readInternetServices(requestParameters?: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkInternetServiceRaw(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkInternetService(requestParameters?: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/InternetServiceApi.js b/dist/cjs/apis/InternetServiceApi.js new file mode 100644 index 00000000..6b37ce9c --- /dev/null +++ b/dist/cjs/apis/InternetServiceApi.js @@ -0,0 +1,251 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InternetServiceApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class InternetServiceApi extends runtime.BaseAPI { + /** + */ + createInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateInternetServiceRequestToJSON)(requestParameters.createInternetServiceRequest); + const request = { + path: `/CreateInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateInternetServiceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteInternetServiceRequestToJSON)(requestParameters.deleteInternetServiceRequest); + const request = { + path: `/DeleteInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteInternetServiceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkInternetServiceRequestToJSON)(requestParameters.linkInternetServiceRequest); + const request = { + path: `/LinkInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkInternetServiceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readInternetServicesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadInternetServicesRequestToJSON)(requestParameters.readInternetServicesRequest); + const request = { + path: `/ReadInternetServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadInternetServicesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readInternetServices(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readInternetServicesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkInternetServiceRequestToJSON)(requestParameters.unlinkInternetServiceRequest); + const request = { + path: `/UnlinkInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkInternetServiceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.InternetServiceApi = InternetServiceApi; diff --git a/dist/cjs/apis/KeypairApi.d.ts b/dist/cjs/apis/KeypairApi.d.ts new file mode 100644 index 00000000..41edec4a --- /dev/null +++ b/dist/cjs/apis/KeypairApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateKeypairRequest, CreateKeypairResponse, DeleteKeypairRequest, DeleteKeypairResponse, ReadKeypairsRequest, ReadKeypairsResponse } from '../models'; +export interface CreateKeypairOperationRequest { + createKeypairRequest?: CreateKeypairRequest; +} +export interface DeleteKeypairOperationRequest { + deleteKeypairRequest?: DeleteKeypairRequest; +} +export interface ReadKeypairsOperationRequest { + readKeypairsRequest?: ReadKeypairsRequest; +} +/** + * KeypairApi - interface + * + * @export + * @interface KeypairApiInterface + */ +export interface KeypairApiInterface { + /** + * + * @param {CreateKeypairRequest} [createKeypairRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + createKeypairRaw(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createKeypair(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteKeypairRequest} [deleteKeypairRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + deleteKeypairRaw(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteKeypair(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadKeypairsRequest} [readKeypairsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + readKeypairsRaw(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readKeypairs(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class KeypairApi extends runtime.BaseAPI implements KeypairApiInterface { + /** + */ + createKeypairRaw(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createKeypair(requestParameters?: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteKeypairRaw(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteKeypair(requestParameters?: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readKeypairsRaw(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readKeypairs(requestParameters?: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/KeypairApi.js b/dist/cjs/apis/KeypairApi.js new file mode 100644 index 00000000..c34dae83 --- /dev/null +++ b/dist/cjs/apis/KeypairApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KeypairApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class KeypairApi extends runtime.BaseAPI { + /** + */ + createKeypairRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateKeypairRequestToJSON)(requestParameters.createKeypairRequest); + const request = { + path: `/CreateKeypair`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateKeypairResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createKeypair(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createKeypairRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteKeypairRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteKeypairRequestToJSON)(requestParameters.deleteKeypairRequest); + const request = { + path: `/DeleteKeypair`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteKeypairResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteKeypair(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteKeypairRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readKeypairsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadKeypairsRequestToJSON)(requestParameters.readKeypairsRequest); + const request = { + path: `/ReadKeypairs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadKeypairsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readKeypairs(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readKeypairsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.KeypairApi = KeypairApi; diff --git a/dist/cjs/apis/ListenerApi.d.ts b/dist/cjs/apis/ListenerApi.d.ts new file mode 100644 index 00000000..c8af2da9 --- /dev/null +++ b/dist/cjs/apis/ListenerApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateListenerRuleRequest, CreateListenerRuleResponse, CreateLoadBalancerListenersRequest, CreateLoadBalancerListenersResponse, DeleteListenerRuleRequest, DeleteListenerRuleResponse, DeleteLoadBalancerListenersRequest, DeleteLoadBalancerListenersResponse, ReadListenerRulesRequest, ReadListenerRulesResponse, UpdateListenerRuleRequest, UpdateListenerRuleResponse } from '../models'; +export interface CreateListenerRuleOperationRequest { + createListenerRuleRequest?: CreateListenerRuleRequest; +} +export interface CreateLoadBalancerListenersOperationRequest { + createLoadBalancerListenersRequest?: CreateLoadBalancerListenersRequest; +} +export interface DeleteListenerRuleOperationRequest { + deleteListenerRuleRequest?: DeleteListenerRuleRequest; +} +export interface DeleteLoadBalancerListenersOperationRequest { + deleteLoadBalancerListenersRequest?: DeleteLoadBalancerListenersRequest; +} +export interface ReadListenerRulesOperationRequest { + readListenerRulesRequest?: ReadListenerRulesRequest; +} +export interface UpdateListenerRuleOperationRequest { + updateListenerRuleRequest?: UpdateListenerRuleRequest; +} +/** + * ListenerApi - interface + * + * @export + * @interface ListenerApiInterface + */ +export interface ListenerApiInterface { + /** + * + * @param {CreateListenerRuleRequest} [createListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + createListenerRuleRaw(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createListenerRule(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateLoadBalancerListenersRequest} [createLoadBalancerListenersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + createLoadBalancerListenersRaw(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerListeners(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteListenerRuleRequest} [deleteListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + deleteListenerRuleRaw(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteListenerRule(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerListenersRequest} [deleteLoadBalancerListenersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + deleteLoadBalancerListenersRaw(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerListeners(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadListenerRulesRequest} [readListenerRulesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + readListenerRulesRaw(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readListenerRules(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateListenerRuleRequest} [updateListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + updateListenerRuleRaw(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateListenerRule(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ListenerApi extends runtime.BaseAPI implements ListenerApiInterface { + /** + */ + createListenerRuleRaw(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createListenerRule(requestParameters?: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createLoadBalancerListenersRaw(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerListeners(requestParameters?: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteListenerRuleRaw(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteListenerRule(requestParameters?: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerListenersRaw(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerListeners(requestParameters?: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readListenerRulesRaw(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readListenerRules(requestParameters?: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateListenerRuleRaw(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateListenerRule(requestParameters?: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ListenerApi.js b/dist/cjs/apis/ListenerApi.js new file mode 100644 index 00000000..3dad4a4c --- /dev/null +++ b/dist/cjs/apis/ListenerApi.js @@ -0,0 +1,290 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListenerApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ListenerApi extends runtime.BaseAPI { + /** + */ + createListenerRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateListenerRuleRequestToJSON)(requestParameters.createListenerRuleRequest); + const request = { + path: `/CreateListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateListenerRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createListenerRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createListenerRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createLoadBalancerListenersRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateLoadBalancerListenersRequestToJSON)(requestParameters.createLoadBalancerListenersRequest); + const request = { + path: `/CreateLoadBalancerListeners`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateLoadBalancerListenersResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createLoadBalancerListeners(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerListenersRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteListenerRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteListenerRuleRequestToJSON)(requestParameters.deleteListenerRuleRequest); + const request = { + path: `/DeleteListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteListenerRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteListenerRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteListenerRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerListenersRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteLoadBalancerListenersRequestToJSON)(requestParameters.deleteLoadBalancerListenersRequest); + const request = { + path: `/DeleteLoadBalancerListeners`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteLoadBalancerListenersResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteLoadBalancerListeners(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerListenersRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readListenerRulesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadListenerRulesRequestToJSON)(requestParameters.readListenerRulesRequest); + const request = { + path: `/ReadListenerRules`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadListenerRulesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readListenerRules(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readListenerRulesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateListenerRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateListenerRuleRequestToJSON)(requestParameters.updateListenerRuleRequest); + const request = { + path: `/UpdateListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateListenerRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateListenerRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateListenerRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ListenerApi = ListenerApi; diff --git a/dist/cjs/apis/LoadBalancerApi.d.ts b/dist/cjs/apis/LoadBalancerApi.d.ts new file mode 100644 index 00000000..958f2ac2 --- /dev/null +++ b/dist/cjs/apis/LoadBalancerApi.d.ts @@ -0,0 +1,266 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateLoadBalancerRequest, CreateLoadBalancerResponse, CreateLoadBalancerTagsRequest, CreateLoadBalancerTagsResponse, DeleteLoadBalancerRequest, DeleteLoadBalancerResponse, DeleteLoadBalancerTagsRequest, DeleteLoadBalancerTagsResponse, DeregisterVmsInLoadBalancerRequest, DeregisterVmsInLoadBalancerResponse, LinkLoadBalancerBackendMachinesRequest, LinkLoadBalancerBackendMachinesResponse, ReadLoadBalancerTagsRequest, ReadLoadBalancerTagsResponse, ReadLoadBalancersRequest, ReadLoadBalancersResponse, ReadVmsHealthRequest, ReadVmsHealthResponse, RegisterVmsInLoadBalancerRequest, RegisterVmsInLoadBalancerResponse, UnlinkLoadBalancerBackendMachinesRequest, UnlinkLoadBalancerBackendMachinesResponse, UpdateLoadBalancerRequest, UpdateLoadBalancerResponse } from '../models'; +export interface CreateLoadBalancerOperationRequest { + createLoadBalancerRequest?: CreateLoadBalancerRequest; +} +export interface CreateLoadBalancerTagsOperationRequest { + createLoadBalancerTagsRequest?: CreateLoadBalancerTagsRequest; +} +export interface DeleteLoadBalancerOperationRequest { + deleteLoadBalancerRequest?: DeleteLoadBalancerRequest; +} +export interface DeleteLoadBalancerTagsOperationRequest { + deleteLoadBalancerTagsRequest?: DeleteLoadBalancerTagsRequest; +} +export interface DeregisterVmsInLoadBalancerOperationRequest { + deregisterVmsInLoadBalancerRequest?: DeregisterVmsInLoadBalancerRequest; +} +export interface LinkLoadBalancerBackendMachinesOperationRequest { + linkLoadBalancerBackendMachinesRequest?: LinkLoadBalancerBackendMachinesRequest; +} +export interface ReadLoadBalancerTagsOperationRequest { + readLoadBalancerTagsRequest?: ReadLoadBalancerTagsRequest; +} +export interface ReadLoadBalancersOperationRequest { + readLoadBalancersRequest?: ReadLoadBalancersRequest; +} +export interface ReadVmsHealthOperationRequest { + readVmsHealthRequest?: ReadVmsHealthRequest; +} +export interface RegisterVmsInLoadBalancerOperationRequest { + registerVmsInLoadBalancerRequest?: RegisterVmsInLoadBalancerRequest; +} +export interface UnlinkLoadBalancerBackendMachinesOperationRequest { + unlinkLoadBalancerBackendMachinesRequest?: UnlinkLoadBalancerBackendMachinesRequest; +} +export interface UpdateLoadBalancerOperationRequest { + updateLoadBalancerRequest?: UpdateLoadBalancerRequest; +} +/** + * LoadBalancerApi - interface + * + * @export + * @interface LoadBalancerApiInterface + */ +export interface LoadBalancerApiInterface { + /** + * + * @param {CreateLoadBalancerRequest} [createLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + createLoadBalancerRaw(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancer(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateLoadBalancerTagsRequest} [createLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + createLoadBalancerTagsRaw(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerTags(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerRequest} [deleteLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deleteLoadBalancerRaw(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancer(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerTagsRequest} [deleteLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deleteLoadBalancerTagsRaw(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerTags(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeregisterVmsInLoadBalancerRequest} [deregisterVmsInLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deregisterVmsInLoadBalancerRaw(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deregisterVmsInLoadBalancer(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkLoadBalancerBackendMachinesRequest} [linkLoadBalancerBackendMachinesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + linkLoadBalancerBackendMachinesRaw(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkLoadBalancerBackendMachines(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadLoadBalancerTagsRequest} [readLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readLoadBalancerTagsRaw(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancerTags(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadLoadBalancersRequest} [readLoadBalancersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readLoadBalancersRaw(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancers(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmsHealthRequest} [readVmsHealthRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readVmsHealthRaw(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsHealth(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {RegisterVmsInLoadBalancerRequest} [registerVmsInLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + registerVmsInLoadBalancerRaw(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + registerVmsInLoadBalancer(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkLoadBalancerBackendMachinesRequest} [unlinkLoadBalancerBackendMachinesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateLoadBalancerRequest} [updateLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + updateLoadBalancerRaw(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateLoadBalancer(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class LoadBalancerApi extends runtime.BaseAPI implements LoadBalancerApiInterface { + /** + */ + createLoadBalancerRaw(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancer(requestParameters?: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createLoadBalancerTagsRaw(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerTags(requestParameters?: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerRaw(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancer(requestParameters?: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerTagsRaw(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerTags(requestParameters?: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deregisterVmsInLoadBalancerRaw(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deregisterVmsInLoadBalancer(requestParameters?: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkLoadBalancerBackendMachinesRaw(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkLoadBalancerBackendMachines(requestParameters?: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readLoadBalancerTagsRaw(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancerTags(requestParameters?: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readLoadBalancersRaw(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancers(requestParameters?: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmsHealthRaw(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsHealth(requestParameters?: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + registerVmsInLoadBalancerRaw(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + registerVmsInLoadBalancer(requestParameters?: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters?: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateLoadBalancerRaw(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateLoadBalancer(requestParameters?: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/LoadBalancerApi.js b/dist/cjs/apis/LoadBalancerApi.js new file mode 100644 index 00000000..5c24eadd --- /dev/null +++ b/dist/cjs/apis/LoadBalancerApi.js @@ -0,0 +1,524 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoadBalancerApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class LoadBalancerApi extends runtime.BaseAPI { + /** + */ + createLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateLoadBalancerRequestToJSON)(requestParameters.createLoadBalancerRequest); + const request = { + path: `/CreateLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateLoadBalancerResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createLoadBalancerTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateLoadBalancerTagsRequestToJSON)(requestParameters.createLoadBalancerTagsRequest); + const request = { + path: `/CreateLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateLoadBalancerTagsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createLoadBalancerTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteLoadBalancerRequestToJSON)(requestParameters.deleteLoadBalancerRequest); + const request = { + path: `/DeleteLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteLoadBalancerResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteLoadBalancerTagsRequestToJSON)(requestParameters.deleteLoadBalancerTagsRequest); + const request = { + path: `/DeleteLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteLoadBalancerTagsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteLoadBalancerTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deregisterVmsInLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeregisterVmsInLoadBalancerRequestToJSON)(requestParameters.deregisterVmsInLoadBalancerRequest); + const request = { + path: `/DeregisterVmsInLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeregisterVmsInLoadBalancerResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deregisterVmsInLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deregisterVmsInLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkLoadBalancerBackendMachinesRequestToJSON)(requestParameters.linkLoadBalancerBackendMachinesRequest); + const request = { + path: `/LinkLoadBalancerBackendMachines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkLoadBalancerBackendMachinesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkLoadBalancerBackendMachines(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readLoadBalancerTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadLoadBalancerTagsRequestToJSON)(requestParameters.readLoadBalancerTagsRequest); + const request = { + path: `/ReadLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadLoadBalancerTagsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readLoadBalancerTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readLoadBalancerTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readLoadBalancersRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadLoadBalancersRequestToJSON)(requestParameters.readLoadBalancersRequest); + const request = { + path: `/ReadLoadBalancers`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadLoadBalancersResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readLoadBalancers(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readLoadBalancersRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmsHealthRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadVmsHealthRequestToJSON)(requestParameters.readVmsHealthRequest); + const request = { + path: `/ReadVmsHealth`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVmsHealthResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVmsHealth(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmsHealthRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + registerVmsInLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.RegisterVmsInLoadBalancerRequestToJSON)(requestParameters.registerVmsInLoadBalancerRequest); + const request = { + path: `/RegisterVmsInLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RegisterVmsInLoadBalancerResponseFromJSON)(jsonValue)); + }); + } + /** + */ + registerVmsInLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.registerVmsInLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkLoadBalancerBackendMachinesRequestToJSON)(requestParameters.unlinkLoadBalancerBackendMachinesRequest); + const request = { + path: `/UnlinkLoadBalancerBackendMachines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkLoadBalancerBackendMachinesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateLoadBalancerRequestToJSON)(requestParameters.updateLoadBalancerRequest); + const request = { + path: `/UpdateLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateLoadBalancerResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.LoadBalancerApi = LoadBalancerApi; diff --git a/dist/cjs/apis/LoadBalancerPolicyApi.d.ts b/dist/cjs/apis/LoadBalancerPolicyApi.d.ts new file mode 100644 index 00000000..a4fb6b16 --- /dev/null +++ b/dist/cjs/apis/LoadBalancerPolicyApi.d.ts @@ -0,0 +1,66 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateLoadBalancerPolicyRequest, CreateLoadBalancerPolicyResponse, DeleteLoadBalancerPolicyRequest, DeleteLoadBalancerPolicyResponse } from '../models'; +export interface CreateLoadBalancerPolicyOperationRequest { + createLoadBalancerPolicyRequest?: CreateLoadBalancerPolicyRequest; +} +export interface DeleteLoadBalancerPolicyOperationRequest { + deleteLoadBalancerPolicyRequest?: DeleteLoadBalancerPolicyRequest; +} +/** + * LoadBalancerPolicyApi - interface + * + * @export + * @interface LoadBalancerPolicyApiInterface + */ +export interface LoadBalancerPolicyApiInterface { + /** + * + * @param {CreateLoadBalancerPolicyRequest} [createLoadBalancerPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerPolicyApiInterface + */ + createLoadBalancerPolicyRaw(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerPolicy(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerPolicyRequest} [deleteLoadBalancerPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerPolicyApiInterface + */ + deleteLoadBalancerPolicyRaw(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerPolicy(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class LoadBalancerPolicyApi extends runtime.BaseAPI implements LoadBalancerPolicyApiInterface { + /** + */ + createLoadBalancerPolicyRaw(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerPolicy(requestParameters?: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerPolicyRaw(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerPolicy(requestParameters?: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/LoadBalancerPolicyApi.js b/dist/cjs/apis/LoadBalancerPolicyApi.js new file mode 100644 index 00000000..8e6d1205 --- /dev/null +++ b/dist/cjs/apis/LoadBalancerPolicyApi.js @@ -0,0 +1,134 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoadBalancerPolicyApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class LoadBalancerPolicyApi extends runtime.BaseAPI { + /** + */ + createLoadBalancerPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateLoadBalancerPolicyRequestToJSON)(requestParameters.createLoadBalancerPolicyRequest); + const request = { + path: `/CreateLoadBalancerPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateLoadBalancerPolicyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createLoadBalancerPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteLoadBalancerPolicyRequestToJSON)(requestParameters.deleteLoadBalancerPolicyRequest); + const request = { + path: `/DeleteLoadBalancerPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteLoadBalancerPolicyResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteLoadBalancerPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.LoadBalancerPolicyApi = LoadBalancerPolicyApi; diff --git a/dist/cjs/apis/LocationApi.d.ts b/dist/cjs/apis/LocationApi.d.ts new file mode 100644 index 00000000..a72dff78 --- /dev/null +++ b/dist/cjs/apis/LocationApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadLocationsRequest, ReadLocationsResponse } from '../models'; +export interface ReadLocationsOperationRequest { + readLocationsRequest?: ReadLocationsRequest; +} +/** + * LocationApi - interface + * + * @export + * @interface LocationApiInterface + */ +export interface LocationApiInterface { + /** + * + * @param {ReadLocationsRequest} [readLocationsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LocationApiInterface + */ + readLocationsRaw(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLocations(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class LocationApi extends runtime.BaseAPI implements LocationApiInterface { + /** + */ + readLocationsRaw(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLocations(requestParameters?: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/LocationApi.js b/dist/cjs/apis/LocationApi.js new file mode 100644 index 00000000..0e429bad --- /dev/null +++ b/dist/cjs/apis/LocationApi.js @@ -0,0 +1,92 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocationApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class LocationApi extends runtime.BaseAPI { + /** + */ + readLocationsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadLocationsRequestToJSON)(requestParameters.readLocationsRequest); + const request = { + path: `/ReadLocations`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadLocationsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readLocations(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readLocationsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.LocationApi = LocationApi; diff --git a/dist/cjs/apis/NatServiceApi.d.ts b/dist/cjs/apis/NatServiceApi.d.ts new file mode 100644 index 00000000..5c169a46 --- /dev/null +++ b/dist/cjs/apis/NatServiceApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNatServiceRequest, CreateNatServiceResponse, DeleteNatServiceRequest, DeleteNatServiceResponse, ReadNatServicesRequest, ReadNatServicesResponse } from '../models'; +export interface CreateNatServiceOperationRequest { + createNatServiceRequest?: CreateNatServiceRequest; +} +export interface DeleteNatServiceOperationRequest { + deleteNatServiceRequest?: DeleteNatServiceRequest; +} +export interface ReadNatServicesOperationRequest { + readNatServicesRequest?: ReadNatServicesRequest; +} +/** + * NatServiceApi - interface + * + * @export + * @interface NatServiceApiInterface + */ +export interface NatServiceApiInterface { + /** + * + * @param {CreateNatServiceRequest} [createNatServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + createNatServiceRaw(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNatService(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNatServiceRequest} [deleteNatServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + deleteNatServiceRaw(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNatService(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNatServicesRequest} [readNatServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + readNatServicesRaw(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNatServices(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NatServiceApi extends runtime.BaseAPI implements NatServiceApiInterface { + /** + */ + createNatServiceRaw(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNatService(requestParameters?: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNatServiceRaw(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNatService(requestParameters?: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNatServicesRaw(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNatServices(requestParameters?: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/NatServiceApi.js b/dist/cjs/apis/NatServiceApi.js new file mode 100644 index 00000000..60d46aef --- /dev/null +++ b/dist/cjs/apis/NatServiceApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NatServiceApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class NatServiceApi extends runtime.BaseAPI { + /** + */ + createNatServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateNatServiceRequestToJSON)(requestParameters.createNatServiceRequest); + const request = { + path: `/CreateNatService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateNatServiceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createNatService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNatServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNatServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteNatServiceRequestToJSON)(requestParameters.deleteNatServiceRequest); + const request = { + path: `/DeleteNatService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteNatServiceResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteNatService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNatServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNatServicesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadNatServicesRequestToJSON)(requestParameters.readNatServicesRequest); + const request = { + path: `/ReadNatServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadNatServicesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readNatServices(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNatServicesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.NatServiceApi = NatServiceApi; diff --git a/dist/cjs/apis/NetAccessPointApi.d.ts b/dist/cjs/apis/NetAccessPointApi.d.ts new file mode 100644 index 00000000..da4bfbbf --- /dev/null +++ b/dist/cjs/apis/NetAccessPointApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNetAccessPointRequest, CreateNetAccessPointResponse, DeleteNetAccessPointRequest, DeleteNetAccessPointResponse, ReadNetAccessPointServicesRequest, ReadNetAccessPointServicesResponse, ReadNetAccessPointsRequest, ReadNetAccessPointsResponse, UpdateNetAccessPointRequest, UpdateNetAccessPointResponse } from '../models'; +export interface CreateNetAccessPointOperationRequest { + createNetAccessPointRequest?: CreateNetAccessPointRequest; +} +export interface DeleteNetAccessPointOperationRequest { + deleteNetAccessPointRequest?: DeleteNetAccessPointRequest; +} +export interface ReadNetAccessPointServicesOperationRequest { + readNetAccessPointServicesRequest?: ReadNetAccessPointServicesRequest; +} +export interface ReadNetAccessPointsOperationRequest { + readNetAccessPointsRequest?: ReadNetAccessPointsRequest; +} +export interface UpdateNetAccessPointOperationRequest { + updateNetAccessPointRequest?: UpdateNetAccessPointRequest; +} +/** + * NetAccessPointApi - interface + * + * @export + * @interface NetAccessPointApiInterface + */ +export interface NetAccessPointApiInterface { + /** + * + * @param {CreateNetAccessPointRequest} [createNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + createNetAccessPointRaw(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetAccessPoint(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNetAccessPointRequest} [deleteNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + deleteNetAccessPointRaw(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetAccessPoint(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetAccessPointServicesRequest} [readNetAccessPointServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + readNetAccessPointServicesRaw(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPointServices(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetAccessPointsRequest} [readNetAccessPointsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + readNetAccessPointsRaw(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPoints(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateNetAccessPointRequest} [updateNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + updateNetAccessPointRaw(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNetAccessPoint(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NetAccessPointApi extends runtime.BaseAPI implements NetAccessPointApiInterface { + /** + */ + createNetAccessPointRaw(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetAccessPoint(requestParameters?: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNetAccessPointRaw(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetAccessPoint(requestParameters?: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetAccessPointServicesRaw(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPointServices(requestParameters?: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetAccessPointsRaw(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPoints(requestParameters?: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateNetAccessPointRaw(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNetAccessPoint(requestParameters?: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/NetAccessPointApi.js b/dist/cjs/apis/NetAccessPointApi.js new file mode 100644 index 00000000..5014ebac --- /dev/null +++ b/dist/cjs/apis/NetAccessPointApi.js @@ -0,0 +1,248 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetAccessPointApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class NetAccessPointApi extends runtime.BaseAPI { + /** + */ + createNetAccessPointRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateNetAccessPointRequestToJSON)(requestParameters.createNetAccessPointRequest); + const request = { + path: `/CreateNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateNetAccessPointResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createNetAccessPoint(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNetAccessPointRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNetAccessPointRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteNetAccessPointRequestToJSON)(requestParameters.deleteNetAccessPointRequest); + const request = { + path: `/DeleteNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteNetAccessPointResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteNetAccessPoint(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNetAccessPointRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetAccessPointServicesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadNetAccessPointServicesRequestToJSON)(requestParameters.readNetAccessPointServicesRequest); + const request = { + path: `/ReadNetAccessPointServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadNetAccessPointServicesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readNetAccessPointServices(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetAccessPointServicesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetAccessPointsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadNetAccessPointsRequestToJSON)(requestParameters.readNetAccessPointsRequest); + const request = { + path: `/ReadNetAccessPoints`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadNetAccessPointsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readNetAccessPoints(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetAccessPointsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateNetAccessPointRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateNetAccessPointRequestToJSON)(requestParameters.updateNetAccessPointRequest); + const request = { + path: `/UpdateNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateNetAccessPointResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateNetAccessPoint(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateNetAccessPointRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.NetAccessPointApi = NetAccessPointApi; diff --git a/dist/cjs/apis/NetApi.d.ts b/dist/cjs/apis/NetApi.d.ts new file mode 100644 index 00000000..ab09ffa3 --- /dev/null +++ b/dist/cjs/apis/NetApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNetRequest, CreateNetResponse, DeleteNetRequest, DeleteNetResponse, ReadNetsRequest, ReadNetsResponse, UpdateNetRequest, UpdateNetResponse } from '../models'; +export interface CreateNetOperationRequest { + createNetRequest?: CreateNetRequest; +} +export interface DeleteNetOperationRequest { + deleteNetRequest?: DeleteNetRequest; +} +export interface ReadNetsOperationRequest { + readNetsRequest?: ReadNetsRequest; +} +export interface UpdateNetOperationRequest { + updateNetRequest?: UpdateNetRequest; +} +/** + * NetApi - interface + * + * @export + * @interface NetApiInterface + */ +export interface NetApiInterface { + /** + * + * @param {CreateNetRequest} [createNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + createNetRaw(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNet(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNetRequest} [deleteNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + deleteNetRaw(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNet(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetsRequest} [readNetsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + readNetsRaw(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNets(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateNetRequest} [updateNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + updateNetRaw(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNet(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NetApi extends runtime.BaseAPI implements NetApiInterface { + /** + */ + createNetRaw(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNet(requestParameters?: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNetRaw(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNet(requestParameters?: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetsRaw(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNets(requestParameters?: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateNetRaw(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNet(requestParameters?: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/NetApi.js b/dist/cjs/apis/NetApi.js new file mode 100644 index 00000000..68f6ecd5 --- /dev/null +++ b/dist/cjs/apis/NetApi.js @@ -0,0 +1,212 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class NetApi extends runtime.BaseAPI { + /** + */ + createNetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateNetRequestToJSON)(requestParameters.createNetRequest); + const request = { + path: `/CreateNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateNetResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createNet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteNetRequestToJSON)(requestParameters.deleteNetRequest); + const request = { + path: `/DeleteNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteNetResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteNet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadNetsRequestToJSON)(requestParameters.readNetsRequest); + const request = { + path: `/ReadNets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadNetsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readNets(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateNetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateNetRequestToJSON)(requestParameters.updateNetRequest); + const request = { + path: `/UpdateNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateNetResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateNet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateNetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.NetApi = NetApi; diff --git a/dist/cjs/apis/NetPeeringApi.d.ts b/dist/cjs/apis/NetPeeringApi.d.ts new file mode 100644 index 00000000..ab3505e2 --- /dev/null +++ b/dist/cjs/apis/NetPeeringApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { AcceptNetPeeringRequest, AcceptNetPeeringResponse, CreateNetPeeringRequest, CreateNetPeeringResponse, DeleteNetPeeringRequest, DeleteNetPeeringResponse, ReadNetPeeringsRequest, ReadNetPeeringsResponse, RejectNetPeeringRequest, RejectNetPeeringResponse } from '../models'; +export interface AcceptNetPeeringOperationRequest { + acceptNetPeeringRequest?: AcceptNetPeeringRequest; +} +export interface CreateNetPeeringOperationRequest { + createNetPeeringRequest?: CreateNetPeeringRequest; +} +export interface DeleteNetPeeringOperationRequest { + deleteNetPeeringRequest?: DeleteNetPeeringRequest; +} +export interface ReadNetPeeringsOperationRequest { + readNetPeeringsRequest?: ReadNetPeeringsRequest; +} +export interface RejectNetPeeringOperationRequest { + rejectNetPeeringRequest?: RejectNetPeeringRequest; +} +/** + * NetPeeringApi - interface + * + * @export + * @interface NetPeeringApiInterface + */ +export interface NetPeeringApiInterface { + /** + * + * @param {AcceptNetPeeringRequest} [acceptNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + acceptNetPeeringRaw(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + acceptNetPeering(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateNetPeeringRequest} [createNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + createNetPeeringRaw(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetPeering(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNetPeeringRequest} [deleteNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + deleteNetPeeringRaw(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetPeering(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetPeeringsRequest} [readNetPeeringsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + readNetPeeringsRaw(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetPeerings(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {RejectNetPeeringRequest} [rejectNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + rejectNetPeeringRaw(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rejectNetPeering(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NetPeeringApi extends runtime.BaseAPI implements NetPeeringApiInterface { + /** + */ + acceptNetPeeringRaw(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + acceptNetPeering(requestParameters?: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createNetPeeringRaw(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetPeering(requestParameters?: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNetPeeringRaw(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetPeering(requestParameters?: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetPeeringsRaw(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetPeerings(requestParameters?: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + rejectNetPeeringRaw(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rejectNetPeering(requestParameters?: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/NetPeeringApi.js b/dist/cjs/apis/NetPeeringApi.js new file mode 100644 index 00000000..4488c2c9 --- /dev/null +++ b/dist/cjs/apis/NetPeeringApi.js @@ -0,0 +1,251 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetPeeringApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class NetPeeringApi extends runtime.BaseAPI { + /** + */ + acceptNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.AcceptNetPeeringRequestToJSON)(requestParameters.acceptNetPeeringRequest); + const request = { + path: `/AcceptNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AcceptNetPeeringResponseFromJSON)(jsonValue)); + }); + } + /** + */ + acceptNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.acceptNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateNetPeeringRequestToJSON)(requestParameters.createNetPeeringRequest); + const request = { + path: `/CreateNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateNetPeeringResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteNetPeeringRequestToJSON)(requestParameters.deleteNetPeeringRequest); + const request = { + path: `/DeleteNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteNetPeeringResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetPeeringsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadNetPeeringsRequestToJSON)(requestParameters.readNetPeeringsRequest); + const request = { + path: `/ReadNetPeerings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadNetPeeringsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readNetPeerings(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetPeeringsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + rejectNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.RejectNetPeeringRequestToJSON)(requestParameters.rejectNetPeeringRequest); + const request = { + path: `/RejectNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RejectNetPeeringResponseFromJSON)(jsonValue)); + }); + } + /** + */ + rejectNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rejectNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.NetPeeringApi = NetPeeringApi; diff --git a/dist/cjs/apis/NicApi.d.ts b/dist/cjs/apis/NicApi.d.ts new file mode 100644 index 00000000..ae3923f3 --- /dev/null +++ b/dist/cjs/apis/NicApi.d.ts @@ -0,0 +1,186 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNicRequest, CreateNicResponse, DeleteNicRequest, DeleteNicResponse, LinkNicRequest, LinkNicResponse, LinkPrivateIpsRequest, LinkPrivateIpsResponse, ReadNicsRequest, ReadNicsResponse, UnlinkNicRequest, UnlinkNicResponse, UnlinkPrivateIpsRequest, UnlinkPrivateIpsResponse, UpdateNicRequest, UpdateNicResponse } from '../models'; +export interface CreateNicOperationRequest { + createNicRequest?: CreateNicRequest; +} +export interface DeleteNicOperationRequest { + deleteNicRequest?: DeleteNicRequest; +} +export interface LinkNicOperationRequest { + linkNicRequest?: LinkNicRequest; +} +export interface LinkPrivateIpsOperationRequest { + linkPrivateIpsRequest?: LinkPrivateIpsRequest; +} +export interface ReadNicsOperationRequest { + readNicsRequest?: ReadNicsRequest; +} +export interface UnlinkNicOperationRequest { + unlinkNicRequest?: UnlinkNicRequest; +} +export interface UnlinkPrivateIpsOperationRequest { + unlinkPrivateIpsRequest?: UnlinkPrivateIpsRequest; +} +export interface UpdateNicOperationRequest { + updateNicRequest?: UpdateNicRequest; +} +/** + * NicApi - interface + * + * @export + * @interface NicApiInterface + */ +export interface NicApiInterface { + /** + * + * @param {CreateNicRequest} [createNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + createNicRaw(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNic(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNicRequest} [deleteNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + deleteNicRaw(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNic(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkNicRequest} [linkNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + linkNicRaw(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkNic(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkPrivateIpsRequest} [linkPrivateIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + linkPrivateIpsRaw(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPrivateIps(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNicsRequest} [readNicsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + readNicsRaw(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNics(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkNicRequest} [unlinkNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + unlinkNicRaw(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkNic(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkPrivateIpsRequest} [unlinkPrivateIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + unlinkPrivateIpsRaw(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPrivateIps(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateNicRequest} [updateNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + updateNicRaw(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNic(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NicApi extends runtime.BaseAPI implements NicApiInterface { + /** + */ + createNicRaw(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNic(requestParameters?: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNicRaw(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNic(requestParameters?: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkNicRaw(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkNic(requestParameters?: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkPrivateIpsRaw(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPrivateIps(requestParameters?: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNicsRaw(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNics(requestParameters?: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkNicRaw(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkNic(requestParameters?: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkPrivateIpsRaw(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPrivateIps(requestParameters?: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateNicRaw(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNic(requestParameters?: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/NicApi.js b/dist/cjs/apis/NicApi.js new file mode 100644 index 00000000..9658db27 --- /dev/null +++ b/dist/cjs/apis/NicApi.js @@ -0,0 +1,368 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NicApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class NicApi extends runtime.BaseAPI { + /** + */ + createNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateNicRequestToJSON)(requestParameters.createNicRequest); + const request = { + path: `/CreateNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateNicResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteNicRequestToJSON)(requestParameters.deleteNicRequest); + const request = { + path: `/DeleteNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteNicResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkNicRequestToJSON)(requestParameters.linkNicRequest); + const request = { + path: `/LinkNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkNicResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkPrivateIpsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkPrivateIpsRequestToJSON)(requestParameters.linkPrivateIpsRequest); + const request = { + path: `/LinkPrivateIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkPrivateIpsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkPrivateIps(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkPrivateIpsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNicsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadNicsRequestToJSON)(requestParameters.readNicsRequest); + const request = { + path: `/ReadNics`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadNicsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readNics(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNicsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkNicRequestToJSON)(requestParameters.unlinkNicRequest); + const request = { + path: `/UnlinkNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkNicResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkPrivateIpsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkPrivateIpsRequestToJSON)(requestParameters.unlinkPrivateIpsRequest); + const request = { + path: `/UnlinkPrivateIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkPrivateIpsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkPrivateIps(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkPrivateIpsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateNicRequestToJSON)(requestParameters.updateNicRequest); + const request = { + path: `/UpdateNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateNicResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.NicApi = NicApi; diff --git a/dist/cjs/apis/ProductTypeApi.d.ts b/dist/cjs/apis/ProductTypeApi.d.ts new file mode 100644 index 00000000..9a17b2b1 --- /dev/null +++ b/dist/cjs/apis/ProductTypeApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadProductTypesRequest, ReadProductTypesResponse } from '../models'; +export interface ReadProductTypesOperationRequest { + readProductTypesRequest?: ReadProductTypesRequest; +} +/** + * ProductTypeApi - interface + * + * @export + * @interface ProductTypeApiInterface + */ +export interface ProductTypeApiInterface { + /** + * + * @param {ReadProductTypesRequest} [readProductTypesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProductTypeApiInterface + */ + readProductTypesRaw(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readProductTypes(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ProductTypeApi extends runtime.BaseAPI implements ProductTypeApiInterface { + /** + */ + readProductTypesRaw(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readProductTypes(requestParameters?: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ProductTypeApi.js b/dist/cjs/apis/ProductTypeApi.js new file mode 100644 index 00000000..9d9af3f2 --- /dev/null +++ b/dist/cjs/apis/ProductTypeApi.js @@ -0,0 +1,92 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductTypeApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ProductTypeApi extends runtime.BaseAPI { + /** + */ + readProductTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadProductTypesRequestToJSON)(requestParameters.readProductTypesRequest); + const request = { + path: `/ReadProductTypes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadProductTypesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readProductTypes(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readProductTypesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ProductTypeApi = ProductTypeApi; diff --git a/dist/cjs/apis/PublicCatalogApi.d.ts b/dist/cjs/apis/PublicCatalogApi.d.ts new file mode 100644 index 00000000..2883e617 --- /dev/null +++ b/dist/cjs/apis/PublicCatalogApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadPublicCatalogRequest, ReadPublicCatalogResponse } from '../models'; +export interface ReadPublicCatalogOperationRequest { + readPublicCatalogRequest?: ReadPublicCatalogRequest; +} +/** + * PublicCatalogApi - interface + * + * @export + * @interface PublicCatalogApiInterface + */ +export interface PublicCatalogApiInterface { + /** + * + * @param {ReadPublicCatalogRequest} [readPublicCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicCatalogApiInterface + */ + readPublicCatalogRaw(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicCatalog(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class PublicCatalogApi extends runtime.BaseAPI implements PublicCatalogApiInterface { + /** + */ + readPublicCatalogRaw(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicCatalog(requestParameters?: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/PublicCatalogApi.js b/dist/cjs/apis/PublicCatalogApi.js new file mode 100644 index 00000000..b3553412 --- /dev/null +++ b/dist/cjs/apis/PublicCatalogApi.js @@ -0,0 +1,92 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PublicCatalogApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class PublicCatalogApi extends runtime.BaseAPI { + /** + */ + readPublicCatalogRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadPublicCatalogRequestToJSON)(requestParameters.readPublicCatalogRequest); + const request = { + path: `/ReadPublicCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadPublicCatalogResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readPublicCatalog(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readPublicCatalogRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.PublicCatalogApi = PublicCatalogApi; diff --git a/dist/cjs/apis/PublicIpApi.d.ts b/dist/cjs/apis/PublicIpApi.d.ts new file mode 100644 index 00000000..b79c5c7a --- /dev/null +++ b/dist/cjs/apis/PublicIpApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreatePublicIpRequest, CreatePublicIpResponse, DeletePublicIpRequest, DeletePublicIpResponse, LinkPublicIpRequest, LinkPublicIpResponse, ReadPublicIpRangesRequest, ReadPublicIpRangesResponse, ReadPublicIpsRequest, ReadPublicIpsResponse, UnlinkPublicIpRequest, UnlinkPublicIpResponse } from '../models'; +export interface CreatePublicIpOperationRequest { + createPublicIpRequest?: CreatePublicIpRequest; +} +export interface DeletePublicIpOperationRequest { + deletePublicIpRequest?: DeletePublicIpRequest; +} +export interface LinkPublicIpOperationRequest { + linkPublicIpRequest?: LinkPublicIpRequest; +} +export interface ReadPublicIpRangesOperationRequest { + readPublicIpRangesRequest?: ReadPublicIpRangesRequest; +} +export interface ReadPublicIpsOperationRequest { + readPublicIpsRequest?: ReadPublicIpsRequest; +} +export interface UnlinkPublicIpOperationRequest { + unlinkPublicIpRequest?: UnlinkPublicIpRequest; +} +/** + * PublicIpApi - interface + * + * @export + * @interface PublicIpApiInterface + */ +export interface PublicIpApiInterface { + /** + * + * @param {CreatePublicIpRequest} [createPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + createPublicIpRaw(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createPublicIp(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeletePublicIpRequest} [deletePublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + deletePublicIpRaw(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deletePublicIp(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkPublicIpRequest} [linkPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + linkPublicIpRaw(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPublicIp(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadPublicIpRangesRequest} [readPublicIpRangesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + readPublicIpRangesRaw(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIpRanges(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadPublicIpsRequest} [readPublicIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + readPublicIpsRaw(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIps(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkPublicIpRequest} [unlinkPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + unlinkPublicIpRaw(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPublicIp(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class PublicIpApi extends runtime.BaseAPI implements PublicIpApiInterface { + /** + */ + createPublicIpRaw(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createPublicIp(requestParameters?: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deletePublicIpRaw(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deletePublicIp(requestParameters?: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkPublicIpRaw(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPublicIp(requestParameters?: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readPublicIpRangesRaw(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIpRanges(requestParameters?: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readPublicIpsRaw(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIps(requestParameters?: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkPublicIpRaw(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPublicIp(requestParameters?: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/PublicIpApi.js b/dist/cjs/apis/PublicIpApi.js new file mode 100644 index 00000000..11ccfcfa --- /dev/null +++ b/dist/cjs/apis/PublicIpApi.js @@ -0,0 +1,287 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PublicIpApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class PublicIpApi extends runtime.BaseAPI { + /** + */ + createPublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreatePublicIpRequestToJSON)(requestParameters.createPublicIpRequest); + const request = { + path: `/CreatePublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreatePublicIpResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createPublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createPublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deletePublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeletePublicIpRequestToJSON)(requestParameters.deletePublicIpRequest); + const request = { + path: `/DeletePublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeletePublicIpResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deletePublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deletePublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkPublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkPublicIpRequestToJSON)(requestParameters.linkPublicIpRequest); + const request = { + path: `/LinkPublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkPublicIpResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkPublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkPublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readPublicIpRangesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadPublicIpRangesRequestToJSON)(requestParameters.readPublicIpRangesRequest); + const request = { + path: `/ReadPublicIpRanges`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadPublicIpRangesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readPublicIpRanges(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readPublicIpRangesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readPublicIpsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadPublicIpsRequestToJSON)(requestParameters.readPublicIpsRequest); + const request = { + path: `/ReadPublicIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadPublicIpsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readPublicIps(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readPublicIpsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkPublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkPublicIpRequestToJSON)(requestParameters.unlinkPublicIpRequest); + const request = { + path: `/UnlinkPublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkPublicIpResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkPublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkPublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.PublicIpApi = PublicIpApi; diff --git a/dist/cjs/apis/QuotaApi.d.ts b/dist/cjs/apis/QuotaApi.d.ts new file mode 100644 index 00000000..ac0c373f --- /dev/null +++ b/dist/cjs/apis/QuotaApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadQuotasRequest, ReadQuotasResponse } from '../models'; +export interface ReadQuotasOperationRequest { + readQuotasRequest?: ReadQuotasRequest; +} +/** + * QuotaApi - interface + * + * @export + * @interface QuotaApiInterface + */ +export interface QuotaApiInterface { + /** + * + * @param {ReadQuotasRequest} [readQuotasRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QuotaApiInterface + */ + readQuotasRaw(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readQuotas(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class QuotaApi extends runtime.BaseAPI implements QuotaApiInterface { + /** + */ + readQuotasRaw(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readQuotas(requestParameters?: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/QuotaApi.js b/dist/cjs/apis/QuotaApi.js new file mode 100644 index 00000000..e3b6e8b2 --- /dev/null +++ b/dist/cjs/apis/QuotaApi.js @@ -0,0 +1,95 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuotaApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class QuotaApi extends runtime.BaseAPI { + /** + */ + readQuotasRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadQuotasRequestToJSON)(requestParameters.readQuotasRequest); + const request = { + path: `/ReadQuotas`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadQuotasResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readQuotas(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readQuotasRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.QuotaApi = QuotaApi; diff --git a/dist/cjs/apis/RegionApi.d.ts b/dist/cjs/apis/RegionApi.d.ts new file mode 100644 index 00000000..276449cf --- /dev/null +++ b/dist/cjs/apis/RegionApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadRegionsRequest, ReadRegionsResponse } from '../models'; +export interface ReadRegionsOperationRequest { + readRegionsRequest?: ReadRegionsRequest; +} +/** + * RegionApi - interface + * + * @export + * @interface RegionApiInterface + */ +export interface RegionApiInterface { + /** + * + * @param {ReadRegionsRequest} [readRegionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegionApiInterface + */ + readRegionsRaw(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRegions(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class RegionApi extends runtime.BaseAPI implements RegionApiInterface { + /** + */ + readRegionsRaw(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRegions(requestParameters?: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/RegionApi.js b/dist/cjs/apis/RegionApi.js new file mode 100644 index 00000000..63a2de4f --- /dev/null +++ b/dist/cjs/apis/RegionApi.js @@ -0,0 +1,92 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RegionApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class RegionApi extends runtime.BaseAPI { + /** + */ + readRegionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadRegionsRequestToJSON)(requestParameters.readRegionsRequest); + const request = { + path: `/ReadRegions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadRegionsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readRegions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readRegionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.RegionApi = RegionApi; diff --git a/dist/cjs/apis/RouteApi.d.ts b/dist/cjs/apis/RouteApi.d.ts new file mode 100644 index 00000000..5ef638dc --- /dev/null +++ b/dist/cjs/apis/RouteApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateRouteRequest, CreateRouteResponse, DeleteRouteRequest, DeleteRouteResponse, UpdateRouteRequest, UpdateRouteResponse } from '../models'; +export interface CreateRouteOperationRequest { + createRouteRequest?: CreateRouteRequest; +} +export interface DeleteRouteOperationRequest { + deleteRouteRequest?: DeleteRouteRequest; +} +export interface UpdateRouteOperationRequest { + updateRouteRequest?: UpdateRouteRequest; +} +/** + * RouteApi - interface + * + * @export + * @interface RouteApiInterface + */ +export interface RouteApiInterface { + /** + * + * @param {CreateRouteRequest} [createRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + createRouteRaw(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRoute(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteRouteRequest} [deleteRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + deleteRouteRaw(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRoute(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateRouteRequest} [updateRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + updateRouteRaw(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoute(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class RouteApi extends runtime.BaseAPI implements RouteApiInterface { + /** + */ + createRouteRaw(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRoute(requestParameters?: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteRouteRaw(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRoute(requestParameters?: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateRouteRaw(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoute(requestParameters?: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/RouteApi.js b/dist/cjs/apis/RouteApi.js new file mode 100644 index 00000000..7edf73ed --- /dev/null +++ b/dist/cjs/apis/RouteApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RouteApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class RouteApi extends runtime.BaseAPI { + /** + */ + createRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateRouteRequestToJSON)(requestParameters.createRouteRequest); + const request = { + path: `/CreateRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateRouteResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteRouteRequestToJSON)(requestParameters.deleteRouteRequest); + const request = { + path: `/DeleteRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteRouteResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateRouteRequestToJSON)(requestParameters.updateRouteRequest); + const request = { + path: `/UpdateRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateRouteResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.RouteApi = RouteApi; diff --git a/dist/cjs/apis/RouteTableApi.d.ts b/dist/cjs/apis/RouteTableApi.d.ts new file mode 100644 index 00000000..e9e46139 --- /dev/null +++ b/dist/cjs/apis/RouteTableApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateRouteTableRequest, CreateRouteTableResponse, DeleteRouteTableRequest, DeleteRouteTableResponse, LinkRouteTableRequest, LinkRouteTableResponse, ReadRouteTablesRequest, ReadRouteTablesResponse, UnlinkRouteTableRequest, UnlinkRouteTableResponse } from '../models'; +export interface CreateRouteTableOperationRequest { + createRouteTableRequest?: CreateRouteTableRequest; +} +export interface DeleteRouteTableOperationRequest { + deleteRouteTableRequest?: DeleteRouteTableRequest; +} +export interface LinkRouteTableOperationRequest { + linkRouteTableRequest?: LinkRouteTableRequest; +} +export interface ReadRouteTablesOperationRequest { + readRouteTablesRequest?: ReadRouteTablesRequest; +} +export interface UnlinkRouteTableOperationRequest { + unlinkRouteTableRequest?: UnlinkRouteTableRequest; +} +/** + * RouteTableApi - interface + * + * @export + * @interface RouteTableApiInterface + */ +export interface RouteTableApiInterface { + /** + * + * @param {CreateRouteTableRequest} [createRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + createRouteTableRaw(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRouteTable(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteRouteTableRequest} [deleteRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + deleteRouteTableRaw(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRouteTable(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkRouteTableRequest} [linkRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + linkRouteTableRaw(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkRouteTable(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadRouteTablesRequest} [readRouteTablesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + readRouteTablesRaw(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRouteTables(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkRouteTableRequest} [unlinkRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + unlinkRouteTableRaw(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkRouteTable(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class RouteTableApi extends runtime.BaseAPI implements RouteTableApiInterface { + /** + */ + createRouteTableRaw(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRouteTable(requestParameters?: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteRouteTableRaw(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRouteTable(requestParameters?: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkRouteTableRaw(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkRouteTable(requestParameters?: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readRouteTablesRaw(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRouteTables(requestParameters?: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkRouteTableRaw(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkRouteTable(requestParameters?: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/RouteTableApi.js b/dist/cjs/apis/RouteTableApi.js new file mode 100644 index 00000000..c9a670fd --- /dev/null +++ b/dist/cjs/apis/RouteTableApi.js @@ -0,0 +1,251 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RouteTableApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class RouteTableApi extends runtime.BaseAPI { + /** + */ + createRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateRouteTableRequestToJSON)(requestParameters.createRouteTableRequest); + const request = { + path: `/CreateRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateRouteTableResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteRouteTableRequestToJSON)(requestParameters.deleteRouteTableRequest); + const request = { + path: `/DeleteRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteRouteTableResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkRouteTableRequestToJSON)(requestParameters.linkRouteTableRequest); + const request = { + path: `/LinkRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkRouteTableResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readRouteTablesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadRouteTablesRequestToJSON)(requestParameters.readRouteTablesRequest); + const request = { + path: `/ReadRouteTables`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadRouteTablesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readRouteTables(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readRouteTablesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkRouteTableRequestToJSON)(requestParameters.unlinkRouteTableRequest); + const request = { + path: `/UnlinkRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkRouteTableResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.RouteTableApi = RouteTableApi; diff --git a/dist/cjs/apis/SecurityGroupApi.d.ts b/dist/cjs/apis/SecurityGroupApi.d.ts new file mode 100644 index 00000000..5c619259 --- /dev/null +++ b/dist/cjs/apis/SecurityGroupApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSecurityGroupRequest, CreateSecurityGroupResponse, DeleteSecurityGroupRequest, DeleteSecurityGroupResponse, ReadSecurityGroupsRequest, ReadSecurityGroupsResponse } from '../models'; +export interface CreateSecurityGroupOperationRequest { + createSecurityGroupRequest?: CreateSecurityGroupRequest; +} +export interface DeleteSecurityGroupOperationRequest { + deleteSecurityGroupRequest?: DeleteSecurityGroupRequest; +} +export interface ReadSecurityGroupsOperationRequest { + readSecurityGroupsRequest?: ReadSecurityGroupsRequest; +} +/** + * SecurityGroupApi - interface + * + * @export + * @interface SecurityGroupApiInterface + */ +export interface SecurityGroupApiInterface { + /** + * + * @param {CreateSecurityGroupRequest} [createSecurityGroupRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + createSecurityGroupRaw(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroup(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSecurityGroupRequest} [deleteSecurityGroupRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + deleteSecurityGroupRaw(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroup(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSecurityGroupsRequest} [readSecurityGroupsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + readSecurityGroupsRaw(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecurityGroups(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SecurityGroupApi extends runtime.BaseAPI implements SecurityGroupApiInterface { + /** + */ + createSecurityGroupRaw(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroup(requestParameters?: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSecurityGroupRaw(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroup(requestParameters?: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSecurityGroupsRaw(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecurityGroups(requestParameters?: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/SecurityGroupApi.js b/dist/cjs/apis/SecurityGroupApi.js new file mode 100644 index 00000000..f131dafb --- /dev/null +++ b/dist/cjs/apis/SecurityGroupApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityGroupApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class SecurityGroupApi extends runtime.BaseAPI { + /** + */ + createSecurityGroupRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateSecurityGroupRequestToJSON)(requestParameters.createSecurityGroupRequest); + const request = { + path: `/CreateSecurityGroup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateSecurityGroupResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createSecurityGroup(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSecurityGroupRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSecurityGroupRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteSecurityGroupRequestToJSON)(requestParameters.deleteSecurityGroupRequest); + const request = { + path: `/DeleteSecurityGroup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteSecurityGroupResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteSecurityGroup(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSecurityGroupRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSecurityGroupsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadSecurityGroupsRequestToJSON)(requestParameters.readSecurityGroupsRequest); + const request = { + path: `/ReadSecurityGroups`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadSecurityGroupsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readSecurityGroups(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSecurityGroupsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.SecurityGroupApi = SecurityGroupApi; diff --git a/dist/cjs/apis/SecurityGroupRuleApi.d.ts b/dist/cjs/apis/SecurityGroupRuleApi.d.ts new file mode 100644 index 00000000..9e7bb733 --- /dev/null +++ b/dist/cjs/apis/SecurityGroupRuleApi.d.ts @@ -0,0 +1,66 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, DeleteSecurityGroupRuleRequest, DeleteSecurityGroupRuleResponse } from '../models'; +export interface CreateSecurityGroupRuleOperationRequest { + createSecurityGroupRuleRequest?: CreateSecurityGroupRuleRequest; +} +export interface DeleteSecurityGroupRuleOperationRequest { + deleteSecurityGroupRuleRequest?: DeleteSecurityGroupRuleRequest; +} +/** + * SecurityGroupRuleApi - interface + * + * @export + * @interface SecurityGroupRuleApiInterface + */ +export interface SecurityGroupRuleApiInterface { + /** + * + * @param {CreateSecurityGroupRuleRequest} [createSecurityGroupRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupRuleApiInterface + */ + createSecurityGroupRuleRaw(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroupRule(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSecurityGroupRuleRequest} [deleteSecurityGroupRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupRuleApiInterface + */ + deleteSecurityGroupRuleRaw(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroupRule(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SecurityGroupRuleApi extends runtime.BaseAPI implements SecurityGroupRuleApiInterface { + /** + */ + createSecurityGroupRuleRaw(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroupRule(requestParameters?: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSecurityGroupRuleRaw(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroupRule(requestParameters?: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/SecurityGroupRuleApi.js b/dist/cjs/apis/SecurityGroupRuleApi.js new file mode 100644 index 00000000..e2fc3603 --- /dev/null +++ b/dist/cjs/apis/SecurityGroupRuleApi.js @@ -0,0 +1,134 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityGroupRuleApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class SecurityGroupRuleApi extends runtime.BaseAPI { + /** + */ + createSecurityGroupRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateSecurityGroupRuleRequestToJSON)(requestParameters.createSecurityGroupRuleRequest); + const request = { + path: `/CreateSecurityGroupRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateSecurityGroupRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createSecurityGroupRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSecurityGroupRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSecurityGroupRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteSecurityGroupRuleRequestToJSON)(requestParameters.deleteSecurityGroupRuleRequest); + const request = { + path: `/DeleteSecurityGroupRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteSecurityGroupRuleResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteSecurityGroupRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSecurityGroupRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.SecurityGroupRuleApi = SecurityGroupRuleApi; diff --git a/dist/cjs/apis/ServerCertificateApi.d.ts b/dist/cjs/apis/ServerCertificateApi.d.ts new file mode 100644 index 00000000..c6efb8a1 --- /dev/null +++ b/dist/cjs/apis/ServerCertificateApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateServerCertificateRequest, CreateServerCertificateResponse, DeleteServerCertificateRequest, DeleteServerCertificateResponse, ReadServerCertificatesRequest, ReadServerCertificatesResponse, UpdateServerCertificateRequest, UpdateServerCertificateResponse } from '../models'; +export interface CreateServerCertificateOperationRequest { + createServerCertificateRequest?: CreateServerCertificateRequest; +} +export interface DeleteServerCertificateOperationRequest { + deleteServerCertificateRequest?: DeleteServerCertificateRequest; +} +export interface ReadServerCertificatesOperationRequest { + readServerCertificatesRequest?: ReadServerCertificatesRequest; +} +export interface UpdateServerCertificateOperationRequest { + updateServerCertificateRequest?: UpdateServerCertificateRequest; +} +/** + * ServerCertificateApi - interface + * + * @export + * @interface ServerCertificateApiInterface + */ +export interface ServerCertificateApiInterface { + /** + * + * @param {CreateServerCertificateRequest} [createServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + createServerCertificateRaw(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createServerCertificate(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteServerCertificateRequest} [deleteServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + deleteServerCertificateRaw(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteServerCertificate(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadServerCertificatesRequest} [readServerCertificatesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + readServerCertificatesRaw(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readServerCertificates(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateServerCertificateRequest} [updateServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + updateServerCertificateRaw(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateServerCertificate(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ServerCertificateApi extends runtime.BaseAPI implements ServerCertificateApiInterface { + /** + */ + createServerCertificateRaw(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createServerCertificate(requestParameters?: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteServerCertificateRaw(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteServerCertificate(requestParameters?: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readServerCertificatesRaw(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readServerCertificates(requestParameters?: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateServerCertificateRaw(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateServerCertificate(requestParameters?: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/ServerCertificateApi.js b/dist/cjs/apis/ServerCertificateApi.js new file mode 100644 index 00000000..14ab7c11 --- /dev/null +++ b/dist/cjs/apis/ServerCertificateApi.js @@ -0,0 +1,212 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServerCertificateApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class ServerCertificateApi extends runtime.BaseAPI { + /** + */ + createServerCertificateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateServerCertificateRequestToJSON)(requestParameters.createServerCertificateRequest); + const request = { + path: `/CreateServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateServerCertificateResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createServerCertificate(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createServerCertificateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteServerCertificateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteServerCertificateRequestToJSON)(requestParameters.deleteServerCertificateRequest); + const request = { + path: `/DeleteServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteServerCertificateResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteServerCertificate(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteServerCertificateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readServerCertificatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadServerCertificatesRequestToJSON)(requestParameters.readServerCertificatesRequest); + const request = { + path: `/ReadServerCertificates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadServerCertificatesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readServerCertificates(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readServerCertificatesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateServerCertificateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateServerCertificateRequestToJSON)(requestParameters.updateServerCertificateRequest); + const request = { + path: `/UpdateServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateServerCertificateResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateServerCertificate(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateServerCertificateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.ServerCertificateApi = ServerCertificateApi; diff --git a/dist/cjs/apis/SnapshotApi.d.ts b/dist/cjs/apis/SnapshotApi.d.ts new file mode 100644 index 00000000..bc03e47e --- /dev/null +++ b/dist/cjs/apis/SnapshotApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSnapshotExportTaskRequest, CreateSnapshotExportTaskResponse, CreateSnapshotRequest, CreateSnapshotResponse, DeleteSnapshotRequest, DeleteSnapshotResponse, ReadSnapshotExportTasksRequest, ReadSnapshotExportTasksResponse, ReadSnapshotsRequest, ReadSnapshotsResponse, UpdateSnapshotRequest, UpdateSnapshotResponse } from '../models'; +export interface CreateSnapshotOperationRequest { + createSnapshotRequest?: CreateSnapshotRequest; +} +export interface CreateSnapshotExportTaskOperationRequest { + createSnapshotExportTaskRequest?: CreateSnapshotExportTaskRequest; +} +export interface DeleteSnapshotOperationRequest { + deleteSnapshotRequest?: DeleteSnapshotRequest; +} +export interface ReadSnapshotExportTasksOperationRequest { + readSnapshotExportTasksRequest?: ReadSnapshotExportTasksRequest; +} +export interface ReadSnapshotsOperationRequest { + readSnapshotsRequest?: ReadSnapshotsRequest; +} +export interface UpdateSnapshotOperationRequest { + updateSnapshotRequest?: UpdateSnapshotRequest; +} +/** + * SnapshotApi - interface + * + * @export + * @interface SnapshotApiInterface + */ +export interface SnapshotApiInterface { + /** + * + * @param {CreateSnapshotRequest} [createSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + createSnapshotRaw(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshot(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateSnapshotExportTaskRequest} [createSnapshotExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + createSnapshotExportTaskRaw(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshotExportTask(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSnapshotRequest} [deleteSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + deleteSnapshotRaw(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSnapshot(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSnapshotExportTasksRequest} [readSnapshotExportTasksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + readSnapshotExportTasksRaw(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshotExportTasks(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSnapshotsRequest} [readSnapshotsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + readSnapshotsRaw(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshots(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateSnapshotRequest} [updateSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + updateSnapshotRaw(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSnapshot(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SnapshotApi extends runtime.BaseAPI implements SnapshotApiInterface { + /** + */ + createSnapshotRaw(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshot(requestParameters?: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createSnapshotExportTaskRaw(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshotExportTask(requestParameters?: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSnapshotRaw(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSnapshot(requestParameters?: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSnapshotExportTasksRaw(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshotExportTasks(requestParameters?: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSnapshotsRaw(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshots(requestParameters?: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateSnapshotRaw(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSnapshot(requestParameters?: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/SnapshotApi.js b/dist/cjs/apis/SnapshotApi.js new file mode 100644 index 00000000..512a888e --- /dev/null +++ b/dist/cjs/apis/SnapshotApi.js @@ -0,0 +1,290 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SnapshotApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class SnapshotApi extends runtime.BaseAPI { + /** + */ + createSnapshotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateSnapshotRequestToJSON)(requestParameters.createSnapshotRequest); + const request = { + path: `/CreateSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateSnapshotResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createSnapshot(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSnapshotRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createSnapshotExportTaskRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateSnapshotExportTaskRequestToJSON)(requestParameters.createSnapshotExportTaskRequest); + const request = { + path: `/CreateSnapshotExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateSnapshotExportTaskResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createSnapshotExportTask(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSnapshotExportTaskRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSnapshotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteSnapshotRequestToJSON)(requestParameters.deleteSnapshotRequest); + const request = { + path: `/DeleteSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteSnapshotResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteSnapshot(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSnapshotRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSnapshotExportTasksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadSnapshotExportTasksRequestToJSON)(requestParameters.readSnapshotExportTasksRequest); + const request = { + path: `/ReadSnapshotExportTasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadSnapshotExportTasksResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readSnapshotExportTasks(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSnapshotExportTasksRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSnapshotsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadSnapshotsRequestToJSON)(requestParameters.readSnapshotsRequest); + const request = { + path: `/ReadSnapshots`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadSnapshotsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readSnapshots(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSnapshotsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateSnapshotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateSnapshotRequestToJSON)(requestParameters.updateSnapshotRequest); + const request = { + path: `/UpdateSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateSnapshotResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateSnapshot(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateSnapshotRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.SnapshotApi = SnapshotApi; diff --git a/dist/cjs/apis/SubnetApi.d.ts b/dist/cjs/apis/SubnetApi.d.ts new file mode 100644 index 00000000..81f40a15 --- /dev/null +++ b/dist/cjs/apis/SubnetApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSubnetRequest, CreateSubnetResponse, DeleteSubnetRequest, DeleteSubnetResponse, ReadSubnetsRequest, ReadSubnetsResponse, UpdateSubnetRequest, UpdateSubnetResponse } from '../models'; +export interface CreateSubnetOperationRequest { + createSubnetRequest?: CreateSubnetRequest; +} +export interface DeleteSubnetOperationRequest { + deleteSubnetRequest?: DeleteSubnetRequest; +} +export interface ReadSubnetsOperationRequest { + readSubnetsRequest?: ReadSubnetsRequest; +} +export interface UpdateSubnetOperationRequest { + updateSubnetRequest?: UpdateSubnetRequest; +} +/** + * SubnetApi - interface + * + * @export + * @interface SubnetApiInterface + */ +export interface SubnetApiInterface { + /** + * + * @param {CreateSubnetRequest} [createSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + createSubnetRaw(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSubnet(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSubnetRequest} [deleteSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + deleteSubnetRaw(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSubnet(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSubnetsRequest} [readSubnetsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + readSubnetsRaw(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubnets(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateSubnetRequest} [updateSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + updateSubnetRaw(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSubnet(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SubnetApi extends runtime.BaseAPI implements SubnetApiInterface { + /** + */ + createSubnetRaw(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSubnet(requestParameters?: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSubnetRaw(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSubnet(requestParameters?: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSubnetsRaw(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubnets(requestParameters?: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateSubnetRaw(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSubnet(requestParameters?: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/SubnetApi.js b/dist/cjs/apis/SubnetApi.js new file mode 100644 index 00000000..6d1dd2d4 --- /dev/null +++ b/dist/cjs/apis/SubnetApi.js @@ -0,0 +1,212 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SubnetApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class SubnetApi extends runtime.BaseAPI { + /** + */ + createSubnetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateSubnetRequestToJSON)(requestParameters.createSubnetRequest); + const request = { + path: `/CreateSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateSubnetResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createSubnet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSubnetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSubnetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteSubnetRequestToJSON)(requestParameters.deleteSubnetRequest); + const request = { + path: `/DeleteSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteSubnetResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteSubnet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSubnetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSubnetsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadSubnetsRequestToJSON)(requestParameters.readSubnetsRequest); + const request = { + path: `/ReadSubnets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadSubnetsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readSubnets(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSubnetsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateSubnetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateSubnetRequestToJSON)(requestParameters.updateSubnetRequest); + const request = { + path: `/UpdateSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateSubnetResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateSubnet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateSubnetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.SubnetApi = SubnetApi; diff --git a/dist/cjs/apis/SubregionApi.d.ts b/dist/cjs/apis/SubregionApi.d.ts new file mode 100644 index 00000000..387f69d9 --- /dev/null +++ b/dist/cjs/apis/SubregionApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadSubregionsRequest, ReadSubregionsResponse } from '../models'; +export interface ReadSubregionsOperationRequest { + readSubregionsRequest?: ReadSubregionsRequest; +} +/** + * SubregionApi - interface + * + * @export + * @interface SubregionApiInterface + */ +export interface SubregionApiInterface { + /** + * + * @param {ReadSubregionsRequest} [readSubregionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubregionApiInterface + */ + readSubregionsRaw(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubregions(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SubregionApi extends runtime.BaseAPI implements SubregionApiInterface { + /** + */ + readSubregionsRaw(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubregions(requestParameters?: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/SubregionApi.js b/dist/cjs/apis/SubregionApi.js new file mode 100644 index 00000000..96a265e8 --- /dev/null +++ b/dist/cjs/apis/SubregionApi.js @@ -0,0 +1,95 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SubregionApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class SubregionApi extends runtime.BaseAPI { + /** + */ + readSubregionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadSubregionsRequestToJSON)(requestParameters.readSubregionsRequest); + const request = { + path: `/ReadSubregions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadSubregionsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readSubregions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSubregionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.SubregionApi = SubregionApi; diff --git a/dist/cjs/apis/TagApi.d.ts b/dist/cjs/apis/TagApi.d.ts new file mode 100644 index 00000000..2efc075a --- /dev/null +++ b/dist/cjs/apis/TagApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateTagsRequest, CreateTagsResponse, DeleteTagsRequest, DeleteTagsResponse, ReadTagsRequest, ReadTagsResponse } from '../models'; +export interface CreateTagsOperationRequest { + createTagsRequest?: CreateTagsRequest; +} +export interface DeleteTagsOperationRequest { + deleteTagsRequest?: DeleteTagsRequest; +} +export interface ReadTagsOperationRequest { + readTagsRequest?: ReadTagsRequest; +} +/** + * TagApi - interface + * + * @export + * @interface TagApiInterface + */ +export interface TagApiInterface { + /** + * + * @param {CreateTagsRequest} [createTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + createTagsRaw(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createTags(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteTagsRequest} [deleteTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + deleteTagsRaw(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteTags(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadTagsRequest} [readTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + readTagsRaw(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readTags(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class TagApi extends runtime.BaseAPI implements TagApiInterface { + /** + */ + createTagsRaw(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createTags(requestParameters?: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteTagsRaw(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteTags(requestParameters?: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readTagsRaw(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readTags(requestParameters?: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/TagApi.js b/dist/cjs/apis/TagApi.js new file mode 100644 index 00000000..26b48b9d --- /dev/null +++ b/dist/cjs/apis/TagApi.js @@ -0,0 +1,173 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TagApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class TagApi extends runtime.BaseAPI { + /** + */ + createTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateTagsRequestToJSON)(requestParameters.createTagsRequest); + const request = { + path: `/CreateTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateTagsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteTagsRequestToJSON)(requestParameters.deleteTagsRequest); + const request = { + path: `/DeleteTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteTagsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadTagsRequestToJSON)(requestParameters.readTagsRequest); + const request = { + path: `/ReadTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadTagsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.TagApi = TagApi; diff --git a/dist/cjs/apis/TaskApi.d.ts b/dist/cjs/apis/TaskApi.d.ts new file mode 100644 index 00000000..5b2645d8 --- /dev/null +++ b/dist/cjs/apis/TaskApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { DeleteExportTaskRequest, DeleteExportTaskResponse } from '../models'; +export interface DeleteExportTaskOperationRequest { + deleteExportTaskRequest?: DeleteExportTaskRequest; +} +/** + * TaskApi - interface + * + * @export + * @interface TaskApiInterface + */ +export interface TaskApiInterface { + /** + * + * @param {DeleteExportTaskRequest} [deleteExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TaskApiInterface + */ + deleteExportTaskRaw(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteExportTask(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class TaskApi extends runtime.BaseAPI implements TaskApiInterface { + /** + */ + deleteExportTaskRaw(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteExportTask(requestParameters?: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/TaskApi.js b/dist/cjs/apis/TaskApi.js new file mode 100644 index 00000000..0a6b4f95 --- /dev/null +++ b/dist/cjs/apis/TaskApi.js @@ -0,0 +1,95 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TaskApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class TaskApi extends runtime.BaseAPI { + /** + */ + deleteExportTaskRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteExportTaskRequestToJSON)(requestParameters.deleteExportTaskRequest); + const request = { + path: `/DeleteExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteExportTaskResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteExportTask(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteExportTaskRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.TaskApi = TaskApi; diff --git a/dist/cjs/apis/VirtualGatewayApi.d.ts b/dist/cjs/apis/VirtualGatewayApi.d.ts new file mode 100644 index 00000000..b060d2f8 --- /dev/null +++ b/dist/cjs/apis/VirtualGatewayApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVirtualGatewayRequest, CreateVirtualGatewayResponse, DeleteVirtualGatewayRequest, DeleteVirtualGatewayResponse, LinkVirtualGatewayRequest, LinkVirtualGatewayResponse, ReadVirtualGatewaysRequest, ReadVirtualGatewaysResponse, UnlinkVirtualGatewayRequest, UnlinkVirtualGatewayResponse, UpdateRoutePropagationRequest, UpdateRoutePropagationResponse } from '../models'; +export interface CreateVirtualGatewayOperationRequest { + createVirtualGatewayRequest?: CreateVirtualGatewayRequest; +} +export interface DeleteVirtualGatewayOperationRequest { + deleteVirtualGatewayRequest?: DeleteVirtualGatewayRequest; +} +export interface LinkVirtualGatewayOperationRequest { + linkVirtualGatewayRequest?: LinkVirtualGatewayRequest; +} +export interface ReadVirtualGatewaysOperationRequest { + readVirtualGatewaysRequest?: ReadVirtualGatewaysRequest; +} +export interface UnlinkVirtualGatewayOperationRequest { + unlinkVirtualGatewayRequest?: UnlinkVirtualGatewayRequest; +} +export interface UpdateRoutePropagationOperationRequest { + updateRoutePropagationRequest?: UpdateRoutePropagationRequest; +} +/** + * VirtualGatewayApi - interface + * + * @export + * @interface VirtualGatewayApiInterface + */ +export interface VirtualGatewayApiInterface { + /** + * + * @param {CreateVirtualGatewayRequest} [createVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + createVirtualGatewayRaw(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVirtualGateway(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVirtualGatewayRequest} [deleteVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + deleteVirtualGatewayRaw(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVirtualGateway(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkVirtualGatewayRequest} [linkVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + linkVirtualGatewayRaw(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVirtualGateway(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVirtualGatewaysRequest} [readVirtualGatewaysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + readVirtualGatewaysRaw(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVirtualGateways(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkVirtualGatewayRequest} [unlinkVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + unlinkVirtualGatewayRaw(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVirtualGateway(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateRoutePropagationRequest} [updateRoutePropagationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + updateRoutePropagationRaw(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoutePropagation(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VirtualGatewayApi extends runtime.BaseAPI implements VirtualGatewayApiInterface { + /** + */ + createVirtualGatewayRaw(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVirtualGateway(requestParameters?: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVirtualGatewayRaw(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVirtualGateway(requestParameters?: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkVirtualGatewayRaw(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVirtualGateway(requestParameters?: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVirtualGatewaysRaw(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVirtualGateways(requestParameters?: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkVirtualGatewayRaw(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVirtualGateway(requestParameters?: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateRoutePropagationRaw(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoutePropagation(requestParameters?: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/VirtualGatewayApi.js b/dist/cjs/apis/VirtualGatewayApi.js new file mode 100644 index 00000000..1ce15405 --- /dev/null +++ b/dist/cjs/apis/VirtualGatewayApi.js @@ -0,0 +1,290 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VirtualGatewayApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class VirtualGatewayApi extends runtime.BaseAPI { + /** + */ + createVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateVirtualGatewayRequestToJSON)(requestParameters.createVirtualGatewayRequest); + const request = { + path: `/CreateVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateVirtualGatewayResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteVirtualGatewayRequestToJSON)(requestParameters.deleteVirtualGatewayRequest); + const request = { + path: `/DeleteVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteVirtualGatewayResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkVirtualGatewayRequestToJSON)(requestParameters.linkVirtualGatewayRequest); + const request = { + path: `/LinkVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkVirtualGatewayResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVirtualGatewaysRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadVirtualGatewaysRequestToJSON)(requestParameters.readVirtualGatewaysRequest); + const request = { + path: `/ReadVirtualGateways`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVirtualGatewaysResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVirtualGateways(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVirtualGatewaysRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkVirtualGatewayRequestToJSON)(requestParameters.unlinkVirtualGatewayRequest); + const request = { + path: `/UnlinkVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkVirtualGatewayResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateRoutePropagationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateRoutePropagationRequestToJSON)(requestParameters.updateRoutePropagationRequest); + const request = { + path: `/UpdateRoutePropagation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateRoutePropagationResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateRoutePropagation(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateRoutePropagationRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.VirtualGatewayApi = VirtualGatewayApi; diff --git a/dist/cjs/apis/VmApi.d.ts b/dist/cjs/apis/VmApi.d.ts new file mode 100644 index 00000000..7cb36d5f --- /dev/null +++ b/dist/cjs/apis/VmApi.d.ts @@ -0,0 +1,246 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVmsRequest, CreateVmsResponse, DeleteVmsRequest, DeleteVmsResponse, ReadAdminPasswordRequest, ReadAdminPasswordResponse, ReadConsoleOutputRequest, ReadConsoleOutputResponse, ReadVmTypesRequest, ReadVmTypesResponse, ReadVmsRequest, ReadVmsResponse, ReadVmsStateRequest, ReadVmsStateResponse, RebootVmsRequest, RebootVmsResponse, StartVmsRequest, StartVmsResponse, StopVmsRequest, StopVmsResponse, UpdateVmRequest, UpdateVmResponse } from '../models'; +export interface CreateVmsOperationRequest { + createVmsRequest?: CreateVmsRequest; +} +export interface DeleteVmsOperationRequest { + deleteVmsRequest?: DeleteVmsRequest; +} +export interface ReadAdminPasswordOperationRequest { + readAdminPasswordRequest?: ReadAdminPasswordRequest; +} +export interface ReadConsoleOutputOperationRequest { + readConsoleOutputRequest?: ReadConsoleOutputRequest; +} +export interface ReadVmTypesOperationRequest { + readVmTypesRequest?: ReadVmTypesRequest; +} +export interface ReadVmsOperationRequest { + readVmsRequest?: ReadVmsRequest; +} +export interface ReadVmsStateOperationRequest { + readVmsStateRequest?: ReadVmsStateRequest; +} +export interface RebootVmsOperationRequest { + rebootVmsRequest?: RebootVmsRequest; +} +export interface StartVmsOperationRequest { + startVmsRequest?: StartVmsRequest; +} +export interface StopVmsOperationRequest { + stopVmsRequest?: StopVmsRequest; +} +export interface UpdateVmOperationRequest { + updateVmRequest?: UpdateVmRequest; +} +/** + * VmApi - interface + * + * @export + * @interface VmApiInterface + */ +export interface VmApiInterface { + /** + * + * @param {CreateVmsRequest} [createVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + createVmsRaw(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVms(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVmsRequest} [deleteVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + deleteVmsRaw(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVms(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadAdminPasswordRequest} [readAdminPasswordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readAdminPasswordRaw(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAdminPassword(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadConsoleOutputRequest} [readConsoleOutputRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readConsoleOutputRaw(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsoleOutput(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmTypesRequest} [readVmTypesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmTypesRaw(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmTypes(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmsRequest} [readVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmsRaw(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVms(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmsStateRequest} [readVmsStateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmsStateRaw(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsState(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {RebootVmsRequest} [rebootVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + rebootVmsRaw(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rebootVms(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {StartVmsRequest} [startVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + startVmsRaw(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + startVms(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {StopVmsRequest} [stopVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + stopVmsRaw(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + stopVms(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateVmRequest} [updateVmRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + updateVmRaw(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVm(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VmApi extends runtime.BaseAPI implements VmApiInterface { + /** + */ + createVmsRaw(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVms(requestParameters?: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVmsRaw(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVms(requestParameters?: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readAdminPasswordRaw(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAdminPassword(requestParameters?: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readConsoleOutputRaw(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsoleOutput(requestParameters?: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmTypesRaw(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmTypes(requestParameters?: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmsRaw(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVms(requestParameters?: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmsStateRaw(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsState(requestParameters?: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + rebootVmsRaw(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rebootVms(requestParameters?: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + startVmsRaw(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + startVms(requestParameters?: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + stopVmsRaw(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + stopVms(requestParameters?: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateVmRaw(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVm(requestParameters?: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/VmApi.js b/dist/cjs/apis/VmApi.js new file mode 100644 index 00000000..8d2fb315 --- /dev/null +++ b/dist/cjs/apis/VmApi.js @@ -0,0 +1,482 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VmApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class VmApi extends runtime.BaseAPI { + /** + */ + createVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateVmsRequestToJSON)(requestParameters.createVmsRequest); + const request = { + path: `/CreateVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateVmsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteVmsRequestToJSON)(requestParameters.deleteVmsRequest); + const request = { + path: `/DeleteVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteVmsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readAdminPasswordRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadAdminPasswordRequestToJSON)(requestParameters.readAdminPasswordRequest); + const request = { + path: `/ReadAdminPassword`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadAdminPasswordResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readAdminPassword(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readAdminPasswordRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readConsoleOutputRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadConsoleOutputRequestToJSON)(requestParameters.readConsoleOutputRequest); + const request = { + path: `/ReadConsoleOutput`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadConsoleOutputResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readConsoleOutput(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readConsoleOutputRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = (0, models_1.ReadVmTypesRequestToJSON)(requestParameters.readVmTypesRequest); + const request = { + path: `/ReadVmTypes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVmTypesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVmTypes(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmTypesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadVmsRequestToJSON)(requestParameters.readVmsRequest); + const request = { + path: `/ReadVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVmsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmsStateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadVmsStateRequestToJSON)(requestParameters.readVmsStateRequest); + const request = { + path: `/ReadVmsState`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVmsStateResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVmsState(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmsStateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + rebootVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.RebootVmsRequestToJSON)(requestParameters.rebootVmsRequest); + const request = { + path: `/RebootVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RebootVmsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + rebootVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rebootVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + startVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.StartVmsRequestToJSON)(requestParameters.startVmsRequest); + const request = { + path: `/StartVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.StartVmsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + startVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.startVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + stopVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.StopVmsRequestToJSON)(requestParameters.stopVmsRequest); + const request = { + path: `/StopVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.StopVmsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + stopVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.stopVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateVmRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateVmRequestToJSON)(requestParameters.updateVmRequest); + const request = { + path: `/UpdateVm`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateVmResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateVm(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateVmRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.VmApi = VmApi; diff --git a/dist/cjs/apis/VolumeApi.d.ts b/dist/cjs/apis/VolumeApi.d.ts new file mode 100644 index 00000000..c88746c7 --- /dev/null +++ b/dist/cjs/apis/VolumeApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVolumeRequest, CreateVolumeResponse, DeleteVolumeRequest, DeleteVolumeResponse, LinkVolumeRequest, LinkVolumeResponse, ReadVolumesRequest, ReadVolumesResponse, UnlinkVolumeRequest, UnlinkVolumeResponse, UpdateVolumeRequest, UpdateVolumeResponse } from '../models'; +export interface CreateVolumeOperationRequest { + createVolumeRequest?: CreateVolumeRequest; +} +export interface DeleteVolumeOperationRequest { + deleteVolumeRequest?: DeleteVolumeRequest; +} +export interface LinkVolumeOperationRequest { + linkVolumeRequest?: LinkVolumeRequest; +} +export interface ReadVolumesOperationRequest { + readVolumesRequest?: ReadVolumesRequest; +} +export interface UnlinkVolumeOperationRequest { + unlinkVolumeRequest?: UnlinkVolumeRequest; +} +export interface UpdateVolumeOperationRequest { + updateVolumeRequest?: UpdateVolumeRequest; +} +/** + * VolumeApi - interface + * + * @export + * @interface VolumeApiInterface + */ +export interface VolumeApiInterface { + /** + * + * @param {CreateVolumeRequest} [createVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + createVolumeRaw(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVolume(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVolumeRequest} [deleteVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + deleteVolumeRaw(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVolume(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkVolumeRequest} [linkVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + linkVolumeRaw(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVolume(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVolumesRequest} [readVolumesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + readVolumesRaw(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVolumes(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkVolumeRequest} [unlinkVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + unlinkVolumeRaw(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVolume(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateVolumeRequest} [updateVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + updateVolumeRaw(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVolume(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VolumeApi extends runtime.BaseAPI implements VolumeApiInterface { + /** + */ + createVolumeRaw(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVolume(requestParameters?: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVolumeRaw(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVolume(requestParameters?: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkVolumeRaw(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVolume(requestParameters?: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVolumesRaw(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVolumes(requestParameters?: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkVolumeRaw(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVolume(requestParameters?: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateVolumeRaw(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVolume(requestParameters?: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/VolumeApi.js b/dist/cjs/apis/VolumeApi.js new file mode 100644 index 00000000..bd64b107 --- /dev/null +++ b/dist/cjs/apis/VolumeApi.js @@ -0,0 +1,290 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VolumeApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class VolumeApi extends runtime.BaseAPI { + /** + */ + createVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateVolumeRequestToJSON)(requestParameters.createVolumeRequest); + const request = { + path: `/CreateVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateVolumeResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteVolumeRequestToJSON)(requestParameters.deleteVolumeRequest); + const request = { + path: `/DeleteVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteVolumeResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.LinkVolumeRequestToJSON)(requestParameters.linkVolumeRequest); + const request = { + path: `/LinkVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LinkVolumeResponseFromJSON)(jsonValue)); + }); + } + /** + */ + linkVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVolumesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadVolumesRequestToJSON)(requestParameters.readVolumesRequest); + const request = { + path: `/ReadVolumes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVolumesResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVolumes(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVolumesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UnlinkVolumeRequestToJSON)(requestParameters.unlinkVolumeRequest); + const request = { + path: `/UnlinkVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UnlinkVolumeResponseFromJSON)(jsonValue)); + }); + } + /** + */ + unlinkVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateVolumeRequestToJSON)(requestParameters.updateVolumeRequest); + const request = { + path: `/UpdateVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateVolumeResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.VolumeApi = VolumeApi; diff --git a/dist/cjs/apis/VpnConnectionApi.d.ts b/dist/cjs/apis/VpnConnectionApi.d.ts new file mode 100644 index 00000000..5d53e9ce --- /dev/null +++ b/dist/cjs/apis/VpnConnectionApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVpnConnectionRequest, CreateVpnConnectionResponse, CreateVpnConnectionRouteRequest, CreateVpnConnectionRouteResponse, DeleteVpnConnectionRequest, DeleteVpnConnectionResponse, DeleteVpnConnectionRouteRequest, DeleteVpnConnectionRouteResponse, ReadVpnConnectionsRequest, ReadVpnConnectionsResponse, UpdateVpnConnectionRequest, UpdateVpnConnectionResponse } from '../models'; +export interface CreateVpnConnectionOperationRequest { + createVpnConnectionRequest?: CreateVpnConnectionRequest; +} +export interface CreateVpnConnectionRouteOperationRequest { + createVpnConnectionRouteRequest?: CreateVpnConnectionRouteRequest; +} +export interface DeleteVpnConnectionOperationRequest { + deleteVpnConnectionRequest?: DeleteVpnConnectionRequest; +} +export interface DeleteVpnConnectionRouteOperationRequest { + deleteVpnConnectionRouteRequest?: DeleteVpnConnectionRouteRequest; +} +export interface ReadVpnConnectionsOperationRequest { + readVpnConnectionsRequest?: ReadVpnConnectionsRequest; +} +export interface UpdateVpnConnectionOperationRequest { + updateVpnConnectionRequest?: UpdateVpnConnectionRequest; +} +/** + * VpnConnectionApi - interface + * + * @export + * @interface VpnConnectionApiInterface + */ +export interface VpnConnectionApiInterface { + /** + * + * @param {CreateVpnConnectionRequest} [createVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + createVpnConnectionRaw(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnection(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateVpnConnectionRouteRequest} [createVpnConnectionRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + createVpnConnectionRouteRaw(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnectionRoute(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVpnConnectionRequest} [deleteVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + deleteVpnConnectionRaw(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnection(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVpnConnectionRouteRequest} [deleteVpnConnectionRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + deleteVpnConnectionRouteRaw(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnectionRoute(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVpnConnectionsRequest} [readVpnConnectionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + readVpnConnectionsRaw(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVpnConnections(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateVpnConnectionRequest} [updateVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + updateVpnConnectionRaw(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVpnConnection(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VpnConnectionApi extends runtime.BaseAPI implements VpnConnectionApiInterface { + /** + */ + createVpnConnectionRaw(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnection(requestParameters?: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createVpnConnectionRouteRaw(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnectionRoute(requestParameters?: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVpnConnectionRaw(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnection(requestParameters?: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVpnConnectionRouteRaw(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnectionRoute(requestParameters?: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVpnConnectionsRaw(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVpnConnections(requestParameters?: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateVpnConnectionRaw(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVpnConnection(requestParameters?: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/cjs/apis/VpnConnectionApi.js b/dist/cjs/apis/VpnConnectionApi.js new file mode 100644 index 00000000..6dd604fc --- /dev/null +++ b/dist/cjs/apis/VpnConnectionApi.js @@ -0,0 +1,290 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VpnConnectionApi = void 0; +const runtime = __importStar(require("../runtime")); +const models_1 = require("../models"); +/** + * + */ +class VpnConnectionApi extends runtime.BaseAPI { + /** + */ + createVpnConnectionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateVpnConnectionRequestToJSON)(requestParameters.createVpnConnectionRequest); + const request = { + path: `/CreateVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateVpnConnectionResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createVpnConnection(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVpnConnectionRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createVpnConnectionRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.CreateVpnConnectionRouteRequestToJSON)(requestParameters.createVpnConnectionRouteRequest); + const request = { + path: `/CreateVpnConnectionRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreateVpnConnectionRouteResponseFromJSON)(jsonValue)); + }); + } + /** + */ + createVpnConnectionRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVpnConnectionRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVpnConnectionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteVpnConnectionRequestToJSON)(requestParameters.deleteVpnConnectionRequest); + const request = { + path: `/DeleteVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteVpnConnectionResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteVpnConnection(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVpnConnectionRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVpnConnectionRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.DeleteVpnConnectionRouteRequestToJSON)(requestParameters.deleteVpnConnectionRouteRequest); + const request = { + path: `/DeleteVpnConnectionRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeleteVpnConnectionRouteResponseFromJSON)(jsonValue)); + }); + } + /** + */ + deleteVpnConnectionRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVpnConnectionRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVpnConnectionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.ReadVpnConnectionsRequestToJSON)(requestParameters.readVpnConnectionsRequest); + const request = { + path: `/ReadVpnConnections`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ReadVpnConnectionsResponseFromJSON)(jsonValue)); + }); + } + /** + */ + readVpnConnections(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVpnConnectionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateVpnConnectionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = (0, models_1.UpdateVpnConnectionRequestToJSON)(requestParameters.updateVpnConnectionRequest); + const request = { + path: `/UpdateVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdateVpnConnectionResponseFromJSON)(jsonValue)); + }); + } + /** + */ + updateVpnConnection(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateVpnConnectionRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} +exports.VpnConnectionApi = VpnConnectionApi; diff --git a/dist/cjs/apis/index.d.ts b/dist/cjs/apis/index.d.ts new file mode 100644 index 00000000..e89a7d70 --- /dev/null +++ b/dist/cjs/apis/index.d.ts @@ -0,0 +1,43 @@ +export * from './AccessKeyApi'; +export * from './AccountApi'; +export * from './ApiAccessPolicyApi'; +export * from './ApiAccessRuleApi'; +export * from './ApiLogApi'; +export * from './CaApi'; +export * from './CatalogApi'; +export * from './ClientGatewayApi'; +export * from './DhcpOptionApi'; +export * from './DirectLinkApi'; +export * from './DirectLinkInterfaceApi'; +export * from './FlexibleGpuApi'; +export * from './ImageApi'; +export * from './InternetServiceApi'; +export * from './KeypairApi'; +export * from './ListenerApi'; +export * from './LoadBalancerApi'; +export * from './LoadBalancerPolicyApi'; +export * from './LocationApi'; +export * from './NatServiceApi'; +export * from './NetApi'; +export * from './NetAccessPointApi'; +export * from './NetPeeringApi'; +export * from './NicApi'; +export * from './ProductTypeApi'; +export * from './PublicCatalogApi'; +export * from './PublicIpApi'; +export * from './QuotaApi'; +export * from './RegionApi'; +export * from './RouteApi'; +export * from './RouteTableApi'; +export * from './SecurityGroupApi'; +export * from './SecurityGroupRuleApi'; +export * from './ServerCertificateApi'; +export * from './SnapshotApi'; +export * from './SubnetApi'; +export * from './SubregionApi'; +export * from './TagApi'; +export * from './TaskApi'; +export * from './VirtualGatewayApi'; +export * from './VmApi'; +export * from './VolumeApi'; +export * from './VpnConnectionApi'; diff --git a/dist/cjs/apis/index.js b/dist/cjs/apis/index.js new file mode 100644 index 00000000..70f47ea9 --- /dev/null +++ b/dist/cjs/apis/index.js @@ -0,0 +1,61 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/* tslint:disable */ +/* eslint-disable */ +__exportStar(require("./AccessKeyApi"), exports); +__exportStar(require("./AccountApi"), exports); +__exportStar(require("./ApiAccessPolicyApi"), exports); +__exportStar(require("./ApiAccessRuleApi"), exports); +__exportStar(require("./ApiLogApi"), exports); +__exportStar(require("./CaApi"), exports); +__exportStar(require("./CatalogApi"), exports); +__exportStar(require("./ClientGatewayApi"), exports); +__exportStar(require("./DhcpOptionApi"), exports); +__exportStar(require("./DirectLinkApi"), exports); +__exportStar(require("./DirectLinkInterfaceApi"), exports); +__exportStar(require("./FlexibleGpuApi"), exports); +__exportStar(require("./ImageApi"), exports); +__exportStar(require("./InternetServiceApi"), exports); +__exportStar(require("./KeypairApi"), exports); +__exportStar(require("./ListenerApi"), exports); +__exportStar(require("./LoadBalancerApi"), exports); +__exportStar(require("./LoadBalancerPolicyApi"), exports); +__exportStar(require("./LocationApi"), exports); +__exportStar(require("./NatServiceApi"), exports); +__exportStar(require("./NetApi"), exports); +__exportStar(require("./NetAccessPointApi"), exports); +__exportStar(require("./NetPeeringApi"), exports); +__exportStar(require("./NicApi"), exports); +__exportStar(require("./ProductTypeApi"), exports); +__exportStar(require("./PublicCatalogApi"), exports); +__exportStar(require("./PublicIpApi"), exports); +__exportStar(require("./QuotaApi"), exports); +__exportStar(require("./RegionApi"), exports); +__exportStar(require("./RouteApi"), exports); +__exportStar(require("./RouteTableApi"), exports); +__exportStar(require("./SecurityGroupApi"), exports); +__exportStar(require("./SecurityGroupRuleApi"), exports); +__exportStar(require("./ServerCertificateApi"), exports); +__exportStar(require("./SnapshotApi"), exports); +__exportStar(require("./SubnetApi"), exports); +__exportStar(require("./SubregionApi"), exports); +__exportStar(require("./TagApi"), exports); +__exportStar(require("./TaskApi"), exports); +__exportStar(require("./VirtualGatewayApi"), exports); +__exportStar(require("./VmApi"), exports); +__exportStar(require("./VolumeApi"), exports); +__exportStar(require("./VpnConnectionApi"), exports); diff --git a/dist/cjs/index.d.ts b/dist/cjs/index.d.ts new file mode 100644 index 00000000..848ecfa4 --- /dev/null +++ b/dist/cjs/index.d.ts @@ -0,0 +1,3 @@ +export * from './runtime'; +export * from './apis'; +export * from './models'; diff --git a/dist/cjs/index.js b/dist/cjs/index.js new file mode 100644 index 00000000..3bbb218c --- /dev/null +++ b/dist/cjs/index.js @@ -0,0 +1,21 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/* tslint:disable */ +/* eslint-disable */ +__exportStar(require("./runtime"), exports); +__exportStar(require("./apis"), exports); +__exportStar(require("./models"), exports); diff --git a/dist/cjs/models/AcceptNetPeeringRequest.d.ts b/dist/cjs/models/AcceptNetPeeringRequest.d.ts new file mode 100644 index 00000000..35b31212 --- /dev/null +++ b/dist/cjs/models/AcceptNetPeeringRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AcceptNetPeeringRequest + */ +export interface AcceptNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof AcceptNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to accept. + * @type {string} + * @memberof AcceptNetPeeringRequest + */ + netPeeringId: string; +} +export declare function AcceptNetPeeringRequestFromJSON(json: any): AcceptNetPeeringRequest; +export declare function AcceptNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptNetPeeringRequest; +export declare function AcceptNetPeeringRequestToJSON(value?: AcceptNetPeeringRequest | null): any; diff --git a/dist/cjs/models/AcceptNetPeeringRequest.js b/dist/cjs/models/AcceptNetPeeringRequest.js new file mode 100644 index 00000000..f4990132 --- /dev/null +++ b/dist/cjs/models/AcceptNetPeeringRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AcceptNetPeeringRequestToJSON = exports.AcceptNetPeeringRequestFromJSONTyped = exports.AcceptNetPeeringRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function AcceptNetPeeringRequestFromJSON(json) { + return AcceptNetPeeringRequestFromJSONTyped(json, false); +} +exports.AcceptNetPeeringRequestFromJSON = AcceptNetPeeringRequestFromJSON; +function AcceptNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} +exports.AcceptNetPeeringRequestFromJSONTyped = AcceptNetPeeringRequestFromJSONTyped; +function AcceptNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} +exports.AcceptNetPeeringRequestToJSON = AcceptNetPeeringRequestToJSON; diff --git a/dist/cjs/models/AcceptNetPeeringResponse.d.ts b/dist/cjs/models/AcceptNetPeeringResponse.d.ts new file mode 100644 index 00000000..500d1eee --- /dev/null +++ b/dist/cjs/models/AcceptNetPeeringResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetPeering } from './NetPeering'; +/** + * + * @export + * @interface AcceptNetPeeringResponse + */ +export interface AcceptNetPeeringResponse { + /** + * + * @type {NetPeering} + * @memberof AcceptNetPeeringResponse + */ + netPeering?: NetPeering; + /** + * + * @type {ModelResponseContext} + * @memberof AcceptNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function AcceptNetPeeringResponseFromJSON(json: any): AcceptNetPeeringResponse; +export declare function AcceptNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptNetPeeringResponse; +export declare function AcceptNetPeeringResponseToJSON(value?: AcceptNetPeeringResponse | null): any; diff --git a/dist/cjs/models/AcceptNetPeeringResponse.js b/dist/cjs/models/AcceptNetPeeringResponse.js new file mode 100644 index 00000000..29d0e1b2 --- /dev/null +++ b/dist/cjs/models/AcceptNetPeeringResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AcceptNetPeeringResponseToJSON = exports.AcceptNetPeeringResponseFromJSONTyped = exports.AcceptNetPeeringResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetPeering_1 = require("./NetPeering"); +function AcceptNetPeeringResponseFromJSON(json) { + return AcceptNetPeeringResponseFromJSONTyped(json, false); +} +exports.AcceptNetPeeringResponseFromJSON = AcceptNetPeeringResponseFromJSON; +function AcceptNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netPeering': !(0, runtime_1.exists)(json, 'NetPeering') ? undefined : (0, NetPeering_1.NetPeeringFromJSON)(json['NetPeering']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.AcceptNetPeeringResponseFromJSONTyped = AcceptNetPeeringResponseFromJSONTyped; +function AcceptNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetPeering': (0, NetPeering_1.NetPeeringToJSON)(value.netPeering), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.AcceptNetPeeringResponseToJSON = AcceptNetPeeringResponseToJSON; diff --git a/dist/cjs/models/AccepterNet.d.ts b/dist/cjs/models/AccepterNet.d.ts new file mode 100644 index 00000000..904dff1d --- /dev/null +++ b/dist/cjs/models/AccepterNet.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the accepter Net. + * @export + * @interface AccepterNet + */ +export interface AccepterNet { + /** + * The account ID of the owner of the accepter Net. + * @type {string} + * @memberof AccepterNet + */ + accountId?: string; + /** + * The IP range for the accepter Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof AccepterNet + */ + ipRange?: string; + /** + * The ID of the accepter Net. + * @type {string} + * @memberof AccepterNet + */ + netId?: string; +} +export declare function AccepterNetFromJSON(json: any): AccepterNet; +export declare function AccepterNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccepterNet; +export declare function AccepterNetToJSON(value?: AccepterNet | null): any; diff --git a/dist/cjs/models/AccepterNet.js b/dist/cjs/models/AccepterNet.js new file mode 100644 index 00000000..db661e16 --- /dev/null +++ b/dist/cjs/models/AccepterNet.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccepterNetToJSON = exports.AccepterNetFromJSONTyped = exports.AccepterNetFromJSON = void 0; +const runtime_1 = require("../runtime"); +function AccepterNetFromJSON(json) { + return AccepterNetFromJSONTyped(json, false); +} +exports.AccepterNetFromJSON = AccepterNetFromJSON; +function AccepterNetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'ipRange': !(0, runtime_1.exists)(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + }; +} +exports.AccepterNetFromJSONTyped = AccepterNetFromJSONTyped; +function AccepterNetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + }; +} +exports.AccepterNetToJSON = AccepterNetToJSON; diff --git a/dist/cjs/models/AccessKey.d.ts b/dist/cjs/models/AccessKey.d.ts new file mode 100644 index 00000000..9a5a703e --- /dev/null +++ b/dist/cjs/models/AccessKey.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the access key. + * @export + * @interface AccessKey + */ +export interface AccessKey { + /** + * The ID of the access key. + * @type {string} + * @memberof AccessKey + */ + accessKeyId?: string; + /** + * The date and time (UTC) of creation of the access key. + * @type {string} + * @memberof AccessKey + */ + creationDate?: string; + /** + * The date (UTC) at which the access key expires. + * @type {string} + * @memberof AccessKey + */ + expirationDate?: string; + /** + * The date and time (UTC) of the last modification of the access key. + * @type {string} + * @memberof AccessKey + */ + lastModificationDate?: string; + /** + * The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not). + * @type {string} + * @memberof AccessKey + */ + state?: string; +} +export declare function AccessKeyFromJSON(json: any): AccessKey; +export declare function AccessKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessKey; +export declare function AccessKeyToJSON(value?: AccessKey | null): any; diff --git a/dist/cjs/models/AccessKey.js b/dist/cjs/models/AccessKey.js new file mode 100644 index 00000000..52f2917d --- /dev/null +++ b/dist/cjs/models/AccessKey.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccessKeyToJSON = exports.AccessKeyFromJSONTyped = exports.AccessKeyFromJSON = void 0; +const runtime_1 = require("../runtime"); +function AccessKeyFromJSON(json) { + return AccessKeyFromJSONTyped(json, false); +} +exports.AccessKeyFromJSON = AccessKeyFromJSON; +function AccessKeyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': !(0, runtime_1.exists)(json, 'AccessKeyId') ? undefined : json['AccessKeyId'], + 'creationDate': !(0, runtime_1.exists)(json, 'CreationDate') ? undefined : json['CreationDate'], + 'expirationDate': !(0, runtime_1.exists)(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'lastModificationDate': !(0, runtime_1.exists)(json, 'LastModificationDate') ? undefined : json['LastModificationDate'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + }; +} +exports.AccessKeyFromJSONTyped = AccessKeyFromJSONTyped; +function AccessKeyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'CreationDate': value.creationDate, + 'ExpirationDate': value.expirationDate, + 'LastModificationDate': value.lastModificationDate, + 'State': value.state, + }; +} +exports.AccessKeyToJSON = AccessKeyToJSON; diff --git a/dist/cjs/models/AccessKeySecretKey.d.ts b/dist/cjs/models/AccessKeySecretKey.d.ts new file mode 100644 index 00000000..36e190f2 --- /dev/null +++ b/dist/cjs/models/AccessKeySecretKey.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the access key. + * @export + * @interface AccessKeySecretKey + */ +export interface AccessKeySecretKey { + /** + * The ID of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + accessKeyId?: string; + /** + * The date and time (UTC) of creation of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + creationDate?: string; + /** + * The date and time (UTC) at which the access key expires. + * @type {string} + * @memberof AccessKeySecretKey + */ + expirationDate?: string; + /** + * The date and time (UTC) of the last modification of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + lastModificationDate?: string; + /** + * The access key that enables you to send requests. + * @type {string} + * @memberof AccessKeySecretKey + */ + secretKey?: string; + /** + * The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not). + * @type {string} + * @memberof AccessKeySecretKey + */ + state?: string; +} +export declare function AccessKeySecretKeyFromJSON(json: any): AccessKeySecretKey; +export declare function AccessKeySecretKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessKeySecretKey; +export declare function AccessKeySecretKeyToJSON(value?: AccessKeySecretKey | null): any; diff --git a/dist/cjs/models/AccessKeySecretKey.js b/dist/cjs/models/AccessKeySecretKey.js new file mode 100644 index 00000000..03068bed --- /dev/null +++ b/dist/cjs/models/AccessKeySecretKey.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccessKeySecretKeyToJSON = exports.AccessKeySecretKeyFromJSONTyped = exports.AccessKeySecretKeyFromJSON = void 0; +const runtime_1 = require("../runtime"); +function AccessKeySecretKeyFromJSON(json) { + return AccessKeySecretKeyFromJSONTyped(json, false); +} +exports.AccessKeySecretKeyFromJSON = AccessKeySecretKeyFromJSON; +function AccessKeySecretKeyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': !(0, runtime_1.exists)(json, 'AccessKeyId') ? undefined : json['AccessKeyId'], + 'creationDate': !(0, runtime_1.exists)(json, 'CreationDate') ? undefined : json['CreationDate'], + 'expirationDate': !(0, runtime_1.exists)(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'lastModificationDate': !(0, runtime_1.exists)(json, 'LastModificationDate') ? undefined : json['LastModificationDate'], + 'secretKey': !(0, runtime_1.exists)(json, 'SecretKey') ? undefined : json['SecretKey'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + }; +} +exports.AccessKeySecretKeyFromJSONTyped = AccessKeySecretKeyFromJSONTyped; +function AccessKeySecretKeyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'CreationDate': value.creationDate, + 'ExpirationDate': value.expirationDate, + 'LastModificationDate': value.lastModificationDate, + 'SecretKey': value.secretKey, + 'State': value.state, + }; +} +exports.AccessKeySecretKeyToJSON = AccessKeySecretKeyToJSON; diff --git a/dist/cjs/models/AccessLog.d.ts b/dist/cjs/models/AccessLog.d.ts new file mode 100644 index 00000000..ce4b3c7b --- /dev/null +++ b/dist/cjs/models/AccessLog.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about access logs. + * @export + * @interface AccessLog + */ +export interface AccessLog { + /** + * If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the `OsuBucketName` parameter is required. + * @type {boolean} + * @memberof AccessLog + */ + isEnabled?: boolean; + /** + * The name of the OOS bucket for the access logs. + * @type {string} + * @memberof AccessLog + */ + osuBucketName?: string; + /** + * The path to the folder of the access logs in your OOS bucket (by default, the `root` level of your bucket). + * @type {string} + * @memberof AccessLog + */ + osuBucketPrefix?: string; + /** + * The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5 or 60 (by default, 60). + * @type {number} + * @memberof AccessLog + */ + publicationInterval?: number; +} +export declare function AccessLogFromJSON(json: any): AccessLog; +export declare function AccessLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessLog; +export declare function AccessLogToJSON(value?: AccessLog | null): any; diff --git a/dist/cjs/models/AccessLog.js b/dist/cjs/models/AccessLog.js new file mode 100644 index 00000000..8c69bb7b --- /dev/null +++ b/dist/cjs/models/AccessLog.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccessLogToJSON = exports.AccessLogFromJSONTyped = exports.AccessLogFromJSON = void 0; +const runtime_1 = require("../runtime"); +function AccessLogFromJSON(json) { + return AccessLogFromJSONTyped(json, false); +} +exports.AccessLogFromJSON = AccessLogFromJSON; +function AccessLogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isEnabled': !(0, runtime_1.exists)(json, 'IsEnabled') ? undefined : json['IsEnabled'], + 'osuBucketName': !(0, runtime_1.exists)(json, 'OsuBucketName') ? undefined : json['OsuBucketName'], + 'osuBucketPrefix': !(0, runtime_1.exists)(json, 'OsuBucketPrefix') ? undefined : json['OsuBucketPrefix'], + 'publicationInterval': !(0, runtime_1.exists)(json, 'PublicationInterval') ? undefined : json['PublicationInterval'], + }; +} +exports.AccessLogFromJSONTyped = AccessLogFromJSONTyped; +function AccessLogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsEnabled': value.isEnabled, + 'OsuBucketName': value.osuBucketName, + 'OsuBucketPrefix': value.osuBucketPrefix, + 'PublicationInterval': value.publicationInterval, + }; +} +exports.AccessLogToJSON = AccessLogToJSON; diff --git a/dist/cjs/models/Account.d.ts b/dist/cjs/models/Account.d.ts new file mode 100644 index 00000000..2cd8ed31 --- /dev/null +++ b/dist/cjs/models/Account.d.ts @@ -0,0 +1,111 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the account. + * @export + * @interface Account + */ +export interface Account { + /** + * The ID of the account. + * @type {string} + * @memberof Account + */ + accountId?: string; + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. + * @type {Array} + * @memberof Account + */ + additionalEmails?: Array; + /** + * The city of the account owner. + * @type {string} + * @memberof Account + */ + city?: string; + /** + * The name of the company for the account. + * @type {string} + * @memberof Account + */ + companyName?: string; + /** + * The country of the account owner. + * @type {string} + * @memberof Account + */ + country?: string; + /** + * The ID of the customer. + * @type {string} + * @memberof Account + */ + customerId?: string; + /** + * The main email address for the account. This address is used for your credentials and for notifications. + * @type {string} + * @memberof Account + */ + email?: string; + /** + * The first name of the account owner. + * @type {string} + * @memberof Account + */ + firstName?: string; + /** + * The job title of the account owner. + * @type {string} + * @memberof Account + */ + jobTitle?: string; + /** + * The last name of the account owner. + * @type {string} + * @memberof Account + */ + lastName?: string; + /** + * The mobile phone number of the account owner. + * @type {string} + * @memberof Account + */ + mobileNumber?: string; + /** + * The landline phone number of the account owner. + * @type {string} + * @memberof Account + */ + phoneNumber?: string; + /** + * The state/province of the account. + * @type {string} + * @memberof Account + */ + stateProvince?: string; + /** + * The value added tax (VAT) number for the account. + * @type {string} + * @memberof Account + */ + vatNumber?: string; + /** + * The ZIP code of the city. + * @type {string} + * @memberof Account + */ + zipCode?: string; +} +export declare function AccountFromJSON(json: any): Account; +export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account; +export declare function AccountToJSON(value?: Account | null): any; diff --git a/dist/cjs/models/Account.js b/dist/cjs/models/Account.js new file mode 100644 index 00000000..4e11d27a --- /dev/null +++ b/dist/cjs/models/Account.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccountToJSON = exports.AccountFromJSONTyped = exports.AccountFromJSON = void 0; +const runtime_1 = require("../runtime"); +function AccountFromJSON(json) { + return AccountFromJSONTyped(json, false); +} +exports.AccountFromJSON = AccountFromJSON; +function AccountFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'additionalEmails': !(0, runtime_1.exists)(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': !(0, runtime_1.exists)(json, 'City') ? undefined : json['City'], + 'companyName': !(0, runtime_1.exists)(json, 'CompanyName') ? undefined : json['CompanyName'], + 'country': !(0, runtime_1.exists)(json, 'Country') ? undefined : json['Country'], + 'customerId': !(0, runtime_1.exists)(json, 'CustomerId') ? undefined : json['CustomerId'], + 'email': !(0, runtime_1.exists)(json, 'Email') ? undefined : json['Email'], + 'firstName': !(0, runtime_1.exists)(json, 'FirstName') ? undefined : json['FirstName'], + 'jobTitle': !(0, runtime_1.exists)(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': !(0, runtime_1.exists)(json, 'LastName') ? undefined : json['LastName'], + 'mobileNumber': !(0, runtime_1.exists)(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !(0, runtime_1.exists)(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !(0, runtime_1.exists)(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !(0, runtime_1.exists)(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': !(0, runtime_1.exists)(json, 'ZipCode') ? undefined : json['ZipCode'], + }; +} +exports.AccountFromJSONTyped = AccountFromJSONTyped; +function AccountToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'CustomerId': value.customerId, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} +exports.AccountToJSON = AccountToJSON; diff --git a/dist/cjs/models/ApiAccessPolicy.d.ts b/dist/cjs/models/ApiAccessPolicy.d.ts new file mode 100644 index 00000000..d6f0c85b --- /dev/null +++ b/dist/cjs/models/ApiAccessPolicy.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the API access policy. + * @export + * @interface ApiAccessPolicy + */ +export interface ApiAccessPolicy { + /** + * The maximum possible lifetime for your access keys, in seconds. If `0`, your access keys can have unlimited lifetimes. + * @type {number} + * @memberof ApiAccessPolicy + */ + maxAccessKeyExpirationSeconds?: number; + /** + * If true, a trusted session is activated, allowing you to bypass Certificate Authorities (CAs) enforcement. For more information, see the `ApiKeyAuth` authentication scheme in the [Authentication](#authentication) section. + * @type {boolean} + * @memberof ApiAccessPolicy + */ + requireTrustedEnv?: boolean; +} +export declare function ApiAccessPolicyFromJSON(json: any): ApiAccessPolicy; +export declare function ApiAccessPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAccessPolicy; +export declare function ApiAccessPolicyToJSON(value?: ApiAccessPolicy | null): any; diff --git a/dist/cjs/models/ApiAccessPolicy.js b/dist/cjs/models/ApiAccessPolicy.js new file mode 100644 index 00000000..10c2c529 --- /dev/null +++ b/dist/cjs/models/ApiAccessPolicy.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiAccessPolicyToJSON = exports.ApiAccessPolicyFromJSONTyped = exports.ApiAccessPolicyFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ApiAccessPolicyFromJSON(json) { + return ApiAccessPolicyFromJSONTyped(json, false); +} +exports.ApiAccessPolicyFromJSON = ApiAccessPolicyFromJSON; +function ApiAccessPolicyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'maxAccessKeyExpirationSeconds': !(0, runtime_1.exists)(json, 'MaxAccessKeyExpirationSeconds') ? undefined : json['MaxAccessKeyExpirationSeconds'], + 'requireTrustedEnv': !(0, runtime_1.exists)(json, 'RequireTrustedEnv') ? undefined : json['RequireTrustedEnv'], + }; +} +exports.ApiAccessPolicyFromJSONTyped = ApiAccessPolicyFromJSONTyped; +function ApiAccessPolicyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'MaxAccessKeyExpirationSeconds': value.maxAccessKeyExpirationSeconds, + 'RequireTrustedEnv': value.requireTrustedEnv, + }; +} +exports.ApiAccessPolicyToJSON = ApiAccessPolicyToJSON; diff --git a/dist/cjs/models/ApiAccessRule.d.ts b/dist/cjs/models/ApiAccessRule.d.ts new file mode 100644 index 00000000..e6eac42f --- /dev/null +++ b/dist/cjs/models/ApiAccessRule.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the API access rule. + * @export + * @interface ApiAccessRule + */ +export interface ApiAccessRule { + /** + * The ID of the API access rule. + * @type {string} + * @memberof ApiAccessRule + */ + apiAccessRuleId?: string; + /** + * One or more IDs of Client Certificate Authorities (CAs) used for the API access rule. + * @type {Array} + * @memberof ApiAccessRule + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof ApiAccessRule + */ + cns?: Array; + /** + * The description of the API access rule. + * @type {string} + * @memberof ApiAccessRule + */ + description?: string; + /** + * One or more IP ranges used for the API access rule, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof ApiAccessRule + */ + ipRanges?: Array; +} +export declare function ApiAccessRuleFromJSON(json: any): ApiAccessRule; +export declare function ApiAccessRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAccessRule; +export declare function ApiAccessRuleToJSON(value?: ApiAccessRule | null): any; diff --git a/dist/cjs/models/ApiAccessRule.js b/dist/cjs/models/ApiAccessRule.js new file mode 100644 index 00000000..fdab853d --- /dev/null +++ b/dist/cjs/models/ApiAccessRule.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiAccessRuleToJSON = exports.ApiAccessRuleFromJSONTyped = exports.ApiAccessRuleFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ApiAccessRuleFromJSON(json) { + return ApiAccessRuleFromJSONTyped(json, false); +} +exports.ApiAccessRuleFromJSON = ApiAccessRuleFromJSON; +function ApiAccessRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleId': !(0, runtime_1.exists)(json, 'ApiAccessRuleId') ? undefined : json['ApiAccessRuleId'], + 'caIds': !(0, runtime_1.exists)(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !(0, runtime_1.exists)(json, 'Cns') ? undefined : json['Cns'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +exports.ApiAccessRuleFromJSONTyped = ApiAccessRuleFromJSONTyped; +function ApiAccessRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleId': value.apiAccessRuleId, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'IpRanges': value.ipRanges, + }; +} +exports.ApiAccessRuleToJSON = ApiAccessRuleToJSON; diff --git a/dist/cjs/models/ApplicationStickyCookiePolicy.d.ts b/dist/cjs/models/ApplicationStickyCookiePolicy.d.ts new file mode 100644 index 00000000..148e7c5b --- /dev/null +++ b/dist/cjs/models/ApplicationStickyCookiePolicy.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the stickiness policy. + * @export + * @interface ApplicationStickyCookiePolicy + */ +export interface ApplicationStickyCookiePolicy { + /** + * The name of the application cookie used for stickiness. + * @type {string} + * @memberof ApplicationStickyCookiePolicy + */ + cookieName?: string; + /** + * The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer. + * @type {string} + * @memberof ApplicationStickyCookiePolicy + */ + policyName?: string; +} +export declare function ApplicationStickyCookiePolicyFromJSON(json: any): ApplicationStickyCookiePolicy; +export declare function ApplicationStickyCookiePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationStickyCookiePolicy; +export declare function ApplicationStickyCookiePolicyToJSON(value?: ApplicationStickyCookiePolicy | null): any; diff --git a/dist/cjs/models/ApplicationStickyCookiePolicy.js b/dist/cjs/models/ApplicationStickyCookiePolicy.js new file mode 100644 index 00000000..8473cd4b --- /dev/null +++ b/dist/cjs/models/ApplicationStickyCookiePolicy.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApplicationStickyCookiePolicyToJSON = exports.ApplicationStickyCookiePolicyFromJSONTyped = exports.ApplicationStickyCookiePolicyFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ApplicationStickyCookiePolicyFromJSON(json) { + return ApplicationStickyCookiePolicyFromJSONTyped(json, false); +} +exports.ApplicationStickyCookiePolicyFromJSON = ApplicationStickyCookiePolicyFromJSON; +function ApplicationStickyCookiePolicyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cookieName': !(0, runtime_1.exists)(json, 'CookieName') ? undefined : json['CookieName'], + 'policyName': !(0, runtime_1.exists)(json, 'PolicyName') ? undefined : json['PolicyName'], + }; +} +exports.ApplicationStickyCookiePolicyFromJSONTyped = ApplicationStickyCookiePolicyFromJSONTyped; +function ApplicationStickyCookiePolicyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CookieName': value.cookieName, + 'PolicyName': value.policyName, + }; +} +exports.ApplicationStickyCookiePolicyToJSON = ApplicationStickyCookiePolicyToJSON; diff --git a/dist/cjs/models/BackendVmHealth.d.ts b/dist/cjs/models/BackendVmHealth.d.ts new file mode 100644 index 00000000..7943c4a4 --- /dev/null +++ b/dist/cjs/models/BackendVmHealth.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the health of a back-end VM. + * @export + * @interface BackendVmHealth + */ +export interface BackendVmHealth { + /** + * The description of the state of the back-end VM. + * @type {string} + * @memberof BackendVmHealth + */ + description?: string; + /** + * The state of the back-end VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof BackendVmHealth + */ + state?: string; + /** + * Information about the cause of `OutOfService` VMs.
+ * Specifically, whether the cause is Elastic Load Balancing or the VM (`ELB` \| `Instance` \| `N/A`). + * @type {string} + * @memberof BackendVmHealth + */ + stateReason?: string; + /** + * The ID of the back-end VM. + * @type {string} + * @memberof BackendVmHealth + */ + vmId?: string; +} +export declare function BackendVmHealthFromJSON(json: any): BackendVmHealth; +export declare function BackendVmHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackendVmHealth; +export declare function BackendVmHealthToJSON(value?: BackendVmHealth | null): any; diff --git a/dist/cjs/models/BackendVmHealth.js b/dist/cjs/models/BackendVmHealth.js new file mode 100644 index 00000000..47fe73f2 --- /dev/null +++ b/dist/cjs/models/BackendVmHealth.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BackendVmHealthToJSON = exports.BackendVmHealthFromJSONTyped = exports.BackendVmHealthFromJSON = void 0; +const runtime_1 = require("../runtime"); +function BackendVmHealthFromJSON(json) { + return BackendVmHealthFromJSONTyped(json, false); +} +exports.BackendVmHealthFromJSON = BackendVmHealthFromJSON; +function BackendVmHealthFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'stateReason': !(0, runtime_1.exists)(json, 'StateReason') ? undefined : json['StateReason'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.BackendVmHealthFromJSONTyped = BackendVmHealthFromJSONTyped; +function BackendVmHealthToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'State': value.state, + 'StateReason': value.stateReason, + 'VmId': value.vmId, + }; +} +exports.BackendVmHealthToJSON = BackendVmHealthToJSON; diff --git a/dist/cjs/models/BlockDeviceMappingCreated.d.ts b/dist/cjs/models/BlockDeviceMappingCreated.d.ts new file mode 100644 index 00000000..ba8dfd50 --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingCreated.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuCreated } from './BsuCreated'; +/** + * Information about the created block device mapping. + * @export + * @interface BlockDeviceMappingCreated + */ +export interface BlockDeviceMappingCreated { + /** + * + * @type {BsuCreated} + * @memberof BlockDeviceMappingCreated + */ + bsu?: BsuCreated; + /** + * The name of the device. + * @type {string} + * @memberof BlockDeviceMappingCreated + */ + deviceName?: string; +} +export declare function BlockDeviceMappingCreatedFromJSON(json: any): BlockDeviceMappingCreated; +export declare function BlockDeviceMappingCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingCreated; +export declare function BlockDeviceMappingCreatedToJSON(value?: BlockDeviceMappingCreated | null): any; diff --git a/dist/cjs/models/BlockDeviceMappingCreated.js b/dist/cjs/models/BlockDeviceMappingCreated.js new file mode 100644 index 00000000..a4775bae --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingCreated.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockDeviceMappingCreatedToJSON = exports.BlockDeviceMappingCreatedFromJSONTyped = exports.BlockDeviceMappingCreatedFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BsuCreated_1 = require("./BsuCreated"); +function BlockDeviceMappingCreatedFromJSON(json) { + return BlockDeviceMappingCreatedFromJSONTyped(json, false); +} +exports.BlockDeviceMappingCreatedFromJSON = BlockDeviceMappingCreatedFromJSON; +function BlockDeviceMappingCreatedFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !(0, runtime_1.exists)(json, 'Bsu') ? undefined : (0, BsuCreated_1.BsuCreatedFromJSON)(json['Bsu']), + 'deviceName': !(0, runtime_1.exists)(json, 'DeviceName') ? undefined : json['DeviceName'], + }; +} +exports.BlockDeviceMappingCreatedFromJSONTyped = BlockDeviceMappingCreatedFromJSONTyped; +function BlockDeviceMappingCreatedToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': (0, BsuCreated_1.BsuCreatedToJSON)(value.bsu), + 'DeviceName': value.deviceName, + }; +} +exports.BlockDeviceMappingCreatedToJSON = BlockDeviceMappingCreatedToJSON; diff --git a/dist/cjs/models/BlockDeviceMappingImage.d.ts b/dist/cjs/models/BlockDeviceMappingImage.d.ts new file mode 100644 index 00000000..24f56016 --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingImage.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuToCreate } from './BsuToCreate'; +/** + * One or more parameters used to automatically set up volumes when the VM is created. + * @export + * @interface BlockDeviceMappingImage + */ +export interface BlockDeviceMappingImage { + /** + * + * @type {BsuToCreate} + * @memberof BlockDeviceMappingImage + */ + bsu?: BsuToCreate; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingImage + */ + deviceName?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingImage + */ + virtualDeviceName?: string; +} +export declare function BlockDeviceMappingImageFromJSON(json: any): BlockDeviceMappingImage; +export declare function BlockDeviceMappingImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingImage; +export declare function BlockDeviceMappingImageToJSON(value?: BlockDeviceMappingImage | null): any; diff --git a/dist/cjs/models/BlockDeviceMappingImage.js b/dist/cjs/models/BlockDeviceMappingImage.js new file mode 100644 index 00000000..b55d0340 --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingImage.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockDeviceMappingImageToJSON = exports.BlockDeviceMappingImageFromJSONTyped = exports.BlockDeviceMappingImageFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BsuToCreate_1 = require("./BsuToCreate"); +function BlockDeviceMappingImageFromJSON(json) { + return BlockDeviceMappingImageFromJSONTyped(json, false); +} +exports.BlockDeviceMappingImageFromJSON = BlockDeviceMappingImageFromJSON; +function BlockDeviceMappingImageFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !(0, runtime_1.exists)(json, 'Bsu') ? undefined : (0, BsuToCreate_1.BsuToCreateFromJSON)(json['Bsu']), + 'deviceName': !(0, runtime_1.exists)(json, 'DeviceName') ? undefined : json['DeviceName'], + 'virtualDeviceName': !(0, runtime_1.exists)(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} +exports.BlockDeviceMappingImageFromJSONTyped = BlockDeviceMappingImageFromJSONTyped; +function BlockDeviceMappingImageToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': (0, BsuToCreate_1.BsuToCreateToJSON)(value.bsu), + 'DeviceName': value.deviceName, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} +exports.BlockDeviceMappingImageToJSON = BlockDeviceMappingImageToJSON; diff --git a/dist/cjs/models/BlockDeviceMappingVmCreation.d.ts b/dist/cjs/models/BlockDeviceMappingVmCreation.d.ts new file mode 100644 index 00000000..9c3f63e3 --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingVmCreation.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuToCreate } from './BsuToCreate'; +/** + * Information about the block device mapping. + * @export + * @interface BlockDeviceMappingVmCreation + */ +export interface BlockDeviceMappingVmCreation { + /** + * + * @type {BsuToCreate} + * @memberof BlockDeviceMappingVmCreation + */ + bsu?: BsuToCreate; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + deviceName?: string; + /** + * Removes the device which is included in the block device mapping of the OMI. + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + noDevice?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + virtualDeviceName?: string; +} +export declare function BlockDeviceMappingVmCreationFromJSON(json: any): BlockDeviceMappingVmCreation; +export declare function BlockDeviceMappingVmCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingVmCreation; +export declare function BlockDeviceMappingVmCreationToJSON(value?: BlockDeviceMappingVmCreation | null): any; diff --git a/dist/cjs/models/BlockDeviceMappingVmCreation.js b/dist/cjs/models/BlockDeviceMappingVmCreation.js new file mode 100644 index 00000000..1e84fa66 --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingVmCreation.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockDeviceMappingVmCreationToJSON = exports.BlockDeviceMappingVmCreationFromJSONTyped = exports.BlockDeviceMappingVmCreationFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BsuToCreate_1 = require("./BsuToCreate"); +function BlockDeviceMappingVmCreationFromJSON(json) { + return BlockDeviceMappingVmCreationFromJSONTyped(json, false); +} +exports.BlockDeviceMappingVmCreationFromJSON = BlockDeviceMappingVmCreationFromJSON; +function BlockDeviceMappingVmCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !(0, runtime_1.exists)(json, 'Bsu') ? undefined : (0, BsuToCreate_1.BsuToCreateFromJSON)(json['Bsu']), + 'deviceName': !(0, runtime_1.exists)(json, 'DeviceName') ? undefined : json['DeviceName'], + 'noDevice': !(0, runtime_1.exists)(json, 'NoDevice') ? undefined : json['NoDevice'], + 'virtualDeviceName': !(0, runtime_1.exists)(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} +exports.BlockDeviceMappingVmCreationFromJSONTyped = BlockDeviceMappingVmCreationFromJSONTyped; +function BlockDeviceMappingVmCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': (0, BsuToCreate_1.BsuToCreateToJSON)(value.bsu), + 'DeviceName': value.deviceName, + 'NoDevice': value.noDevice, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} +exports.BlockDeviceMappingVmCreationToJSON = BlockDeviceMappingVmCreationToJSON; diff --git a/dist/cjs/models/BlockDeviceMappingVmUpdate.d.ts b/dist/cjs/models/BlockDeviceMappingVmUpdate.d.ts new file mode 100644 index 00000000..83506783 --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingVmUpdate.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuToUpdateVm } from './BsuToUpdateVm'; +/** + * Information about the block device mapping. + * @export + * @interface BlockDeviceMappingVmUpdate + */ +export interface BlockDeviceMappingVmUpdate { + /** + * + * @type {BsuToUpdateVm} + * @memberof BlockDeviceMappingVmUpdate + */ + bsu?: BsuToUpdateVm; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + deviceName?: string; + /** + * Removes the device which is included in the block device mapping of the OMI. + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + noDevice?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + virtualDeviceName?: string; +} +export declare function BlockDeviceMappingVmUpdateFromJSON(json: any): BlockDeviceMappingVmUpdate; +export declare function BlockDeviceMappingVmUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingVmUpdate; +export declare function BlockDeviceMappingVmUpdateToJSON(value?: BlockDeviceMappingVmUpdate | null): any; diff --git a/dist/cjs/models/BlockDeviceMappingVmUpdate.js b/dist/cjs/models/BlockDeviceMappingVmUpdate.js new file mode 100644 index 00000000..3d1aa16d --- /dev/null +++ b/dist/cjs/models/BlockDeviceMappingVmUpdate.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockDeviceMappingVmUpdateToJSON = exports.BlockDeviceMappingVmUpdateFromJSONTyped = exports.BlockDeviceMappingVmUpdateFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BsuToUpdateVm_1 = require("./BsuToUpdateVm"); +function BlockDeviceMappingVmUpdateFromJSON(json) { + return BlockDeviceMappingVmUpdateFromJSONTyped(json, false); +} +exports.BlockDeviceMappingVmUpdateFromJSON = BlockDeviceMappingVmUpdateFromJSON; +function BlockDeviceMappingVmUpdateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !(0, runtime_1.exists)(json, 'Bsu') ? undefined : (0, BsuToUpdateVm_1.BsuToUpdateVmFromJSON)(json['Bsu']), + 'deviceName': !(0, runtime_1.exists)(json, 'DeviceName') ? undefined : json['DeviceName'], + 'noDevice': !(0, runtime_1.exists)(json, 'NoDevice') ? undefined : json['NoDevice'], + 'virtualDeviceName': !(0, runtime_1.exists)(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} +exports.BlockDeviceMappingVmUpdateFromJSONTyped = BlockDeviceMappingVmUpdateFromJSONTyped; +function BlockDeviceMappingVmUpdateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': (0, BsuToUpdateVm_1.BsuToUpdateVmToJSON)(value.bsu), + 'DeviceName': value.deviceName, + 'NoDevice': value.noDevice, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} +exports.BlockDeviceMappingVmUpdateToJSON = BlockDeviceMappingVmUpdateToJSON; diff --git a/dist/cjs/models/BsuCreated.d.ts b/dist/cjs/models/BsuCreated.d.ts new file mode 100644 index 00000000..5ea38146 --- /dev/null +++ b/dist/cjs/models/BsuCreated.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the created BSU volume. + * @export + * @interface BsuCreated + */ +export interface BsuCreated { + /** + * If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuCreated + */ + deleteOnVmDeletion?: boolean; + /** + * The time and date of attachment of the volume to the VM. + * @type {Date} + * @memberof BsuCreated + */ + linkDate?: Date; + /** + * The state of the volume. + * @type {string} + * @memberof BsuCreated + */ + state?: string; + /** + * The ID of the volume. + * @type {string} + * @memberof BsuCreated + */ + volumeId?: string; +} +export declare function BsuCreatedFromJSON(json: any): BsuCreated; +export declare function BsuCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuCreated; +export declare function BsuCreatedToJSON(value?: BsuCreated | null): any; diff --git a/dist/cjs/models/BsuCreated.js b/dist/cjs/models/BsuCreated.js new file mode 100644 index 00000000..80c3f401 --- /dev/null +++ b/dist/cjs/models/BsuCreated.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BsuCreatedToJSON = exports.BsuCreatedFromJSONTyped = exports.BsuCreatedFromJSON = void 0; +const runtime_1 = require("../runtime"); +function BsuCreatedFromJSON(json) { + return BsuCreatedFromJSONTyped(json, false); +} +exports.BsuCreatedFromJSON = BsuCreatedFromJSON; +function BsuCreatedFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'linkDate': !(0, runtime_1.exists)(json, 'LinkDate') ? undefined : (new Date(json['LinkDate'])), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'volumeId': !(0, runtime_1.exists)(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +exports.BsuCreatedFromJSONTyped = BsuCreatedFromJSONTyped; +function BsuCreatedToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'LinkDate': value.linkDate === undefined ? undefined : (value.linkDate.toISOString().substr(0, 10)), + 'State': value.state, + 'VolumeId': value.volumeId, + }; +} +exports.BsuCreatedToJSON = BsuCreatedToJSON; diff --git a/dist/cjs/models/BsuToCreate.d.ts b/dist/cjs/models/BsuToCreate.d.ts new file mode 100644 index 00000000..ecea0485 --- /dev/null +++ b/dist/cjs/models/BsuToCreate.d.ts @@ -0,0 +1,54 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the BSU volume to create. + * @export + * @interface BsuToCreate + */ +export interface BsuToCreate { + /** + * By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuToCreate + */ + deleteOnVmDeletion?: boolean; + /** + * The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. + * @type {number} + * @memberof BsuToCreate + */ + iops?: number; + /** + * The ID of the snapshot used to create the volume. + * @type {string} + * @memberof BsuToCreate + */ + snapshotId?: string; + /** + * The size of the volume, in gibibytes (GiB).
+ * If you specify a snapshot ID, the volume size must be at least equal to the snapshot size.
+ * If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one. + * @type {number} + * @memberof BsuToCreate + */ + volumeSize?: number; + /** + * The type of the volume (`standard` \| `io1` \| `gp2`). If not specified in the request, a `standard` volume is created.
+ * For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). + * @type {string} + * @memberof BsuToCreate + */ + volumeType?: string; +} +export declare function BsuToCreateFromJSON(json: any): BsuToCreate; +export declare function BsuToCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuToCreate; +export declare function BsuToCreateToJSON(value?: BsuToCreate | null): any; diff --git a/dist/cjs/models/BsuToCreate.js b/dist/cjs/models/BsuToCreate.js new file mode 100644 index 00000000..40995160 --- /dev/null +++ b/dist/cjs/models/BsuToCreate.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BsuToCreateToJSON = exports.BsuToCreateFromJSONTyped = exports.BsuToCreateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function BsuToCreateFromJSON(json) { + return BsuToCreateFromJSONTyped(json, false); +} +exports.BsuToCreateFromJSON = BsuToCreateFromJSON; +function BsuToCreateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'iops': !(0, runtime_1.exists)(json, 'Iops') ? undefined : json['Iops'], + 'snapshotId': !(0, runtime_1.exists)(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'volumeSize': !(0, runtime_1.exists)(json, 'VolumeSize') ? undefined : json['VolumeSize'], + 'volumeType': !(0, runtime_1.exists)(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +exports.BsuToCreateFromJSONTyped = BsuToCreateFromJSONTyped; +function BsuToCreateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'Iops': value.iops, + 'SnapshotId': value.snapshotId, + 'VolumeSize': value.volumeSize, + 'VolumeType': value.volumeType, + }; +} +exports.BsuToCreateToJSON = BsuToCreateToJSON; diff --git a/dist/cjs/models/BsuToUpdateVm.d.ts b/dist/cjs/models/BsuToUpdateVm.d.ts new file mode 100644 index 00000000..f64f8958 --- /dev/null +++ b/dist/cjs/models/BsuToUpdateVm.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the BSU volume. + * @export + * @interface BsuToUpdateVm + */ +export interface BsuToUpdateVm { + /** + * If set to true, the volume is deleted when terminating the VM. If set to false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuToUpdateVm + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the volume. + * @type {string} + * @memberof BsuToUpdateVm + */ + volumeId?: string; +} +export declare function BsuToUpdateVmFromJSON(json: any): BsuToUpdateVm; +export declare function BsuToUpdateVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuToUpdateVm; +export declare function BsuToUpdateVmToJSON(value?: BsuToUpdateVm | null): any; diff --git a/dist/cjs/models/BsuToUpdateVm.js b/dist/cjs/models/BsuToUpdateVm.js new file mode 100644 index 00000000..75c8a46f --- /dev/null +++ b/dist/cjs/models/BsuToUpdateVm.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BsuToUpdateVmToJSON = exports.BsuToUpdateVmFromJSONTyped = exports.BsuToUpdateVmFromJSON = void 0; +const runtime_1 = require("../runtime"); +function BsuToUpdateVmFromJSON(json) { + return BsuToUpdateVmFromJSONTyped(json, false); +} +exports.BsuToUpdateVmFromJSON = BsuToUpdateVmFromJSON; +function BsuToUpdateVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'volumeId': !(0, runtime_1.exists)(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +exports.BsuToUpdateVmFromJSONTyped = BsuToUpdateVmFromJSONTyped; +function BsuToUpdateVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'VolumeId': value.volumeId, + }; +} +exports.BsuToUpdateVmToJSON = BsuToUpdateVmToJSON; diff --git a/dist/cjs/models/Ca.d.ts b/dist/cjs/models/Ca.d.ts new file mode 100644 index 00000000..42b09a25 --- /dev/null +++ b/dist/cjs/models/Ca.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the Client Certificate Authority (CA). + * @export + * @interface Ca + */ +export interface Ca { + /** + * The fingerprint of the CA. + * @type {string} + * @memberof Ca + */ + caFingerprint?: string; + /** + * The ID of the CA. + * @type {string} + * @memberof Ca + */ + caId?: string; + /** + * The description of the CA. + * @type {string} + * @memberof Ca + */ + description?: string; +} +export declare function CaFromJSON(json: any): Ca; +export declare function CaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ca; +export declare function CaToJSON(value?: Ca | null): any; diff --git a/dist/cjs/models/Ca.js b/dist/cjs/models/Ca.js new file mode 100644 index 00000000..d42ecbc6 --- /dev/null +++ b/dist/cjs/models/Ca.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CaToJSON = exports.CaFromJSONTyped = exports.CaFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CaFromJSON(json) { + return CaFromJSONTyped(json, false); +} +exports.CaFromJSON = CaFromJSON; +function CaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caFingerprint': !(0, runtime_1.exists)(json, 'CaFingerprint') ? undefined : json['CaFingerprint'], + 'caId': !(0, runtime_1.exists)(json, 'CaId') ? undefined : json['CaId'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + }; +} +exports.CaFromJSONTyped = CaFromJSONTyped; +function CaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaFingerprint': value.caFingerprint, + 'CaId': value.caId, + 'Description': value.description, + }; +} +exports.CaToJSON = CaToJSON; diff --git a/dist/cjs/models/Catalog.d.ts b/dist/cjs/models/Catalog.d.ts new file mode 100644 index 00000000..d4e1d934 --- /dev/null +++ b/dist/cjs/models/Catalog.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CatalogEntry } from './CatalogEntry'; +/** + * Information about our catalog of prices. + * @export + * @interface Catalog + */ +export interface Catalog { + /** + * One or more catalog entries. + * @type {Array} + * @memberof Catalog + */ + entries?: Array; +} +export declare function CatalogFromJSON(json: any): Catalog; +export declare function CatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Catalog; +export declare function CatalogToJSON(value?: Catalog | null): any; diff --git a/dist/cjs/models/Catalog.js b/dist/cjs/models/Catalog.js new file mode 100644 index 00000000..0e6ac2e9 --- /dev/null +++ b/dist/cjs/models/Catalog.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatalogToJSON = exports.CatalogFromJSONTyped = exports.CatalogFromJSON = void 0; +const runtime_1 = require("../runtime"); +const CatalogEntry_1 = require("./CatalogEntry"); +function CatalogFromJSON(json) { + return CatalogFromJSONTyped(json, false); +} +exports.CatalogFromJSON = CatalogFromJSON; +function CatalogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'entries': !(0, runtime_1.exists)(json, 'Entries') ? undefined : (json['Entries'].map(CatalogEntry_1.CatalogEntryFromJSON)), + }; +} +exports.CatalogFromJSONTyped = CatalogFromJSONTyped; +function CatalogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Entries': value.entries === undefined ? undefined : (value.entries.map(CatalogEntry_1.CatalogEntryToJSON)), + }; +} +exports.CatalogToJSON = CatalogToJSON; diff --git a/dist/cjs/models/CatalogEntry.d.ts b/dist/cjs/models/CatalogEntry.d.ts new file mode 100644 index 00000000..ed4dfba4 --- /dev/null +++ b/dist/cjs/models/CatalogEntry.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the catalog entry. + * @export + * @interface CatalogEntry + */ +export interface CatalogEntry { + /** + * The category of the catalog entry (for example, `network`). + * @type {string} + * @memberof CatalogEntry + */ + category?: string; + /** + * When returned and equal to `PER_MONTH`, the price of the catalog entry is calculated on a monthly basis. + * @type {string} + * @memberof CatalogEntry + */ + flags?: string; + /** + * The API call associated with the catalog entry (for example, `CreateVms` or `RunInstances`). + * @type {string} + * @memberof CatalogEntry + */ + operation?: string; + /** + * The service associated with the catalog entry (`TinaOS-FCU`, `TinaOS-LBU`, `TinaOS-DirectLink`, or `TinaOS-OOS`). + * @type {string} + * @memberof CatalogEntry + */ + service?: string; + /** + * The Subregion associated with the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + subregionName?: string; + /** + * The description of the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + title?: string; + /** + * The type of resource associated with the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + type?: string; + /** + * The unit price of the catalog entry, in the currency of the catalog of the Region where the API method was used. + * @type {number} + * @memberof CatalogEntry + */ + unitPrice?: number; +} +export declare function CatalogEntryFromJSON(json: any): CatalogEntry; +export declare function CatalogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CatalogEntry; +export declare function CatalogEntryToJSON(value?: CatalogEntry | null): any; diff --git a/dist/cjs/models/CatalogEntry.js b/dist/cjs/models/CatalogEntry.js new file mode 100644 index 00000000..f1e24d21 --- /dev/null +++ b/dist/cjs/models/CatalogEntry.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatalogEntryToJSON = exports.CatalogEntryFromJSONTyped = exports.CatalogEntryFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CatalogEntryFromJSON(json) { + return CatalogEntryFromJSONTyped(json, false); +} +exports.CatalogEntryFromJSON = CatalogEntryFromJSON; +function CatalogEntryFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'category': !(0, runtime_1.exists)(json, 'Category') ? undefined : json['Category'], + 'flags': !(0, runtime_1.exists)(json, 'Flags') ? undefined : json['Flags'], + 'operation': !(0, runtime_1.exists)(json, 'Operation') ? undefined : json['Operation'], + 'service': !(0, runtime_1.exists)(json, 'Service') ? undefined : json['Service'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'title': !(0, runtime_1.exists)(json, 'Title') ? undefined : json['Title'], + 'type': !(0, runtime_1.exists)(json, 'Type') ? undefined : json['Type'], + 'unitPrice': !(0, runtime_1.exists)(json, 'UnitPrice') ? undefined : json['UnitPrice'], + }; +} +exports.CatalogEntryFromJSONTyped = CatalogEntryFromJSONTyped; +function CatalogEntryToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Category': value.category, + 'Flags': value.flags, + 'Operation': value.operation, + 'Service': value.service, + 'SubregionName': value.subregionName, + 'Title': value.title, + 'Type': value.type, + 'UnitPrice': value.unitPrice, + }; +} +exports.CatalogEntryToJSON = CatalogEntryToJSON; diff --git a/dist/cjs/models/CheckAuthenticationRequest.d.ts b/dist/cjs/models/CheckAuthenticationRequest.d.ts new file mode 100644 index 00000000..7ae0182a --- /dev/null +++ b/dist/cjs/models/CheckAuthenticationRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CheckAuthenticationRequest + */ +export interface CheckAuthenticationRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CheckAuthenticationRequest + */ + dryRun?: boolean; + /** + * The email address of the account. + * @type {string} + * @memberof CheckAuthenticationRequest + */ + login: string; + /** + * The password of the account. + * @type {string} + * @memberof CheckAuthenticationRequest + */ + password: string; +} +export declare function CheckAuthenticationRequestFromJSON(json: any): CheckAuthenticationRequest; +export declare function CheckAuthenticationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAuthenticationRequest; +export declare function CheckAuthenticationRequestToJSON(value?: CheckAuthenticationRequest | null): any; diff --git a/dist/cjs/models/CheckAuthenticationRequest.js b/dist/cjs/models/CheckAuthenticationRequest.js new file mode 100644 index 00000000..4909bdf6 --- /dev/null +++ b/dist/cjs/models/CheckAuthenticationRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CheckAuthenticationRequestToJSON = exports.CheckAuthenticationRequestFromJSONTyped = exports.CheckAuthenticationRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CheckAuthenticationRequestFromJSON(json) { + return CheckAuthenticationRequestFromJSONTyped(json, false); +} +exports.CheckAuthenticationRequestFromJSON = CheckAuthenticationRequestFromJSON; +function CheckAuthenticationRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'login': json['Login'], + 'password': json['Password'], + }; +} +exports.CheckAuthenticationRequestFromJSONTyped = CheckAuthenticationRequestFromJSONTyped; +function CheckAuthenticationRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Login': value.login, + 'Password': value.password, + }; +} +exports.CheckAuthenticationRequestToJSON = CheckAuthenticationRequestToJSON; diff --git a/dist/cjs/models/CheckAuthenticationResponse.d.ts b/dist/cjs/models/CheckAuthenticationResponse.d.ts new file mode 100644 index 00000000..1c87e084 --- /dev/null +++ b/dist/cjs/models/CheckAuthenticationResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CheckAuthenticationResponse + */ +export interface CheckAuthenticationResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CheckAuthenticationResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CheckAuthenticationResponseFromJSON(json: any): CheckAuthenticationResponse; +export declare function CheckAuthenticationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAuthenticationResponse; +export declare function CheckAuthenticationResponseToJSON(value?: CheckAuthenticationResponse | null): any; diff --git a/dist/cjs/models/CheckAuthenticationResponse.js b/dist/cjs/models/CheckAuthenticationResponse.js new file mode 100644 index 00000000..899b9e59 --- /dev/null +++ b/dist/cjs/models/CheckAuthenticationResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CheckAuthenticationResponseToJSON = exports.CheckAuthenticationResponseFromJSONTyped = exports.CheckAuthenticationResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CheckAuthenticationResponseFromJSON(json) { + return CheckAuthenticationResponseFromJSONTyped(json, false); +} +exports.CheckAuthenticationResponseFromJSON = CheckAuthenticationResponseFromJSON; +function CheckAuthenticationResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CheckAuthenticationResponseFromJSONTyped = CheckAuthenticationResponseFromJSONTyped; +function CheckAuthenticationResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CheckAuthenticationResponseToJSON = CheckAuthenticationResponseToJSON; diff --git a/dist/cjs/models/ClientGateway.d.ts b/dist/cjs/models/ClientGateway.d.ts new file mode 100644 index 00000000..a61c70ca --- /dev/null +++ b/dist/cjs/models/ClientGateway.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the client gateway. + * @export + * @interface ClientGateway + */ +export interface ClientGateway { + /** + * The Autonomous System Number (ASN) used by the Border Gateway Protocol (BGP) to find the path to your client gateway through the Internet. + * @type {number} + * @memberof ClientGateway + */ + bgpAsn?: number; + /** + * The ID of the client gateway. + * @type {string} + * @memberof ClientGateway + */ + clientGatewayId?: string; + /** + * The type of communication tunnel used by the client gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof ClientGateway + */ + connectionType?: string; + /** + * The public IPv4 address of the client gateway (must be a fixed address into a NATed network). + * @type {string} + * @memberof ClientGateway + */ + publicIp?: string; + /** + * The state of the client gateway (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof ClientGateway + */ + state?: string; + /** + * One or more tags associated with the client gateway. + * @type {Array} + * @memberof ClientGateway + */ + tags?: Array; +} +export declare function ClientGatewayFromJSON(json: any): ClientGateway; +export declare function ClientGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGateway; +export declare function ClientGatewayToJSON(value?: ClientGateway | null): any; diff --git a/dist/cjs/models/ClientGateway.js b/dist/cjs/models/ClientGateway.js new file mode 100644 index 00000000..57da9814 --- /dev/null +++ b/dist/cjs/models/ClientGateway.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClientGatewayToJSON = exports.ClientGatewayFromJSONTyped = exports.ClientGatewayFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function ClientGatewayFromJSON(json) { + return ClientGatewayFromJSONTyped(json, false); +} +exports.ClientGatewayFromJSON = ClientGatewayFromJSON; +function ClientGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsn': !(0, runtime_1.exists)(json, 'BgpAsn') ? undefined : json['BgpAsn'], + 'clientGatewayId': !(0, runtime_1.exists)(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'connectionType': !(0, runtime_1.exists)(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.ClientGatewayFromJSONTyped = ClientGatewayFromJSONTyped; +function ClientGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsn': value.bgpAsn, + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'PublicIp': value.publicIp, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.ClientGatewayToJSON = ClientGatewayToJSON; diff --git a/dist/cjs/models/ConsumptionEntry.d.ts b/dist/cjs/models/ConsumptionEntry.d.ts new file mode 100644 index 00000000..031a2dbe --- /dev/null +++ b/dist/cjs/models/ConsumptionEntry.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the resources consumed during the specified time period. + * @export + * @interface ConsumptionEntry + */ +export interface ConsumptionEntry { + /** + * The ID of your TINA account. + * @type {string} + * @memberof ConsumptionEntry + */ + accountId?: string; + /** + * The category of the resource (for example, `network`). + * @type {string} + * @memberof ConsumptionEntry + */ + category?: string; + /** + * The beginning of the time period. + * @type {string} + * @memberof ConsumptionEntry + */ + fromDate?: string; + /** + * The API call that triggered the resource consumption (for example, `RunInstances` or `CreateVolume`). + * @type {string} + * @memberof ConsumptionEntry + */ + operation?: string; + /** + * The ID of the TINA account which is billed for your consumption. It can be different from your account in the `AccountId` parameter. + * @type {string} + * @memberof ConsumptionEntry + */ + payingAccountId?: string; + /** + * The service of the API call (`TinaOS-FCU`, `TinaOS-LBU`, `TinaOS-DirectLink`, `TinaOS-OOS`, or `TinaOS-OSU`). + * @type {string} + * @memberof ConsumptionEntry + */ + service?: string; + /** + * The name of the Subregion. + * @type {string} + * @memberof ConsumptionEntry + */ + subregionName?: string; + /** + * A description of the consumed resource. + * @type {string} + * @memberof ConsumptionEntry + */ + title?: string; + /** + * The end of the time period. + * @type {string} + * @memberof ConsumptionEntry + */ + toDate?: string; + /** + * The type of resource, depending on the API call. + * @type {string} + * @memberof ConsumptionEntry + */ + type?: string; + /** + * The consumed amount for the resource. The unit depends on the resource type. For more information, see the `Title` element. + * @type {number} + * @memberof ConsumptionEntry + */ + value?: number; +} +export declare function ConsumptionEntryFromJSON(json: any): ConsumptionEntry; +export declare function ConsumptionEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsumptionEntry; +export declare function ConsumptionEntryToJSON(value?: ConsumptionEntry | null): any; diff --git a/dist/cjs/models/ConsumptionEntry.js b/dist/cjs/models/ConsumptionEntry.js new file mode 100644 index 00000000..7f3066cf --- /dev/null +++ b/dist/cjs/models/ConsumptionEntry.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConsumptionEntryToJSON = exports.ConsumptionEntryFromJSONTyped = exports.ConsumptionEntryFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ConsumptionEntryFromJSON(json) { + return ConsumptionEntryFromJSONTyped(json, false); +} +exports.ConsumptionEntryFromJSON = ConsumptionEntryFromJSON; +function ConsumptionEntryFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'category': !(0, runtime_1.exists)(json, 'Category') ? undefined : json['Category'], + 'fromDate': !(0, runtime_1.exists)(json, 'FromDate') ? undefined : json['FromDate'], + 'operation': !(0, runtime_1.exists)(json, 'Operation') ? undefined : json['Operation'], + 'payingAccountId': !(0, runtime_1.exists)(json, 'PayingAccountId') ? undefined : json['PayingAccountId'], + 'service': !(0, runtime_1.exists)(json, 'Service') ? undefined : json['Service'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'title': !(0, runtime_1.exists)(json, 'Title') ? undefined : json['Title'], + 'toDate': !(0, runtime_1.exists)(json, 'ToDate') ? undefined : json['ToDate'], + 'type': !(0, runtime_1.exists)(json, 'Type') ? undefined : json['Type'], + 'value': !(0, runtime_1.exists)(json, 'Value') ? undefined : json['Value'], + }; +} +exports.ConsumptionEntryFromJSONTyped = ConsumptionEntryFromJSONTyped; +function ConsumptionEntryToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Category': value.category, + 'FromDate': value.fromDate, + 'Operation': value.operation, + 'PayingAccountId': value.payingAccountId, + 'Service': value.service, + 'SubregionName': value.subregionName, + 'Title': value.title, + 'ToDate': value.toDate, + 'Type': value.type, + 'Value': value.value, + }; +} +exports.ConsumptionEntryToJSON = ConsumptionEntryToJSON; diff --git a/dist/cjs/models/CreateAccessKeyRequest.d.ts b/dist/cjs/models/CreateAccessKeyRequest.d.ts new file mode 100644 index 00000000..251f5c9c --- /dev/null +++ b/dist/cjs/models/CreateAccessKeyRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateAccessKeyRequest + */ +export interface CreateAccessKeyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateAccessKeyRequest + */ + dryRun?: boolean; + /** + * The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). To remove an existing expiration date, use the method without specifying this parameter. + * @type {string} + * @memberof CreateAccessKeyRequest + */ + expirationDate?: string; +} +export declare function CreateAccessKeyRequestFromJSON(json: any): CreateAccessKeyRequest; +export declare function CreateAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccessKeyRequest; +export declare function CreateAccessKeyRequestToJSON(value?: CreateAccessKeyRequest | null): any; diff --git a/dist/cjs/models/CreateAccessKeyRequest.js b/dist/cjs/models/CreateAccessKeyRequest.js new file mode 100644 index 00000000..d511a144 --- /dev/null +++ b/dist/cjs/models/CreateAccessKeyRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateAccessKeyRequestToJSON = exports.CreateAccessKeyRequestFromJSONTyped = exports.CreateAccessKeyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateAccessKeyRequestFromJSON(json) { + return CreateAccessKeyRequestFromJSONTyped(json, false); +} +exports.CreateAccessKeyRequestFromJSON = CreateAccessKeyRequestFromJSON; +function CreateAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'expirationDate': !(0, runtime_1.exists)(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + }; +} +exports.CreateAccessKeyRequestFromJSONTyped = CreateAccessKeyRequestFromJSONTyped; +function CreateAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ExpirationDate': value.expirationDate, + }; +} +exports.CreateAccessKeyRequestToJSON = CreateAccessKeyRequestToJSON; diff --git a/dist/cjs/models/CreateAccessKeyResponse.d.ts b/dist/cjs/models/CreateAccessKeyResponse.d.ts new file mode 100644 index 00000000..b5d7d897 --- /dev/null +++ b/dist/cjs/models/CreateAccessKeyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKeySecretKey } from './AccessKeySecretKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateAccessKeyResponse + */ +export interface CreateAccessKeyResponse { + /** + * + * @type {AccessKeySecretKey} + * @memberof CreateAccessKeyResponse + */ + accessKey?: AccessKeySecretKey; + /** + * + * @type {ModelResponseContext} + * @memberof CreateAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateAccessKeyResponseFromJSON(json: any): CreateAccessKeyResponse; +export declare function CreateAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccessKeyResponse; +export declare function CreateAccessKeyResponseToJSON(value?: CreateAccessKeyResponse | null): any; diff --git a/dist/cjs/models/CreateAccessKeyResponse.js b/dist/cjs/models/CreateAccessKeyResponse.js new file mode 100644 index 00000000..bf16f694 --- /dev/null +++ b/dist/cjs/models/CreateAccessKeyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateAccessKeyResponseToJSON = exports.CreateAccessKeyResponseFromJSONTyped = exports.CreateAccessKeyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccessKeySecretKey_1 = require("./AccessKeySecretKey"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateAccessKeyResponseFromJSON(json) { + return CreateAccessKeyResponseFromJSONTyped(json, false); +} +exports.CreateAccessKeyResponseFromJSON = CreateAccessKeyResponseFromJSON; +function CreateAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKey': !(0, runtime_1.exists)(json, 'AccessKey') ? undefined : (0, AccessKeySecretKey_1.AccessKeySecretKeyFromJSON)(json['AccessKey']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateAccessKeyResponseFromJSONTyped = CreateAccessKeyResponseFromJSONTyped; +function CreateAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKey': (0, AccessKeySecretKey_1.AccessKeySecretKeyToJSON)(value.accessKey), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateAccessKeyResponseToJSON = CreateAccessKeyResponseToJSON; diff --git a/dist/cjs/models/CreateAccountRequest.d.ts b/dist/cjs/models/CreateAccountRequest.d.ts new file mode 100644 index 00000000..1599b96b --- /dev/null +++ b/dist/cjs/models/CreateAccountRequest.d.ts @@ -0,0 +1,111 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateAccountRequest + */ +export interface CreateAccountRequest { + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. If you already have a list of additional emails registered, you cannot add to it, only replace it. To remove all registered additional emails, specify an empty list. + * @type {Array} + * @memberof CreateAccountRequest + */ + additionalEmails?: Array; + /** + * The city of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + city: string; + /** + * The name of the company for the account. + * @type {string} + * @memberof CreateAccountRequest + */ + companyName: string; + /** + * The country of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + country: string; + /** + * The ID of the customer. It must be 8 digits. + * @type {string} + * @memberof CreateAccountRequest + */ + customerId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateAccountRequest + */ + dryRun?: boolean; + /** + * The main email address for the account. This address is used for your credentials and notifications. + * @type {string} + * @memberof CreateAccountRequest + */ + email: string; + /** + * The first name of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + firstName: string; + /** + * The job title of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + jobTitle?: string; + /** + * The last name of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + lastName: string; + /** + * The mobile phone number of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + mobileNumber?: string; + /** + * The landline phone number of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + phoneNumber?: string; + /** + * The state/province of the account. + * @type {string} + * @memberof CreateAccountRequest + */ + stateProvince?: string; + /** + * The value added tax (VAT) number for the account. + * @type {string} + * @memberof CreateAccountRequest + */ + vatNumber?: string; + /** + * The ZIP code of the city. + * @type {string} + * @memberof CreateAccountRequest + */ + zipCode: string; +} +export declare function CreateAccountRequestFromJSON(json: any): CreateAccountRequest; +export declare function CreateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountRequest; +export declare function CreateAccountRequestToJSON(value?: CreateAccountRequest | null): any; diff --git a/dist/cjs/models/CreateAccountRequest.js b/dist/cjs/models/CreateAccountRequest.js new file mode 100644 index 00000000..a4d4637b --- /dev/null +++ b/dist/cjs/models/CreateAccountRequest.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateAccountRequestToJSON = exports.CreateAccountRequestFromJSONTyped = exports.CreateAccountRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateAccountRequestFromJSON(json) { + return CreateAccountRequestFromJSONTyped(json, false); +} +exports.CreateAccountRequestFromJSON = CreateAccountRequestFromJSON; +function CreateAccountRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'additionalEmails': !(0, runtime_1.exists)(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': json['City'], + 'companyName': json['CompanyName'], + 'country': json['Country'], + 'customerId': json['CustomerId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'email': json['Email'], + 'firstName': json['FirstName'], + 'jobTitle': !(0, runtime_1.exists)(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': json['LastName'], + 'mobileNumber': !(0, runtime_1.exists)(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !(0, runtime_1.exists)(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !(0, runtime_1.exists)(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !(0, runtime_1.exists)(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': json['ZipCode'], + }; +} +exports.CreateAccountRequestFromJSONTyped = CreateAccountRequestFromJSONTyped; +function CreateAccountRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'CustomerId': value.customerId, + 'DryRun': value.dryRun, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} +exports.CreateAccountRequestToJSON = CreateAccountRequestToJSON; diff --git a/dist/cjs/models/CreateAccountResponse.d.ts b/dist/cjs/models/CreateAccountResponse.d.ts new file mode 100644 index 00000000..34f5b63f --- /dev/null +++ b/dist/cjs/models/CreateAccountResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Account } from './Account'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateAccountResponse + */ +export interface CreateAccountResponse { + /** + * + * @type {Account} + * @memberof CreateAccountResponse + */ + account?: Account; + /** + * + * @type {ModelResponseContext} + * @memberof CreateAccountResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateAccountResponseFromJSON(json: any): CreateAccountResponse; +export declare function CreateAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountResponse; +export declare function CreateAccountResponseToJSON(value?: CreateAccountResponse | null): any; diff --git a/dist/cjs/models/CreateAccountResponse.js b/dist/cjs/models/CreateAccountResponse.js new file mode 100644 index 00000000..fdb54f81 --- /dev/null +++ b/dist/cjs/models/CreateAccountResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateAccountResponseToJSON = exports.CreateAccountResponseFromJSONTyped = exports.CreateAccountResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Account_1 = require("./Account"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateAccountResponseFromJSON(json) { + return CreateAccountResponseFromJSONTyped(json, false); +} +exports.CreateAccountResponseFromJSON = CreateAccountResponseFromJSON; +function CreateAccountResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'account': !(0, runtime_1.exists)(json, 'Account') ? undefined : (0, Account_1.AccountFromJSON)(json['Account']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateAccountResponseFromJSONTyped = CreateAccountResponseFromJSONTyped; +function CreateAccountResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Account': (0, Account_1.AccountToJSON)(value.account), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateAccountResponseToJSON = CreateAccountResponseToJSON; diff --git a/dist/cjs/models/CreateApiAccessRuleRequest.d.ts b/dist/cjs/models/CreateApiAccessRuleRequest.d.ts new file mode 100644 index 00000000..60f9f453 --- /dev/null +++ b/dist/cjs/models/CreateApiAccessRuleRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateApiAccessRuleRequest + */ +export interface CreateApiAccessRuleRequest { + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). If this parameter is specified, you must also specify the `CaIds` parameter. + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + cns?: Array; + /** + * A description for the API access rule. + * @type {string} + * @memberof CreateApiAccessRuleRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateApiAccessRuleRequest + */ + dryRun?: boolean; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + ipRanges?: Array; +} +export declare function CreateApiAccessRuleRequestFromJSON(json: any): CreateApiAccessRuleRequest; +export declare function CreateApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiAccessRuleRequest; +export declare function CreateApiAccessRuleRequestToJSON(value?: CreateApiAccessRuleRequest | null): any; diff --git a/dist/cjs/models/CreateApiAccessRuleRequest.js b/dist/cjs/models/CreateApiAccessRuleRequest.js new file mode 100644 index 00000000..6c912f22 --- /dev/null +++ b/dist/cjs/models/CreateApiAccessRuleRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateApiAccessRuleRequestToJSON = exports.CreateApiAccessRuleRequestFromJSONTyped = exports.CreateApiAccessRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateApiAccessRuleRequestFromJSON(json) { + return CreateApiAccessRuleRequestFromJSONTyped(json, false); +} +exports.CreateApiAccessRuleRequestFromJSON = CreateApiAccessRuleRequestFromJSON; +function CreateApiAccessRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caIds': !(0, runtime_1.exists)(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !(0, runtime_1.exists)(json, 'Cns') ? undefined : json['Cns'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +exports.CreateApiAccessRuleRequestFromJSONTyped = CreateApiAccessRuleRequestFromJSONTyped; +function CreateApiAccessRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'DryRun': value.dryRun, + 'IpRanges': value.ipRanges, + }; +} +exports.CreateApiAccessRuleRequestToJSON = CreateApiAccessRuleRequestToJSON; diff --git a/dist/cjs/models/CreateApiAccessRuleResponse.d.ts b/dist/cjs/models/CreateApiAccessRuleResponse.d.ts new file mode 100644 index 00000000..5ec536b8 --- /dev/null +++ b/dist/cjs/models/CreateApiAccessRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessRule } from './ApiAccessRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateApiAccessRuleResponse + */ +export interface CreateApiAccessRuleResponse { + /** + * + * @type {ApiAccessRule} + * @memberof CreateApiAccessRuleResponse + */ + apiAccessRule?: ApiAccessRule; + /** + * + * @type {ModelResponseContext} + * @memberof CreateApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateApiAccessRuleResponseFromJSON(json: any): CreateApiAccessRuleResponse; +export declare function CreateApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiAccessRuleResponse; +export declare function CreateApiAccessRuleResponseToJSON(value?: CreateApiAccessRuleResponse | null): any; diff --git a/dist/cjs/models/CreateApiAccessRuleResponse.js b/dist/cjs/models/CreateApiAccessRuleResponse.js new file mode 100644 index 00000000..175ec92a --- /dev/null +++ b/dist/cjs/models/CreateApiAccessRuleResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateApiAccessRuleResponseToJSON = exports.CreateApiAccessRuleResponseFromJSONTyped = exports.CreateApiAccessRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ApiAccessRule_1 = require("./ApiAccessRule"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateApiAccessRuleResponseFromJSON(json) { + return CreateApiAccessRuleResponseFromJSONTyped(json, false); +} +exports.CreateApiAccessRuleResponseFromJSON = CreateApiAccessRuleResponseFromJSON; +function CreateApiAccessRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRule': !(0, runtime_1.exists)(json, 'ApiAccessRule') ? undefined : (0, ApiAccessRule_1.ApiAccessRuleFromJSON)(json['ApiAccessRule']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateApiAccessRuleResponseFromJSONTyped = CreateApiAccessRuleResponseFromJSONTyped; +function CreateApiAccessRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRule': (0, ApiAccessRule_1.ApiAccessRuleToJSON)(value.apiAccessRule), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateApiAccessRuleResponseToJSON = CreateApiAccessRuleResponseToJSON; diff --git a/dist/cjs/models/CreateCaRequest.d.ts b/dist/cjs/models/CreateCaRequest.d.ts new file mode 100644 index 00000000..04e3f23d --- /dev/null +++ b/dist/cjs/models/CreateCaRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateCaRequest + */ +export interface CreateCaRequest { + /** + * The CA in PEM format. It must be a single-line string, containing literal line breaks (`\n`). + * @type {string} + * @memberof CreateCaRequest + */ + caPem: string; + /** + * The description of the CA. + * @type {string} + * @memberof CreateCaRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateCaRequest + */ + dryRun?: boolean; +} +export declare function CreateCaRequestFromJSON(json: any): CreateCaRequest; +export declare function CreateCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCaRequest; +export declare function CreateCaRequestToJSON(value?: CreateCaRequest | null): any; diff --git a/dist/cjs/models/CreateCaRequest.js b/dist/cjs/models/CreateCaRequest.js new file mode 100644 index 00000000..935a87a5 --- /dev/null +++ b/dist/cjs/models/CreateCaRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateCaRequestToJSON = exports.CreateCaRequestFromJSONTyped = exports.CreateCaRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateCaRequestFromJSON(json) { + return CreateCaRequestFromJSONTyped(json, false); +} +exports.CreateCaRequestFromJSON = CreateCaRequestFromJSON; +function CreateCaRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caPem': json['CaPem'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.CreateCaRequestFromJSONTyped = CreateCaRequestFromJSONTyped; +function CreateCaRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaPem': value.caPem, + 'Description': value.description, + 'DryRun': value.dryRun, + }; +} +exports.CreateCaRequestToJSON = CreateCaRequestToJSON; diff --git a/dist/cjs/models/CreateCaResponse.d.ts b/dist/cjs/models/CreateCaResponse.d.ts new file mode 100644 index 00000000..c523acd1 --- /dev/null +++ b/dist/cjs/models/CreateCaResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Ca } from './Ca'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateCaResponse + */ +export interface CreateCaResponse { + /** + * + * @type {Ca} + * @memberof CreateCaResponse + */ + ca?: Ca; + /** + * + * @type {ModelResponseContext} + * @memberof CreateCaResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateCaResponseFromJSON(json: any): CreateCaResponse; +export declare function CreateCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCaResponse; +export declare function CreateCaResponseToJSON(value?: CreateCaResponse | null): any; diff --git a/dist/cjs/models/CreateCaResponse.js b/dist/cjs/models/CreateCaResponse.js new file mode 100644 index 00000000..cccb204b --- /dev/null +++ b/dist/cjs/models/CreateCaResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateCaResponseToJSON = exports.CreateCaResponseFromJSONTyped = exports.CreateCaResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Ca_1 = require("./Ca"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateCaResponseFromJSON(json) { + return CreateCaResponseFromJSONTyped(json, false); +} +exports.CreateCaResponseFromJSON = CreateCaResponseFromJSON; +function CreateCaResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'ca': !(0, runtime_1.exists)(json, 'Ca') ? undefined : (0, Ca_1.CaFromJSON)(json['Ca']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateCaResponseFromJSONTyped = CreateCaResponseFromJSONTyped; +function CreateCaResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Ca': (0, Ca_1.CaToJSON)(value.ca), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateCaResponseToJSON = CreateCaResponseToJSON; diff --git a/dist/cjs/models/CreateClientGatewayRequest.d.ts b/dist/cjs/models/CreateClientGatewayRequest.d.ts new file mode 100644 index 00000000..b4424542 --- /dev/null +++ b/dist/cjs/models/CreateClientGatewayRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateClientGatewayRequest + */ +export interface CreateClientGatewayRequest { + /** + * The Autonomous System Number (ASN) used by the Border Gateway Protocol (BGP) to find the path to your client gateway through the Internet. This number must be between 1 and 4294967295. + * @type {number} + * @memberof CreateClientGatewayRequest + */ + bgpAsn: number; + /** + * The communication protocol used to establish tunnel with your client gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateClientGatewayRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateClientGatewayRequest + */ + dryRun?: boolean; + /** + * The public fixed IPv4 address of your client gateway. + * @type {string} + * @memberof CreateClientGatewayRequest + */ + publicIp: string; +} +export declare function CreateClientGatewayRequestFromJSON(json: any): CreateClientGatewayRequest; +export declare function CreateClientGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientGatewayRequest; +export declare function CreateClientGatewayRequestToJSON(value?: CreateClientGatewayRequest | null): any; diff --git a/dist/cjs/models/CreateClientGatewayRequest.js b/dist/cjs/models/CreateClientGatewayRequest.js new file mode 100644 index 00000000..e620f445 --- /dev/null +++ b/dist/cjs/models/CreateClientGatewayRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateClientGatewayRequestToJSON = exports.CreateClientGatewayRequestFromJSONTyped = exports.CreateClientGatewayRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateClientGatewayRequestFromJSON(json) { + return CreateClientGatewayRequestFromJSONTyped(json, false); +} +exports.CreateClientGatewayRequestFromJSON = CreateClientGatewayRequestFromJSON; +function CreateClientGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsn': json['BgpAsn'], + 'connectionType': json['ConnectionType'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIp': json['PublicIp'], + }; +} +exports.CreateClientGatewayRequestFromJSONTyped = CreateClientGatewayRequestFromJSONTyped; +function CreateClientGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsn': value.bgpAsn, + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + 'PublicIp': value.publicIp, + }; +} +exports.CreateClientGatewayRequestToJSON = CreateClientGatewayRequestToJSON; diff --git a/dist/cjs/models/CreateClientGatewayResponse.d.ts b/dist/cjs/models/CreateClientGatewayResponse.d.ts new file mode 100644 index 00000000..25e3817c --- /dev/null +++ b/dist/cjs/models/CreateClientGatewayResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ClientGateway } from './ClientGateway'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateClientGatewayResponse + */ +export interface CreateClientGatewayResponse { + /** + * + * @type {ClientGateway} + * @memberof CreateClientGatewayResponse + */ + clientGateway?: ClientGateway; + /** + * + * @type {ModelResponseContext} + * @memberof CreateClientGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateClientGatewayResponseFromJSON(json: any): CreateClientGatewayResponse; +export declare function CreateClientGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientGatewayResponse; +export declare function CreateClientGatewayResponseToJSON(value?: CreateClientGatewayResponse | null): any; diff --git a/dist/cjs/models/CreateClientGatewayResponse.js b/dist/cjs/models/CreateClientGatewayResponse.js new file mode 100644 index 00000000..a45c4926 --- /dev/null +++ b/dist/cjs/models/CreateClientGatewayResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateClientGatewayResponseToJSON = exports.CreateClientGatewayResponseFromJSONTyped = exports.CreateClientGatewayResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ClientGateway_1 = require("./ClientGateway"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateClientGatewayResponseFromJSON(json) { + return CreateClientGatewayResponseFromJSONTyped(json, false); +} +exports.CreateClientGatewayResponseFromJSON = CreateClientGatewayResponseFromJSON; +function CreateClientGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGateway': !(0, runtime_1.exists)(json, 'ClientGateway') ? undefined : (0, ClientGateway_1.ClientGatewayFromJSON)(json['ClientGateway']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateClientGatewayResponseFromJSONTyped = CreateClientGatewayResponseFromJSONTyped; +function CreateClientGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGateway': (0, ClientGateway_1.ClientGatewayToJSON)(value.clientGateway), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateClientGatewayResponseToJSON = CreateClientGatewayResponseToJSON; diff --git a/dist/cjs/models/CreateDhcpOptionsRequest.d.ts b/dist/cjs/models/CreateDhcpOptionsRequest.d.ts new file mode 100644 index 00000000..cbc6c3a3 --- /dev/null +++ b/dist/cjs/models/CreateDhcpOptionsRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateDhcpOptionsRequest + */ +export interface CreateDhcpOptionsRequest { + /** + * Specify a domain name (for example, MyCompany.com). You can specify only one domain name. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {string} + * @memberof CreateDhcpOptionsRequest + */ + domainName?: string; + /** + * The IPs of domain name servers. If no IPs are specified, the `OutscaleProvidedDNS` value is set by default. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {Array} + * @memberof CreateDhcpOptionsRequest + */ + domainNameServers?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDhcpOptionsRequest + */ + dryRun?: boolean; + /** + * The IPs of the Network Time Protocol (NTP) servers. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {Array} + * @memberof CreateDhcpOptionsRequest + */ + ntpServers?: Array; +} +export declare function CreateDhcpOptionsRequestFromJSON(json: any): CreateDhcpOptionsRequest; +export declare function CreateDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDhcpOptionsRequest; +export declare function CreateDhcpOptionsRequestToJSON(value?: CreateDhcpOptionsRequest | null): any; diff --git a/dist/cjs/models/CreateDhcpOptionsRequest.js b/dist/cjs/models/CreateDhcpOptionsRequest.js new file mode 100644 index 00000000..ca03260d --- /dev/null +++ b/dist/cjs/models/CreateDhcpOptionsRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDhcpOptionsRequestToJSON = exports.CreateDhcpOptionsRequestFromJSONTyped = exports.CreateDhcpOptionsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateDhcpOptionsRequestFromJSON(json) { + return CreateDhcpOptionsRequestFromJSONTyped(json, false); +} +exports.CreateDhcpOptionsRequestFromJSON = CreateDhcpOptionsRequestFromJSON; +function CreateDhcpOptionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'domainName': !(0, runtime_1.exists)(json, 'DomainName') ? undefined : json['DomainName'], + 'domainNameServers': !(0, runtime_1.exists)(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'ntpServers': !(0, runtime_1.exists)(json, 'NtpServers') ? undefined : json['NtpServers'], + }; +} +exports.CreateDhcpOptionsRequestFromJSONTyped = CreateDhcpOptionsRequestFromJSONTyped; +function CreateDhcpOptionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DomainName': value.domainName, + 'DomainNameServers': value.domainNameServers, + 'DryRun': value.dryRun, + 'NtpServers': value.ntpServers, + }; +} +exports.CreateDhcpOptionsRequestToJSON = CreateDhcpOptionsRequestToJSON; diff --git a/dist/cjs/models/CreateDhcpOptionsResponse.d.ts b/dist/cjs/models/CreateDhcpOptionsResponse.d.ts new file mode 100644 index 00000000..497bb8f1 --- /dev/null +++ b/dist/cjs/models/CreateDhcpOptionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DhcpOptionsSet } from './DhcpOptionsSet'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateDhcpOptionsResponse + */ +export interface CreateDhcpOptionsResponse { + /** + * + * @type {DhcpOptionsSet} + * @memberof CreateDhcpOptionsResponse + */ + dhcpOptionsSet?: DhcpOptionsSet; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateDhcpOptionsResponseFromJSON(json: any): CreateDhcpOptionsResponse; +export declare function CreateDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDhcpOptionsResponse; +export declare function CreateDhcpOptionsResponseToJSON(value?: CreateDhcpOptionsResponse | null): any; diff --git a/dist/cjs/models/CreateDhcpOptionsResponse.js b/dist/cjs/models/CreateDhcpOptionsResponse.js new file mode 100644 index 00000000..c8ffd58e --- /dev/null +++ b/dist/cjs/models/CreateDhcpOptionsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDhcpOptionsResponseToJSON = exports.CreateDhcpOptionsResponseFromJSONTyped = exports.CreateDhcpOptionsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DhcpOptionsSet_1 = require("./DhcpOptionsSet"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateDhcpOptionsResponseFromJSON(json) { + return CreateDhcpOptionsResponseFromJSONTyped(json, false); +} +exports.CreateDhcpOptionsResponseFromJSON = CreateDhcpOptionsResponseFromJSON; +function CreateDhcpOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSet': !(0, runtime_1.exists)(json, 'DhcpOptionsSet') ? undefined : (0, DhcpOptionsSet_1.DhcpOptionsSetFromJSON)(json['DhcpOptionsSet']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateDhcpOptionsResponseFromJSONTyped = CreateDhcpOptionsResponseFromJSONTyped; +function CreateDhcpOptionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSet': (0, DhcpOptionsSet_1.DhcpOptionsSetToJSON)(value.dhcpOptionsSet), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateDhcpOptionsResponseToJSON = CreateDhcpOptionsResponseToJSON; diff --git a/dist/cjs/models/CreateDirectLinkInterfaceRequest.d.ts b/dist/cjs/models/CreateDirectLinkInterfaceRequest.d.ts new file mode 100644 index 00000000..a7b27a83 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkInterfaceRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLinkInterface } from './DirectLinkInterface'; +/** + * + * @export + * @interface CreateDirectLinkInterfaceRequest + */ +export interface CreateDirectLinkInterfaceRequest { + /** + * The ID of the existing DirectLink for which you want to create the DirectLink interface. + * @type {string} + * @memberof CreateDirectLinkInterfaceRequest + */ + directLinkId: string; + /** + * + * @type {DirectLinkInterface} + * @memberof CreateDirectLinkInterfaceRequest + */ + directLinkInterface: DirectLinkInterface; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDirectLinkInterfaceRequest + */ + dryRun?: boolean; +} +export declare function CreateDirectLinkInterfaceRequestFromJSON(json: any): CreateDirectLinkInterfaceRequest; +export declare function CreateDirectLinkInterfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkInterfaceRequest; +export declare function CreateDirectLinkInterfaceRequestToJSON(value?: CreateDirectLinkInterfaceRequest | null): any; diff --git a/dist/cjs/models/CreateDirectLinkInterfaceRequest.js b/dist/cjs/models/CreateDirectLinkInterfaceRequest.js new file mode 100644 index 00000000..373000d8 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkInterfaceRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDirectLinkInterfaceRequestToJSON = exports.CreateDirectLinkInterfaceRequestFromJSONTyped = exports.CreateDirectLinkInterfaceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DirectLinkInterface_1 = require("./DirectLinkInterface"); +function CreateDirectLinkInterfaceRequestFromJSON(json) { + return CreateDirectLinkInterfaceRequestFromJSONTyped(json, false); +} +exports.CreateDirectLinkInterfaceRequestFromJSON = CreateDirectLinkInterfaceRequestFromJSON; +function CreateDirectLinkInterfaceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkId': json['DirectLinkId'], + 'directLinkInterface': (0, DirectLinkInterface_1.DirectLinkInterfaceFromJSON)(json['DirectLinkInterface']), + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.CreateDirectLinkInterfaceRequestFromJSONTyped = CreateDirectLinkInterfaceRequestFromJSONTyped; +function CreateDirectLinkInterfaceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkId': value.directLinkId, + 'DirectLinkInterface': (0, DirectLinkInterface_1.DirectLinkInterfaceToJSON)(value.directLinkInterface), + 'DryRun': value.dryRun, + }; +} +exports.CreateDirectLinkInterfaceRequestToJSON = CreateDirectLinkInterfaceRequestToJSON; diff --git a/dist/cjs/models/CreateDirectLinkInterfaceResponse.d.ts b/dist/cjs/models/CreateDirectLinkInterfaceResponse.d.ts new file mode 100644 index 00000000..4c5fbe0a --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkInterfaceResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLinkInterfaces } from './DirectLinkInterfaces'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateDirectLinkInterfaceResponse + */ +export interface CreateDirectLinkInterfaceResponse { + /** + * + * @type {DirectLinkInterfaces} + * @memberof CreateDirectLinkInterfaceResponse + */ + directLinkInterface?: DirectLinkInterfaces; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDirectLinkInterfaceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateDirectLinkInterfaceResponseFromJSON(json: any): CreateDirectLinkInterfaceResponse; +export declare function CreateDirectLinkInterfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkInterfaceResponse; +export declare function CreateDirectLinkInterfaceResponseToJSON(value?: CreateDirectLinkInterfaceResponse | null): any; diff --git a/dist/cjs/models/CreateDirectLinkInterfaceResponse.js b/dist/cjs/models/CreateDirectLinkInterfaceResponse.js new file mode 100644 index 00000000..710f5a85 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkInterfaceResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDirectLinkInterfaceResponseToJSON = exports.CreateDirectLinkInterfaceResponseFromJSONTyped = exports.CreateDirectLinkInterfaceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DirectLinkInterfaces_1 = require("./DirectLinkInterfaces"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateDirectLinkInterfaceResponseFromJSON(json) { + return CreateDirectLinkInterfaceResponseFromJSONTyped(json, false); +} +exports.CreateDirectLinkInterfaceResponseFromJSON = CreateDirectLinkInterfaceResponseFromJSON; +function CreateDirectLinkInterfaceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkInterface': !(0, runtime_1.exists)(json, 'DirectLinkInterface') ? undefined : (0, DirectLinkInterfaces_1.DirectLinkInterfacesFromJSON)(json['DirectLinkInterface']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateDirectLinkInterfaceResponseFromJSONTyped = CreateDirectLinkInterfaceResponseFromJSONTyped; +function CreateDirectLinkInterfaceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkInterface': (0, DirectLinkInterfaces_1.DirectLinkInterfacesToJSON)(value.directLinkInterface), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateDirectLinkInterfaceResponseToJSON = CreateDirectLinkInterfaceResponseToJSON; diff --git a/dist/cjs/models/CreateDirectLinkRequest.d.ts b/dist/cjs/models/CreateDirectLinkRequest.d.ts new file mode 100644 index 00000000..635706a6 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateDirectLinkRequest + */ +export interface CreateDirectLinkRequest { + /** + * The bandwidth of the DirectLink (`1Gbps` \| `10Gbps`). + * @type {string} + * @memberof CreateDirectLinkRequest + */ + bandwidth: string; + /** + * The name of the DirectLink. + * @type {string} + * @memberof CreateDirectLinkRequest + */ + directLinkName: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDirectLinkRequest + */ + dryRun?: boolean; + /** + * The code of the requested location for the DirectLink, returned by the [ReadLocations](#readlocations) method. + * @type {string} + * @memberof CreateDirectLinkRequest + */ + location: string; +} +export declare function CreateDirectLinkRequestFromJSON(json: any): CreateDirectLinkRequest; +export declare function CreateDirectLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkRequest; +export declare function CreateDirectLinkRequestToJSON(value?: CreateDirectLinkRequest | null): any; diff --git a/dist/cjs/models/CreateDirectLinkRequest.js b/dist/cjs/models/CreateDirectLinkRequest.js new file mode 100644 index 00000000..718002f6 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDirectLinkRequestToJSON = exports.CreateDirectLinkRequestFromJSONTyped = exports.CreateDirectLinkRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateDirectLinkRequestFromJSON(json) { + return CreateDirectLinkRequestFromJSONTyped(json, false); +} +exports.CreateDirectLinkRequestFromJSON = CreateDirectLinkRequestFromJSON; +function CreateDirectLinkRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bandwidth': json['Bandwidth'], + 'directLinkName': json['DirectLinkName'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'location': json['Location'], + }; +} +exports.CreateDirectLinkRequestFromJSONTyped = CreateDirectLinkRequestFromJSONTyped; +function CreateDirectLinkRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bandwidth': value.bandwidth, + 'DirectLinkName': value.directLinkName, + 'DryRun': value.dryRun, + 'Location': value.location, + }; +} +exports.CreateDirectLinkRequestToJSON = CreateDirectLinkRequestToJSON; diff --git a/dist/cjs/models/CreateDirectLinkResponse.d.ts b/dist/cjs/models/CreateDirectLinkResponse.d.ts new file mode 100644 index 00000000..60059585 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLink } from './DirectLink'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateDirectLinkResponse + */ +export interface CreateDirectLinkResponse { + /** + * + * @type {DirectLink} + * @memberof CreateDirectLinkResponse + */ + directLink?: DirectLink; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDirectLinkResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateDirectLinkResponseFromJSON(json: any): CreateDirectLinkResponse; +export declare function CreateDirectLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkResponse; +export declare function CreateDirectLinkResponseToJSON(value?: CreateDirectLinkResponse | null): any; diff --git a/dist/cjs/models/CreateDirectLinkResponse.js b/dist/cjs/models/CreateDirectLinkResponse.js new file mode 100644 index 00000000..8f73a392 --- /dev/null +++ b/dist/cjs/models/CreateDirectLinkResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDirectLinkResponseToJSON = exports.CreateDirectLinkResponseFromJSONTyped = exports.CreateDirectLinkResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DirectLink_1 = require("./DirectLink"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateDirectLinkResponseFromJSON(json) { + return CreateDirectLinkResponseFromJSONTyped(json, false); +} +exports.CreateDirectLinkResponseFromJSON = CreateDirectLinkResponseFromJSON; +function CreateDirectLinkResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLink': !(0, runtime_1.exists)(json, 'DirectLink') ? undefined : (0, DirectLink_1.DirectLinkFromJSON)(json['DirectLink']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateDirectLinkResponseFromJSONTyped = CreateDirectLinkResponseFromJSONTyped; +function CreateDirectLinkResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLink': (0, DirectLink_1.DirectLinkToJSON)(value.directLink), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateDirectLinkResponseToJSON = CreateDirectLinkResponseToJSON; diff --git a/dist/cjs/models/CreateFlexibleGpuRequest.d.ts b/dist/cjs/models/CreateFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..ccba4144 --- /dev/null +++ b/dist/cjs/models/CreateFlexibleGpuRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateFlexibleGpuRequest + */ +export interface CreateFlexibleGpuRequest { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof CreateFlexibleGpuRequest + */ + deleteOnVmDeletion?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by [ReadFlexibleGpuCatalog](#readflexiblegpucatalog) for the specified model of fGPU). + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + generation?: string; + /** + * The model of fGPU you want to allocate. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + modelName: string; + /** + * The Subregion in which you want to create the fGPU. + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + subregionName: string; +} +export declare function CreateFlexibleGpuRequestFromJSON(json: any): CreateFlexibleGpuRequest; +export declare function CreateFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFlexibleGpuRequest; +export declare function CreateFlexibleGpuRequestToJSON(value?: CreateFlexibleGpuRequest | null): any; diff --git a/dist/cjs/models/CreateFlexibleGpuRequest.js b/dist/cjs/models/CreateFlexibleGpuRequest.js new file mode 100644 index 00000000..3b8ccbaa --- /dev/null +++ b/dist/cjs/models/CreateFlexibleGpuRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateFlexibleGpuRequestToJSON = exports.CreateFlexibleGpuRequestFromJSONTyped = exports.CreateFlexibleGpuRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateFlexibleGpuRequestFromJSON(json) { + return CreateFlexibleGpuRequestFromJSONTyped(json, false); +} +exports.CreateFlexibleGpuRequestFromJSON = CreateFlexibleGpuRequestFromJSON; +function CreateFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'generation': !(0, runtime_1.exists)(json, 'Generation') ? undefined : json['Generation'], + 'modelName': json['ModelName'], + 'subregionName': json['SubregionName'], + }; +} +exports.CreateFlexibleGpuRequestFromJSONTyped = CreateFlexibleGpuRequestFromJSONTyped; +function CreateFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DryRun': value.dryRun, + 'Generation': value.generation, + 'ModelName': value.modelName, + 'SubregionName': value.subregionName, + }; +} +exports.CreateFlexibleGpuRequestToJSON = CreateFlexibleGpuRequestToJSON; diff --git a/dist/cjs/models/CreateFlexibleGpuResponse.d.ts b/dist/cjs/models/CreateFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..9cfdd5a0 --- /dev/null +++ b/dist/cjs/models/CreateFlexibleGpuResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpu } from './FlexibleGpu'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateFlexibleGpuResponse + */ +export interface CreateFlexibleGpuResponse { + /** + * + * @type {FlexibleGpu} + * @memberof CreateFlexibleGpuResponse + */ + flexibleGpu?: FlexibleGpu; + /** + * + * @type {ModelResponseContext} + * @memberof CreateFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateFlexibleGpuResponseFromJSON(json: any): CreateFlexibleGpuResponse; +export declare function CreateFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFlexibleGpuResponse; +export declare function CreateFlexibleGpuResponseToJSON(value?: CreateFlexibleGpuResponse | null): any; diff --git a/dist/cjs/models/CreateFlexibleGpuResponse.js b/dist/cjs/models/CreateFlexibleGpuResponse.js new file mode 100644 index 00000000..517a9ef8 --- /dev/null +++ b/dist/cjs/models/CreateFlexibleGpuResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateFlexibleGpuResponseToJSON = exports.CreateFlexibleGpuResponseFromJSONTyped = exports.CreateFlexibleGpuResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FlexibleGpu_1 = require("./FlexibleGpu"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateFlexibleGpuResponseFromJSON(json) { + return CreateFlexibleGpuResponseFromJSONTyped(json, false); +} +exports.CreateFlexibleGpuResponseFromJSON = CreateFlexibleGpuResponseFromJSON; +function CreateFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpu': !(0, runtime_1.exists)(json, 'FlexibleGpu') ? undefined : (0, FlexibleGpu_1.FlexibleGpuFromJSON)(json['FlexibleGpu']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateFlexibleGpuResponseFromJSONTyped = CreateFlexibleGpuResponseFromJSONTyped; +function CreateFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpu': (0, FlexibleGpu_1.FlexibleGpuToJSON)(value.flexibleGpu), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateFlexibleGpuResponseToJSON = CreateFlexibleGpuResponseToJSON; diff --git a/dist/cjs/models/CreateImageExportTaskRequest.d.ts b/dist/cjs/models/CreateImageExportTaskRequest.d.ts new file mode 100644 index 00000000..014de9f5 --- /dev/null +++ b/dist/cjs/models/CreateImageExportTaskRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportToCreate } from './OsuExportToCreate'; +/** + * + * @export + * @interface CreateImageExportTaskRequest + */ +export interface CreateImageExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateImageExportTaskRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI to export. + * @type {string} + * @memberof CreateImageExportTaskRequest + */ + imageId: string; + /** + * + * @type {OsuExportToCreate} + * @memberof CreateImageExportTaskRequest + */ + osuExport: OsuExportToCreate; +} +export declare function CreateImageExportTaskRequestFromJSON(json: any): CreateImageExportTaskRequest; +export declare function CreateImageExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageExportTaskRequest; +export declare function CreateImageExportTaskRequestToJSON(value?: CreateImageExportTaskRequest | null): any; diff --git a/dist/cjs/models/CreateImageExportTaskRequest.js b/dist/cjs/models/CreateImageExportTaskRequest.js new file mode 100644 index 00000000..9422fd4b --- /dev/null +++ b/dist/cjs/models/CreateImageExportTaskRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateImageExportTaskRequestToJSON = exports.CreateImageExportTaskRequestFromJSONTyped = exports.CreateImageExportTaskRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const OsuExportToCreate_1 = require("./OsuExportToCreate"); +function CreateImageExportTaskRequestFromJSON(json) { + return CreateImageExportTaskRequestFromJSONTyped(json, false); +} +exports.CreateImageExportTaskRequestFromJSON = CreateImageExportTaskRequestFromJSON; +function CreateImageExportTaskRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'osuExport': (0, OsuExportToCreate_1.OsuExportToCreateFromJSON)(json['OsuExport']), + }; +} +exports.CreateImageExportTaskRequestFromJSONTyped = CreateImageExportTaskRequestFromJSONTyped; +function CreateImageExportTaskRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'OsuExport': (0, OsuExportToCreate_1.OsuExportToCreateToJSON)(value.osuExport), + }; +} +exports.CreateImageExportTaskRequestToJSON = CreateImageExportTaskRequestToJSON; diff --git a/dist/cjs/models/CreateImageExportTaskResponse.d.ts b/dist/cjs/models/CreateImageExportTaskResponse.d.ts new file mode 100644 index 00000000..402f17a8 --- /dev/null +++ b/dist/cjs/models/CreateImageExportTaskResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ImageExportTask } from './ImageExportTask'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateImageExportTaskResponse + */ +export interface CreateImageExportTaskResponse { + /** + * + * @type {ImageExportTask} + * @memberof CreateImageExportTaskResponse + */ + imageExportTask?: ImageExportTask; + /** + * + * @type {ModelResponseContext} + * @memberof CreateImageExportTaskResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateImageExportTaskResponseFromJSON(json: any): CreateImageExportTaskResponse; +export declare function CreateImageExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageExportTaskResponse; +export declare function CreateImageExportTaskResponseToJSON(value?: CreateImageExportTaskResponse | null): any; diff --git a/dist/cjs/models/CreateImageExportTaskResponse.js b/dist/cjs/models/CreateImageExportTaskResponse.js new file mode 100644 index 00000000..310eb6b6 --- /dev/null +++ b/dist/cjs/models/CreateImageExportTaskResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateImageExportTaskResponseToJSON = exports.CreateImageExportTaskResponseFromJSONTyped = exports.CreateImageExportTaskResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ImageExportTask_1 = require("./ImageExportTask"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateImageExportTaskResponseFromJSON(json) { + return CreateImageExportTaskResponseFromJSONTyped(json, false); +} +exports.CreateImageExportTaskResponseFromJSON = CreateImageExportTaskResponseFromJSON; +function CreateImageExportTaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'imageExportTask': !(0, runtime_1.exists)(json, 'ImageExportTask') ? undefined : (0, ImageExportTask_1.ImageExportTaskFromJSON)(json['ImageExportTask']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateImageExportTaskResponseFromJSONTyped = CreateImageExportTaskResponseFromJSONTyped; +function CreateImageExportTaskResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ImageExportTask': (0, ImageExportTask_1.ImageExportTaskToJSON)(value.imageExportTask), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateImageExportTaskResponseToJSON = CreateImageExportTaskResponseToJSON; diff --git a/dist/cjs/models/CreateImageRequest.d.ts b/dist/cjs/models/CreateImageRequest.d.ts new file mode 100644 index 00000000..0856041b --- /dev/null +++ b/dist/cjs/models/CreateImageRequest.d.ts @@ -0,0 +1,89 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingImage } from './BlockDeviceMappingImage'; +/** + * + * @export + * @interface CreateImageRequest + */ +export interface CreateImageRequest { + /** + * The architecture of the OMI (by default, `i386` if you specified the `FileLocation` or `RootDeviceName` parameter). + * @type {string} + * @memberof CreateImageRequest + */ + architecture?: string; + /** + * One or more block device mappings. + * @type {Array} + * @memberof CreateImageRequest + */ + blockDeviceMappings?: Array; + /** + * A description for the new OMI. + * @type {string} + * @memberof CreateImageRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateImageRequest + */ + dryRun?: boolean; + /** + * The pre-signed URL of the OMI manifest file, or the full path to the OMI stored in a bucket. If you specify this parameter, a copy of the OMI is created in your account. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + fileLocation?: string; + /** + * A unique name for the new OMI.
+ * Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-). + * @type {string} + * @memberof CreateImageRequest + */ + imageName?: string; + /** + * If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not. + * @type {boolean} + * @memberof CreateImageRequest + */ + noReboot?: boolean; + /** + * The name of the root device. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + rootDeviceName?: string; + /** + * The ID of the OMI you want to copy. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + sourceImageId?: string; + /** + * The name of the source Region, which must be the same as the Region of your account. + * @type {string} + * @memberof CreateImageRequest + */ + sourceRegionName?: string; + /** + * The ID of the VM from which you want to create the OMI. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + vmId?: string; +} +export declare function CreateImageRequestFromJSON(json: any): CreateImageRequest; +export declare function CreateImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageRequest; +export declare function CreateImageRequestToJSON(value?: CreateImageRequest | null): any; diff --git a/dist/cjs/models/CreateImageRequest.js b/dist/cjs/models/CreateImageRequest.js new file mode 100644 index 00000000..50833057 --- /dev/null +++ b/dist/cjs/models/CreateImageRequest.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateImageRequestToJSON = exports.CreateImageRequestFromJSONTyped = exports.CreateImageRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BlockDeviceMappingImage_1 = require("./BlockDeviceMappingImage"); +function CreateImageRequestFromJSON(json) { + return CreateImageRequestFromJSONTyped(json, false); +} +exports.CreateImageRequestFromJSON = CreateImageRequestFromJSON; +function CreateImageRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'architecture': !(0, runtime_1.exists)(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !(0, runtime_1.exists)(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingImage_1.BlockDeviceMappingImageFromJSON)), + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'fileLocation': !(0, runtime_1.exists)(json, 'FileLocation') ? undefined : json['FileLocation'], + 'imageName': !(0, runtime_1.exists)(json, 'ImageName') ? undefined : json['ImageName'], + 'noReboot': !(0, runtime_1.exists)(json, 'NoReboot') ? undefined : json['NoReboot'], + 'rootDeviceName': !(0, runtime_1.exists)(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'sourceImageId': !(0, runtime_1.exists)(json, 'SourceImageId') ? undefined : json['SourceImageId'], + 'sourceRegionName': !(0, runtime_1.exists)(json, 'SourceRegionName') ? undefined : json['SourceRegionName'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.CreateImageRequestFromJSONTyped = CreateImageRequestFromJSONTyped; +function CreateImageRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingImage_1.BlockDeviceMappingImageToJSON)), + 'Description': value.description, + 'DryRun': value.dryRun, + 'FileLocation': value.fileLocation, + 'ImageName': value.imageName, + 'NoReboot': value.noReboot, + 'RootDeviceName': value.rootDeviceName, + 'SourceImageId': value.sourceImageId, + 'SourceRegionName': value.sourceRegionName, + 'VmId': value.vmId, + }; +} +exports.CreateImageRequestToJSON = CreateImageRequestToJSON; diff --git a/dist/cjs/models/CreateImageResponse.d.ts b/dist/cjs/models/CreateImageResponse.d.ts new file mode 100644 index 00000000..99a8bf85 --- /dev/null +++ b/dist/cjs/models/CreateImageResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Image } from './Image'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateImageResponse + */ +export interface CreateImageResponse { + /** + * + * @type {Image} + * @memberof CreateImageResponse + */ + image?: Image; + /** + * + * @type {ModelResponseContext} + * @memberof CreateImageResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateImageResponseFromJSON(json: any): CreateImageResponse; +export declare function CreateImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageResponse; +export declare function CreateImageResponseToJSON(value?: CreateImageResponse | null): any; diff --git a/dist/cjs/models/CreateImageResponse.js b/dist/cjs/models/CreateImageResponse.js new file mode 100644 index 00000000..d08e7759 --- /dev/null +++ b/dist/cjs/models/CreateImageResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateImageResponseToJSON = exports.CreateImageResponseFromJSONTyped = exports.CreateImageResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Image_1 = require("./Image"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateImageResponseFromJSON(json) { + return CreateImageResponseFromJSONTyped(json, false); +} +exports.CreateImageResponseFromJSON = CreateImageResponseFromJSON; +function CreateImageResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'image': !(0, runtime_1.exists)(json, 'Image') ? undefined : (0, Image_1.ImageFromJSON)(json['Image']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateImageResponseFromJSONTyped = CreateImageResponseFromJSONTyped; +function CreateImageResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Image': (0, Image_1.ImageToJSON)(value.image), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateImageResponseToJSON = CreateImageResponseToJSON; diff --git a/dist/cjs/models/CreateInternetServiceRequest.d.ts b/dist/cjs/models/CreateInternetServiceRequest.d.ts new file mode 100644 index 00000000..fff1cd57 --- /dev/null +++ b/dist/cjs/models/CreateInternetServiceRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateInternetServiceRequest + */ +export interface CreateInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateInternetServiceRequest + */ + dryRun?: boolean; +} +export declare function CreateInternetServiceRequestFromJSON(json: any): CreateInternetServiceRequest; +export declare function CreateInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInternetServiceRequest; +export declare function CreateInternetServiceRequestToJSON(value?: CreateInternetServiceRequest | null): any; diff --git a/dist/cjs/models/CreateInternetServiceRequest.js b/dist/cjs/models/CreateInternetServiceRequest.js new file mode 100644 index 00000000..cdbff8e8 --- /dev/null +++ b/dist/cjs/models/CreateInternetServiceRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateInternetServiceRequestToJSON = exports.CreateInternetServiceRequestFromJSONTyped = exports.CreateInternetServiceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateInternetServiceRequestFromJSON(json) { + return CreateInternetServiceRequestFromJSONTyped(json, false); +} +exports.CreateInternetServiceRequestFromJSON = CreateInternetServiceRequestFromJSON; +function CreateInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.CreateInternetServiceRequestFromJSONTyped = CreateInternetServiceRequestFromJSONTyped; +function CreateInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.CreateInternetServiceRequestToJSON = CreateInternetServiceRequestToJSON; diff --git a/dist/cjs/models/CreateInternetServiceResponse.d.ts b/dist/cjs/models/CreateInternetServiceResponse.d.ts new file mode 100644 index 00000000..15664e98 --- /dev/null +++ b/dist/cjs/models/CreateInternetServiceResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { InternetService } from './InternetService'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateInternetServiceResponse + */ +export interface CreateInternetServiceResponse { + /** + * + * @type {InternetService} + * @memberof CreateInternetServiceResponse + */ + internetService?: InternetService; + /** + * + * @type {ModelResponseContext} + * @memberof CreateInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateInternetServiceResponseFromJSON(json: any): CreateInternetServiceResponse; +export declare function CreateInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInternetServiceResponse; +export declare function CreateInternetServiceResponseToJSON(value?: CreateInternetServiceResponse | null): any; diff --git a/dist/cjs/models/CreateInternetServiceResponse.js b/dist/cjs/models/CreateInternetServiceResponse.js new file mode 100644 index 00000000..86c8b222 --- /dev/null +++ b/dist/cjs/models/CreateInternetServiceResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateInternetServiceResponseToJSON = exports.CreateInternetServiceResponseFromJSONTyped = exports.CreateInternetServiceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const InternetService_1 = require("./InternetService"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateInternetServiceResponseFromJSON(json) { + return CreateInternetServiceResponseFromJSONTyped(json, false); +} +exports.CreateInternetServiceResponseFromJSON = CreateInternetServiceResponseFromJSON; +function CreateInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetService': !(0, runtime_1.exists)(json, 'InternetService') ? undefined : (0, InternetService_1.InternetServiceFromJSON)(json['InternetService']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateInternetServiceResponseFromJSONTyped = CreateInternetServiceResponseFromJSONTyped; +function CreateInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetService': (0, InternetService_1.InternetServiceToJSON)(value.internetService), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateInternetServiceResponseToJSON = CreateInternetServiceResponseToJSON; diff --git a/dist/cjs/models/CreateKeypairRequest.d.ts b/dist/cjs/models/CreateKeypairRequest.d.ts new file mode 100644 index 00000000..a180877a --- /dev/null +++ b/dist/cjs/models/CreateKeypairRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateKeypairRequest + */ +export interface CreateKeypairRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateKeypairRequest + */ + dryRun?: boolean; + /** + * A unique name for the keypair, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). + * @type {string} + * @memberof CreateKeypairRequest + */ + keypairName: string; + /** + * The public key. It must be Base64-encoded. + * @type {string} + * @memberof CreateKeypairRequest + */ + publicKey?: string; +} +export declare function CreateKeypairRequestFromJSON(json: any): CreateKeypairRequest; +export declare function CreateKeypairRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeypairRequest; +export declare function CreateKeypairRequestToJSON(value?: CreateKeypairRequest | null): any; diff --git a/dist/cjs/models/CreateKeypairRequest.js b/dist/cjs/models/CreateKeypairRequest.js new file mode 100644 index 00000000..831a7005 --- /dev/null +++ b/dist/cjs/models/CreateKeypairRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateKeypairRequestToJSON = exports.CreateKeypairRequestFromJSONTyped = exports.CreateKeypairRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateKeypairRequestFromJSON(json) { + return CreateKeypairRequestFromJSONTyped(json, false); +} +exports.CreateKeypairRequestFromJSON = CreateKeypairRequestFromJSON; +function CreateKeypairRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'keypairName': json['KeypairName'], + 'publicKey': !(0, runtime_1.exists)(json, 'PublicKey') ? undefined : json['PublicKey'], + }; +} +exports.CreateKeypairRequestFromJSONTyped = CreateKeypairRequestFromJSONTyped; +function CreateKeypairRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'KeypairName': value.keypairName, + 'PublicKey': value.publicKey, + }; +} +exports.CreateKeypairRequestToJSON = CreateKeypairRequestToJSON; diff --git a/dist/cjs/models/CreateKeypairResponse.d.ts b/dist/cjs/models/CreateKeypairResponse.d.ts new file mode 100644 index 00000000..fe481746 --- /dev/null +++ b/dist/cjs/models/CreateKeypairResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { KeypairCreated } from './KeypairCreated'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateKeypairResponse + */ +export interface CreateKeypairResponse { + /** + * + * @type {KeypairCreated} + * @memberof CreateKeypairResponse + */ + keypair?: KeypairCreated; + /** + * + * @type {ModelResponseContext} + * @memberof CreateKeypairResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateKeypairResponseFromJSON(json: any): CreateKeypairResponse; +export declare function CreateKeypairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeypairResponse; +export declare function CreateKeypairResponseToJSON(value?: CreateKeypairResponse | null): any; diff --git a/dist/cjs/models/CreateKeypairResponse.js b/dist/cjs/models/CreateKeypairResponse.js new file mode 100644 index 00000000..905abf8b --- /dev/null +++ b/dist/cjs/models/CreateKeypairResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateKeypairResponseToJSON = exports.CreateKeypairResponseFromJSONTyped = exports.CreateKeypairResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const KeypairCreated_1 = require("./KeypairCreated"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateKeypairResponseFromJSON(json) { + return CreateKeypairResponseFromJSONTyped(json, false); +} +exports.CreateKeypairResponseFromJSON = CreateKeypairResponseFromJSON; +function CreateKeypairResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypair': !(0, runtime_1.exists)(json, 'Keypair') ? undefined : (0, KeypairCreated_1.KeypairCreatedFromJSON)(json['Keypair']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateKeypairResponseFromJSONTyped = CreateKeypairResponseFromJSONTyped; +function CreateKeypairResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Keypair': (0, KeypairCreated_1.KeypairCreatedToJSON)(value.keypair), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateKeypairResponseToJSON = CreateKeypairResponseToJSON; diff --git a/dist/cjs/models/CreateListenerRuleRequest.d.ts b/dist/cjs/models/CreateListenerRuleRequest.d.ts new file mode 100644 index 00000000..615f1db5 --- /dev/null +++ b/dist/cjs/models/CreateListenerRuleRequest.d.ts @@ -0,0 +1,47 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRuleForCreation } from './ListenerRuleForCreation'; +import { LoadBalancerLight } from './LoadBalancerLight'; +/** + * + * @export + * @interface CreateListenerRuleRequest + */ +export interface CreateListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateListenerRuleRequest + */ + dryRun?: boolean; + /** + * + * @type {LoadBalancerLight} + * @memberof CreateListenerRuleRequest + */ + listener: LoadBalancerLight; + /** + * + * @type {ListenerRuleForCreation} + * @memberof CreateListenerRuleRequest + */ + listenerRule: ListenerRuleForCreation; + /** + * The IDs of the backend VMs. + * @type {Array} + * @memberof CreateListenerRuleRequest + */ + vmIds: Array; +} +export declare function CreateListenerRuleRequestFromJSON(json: any): CreateListenerRuleRequest; +export declare function CreateListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateListenerRuleRequest; +export declare function CreateListenerRuleRequestToJSON(value?: CreateListenerRuleRequest | null): any; diff --git a/dist/cjs/models/CreateListenerRuleRequest.js b/dist/cjs/models/CreateListenerRuleRequest.js new file mode 100644 index 00000000..bdd87566 --- /dev/null +++ b/dist/cjs/models/CreateListenerRuleRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateListenerRuleRequestToJSON = exports.CreateListenerRuleRequestFromJSONTyped = exports.CreateListenerRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ListenerRuleForCreation_1 = require("./ListenerRuleForCreation"); +const LoadBalancerLight_1 = require("./LoadBalancerLight"); +function CreateListenerRuleRequestFromJSON(json) { + return CreateListenerRuleRequestFromJSONTyped(json, false); +} +exports.CreateListenerRuleRequestFromJSON = CreateListenerRuleRequestFromJSON; +function CreateListenerRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'listener': (0, LoadBalancerLight_1.LoadBalancerLightFromJSON)(json['Listener']), + 'listenerRule': (0, ListenerRuleForCreation_1.ListenerRuleForCreationFromJSON)(json['ListenerRule']), + 'vmIds': json['VmIds'], + }; +} +exports.CreateListenerRuleRequestFromJSONTyped = CreateListenerRuleRequestFromJSONTyped; +function CreateListenerRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Listener': (0, LoadBalancerLight_1.LoadBalancerLightToJSON)(value.listener), + 'ListenerRule': (0, ListenerRuleForCreation_1.ListenerRuleForCreationToJSON)(value.listenerRule), + 'VmIds': value.vmIds, + }; +} +exports.CreateListenerRuleRequestToJSON = CreateListenerRuleRequestToJSON; diff --git a/dist/cjs/models/CreateListenerRuleResponse.d.ts b/dist/cjs/models/CreateListenerRuleResponse.d.ts new file mode 100644 index 00000000..e8288f24 --- /dev/null +++ b/dist/cjs/models/CreateListenerRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRule } from './ListenerRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateListenerRuleResponse + */ +export interface CreateListenerRuleResponse { + /** + * + * @type {ListenerRule} + * @memberof CreateListenerRuleResponse + */ + listenerRule?: ListenerRule; + /** + * + * @type {ModelResponseContext} + * @memberof CreateListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateListenerRuleResponseFromJSON(json: any): CreateListenerRuleResponse; +export declare function CreateListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateListenerRuleResponse; +export declare function CreateListenerRuleResponseToJSON(value?: CreateListenerRuleResponse | null): any; diff --git a/dist/cjs/models/CreateListenerRuleResponse.js b/dist/cjs/models/CreateListenerRuleResponse.js new file mode 100644 index 00000000..01334645 --- /dev/null +++ b/dist/cjs/models/CreateListenerRuleResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateListenerRuleResponseToJSON = exports.CreateListenerRuleResponseFromJSONTyped = exports.CreateListenerRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ListenerRule_1 = require("./ListenerRule"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateListenerRuleResponseFromJSON(json) { + return CreateListenerRuleResponseFromJSONTyped(json, false); +} +exports.CreateListenerRuleResponseFromJSON = CreateListenerRuleResponseFromJSON; +function CreateListenerRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRule': !(0, runtime_1.exists)(json, 'ListenerRule') ? undefined : (0, ListenerRule_1.ListenerRuleFromJSON)(json['ListenerRule']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateListenerRuleResponseFromJSONTyped = CreateListenerRuleResponseFromJSONTyped; +function CreateListenerRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRule': (0, ListenerRule_1.ListenerRuleToJSON)(value.listenerRule), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateListenerRuleResponseToJSON = CreateListenerRuleResponseToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerListenersRequest.d.ts b/dist/cjs/models/CreateLoadBalancerListenersRequest.d.ts new file mode 100644 index 00000000..d9732f17 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerListenersRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerForCreation } from './ListenerForCreation'; +/** + * + * @export + * @interface CreateLoadBalancerListenersRequest + */ +export interface CreateLoadBalancerListenersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerListenersRequest + */ + dryRun?: boolean; + /** + * One or more listeners for the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerListenersRequest + */ + listeners: Array; + /** + * The name of the load balancer for which you want to create listeners. + * @type {string} + * @memberof CreateLoadBalancerListenersRequest + */ + loadBalancerName: string; +} +export declare function CreateLoadBalancerListenersRequestFromJSON(json: any): CreateLoadBalancerListenersRequest; +export declare function CreateLoadBalancerListenersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerListenersRequest; +export declare function CreateLoadBalancerListenersRequestToJSON(value?: CreateLoadBalancerListenersRequest | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerListenersRequest.js b/dist/cjs/models/CreateLoadBalancerListenersRequest.js new file mode 100644 index 00000000..fa1253ba --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerListenersRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerListenersRequestToJSON = exports.CreateLoadBalancerListenersRequestFromJSONTyped = exports.CreateLoadBalancerListenersRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ListenerForCreation_1 = require("./ListenerForCreation"); +function CreateLoadBalancerListenersRequestFromJSON(json) { + return CreateLoadBalancerListenersRequestFromJSONTyped(json, false); +} +exports.CreateLoadBalancerListenersRequestFromJSON = CreateLoadBalancerListenersRequestFromJSON; +function CreateLoadBalancerListenersRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'listeners': (json['Listeners'].map(ListenerForCreation_1.ListenerForCreationFromJSON)), + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.CreateLoadBalancerListenersRequestFromJSONTyped = CreateLoadBalancerListenersRequestFromJSONTyped; +function CreateLoadBalancerListenersRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Listeners': (value.listeners.map(ListenerForCreation_1.ListenerForCreationToJSON)), + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.CreateLoadBalancerListenersRequestToJSON = CreateLoadBalancerListenersRequestToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerListenersResponse.d.ts b/dist/cjs/models/CreateLoadBalancerListenersResponse.d.ts new file mode 100644 index 00000000..b4da3e39 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerListenersResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerListenersResponse + */ +export interface CreateLoadBalancerListenersResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerListenersResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerListenersResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerListenersResponseFromJSON(json: any): CreateLoadBalancerListenersResponse; +export declare function CreateLoadBalancerListenersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerListenersResponse; +export declare function CreateLoadBalancerListenersResponseToJSON(value?: CreateLoadBalancerListenersResponse | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerListenersResponse.js b/dist/cjs/models/CreateLoadBalancerListenersResponse.js new file mode 100644 index 00000000..938e8b94 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerListenersResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerListenersResponseToJSON = exports.CreateLoadBalancerListenersResponseFromJSONTyped = exports.CreateLoadBalancerListenersResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateLoadBalancerListenersResponseFromJSON(json) { + return CreateLoadBalancerListenersResponseFromJSONTyped(json, false); +} +exports.CreateLoadBalancerListenersResponseFromJSON = CreateLoadBalancerListenersResponseFromJSON; +function CreateLoadBalancerListenersResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !(0, runtime_1.exists)(json, 'LoadBalancer') ? undefined : (0, LoadBalancer_1.LoadBalancerFromJSON)(json['LoadBalancer']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateLoadBalancerListenersResponseFromJSONTyped = CreateLoadBalancerListenersResponseFromJSONTyped; +function CreateLoadBalancerListenersResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': (0, LoadBalancer_1.LoadBalancerToJSON)(value.loadBalancer), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateLoadBalancerListenersResponseToJSON = CreateLoadBalancerListenersResponseToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerPolicyRequest.d.ts b/dist/cjs/models/CreateLoadBalancerPolicyRequest.d.ts new file mode 100644 index 00000000..94046299 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerPolicyRequest.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateLoadBalancerPolicyRequest + */ +export interface CreateLoadBalancerPolicyRequest { + /** + * The lifetime of the cookie, in seconds. If not specified, the default value of this parameter is 1, which means that the sticky session lasts for the duration of the browser session. + * @type {number} + * @memberof CreateLoadBalancerPolicyRequest + */ + cookieExpirationPeriod?: number; + /** + * The name of the application cookie used for stickiness. This parameter is required if you create a stickiness policy based on an application-generated cookie. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + cookieName?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerPolicyRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to create a policy. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + loadBalancerName: string; + /** + * The name of the policy. This name must be unique and consist of alphanumeric characters and dashes (-). + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + policyName: string; + /** + * The type of stickiness policy you want to create: `app` or `load_balancer`. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + policyType: string; +} +export declare function CreateLoadBalancerPolicyRequestFromJSON(json: any): CreateLoadBalancerPolicyRequest; +export declare function CreateLoadBalancerPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerPolicyRequest; +export declare function CreateLoadBalancerPolicyRequestToJSON(value?: CreateLoadBalancerPolicyRequest | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerPolicyRequest.js b/dist/cjs/models/CreateLoadBalancerPolicyRequest.js new file mode 100644 index 00000000..deaa88ed --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerPolicyRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerPolicyRequestToJSON = exports.CreateLoadBalancerPolicyRequestFromJSONTyped = exports.CreateLoadBalancerPolicyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateLoadBalancerPolicyRequestFromJSON(json) { + return CreateLoadBalancerPolicyRequestFromJSONTyped(json, false); +} +exports.CreateLoadBalancerPolicyRequestFromJSON = CreateLoadBalancerPolicyRequestFromJSON; +function CreateLoadBalancerPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cookieExpirationPeriod': !(0, runtime_1.exists)(json, 'CookieExpirationPeriod') ? undefined : json['CookieExpirationPeriod'], + 'cookieName': !(0, runtime_1.exists)(json, 'CookieName') ? undefined : json['CookieName'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'policyName': json['PolicyName'], + 'policyType': json['PolicyType'], + }; +} +exports.CreateLoadBalancerPolicyRequestFromJSONTyped = CreateLoadBalancerPolicyRequestFromJSONTyped; +function CreateLoadBalancerPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CookieExpirationPeriod': value.cookieExpirationPeriod, + 'CookieName': value.cookieName, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'PolicyName': value.policyName, + 'PolicyType': value.policyType, + }; +} +exports.CreateLoadBalancerPolicyRequestToJSON = CreateLoadBalancerPolicyRequestToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerPolicyResponse.d.ts b/dist/cjs/models/CreateLoadBalancerPolicyResponse.d.ts new file mode 100644 index 00000000..cc125e83 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerPolicyResponse + */ +export interface CreateLoadBalancerPolicyResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerPolicyResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerPolicyResponseFromJSON(json: any): CreateLoadBalancerPolicyResponse; +export declare function CreateLoadBalancerPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerPolicyResponse; +export declare function CreateLoadBalancerPolicyResponseToJSON(value?: CreateLoadBalancerPolicyResponse | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerPolicyResponse.js b/dist/cjs/models/CreateLoadBalancerPolicyResponse.js new file mode 100644 index 00000000..c8c87602 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerPolicyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerPolicyResponseToJSON = exports.CreateLoadBalancerPolicyResponseFromJSONTyped = exports.CreateLoadBalancerPolicyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateLoadBalancerPolicyResponseFromJSON(json) { + return CreateLoadBalancerPolicyResponseFromJSONTyped(json, false); +} +exports.CreateLoadBalancerPolicyResponseFromJSON = CreateLoadBalancerPolicyResponseFromJSON; +function CreateLoadBalancerPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !(0, runtime_1.exists)(json, 'LoadBalancer') ? undefined : (0, LoadBalancer_1.LoadBalancerFromJSON)(json['LoadBalancer']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateLoadBalancerPolicyResponseFromJSONTyped = CreateLoadBalancerPolicyResponseFromJSONTyped; +function CreateLoadBalancerPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': (0, LoadBalancer_1.LoadBalancerToJSON)(value.loadBalancer), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateLoadBalancerPolicyResponseToJSON = CreateLoadBalancerPolicyResponseToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerRequest.d.ts b/dist/cjs/models/CreateLoadBalancerRequest.d.ts new file mode 100644 index 00000000..fb291971 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerRequest.d.ts @@ -0,0 +1,77 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerForCreation } from './ListenerForCreation'; +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface CreateLoadBalancerRequest + */ +export interface CreateLoadBalancerRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerRequest + */ + dryRun?: boolean; + /** + * One or more listeners to create. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + listeners: Array; + /** + * The unique name of the load balancer (32 alphanumeric or hyphen characters maximum, but cannot start or end with a hyphen). + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + loadBalancerName: string; + /** + * The type of load balancer: `internet-facing` or `internal`. Use this parameter only for load balancers in a Net. + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + loadBalancerType?: string; + /** + * (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated. + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + publicIp?: string; + /** + * (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + securityGroups?: Array; + /** + * (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + subnets?: Array; + /** + * (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + subregionNames?: Array; + /** + * One or more tags assigned to the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + tags?: Array; +} +export declare function CreateLoadBalancerRequestFromJSON(json: any): CreateLoadBalancerRequest; +export declare function CreateLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerRequest; +export declare function CreateLoadBalancerRequestToJSON(value?: CreateLoadBalancerRequest | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerRequest.js b/dist/cjs/models/CreateLoadBalancerRequest.js new file mode 100644 index 00000000..ead8c5b9 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerRequestToJSON = exports.CreateLoadBalancerRequestFromJSONTyped = exports.CreateLoadBalancerRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ListenerForCreation_1 = require("./ListenerForCreation"); +const ResourceTag_1 = require("./ResourceTag"); +function CreateLoadBalancerRequestFromJSON(json) { + return CreateLoadBalancerRequestFromJSONTyped(json, false); +} +exports.CreateLoadBalancerRequestFromJSON = CreateLoadBalancerRequestFromJSON; +function CreateLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'listeners': (json['Listeners'].map(ListenerForCreation_1.ListenerForCreationFromJSON)), + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerType': !(0, runtime_1.exists)(json, 'LoadBalancerType') ? undefined : json['LoadBalancerType'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'subnets': !(0, runtime_1.exists)(json, 'Subnets') ? undefined : json['Subnets'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.CreateLoadBalancerRequestFromJSONTyped = CreateLoadBalancerRequestFromJSONTyped; +function CreateLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Listeners': (value.listeners.map(ListenerForCreation_1.ListenerForCreationToJSON)), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerType': value.loadBalancerType, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'Subnets': value.subnets, + 'SubregionNames': value.subregionNames, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.CreateLoadBalancerRequestToJSON = CreateLoadBalancerRequestToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerResponse.d.ts b/dist/cjs/models/CreateLoadBalancerResponse.d.ts new file mode 100644 index 00000000..786282b9 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerResponse + */ +export interface CreateLoadBalancerResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerResponseFromJSON(json: any): CreateLoadBalancerResponse; +export declare function CreateLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerResponse; +export declare function CreateLoadBalancerResponseToJSON(value?: CreateLoadBalancerResponse | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerResponse.js b/dist/cjs/models/CreateLoadBalancerResponse.js new file mode 100644 index 00000000..e18d70bd --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerResponseToJSON = exports.CreateLoadBalancerResponseFromJSONTyped = exports.CreateLoadBalancerResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateLoadBalancerResponseFromJSON(json) { + return CreateLoadBalancerResponseFromJSONTyped(json, false); +} +exports.CreateLoadBalancerResponseFromJSON = CreateLoadBalancerResponseFromJSON; +function CreateLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !(0, runtime_1.exists)(json, 'LoadBalancer') ? undefined : (0, LoadBalancer_1.LoadBalancerFromJSON)(json['LoadBalancer']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateLoadBalancerResponseFromJSONTyped = CreateLoadBalancerResponseFromJSONTyped; +function CreateLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': (0, LoadBalancer_1.LoadBalancerToJSON)(value.loadBalancer), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateLoadBalancerResponseToJSON = CreateLoadBalancerResponseToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerTagsRequest.d.ts b/dist/cjs/models/CreateLoadBalancerTagsRequest.d.ts new file mode 100644 index 00000000..fbf41a1d --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface CreateLoadBalancerTagsRequest + */ +export interface CreateLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof CreateLoadBalancerTagsRequest + */ + loadBalancerNames: Array; + /** + * One or more tags to add to the specified load balancers. + * @type {Array} + * @memberof CreateLoadBalancerTagsRequest + */ + tags: Array; +} +export declare function CreateLoadBalancerTagsRequestFromJSON(json: any): CreateLoadBalancerTagsRequest; +export declare function CreateLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerTagsRequest; +export declare function CreateLoadBalancerTagsRequestToJSON(value?: CreateLoadBalancerTagsRequest | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerTagsRequest.js b/dist/cjs/models/CreateLoadBalancerTagsRequest.js new file mode 100644 index 00000000..6ef129fb --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerTagsRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerTagsRequestToJSON = exports.CreateLoadBalancerTagsRequestFromJSONTyped = exports.CreateLoadBalancerTagsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function CreateLoadBalancerTagsRequestFromJSON(json) { + return CreateLoadBalancerTagsRequestFromJSONTyped(json, false); +} +exports.CreateLoadBalancerTagsRequestFromJSON = CreateLoadBalancerTagsRequestFromJSON; +function CreateLoadBalancerTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + 'tags': (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.CreateLoadBalancerTagsRequestFromJSONTyped = CreateLoadBalancerTagsRequestFromJSONTyped; +function CreateLoadBalancerTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + 'Tags': (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.CreateLoadBalancerTagsRequestToJSON = CreateLoadBalancerTagsRequestToJSON; diff --git a/dist/cjs/models/CreateLoadBalancerTagsResponse.d.ts b/dist/cjs/models/CreateLoadBalancerTagsResponse.d.ts new file mode 100644 index 00000000..9297bab0 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerTagsResponse + */ +export interface CreateLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerTagsResponseFromJSON(json: any): CreateLoadBalancerTagsResponse; +export declare function CreateLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerTagsResponse; +export declare function CreateLoadBalancerTagsResponseToJSON(value?: CreateLoadBalancerTagsResponse | null): any; diff --git a/dist/cjs/models/CreateLoadBalancerTagsResponse.js b/dist/cjs/models/CreateLoadBalancerTagsResponse.js new file mode 100644 index 00000000..403f3241 --- /dev/null +++ b/dist/cjs/models/CreateLoadBalancerTagsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateLoadBalancerTagsResponseToJSON = exports.CreateLoadBalancerTagsResponseFromJSONTyped = exports.CreateLoadBalancerTagsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateLoadBalancerTagsResponseFromJSON(json) { + return CreateLoadBalancerTagsResponseFromJSONTyped(json, false); +} +exports.CreateLoadBalancerTagsResponseFromJSON = CreateLoadBalancerTagsResponseFromJSON; +function CreateLoadBalancerTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateLoadBalancerTagsResponseFromJSONTyped = CreateLoadBalancerTagsResponseFromJSONTyped; +function CreateLoadBalancerTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateLoadBalancerTagsResponseToJSON = CreateLoadBalancerTagsResponseToJSON; diff --git a/dist/cjs/models/CreateNatServiceRequest.d.ts b/dist/cjs/models/CreateNatServiceRequest.d.ts new file mode 100644 index 00000000..528e76d2 --- /dev/null +++ b/dist/cjs/models/CreateNatServiceRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNatServiceRequest + */ +export interface CreateNatServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNatServiceRequest + */ + dryRun?: boolean; + /** + * The allocation ID of the public IP to associate with the NAT service.
+ * If the public IP is already associated with another resource, you must first disassociate it. + * @type {string} + * @memberof CreateNatServiceRequest + */ + publicIpId: string; + /** + * The ID of the Subnet in which you want to create the NAT service. + * @type {string} + * @memberof CreateNatServiceRequest + */ + subnetId: string; +} +export declare function CreateNatServiceRequestFromJSON(json: any): CreateNatServiceRequest; +export declare function CreateNatServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNatServiceRequest; +export declare function CreateNatServiceRequestToJSON(value?: CreateNatServiceRequest | null): any; diff --git a/dist/cjs/models/CreateNatServiceRequest.js b/dist/cjs/models/CreateNatServiceRequest.js new file mode 100644 index 00000000..0cd72fd6 --- /dev/null +++ b/dist/cjs/models/CreateNatServiceRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNatServiceRequestToJSON = exports.CreateNatServiceRequestFromJSONTyped = exports.CreateNatServiceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateNatServiceRequestFromJSON(json) { + return CreateNatServiceRequestFromJSONTyped(json, false); +} +exports.CreateNatServiceRequestFromJSON = CreateNatServiceRequestFromJSON; +function CreateNatServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIpId': json['PublicIpId'], + 'subnetId': json['SubnetId'], + }; +} +exports.CreateNatServiceRequestFromJSONTyped = CreateNatServiceRequestFromJSONTyped; +function CreateNatServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'PublicIpId': value.publicIpId, + 'SubnetId': value.subnetId, + }; +} +exports.CreateNatServiceRequestToJSON = CreateNatServiceRequestToJSON; diff --git a/dist/cjs/models/CreateNatServiceResponse.d.ts b/dist/cjs/models/CreateNatServiceResponse.d.ts new file mode 100644 index 00000000..bce05f0a --- /dev/null +++ b/dist/cjs/models/CreateNatServiceResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NatService } from './NatService'; +/** + * + * @export + * @interface CreateNatServiceResponse + */ +export interface CreateNatServiceResponse { + /** + * + * @type {NatService} + * @memberof CreateNatServiceResponse + */ + natService?: NatService; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNatServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNatServiceResponseFromJSON(json: any): CreateNatServiceResponse; +export declare function CreateNatServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNatServiceResponse; +export declare function CreateNatServiceResponseToJSON(value?: CreateNatServiceResponse | null): any; diff --git a/dist/cjs/models/CreateNatServiceResponse.js b/dist/cjs/models/CreateNatServiceResponse.js new file mode 100644 index 00000000..7d5c83a4 --- /dev/null +++ b/dist/cjs/models/CreateNatServiceResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNatServiceResponseToJSON = exports.CreateNatServiceResponseFromJSONTyped = exports.CreateNatServiceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NatService_1 = require("./NatService"); +function CreateNatServiceResponseFromJSON(json) { + return CreateNatServiceResponseFromJSONTyped(json, false); +} +exports.CreateNatServiceResponseFromJSON = CreateNatServiceResponseFromJSON; +function CreateNatServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natService': !(0, runtime_1.exists)(json, 'NatService') ? undefined : (0, NatService_1.NatServiceFromJSON)(json['NatService']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateNatServiceResponseFromJSONTyped = CreateNatServiceResponseFromJSONTyped; +function CreateNatServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatService': (0, NatService_1.NatServiceToJSON)(value.natService), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateNatServiceResponseToJSON = CreateNatServiceResponseToJSON; diff --git a/dist/cjs/models/CreateNetAccessPointRequest.d.ts b/dist/cjs/models/CreateNetAccessPointRequest.d.ts new file mode 100644 index 00000000..2218b05e --- /dev/null +++ b/dist/cjs/models/CreateNetAccessPointRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNetAccessPointRequest + */ +export interface CreateNetAccessPointRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net. + * @type {string} + * @memberof CreateNetAccessPointRequest + */ + netId: string; + /** + * One or more IDs of route tables to use for the connection. + * @type {Array} + * @memberof CreateNetAccessPointRequest + */ + routeTableIds?: Array; + /** + * The name of the service (in the format `com.outscale.region.service`). + * @type {string} + * @memberof CreateNetAccessPointRequest + */ + serviceName: string; +} +export declare function CreateNetAccessPointRequestFromJSON(json: any): CreateNetAccessPointRequest; +export declare function CreateNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetAccessPointRequest; +export declare function CreateNetAccessPointRequestToJSON(value?: CreateNetAccessPointRequest | null): any; diff --git a/dist/cjs/models/CreateNetAccessPointRequest.js b/dist/cjs/models/CreateNetAccessPointRequest.js new file mode 100644 index 00000000..85f1a1ac --- /dev/null +++ b/dist/cjs/models/CreateNetAccessPointRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNetAccessPointRequestToJSON = exports.CreateNetAccessPointRequestFromJSONTyped = exports.CreateNetAccessPointRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateNetAccessPointRequestFromJSON(json) { + return CreateNetAccessPointRequestFromJSONTyped(json, false); +} +exports.CreateNetAccessPointRequestFromJSON = CreateNetAccessPointRequestFromJSON; +function CreateNetAccessPointRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'routeTableIds': !(0, runtime_1.exists)(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'serviceName': json['ServiceName'], + }; +} +exports.CreateNetAccessPointRequestFromJSONTyped = CreateNetAccessPointRequestFromJSONTyped; +function CreateNetAccessPointRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'RouteTableIds': value.routeTableIds, + 'ServiceName': value.serviceName, + }; +} +exports.CreateNetAccessPointRequestToJSON = CreateNetAccessPointRequestToJSON; diff --git a/dist/cjs/models/CreateNetAccessPointResponse.d.ts b/dist/cjs/models/CreateNetAccessPointResponse.d.ts new file mode 100644 index 00000000..b58cc9a1 --- /dev/null +++ b/dist/cjs/models/CreateNetAccessPointResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetAccessPoint } from './NetAccessPoint'; +/** + * + * @export + * @interface CreateNetAccessPointResponse + */ +export interface CreateNetAccessPointResponse { + /** + * + * @type {NetAccessPoint} + * @memberof CreateNetAccessPointResponse + */ + netAccessPoint?: NetAccessPoint; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNetAccessPointResponseFromJSON(json: any): CreateNetAccessPointResponse; +export declare function CreateNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetAccessPointResponse; +export declare function CreateNetAccessPointResponseToJSON(value?: CreateNetAccessPointResponse | null): any; diff --git a/dist/cjs/models/CreateNetAccessPointResponse.js b/dist/cjs/models/CreateNetAccessPointResponse.js new file mode 100644 index 00000000..40fda7ba --- /dev/null +++ b/dist/cjs/models/CreateNetAccessPointResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNetAccessPointResponseToJSON = exports.CreateNetAccessPointResponseFromJSONTyped = exports.CreateNetAccessPointResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetAccessPoint_1 = require("./NetAccessPoint"); +function CreateNetAccessPointResponseFromJSON(json) { + return CreateNetAccessPointResponseFromJSONTyped(json, false); +} +exports.CreateNetAccessPointResponseFromJSON = CreateNetAccessPointResponseFromJSON; +function CreateNetAccessPointResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPoint': !(0, runtime_1.exists)(json, 'NetAccessPoint') ? undefined : (0, NetAccessPoint_1.NetAccessPointFromJSON)(json['NetAccessPoint']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateNetAccessPointResponseFromJSONTyped = CreateNetAccessPointResponseFromJSONTyped; +function CreateNetAccessPointResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPoint': (0, NetAccessPoint_1.NetAccessPointToJSON)(value.netAccessPoint), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateNetAccessPointResponseToJSON = CreateNetAccessPointResponseToJSON; diff --git a/dist/cjs/models/CreateNetPeeringRequest.d.ts b/dist/cjs/models/CreateNetPeeringRequest.d.ts new file mode 100644 index 00000000..b7f4a51e --- /dev/null +++ b/dist/cjs/models/CreateNetPeeringRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNetPeeringRequest + */ +export interface CreateNetPeeringRequest { + /** + * The ID of the Net you want to connect with. + * @type {string} + * @memberof CreateNetPeeringRequest + */ + accepterNetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net you send the peering request from. + * @type {string} + * @memberof CreateNetPeeringRequest + */ + sourceNetId: string; +} +export declare function CreateNetPeeringRequestFromJSON(json: any): CreateNetPeeringRequest; +export declare function CreateNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetPeeringRequest; +export declare function CreateNetPeeringRequestToJSON(value?: CreateNetPeeringRequest | null): any; diff --git a/dist/cjs/models/CreateNetPeeringRequest.js b/dist/cjs/models/CreateNetPeeringRequest.js new file mode 100644 index 00000000..128e723a --- /dev/null +++ b/dist/cjs/models/CreateNetPeeringRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNetPeeringRequestToJSON = exports.CreateNetPeeringRequestFromJSONTyped = exports.CreateNetPeeringRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateNetPeeringRequestFromJSON(json) { + return CreateNetPeeringRequestFromJSONTyped(json, false); +} +exports.CreateNetPeeringRequestFromJSON = CreateNetPeeringRequestFromJSON; +function CreateNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accepterNetId': json['AccepterNetId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'sourceNetId': json['SourceNetId'], + }; +} +exports.CreateNetPeeringRequestFromJSONTyped = CreateNetPeeringRequestFromJSONTyped; +function CreateNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccepterNetId': value.accepterNetId, + 'DryRun': value.dryRun, + 'SourceNetId': value.sourceNetId, + }; +} +exports.CreateNetPeeringRequestToJSON = CreateNetPeeringRequestToJSON; diff --git a/dist/cjs/models/CreateNetPeeringResponse.d.ts b/dist/cjs/models/CreateNetPeeringResponse.d.ts new file mode 100644 index 00000000..bdc1d124 --- /dev/null +++ b/dist/cjs/models/CreateNetPeeringResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetPeering } from './NetPeering'; +/** + * + * @export + * @interface CreateNetPeeringResponse + */ +export interface CreateNetPeeringResponse { + /** + * + * @type {NetPeering} + * @memberof CreateNetPeeringResponse + */ + netPeering?: NetPeering; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNetPeeringResponseFromJSON(json: any): CreateNetPeeringResponse; +export declare function CreateNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetPeeringResponse; +export declare function CreateNetPeeringResponseToJSON(value?: CreateNetPeeringResponse | null): any; diff --git a/dist/cjs/models/CreateNetPeeringResponse.js b/dist/cjs/models/CreateNetPeeringResponse.js new file mode 100644 index 00000000..613ae5ae --- /dev/null +++ b/dist/cjs/models/CreateNetPeeringResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNetPeeringResponseToJSON = exports.CreateNetPeeringResponseFromJSONTyped = exports.CreateNetPeeringResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetPeering_1 = require("./NetPeering"); +function CreateNetPeeringResponseFromJSON(json) { + return CreateNetPeeringResponseFromJSONTyped(json, false); +} +exports.CreateNetPeeringResponseFromJSON = CreateNetPeeringResponseFromJSON; +function CreateNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netPeering': !(0, runtime_1.exists)(json, 'NetPeering') ? undefined : (0, NetPeering_1.NetPeeringFromJSON)(json['NetPeering']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateNetPeeringResponseFromJSONTyped = CreateNetPeeringResponseFromJSONTyped; +function CreateNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetPeering': (0, NetPeering_1.NetPeeringToJSON)(value.netPeering), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateNetPeeringResponseToJSON = CreateNetPeeringResponseToJSON; diff --git a/dist/cjs/models/CreateNetRequest.d.ts b/dist/cjs/models/CreateNetRequest.d.ts new file mode 100644 index 00000000..02b2207b --- /dev/null +++ b/dist/cjs/models/CreateNetRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNetRequest + */ +export interface CreateNetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetRequest + */ + dryRun?: boolean; + /** + * The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof CreateNetRequest + */ + ipRange: string; + /** + * The tenancy options for the VMs (`default` if a VM created in a Net can be launched with any tenancy, `dedicated` if it can be launched with dedicated tenancy VMs running on single-tenant hardware). + * @type {string} + * @memberof CreateNetRequest + */ + tenancy?: string; +} +export declare function CreateNetRequestFromJSON(json: any): CreateNetRequest; +export declare function CreateNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetRequest; +export declare function CreateNetRequestToJSON(value?: CreateNetRequest | null): any; diff --git a/dist/cjs/models/CreateNetRequest.js b/dist/cjs/models/CreateNetRequest.js new file mode 100644 index 00000000..d1025027 --- /dev/null +++ b/dist/cjs/models/CreateNetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNetRequestToJSON = exports.CreateNetRequestFromJSONTyped = exports.CreateNetRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateNetRequestFromJSON(json) { + return CreateNetRequestFromJSONTyped(json, false); +} +exports.CreateNetRequestFromJSON = CreateNetRequestFromJSON; +function CreateNetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRange': json['IpRange'], + 'tenancy': !(0, runtime_1.exists)(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} +exports.CreateNetRequestFromJSONTyped = CreateNetRequestFromJSONTyped; +function CreateNetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'IpRange': value.ipRange, + 'Tenancy': value.tenancy, + }; +} +exports.CreateNetRequestToJSON = CreateNetRequestToJSON; diff --git a/dist/cjs/models/CreateNetResponse.d.ts b/dist/cjs/models/CreateNetResponse.d.ts new file mode 100644 index 00000000..33556dbe --- /dev/null +++ b/dist/cjs/models/CreateNetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Net } from './Net'; +/** + * + * @export + * @interface CreateNetResponse + */ +export interface CreateNetResponse { + /** + * + * @type {Net} + * @memberof CreateNetResponse + */ + net?: Net; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNetResponseFromJSON(json: any): CreateNetResponse; +export declare function CreateNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetResponse; +export declare function CreateNetResponseToJSON(value?: CreateNetResponse | null): any; diff --git a/dist/cjs/models/CreateNetResponse.js b/dist/cjs/models/CreateNetResponse.js new file mode 100644 index 00000000..d0d29ecd --- /dev/null +++ b/dist/cjs/models/CreateNetResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNetResponseToJSON = exports.CreateNetResponseFromJSONTyped = exports.CreateNetResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Net_1 = require("./Net"); +function CreateNetResponseFromJSON(json) { + return CreateNetResponseFromJSONTyped(json, false); +} +exports.CreateNetResponseFromJSON = CreateNetResponseFromJSON; +function CreateNetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'net': !(0, runtime_1.exists)(json, 'Net') ? undefined : (0, Net_1.NetFromJSON)(json['Net']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateNetResponseFromJSONTyped = CreateNetResponseFromJSONTyped; +function CreateNetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Net': (0, Net_1.NetToJSON)(value.net), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateNetResponseToJSON = CreateNetResponseToJSON; diff --git a/dist/cjs/models/CreateNicRequest.d.ts b/dist/cjs/models/CreateNicRequest.d.ts new file mode 100644 index 00000000..cd224dc7 --- /dev/null +++ b/dist/cjs/models/CreateNicRequest.d.ts @@ -0,0 +1,54 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PrivateIpLight } from './PrivateIpLight'; +/** + * + * @export + * @interface CreateNicRequest + */ +export interface CreateNicRequest { + /** + * A description for the NIC. + * @type {string} + * @memberof CreateNicRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNicRequest + */ + dryRun?: boolean; + /** + * The primary private IP for the NIC.
+ * This IP must be within the IP range of the Subnet that you specify with the `SubnetId` attribute.
+ * If you do not specify this attribute, a random private IP is selected within the IP range of the Subnet. + * @type {Array} + * @memberof CreateNicRequest + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof CreateNicRequest + */ + securityGroupIds?: Array; + /** + * The ID of the Subnet in which you want to create the NIC. + * @type {string} + * @memberof CreateNicRequest + */ + subnetId: string; +} +export declare function CreateNicRequestFromJSON(json: any): CreateNicRequest; +export declare function CreateNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNicRequest; +export declare function CreateNicRequestToJSON(value?: CreateNicRequest | null): any; diff --git a/dist/cjs/models/CreateNicRequest.js b/dist/cjs/models/CreateNicRequest.js new file mode 100644 index 00000000..5773446d --- /dev/null +++ b/dist/cjs/models/CreateNicRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNicRequestToJSON = exports.CreateNicRequestFromJSONTyped = exports.CreateNicRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PrivateIpLight_1 = require("./PrivateIpLight"); +function CreateNicRequestFromJSON(json) { + return CreateNicRequestFromJSONTyped(json, false); +} +exports.CreateNicRequestFromJSON = CreateNicRequestFromJSON; +function CreateNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpLight_1.PrivateIpLightFromJSON)), + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'subnetId': json['SubnetId'], + }; +} +exports.CreateNicRequestFromJSONTyped = CreateNicRequestFromJSONTyped; +function CreateNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpLight_1.PrivateIpLightToJSON)), + 'SecurityGroupIds': value.securityGroupIds, + 'SubnetId': value.subnetId, + }; +} +exports.CreateNicRequestToJSON = CreateNicRequestToJSON; diff --git a/dist/cjs/models/CreateNicResponse.d.ts b/dist/cjs/models/CreateNicResponse.d.ts new file mode 100644 index 00000000..fa42b499 --- /dev/null +++ b/dist/cjs/models/CreateNicResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Nic } from './Nic'; +/** + * + * @export + * @interface CreateNicResponse + */ +export interface CreateNicResponse { + /** + * + * @type {Nic} + * @memberof CreateNicResponse + */ + nic?: Nic; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNicResponseFromJSON(json: any): CreateNicResponse; +export declare function CreateNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNicResponse; +export declare function CreateNicResponseToJSON(value?: CreateNicResponse | null): any; diff --git a/dist/cjs/models/CreateNicResponse.js b/dist/cjs/models/CreateNicResponse.js new file mode 100644 index 00000000..3afc24bf --- /dev/null +++ b/dist/cjs/models/CreateNicResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateNicResponseToJSON = exports.CreateNicResponseFromJSONTyped = exports.CreateNicResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Nic_1 = require("./Nic"); +function CreateNicResponseFromJSON(json) { + return CreateNicResponseFromJSONTyped(json, false); +} +exports.CreateNicResponseFromJSON = CreateNicResponseFromJSON; +function CreateNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nic': !(0, runtime_1.exists)(json, 'Nic') ? undefined : (0, Nic_1.NicFromJSON)(json['Nic']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateNicResponseFromJSONTyped = CreateNicResponseFromJSONTyped; +function CreateNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nic': (0, Nic_1.NicToJSON)(value.nic), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateNicResponseToJSON = CreateNicResponseToJSON; diff --git a/dist/cjs/models/CreatePublicIpRequest.d.ts b/dist/cjs/models/CreatePublicIpRequest.d.ts new file mode 100644 index 00000000..cdf8d204 --- /dev/null +++ b/dist/cjs/models/CreatePublicIpRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreatePublicIpRequest + */ +export interface CreatePublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreatePublicIpRequest + */ + dryRun?: boolean; +} +export declare function CreatePublicIpRequestFromJSON(json: any): CreatePublicIpRequest; +export declare function CreatePublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePublicIpRequest; +export declare function CreatePublicIpRequestToJSON(value?: CreatePublicIpRequest | null): any; diff --git a/dist/cjs/models/CreatePublicIpRequest.js b/dist/cjs/models/CreatePublicIpRequest.js new file mode 100644 index 00000000..cf116f14 --- /dev/null +++ b/dist/cjs/models/CreatePublicIpRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreatePublicIpRequestToJSON = exports.CreatePublicIpRequestFromJSONTyped = exports.CreatePublicIpRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreatePublicIpRequestFromJSON(json) { + return CreatePublicIpRequestFromJSONTyped(json, false); +} +exports.CreatePublicIpRequestFromJSON = CreatePublicIpRequestFromJSON; +function CreatePublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.CreatePublicIpRequestFromJSONTyped = CreatePublicIpRequestFromJSONTyped; +function CreatePublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.CreatePublicIpRequestToJSON = CreatePublicIpRequestToJSON; diff --git a/dist/cjs/models/CreatePublicIpResponse.d.ts b/dist/cjs/models/CreatePublicIpResponse.d.ts new file mode 100644 index 00000000..fd509a86 --- /dev/null +++ b/dist/cjs/models/CreatePublicIpResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { PublicIp } from './PublicIp'; +/** + * + * @export + * @interface CreatePublicIpResponse + */ +export interface CreatePublicIpResponse { + /** + * + * @type {PublicIp} + * @memberof CreatePublicIpResponse + */ + publicIp?: PublicIp; + /** + * + * @type {ModelResponseContext} + * @memberof CreatePublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreatePublicIpResponseFromJSON(json: any): CreatePublicIpResponse; +export declare function CreatePublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePublicIpResponse; +export declare function CreatePublicIpResponseToJSON(value?: CreatePublicIpResponse | null): any; diff --git a/dist/cjs/models/CreatePublicIpResponse.js b/dist/cjs/models/CreatePublicIpResponse.js new file mode 100644 index 00000000..63b7cc38 --- /dev/null +++ b/dist/cjs/models/CreatePublicIpResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreatePublicIpResponseToJSON = exports.CreatePublicIpResponseFromJSONTyped = exports.CreatePublicIpResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const PublicIp_1 = require("./PublicIp"); +function CreatePublicIpResponseFromJSON(json) { + return CreatePublicIpResponseFromJSONTyped(json, false); +} +exports.CreatePublicIpResponseFromJSON = CreatePublicIpResponseFromJSON; +function CreatePublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : (0, PublicIp_1.PublicIpFromJSON)(json['PublicIp']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreatePublicIpResponseFromJSONTyped = CreatePublicIpResponseFromJSONTyped; +function CreatePublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIp': (0, PublicIp_1.PublicIpToJSON)(value.publicIp), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreatePublicIpResponseToJSON = CreatePublicIpResponseToJSON; diff --git a/dist/cjs/models/CreateRouteRequest.d.ts b/dist/cjs/models/CreateRouteRequest.d.ts new file mode 100644 index 00000000..80f5af61 --- /dev/null +++ b/dist/cjs/models/CreateRouteRequest.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateRouteRequest + */ +export interface CreateRouteRequest { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof CreateRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateRouteRequest + */ + dryRun?: boolean; + /** + * The ID of an Internet service or virtual gateway attached to your Net. + * @type {string} + * @memberof CreateRouteRequest + */ + gatewayId?: string; + /** + * The ID of a NAT service. + * @type {string} + * @memberof CreateRouteRequest + */ + natServiceId?: string; + /** + * The ID of a Net peering connection. + * @type {string} + * @memberof CreateRouteRequest + */ + netPeeringId?: string; + /** + * The ID of a NIC. + * @type {string} + * @memberof CreateRouteRequest + */ + nicId?: string; + /** + * The ID of the route table for which you want to create a route. + * @type {string} + * @memberof CreateRouteRequest + */ + routeTableId: string; + /** + * The ID of a NAT VM in your Net (attached to exactly one NIC). + * @type {string} + * @memberof CreateRouteRequest + */ + vmId?: string; +} +export declare function CreateRouteRequestFromJSON(json: any): CreateRouteRequest; +export declare function CreateRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteRequest; +export declare function CreateRouteRequestToJSON(value?: CreateRouteRequest | null): any; diff --git a/dist/cjs/models/CreateRouteRequest.js b/dist/cjs/models/CreateRouteRequest.js new file mode 100644 index 00000000..d9a6e91c --- /dev/null +++ b/dist/cjs/models/CreateRouteRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateRouteRequestToJSON = exports.CreateRouteRequestFromJSONTyped = exports.CreateRouteRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateRouteRequestFromJSON(json) { + return CreateRouteRequestFromJSONTyped(json, false); +} +exports.CreateRouteRequestFromJSON = CreateRouteRequestFromJSON; +function CreateRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'gatewayId': !(0, runtime_1.exists)(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !(0, runtime_1.exists)(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netPeeringId': !(0, runtime_1.exists)(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'routeTableId': json['RouteTableId'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.CreateRouteRequestFromJSONTyped = CreateRouteRequestFromJSONTyped; +function CreateRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'RouteTableId': value.routeTableId, + 'VmId': value.vmId, + }; +} +exports.CreateRouteRequestToJSON = CreateRouteRequestToJSON; diff --git a/dist/cjs/models/CreateRouteResponse.d.ts b/dist/cjs/models/CreateRouteResponse.d.ts new file mode 100644 index 00000000..05c0b647 --- /dev/null +++ b/dist/cjs/models/CreateRouteResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface CreateRouteResponse + */ +export interface CreateRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof CreateRouteResponse + */ + routeTable?: RouteTable; +} +export declare function CreateRouteResponseFromJSON(json: any): CreateRouteResponse; +export declare function CreateRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteResponse; +export declare function CreateRouteResponseToJSON(value?: CreateRouteResponse | null): any; diff --git a/dist/cjs/models/CreateRouteResponse.js b/dist/cjs/models/CreateRouteResponse.js new file mode 100644 index 00000000..7c3af096 --- /dev/null +++ b/dist/cjs/models/CreateRouteResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateRouteResponseToJSON = exports.CreateRouteResponseFromJSONTyped = exports.CreateRouteResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const RouteTable_1 = require("./RouteTable"); +function CreateRouteResponseFromJSON(json) { + return CreateRouteResponseFromJSONTyped(json, false); +} +exports.CreateRouteResponseFromJSON = CreateRouteResponseFromJSON; +function CreateRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'routeTable': !(0, runtime_1.exists)(json, 'RouteTable') ? undefined : (0, RouteTable_1.RouteTableFromJSON)(json['RouteTable']), + }; +} +exports.CreateRouteResponseFromJSONTyped = CreateRouteResponseFromJSONTyped; +function CreateRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'RouteTable': (0, RouteTable_1.RouteTableToJSON)(value.routeTable), + }; +} +exports.CreateRouteResponseToJSON = CreateRouteResponseToJSON; diff --git a/dist/cjs/models/CreateRouteTableRequest.d.ts b/dist/cjs/models/CreateRouteTableRequest.d.ts new file mode 100644 index 00000000..88ce01e1 --- /dev/null +++ b/dist/cjs/models/CreateRouteTableRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateRouteTableRequest + */ +export interface CreateRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the Net for which you want to create a route table. + * @type {string} + * @memberof CreateRouteTableRequest + */ + netId: string; +} +export declare function CreateRouteTableRequestFromJSON(json: any): CreateRouteTableRequest; +export declare function CreateRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteTableRequest; +export declare function CreateRouteTableRequestToJSON(value?: CreateRouteTableRequest | null): any; diff --git a/dist/cjs/models/CreateRouteTableRequest.js b/dist/cjs/models/CreateRouteTableRequest.js new file mode 100644 index 00000000..b23459b2 --- /dev/null +++ b/dist/cjs/models/CreateRouteTableRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateRouteTableRequestToJSON = exports.CreateRouteTableRequestFromJSONTyped = exports.CreateRouteTableRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateRouteTableRequestFromJSON(json) { + return CreateRouteTableRequestFromJSONTyped(json, false); +} +exports.CreateRouteTableRequestFromJSON = CreateRouteTableRequestFromJSON; +function CreateRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} +exports.CreateRouteTableRequestFromJSONTyped = CreateRouteTableRequestFromJSONTyped; +function CreateRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} +exports.CreateRouteTableRequestToJSON = CreateRouteTableRequestToJSON; diff --git a/dist/cjs/models/CreateRouteTableResponse.d.ts b/dist/cjs/models/CreateRouteTableResponse.d.ts new file mode 100644 index 00000000..a448c859 --- /dev/null +++ b/dist/cjs/models/CreateRouteTableResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface CreateRouteTableResponse + */ +export interface CreateRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateRouteTableResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof CreateRouteTableResponse + */ + routeTable?: RouteTable; +} +export declare function CreateRouteTableResponseFromJSON(json: any): CreateRouteTableResponse; +export declare function CreateRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteTableResponse; +export declare function CreateRouteTableResponseToJSON(value?: CreateRouteTableResponse | null): any; diff --git a/dist/cjs/models/CreateRouteTableResponse.js b/dist/cjs/models/CreateRouteTableResponse.js new file mode 100644 index 00000000..dc3623ad --- /dev/null +++ b/dist/cjs/models/CreateRouteTableResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateRouteTableResponseToJSON = exports.CreateRouteTableResponseFromJSONTyped = exports.CreateRouteTableResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const RouteTable_1 = require("./RouteTable"); +function CreateRouteTableResponseFromJSON(json) { + return CreateRouteTableResponseFromJSONTyped(json, false); +} +exports.CreateRouteTableResponseFromJSON = CreateRouteTableResponseFromJSON; +function CreateRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'routeTable': !(0, runtime_1.exists)(json, 'RouteTable') ? undefined : (0, RouteTable_1.RouteTableFromJSON)(json['RouteTable']), + }; +} +exports.CreateRouteTableResponseFromJSONTyped = CreateRouteTableResponseFromJSONTyped; +function CreateRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'RouteTable': (0, RouteTable_1.RouteTableToJSON)(value.routeTable), + }; +} +exports.CreateRouteTableResponseToJSON = CreateRouteTableResponseToJSON; diff --git a/dist/cjs/models/CreateSecurityGroupRequest.d.ts b/dist/cjs/models/CreateSecurityGroupRequest.d.ts new file mode 100644 index 00000000..54fe68a6 --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupRequest.d.ts @@ -0,0 +1,47 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateSecurityGroupRequest + */ +export interface CreateSecurityGroupRequest { + /** + * A description for the security group, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + description: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSecurityGroupRequest + */ + dryRun?: boolean; + /** + * The ID of the Net for the security group. + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + netId?: string; + /** + * The name of the security group.
+ * This name must not start with `sg-`.
+ * This name must be unique and contain between 1 and 255 ASCII characters. Accented letters are not allowed. + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + securityGroupName: string; +} +export declare function CreateSecurityGroupRequestFromJSON(json: any): CreateSecurityGroupRequest; +export declare function CreateSecurityGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRequest; +export declare function CreateSecurityGroupRequestToJSON(value?: CreateSecurityGroupRequest | null): any; diff --git a/dist/cjs/models/CreateSecurityGroupRequest.js b/dist/cjs/models/CreateSecurityGroupRequest.js new file mode 100644 index 00000000..3fb1a03e --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSecurityGroupRequestToJSON = exports.CreateSecurityGroupRequestFromJSONTyped = exports.CreateSecurityGroupRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateSecurityGroupRequestFromJSON(json) { + return CreateSecurityGroupRequestFromJSONTyped(json, false); +} +exports.CreateSecurityGroupRequestFromJSON = CreateSecurityGroupRequestFromJSON; +function CreateSecurityGroupRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'securityGroupName': json['SecurityGroupName'], + }; +} +exports.CreateSecurityGroupRequestFromJSONTyped = CreateSecurityGroupRequestFromJSONTyped; +function CreateSecurityGroupRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'SecurityGroupName': value.securityGroupName, + }; +} +exports.CreateSecurityGroupRequestToJSON = CreateSecurityGroupRequestToJSON; diff --git a/dist/cjs/models/CreateSecurityGroupResponse.d.ts b/dist/cjs/models/CreateSecurityGroupResponse.d.ts new file mode 100644 index 00000000..6e214722 --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface CreateSecurityGroupResponse + */ +export interface CreateSecurityGroupResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSecurityGroupResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof CreateSecurityGroupResponse + */ + securityGroup?: SecurityGroup; +} +export declare function CreateSecurityGroupResponseFromJSON(json: any): CreateSecurityGroupResponse; +export declare function CreateSecurityGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupResponse; +export declare function CreateSecurityGroupResponseToJSON(value?: CreateSecurityGroupResponse | null): any; diff --git a/dist/cjs/models/CreateSecurityGroupResponse.js b/dist/cjs/models/CreateSecurityGroupResponse.js new file mode 100644 index 00000000..c2ff06e0 --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSecurityGroupResponseToJSON = exports.CreateSecurityGroupResponseFromJSONTyped = exports.CreateSecurityGroupResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const SecurityGroup_1 = require("./SecurityGroup"); +function CreateSecurityGroupResponseFromJSON(json) { + return CreateSecurityGroupResponseFromJSONTyped(json, false); +} +exports.CreateSecurityGroupResponseFromJSON = CreateSecurityGroupResponseFromJSON; +function CreateSecurityGroupResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'securityGroup': !(0, runtime_1.exists)(json, 'SecurityGroup') ? undefined : (0, SecurityGroup_1.SecurityGroupFromJSON)(json['SecurityGroup']), + }; +} +exports.CreateSecurityGroupResponseFromJSONTyped = CreateSecurityGroupResponseFromJSONTyped; +function CreateSecurityGroupResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'SecurityGroup': (0, SecurityGroup_1.SecurityGroupToJSON)(value.securityGroup), + }; +} +exports.CreateSecurityGroupResponseToJSON = CreateSecurityGroupResponseToJSON; diff --git a/dist/cjs/models/CreateSecurityGroupRuleRequest.d.ts b/dist/cjs/models/CreateSecurityGroupRuleRequest.d.ts new file mode 100644 index 00000000..98711b95 --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupRuleRequest.d.ts @@ -0,0 +1,82 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SecurityGroupRule } from './SecurityGroupRule'; +/** + * + * @export + * @interface CreateSecurityGroupRuleRequest + */ +export interface CreateSecurityGroupRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSecurityGroupRuleRequest + */ + dryRun?: boolean; + /** + * The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + flow: string; + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {number} + * @memberof CreateSecurityGroupRuleRequest + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + ipProtocol?: string; + /** + * The IP range for the security group rule, in CIDR notation (for example, 10.0.0.0/16). If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + ipRange?: string; + /** + * Information about the security group rule to create. If you specify this parent parameter and its subparameters, you cannot specify the following parent parameters: `FromPortRange`, `IpProtocol`, `IpRange`, and `ToPortRange`. + * @type {Array} + * @memberof CreateSecurityGroupRuleRequest + */ + rules?: Array; + /** + * The account ID of the owner of the security group for which you want to create a rule. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupAccountIdToLink?: string; + /** + * The ID of the security group for which you want to create a rule. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupId: string; + /** + * The ID of the source security group. If you are in the Public Cloud, you can also specify the name of the source security group. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupNameToLink?: string; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {number} + * @memberof CreateSecurityGroupRuleRequest + */ + toPortRange?: number; +} +export declare function CreateSecurityGroupRuleRequestFromJSON(json: any): CreateSecurityGroupRuleRequest; +export declare function CreateSecurityGroupRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRuleRequest; +export declare function CreateSecurityGroupRuleRequestToJSON(value?: CreateSecurityGroupRuleRequest | null): any; diff --git a/dist/cjs/models/CreateSecurityGroupRuleRequest.js b/dist/cjs/models/CreateSecurityGroupRuleRequest.js new file mode 100644 index 00000000..4557a480 --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupRuleRequest.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSecurityGroupRuleRequestToJSON = exports.CreateSecurityGroupRuleRequestFromJSONTyped = exports.CreateSecurityGroupRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const SecurityGroupRule_1 = require("./SecurityGroupRule"); +function CreateSecurityGroupRuleRequestFromJSON(json) { + return CreateSecurityGroupRuleRequestFromJSONTyped(json, false); +} +exports.CreateSecurityGroupRuleRequestFromJSON = CreateSecurityGroupRuleRequestFromJSON; +function CreateSecurityGroupRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'flow': json['Flow'], + 'fromPortRange': !(0, runtime_1.exists)(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !(0, runtime_1.exists)(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRange': !(0, runtime_1.exists)(json, 'IpRange') ? undefined : json['IpRange'], + 'rules': !(0, runtime_1.exists)(json, 'Rules') ? undefined : (json['Rules'].map(SecurityGroupRule_1.SecurityGroupRuleFromJSON)), + 'securityGroupAccountIdToLink': !(0, runtime_1.exists)(json, 'SecurityGroupAccountIdToLink') ? undefined : json['SecurityGroupAccountIdToLink'], + 'securityGroupId': json['SecurityGroupId'], + 'securityGroupNameToLink': !(0, runtime_1.exists)(json, 'SecurityGroupNameToLink') ? undefined : json['SecurityGroupNameToLink'], + 'toPortRange': !(0, runtime_1.exists)(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} +exports.CreateSecurityGroupRuleRequestFromJSONTyped = CreateSecurityGroupRuleRequestFromJSONTyped; +function CreateSecurityGroupRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Flow': value.flow, + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRange': value.ipRange, + 'Rules': value.rules === undefined ? undefined : (value.rules.map(SecurityGroupRule_1.SecurityGroupRuleToJSON)), + 'SecurityGroupAccountIdToLink': value.securityGroupAccountIdToLink, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupNameToLink': value.securityGroupNameToLink, + 'ToPortRange': value.toPortRange, + }; +} +exports.CreateSecurityGroupRuleRequestToJSON = CreateSecurityGroupRuleRequestToJSON; diff --git a/dist/cjs/models/CreateSecurityGroupRuleResponse.d.ts b/dist/cjs/models/CreateSecurityGroupRuleResponse.d.ts new file mode 100644 index 00000000..6adfe350 --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface CreateSecurityGroupRuleResponse + */ +export interface CreateSecurityGroupRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSecurityGroupRuleResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof CreateSecurityGroupRuleResponse + */ + securityGroup?: SecurityGroup; +} +export declare function CreateSecurityGroupRuleResponseFromJSON(json: any): CreateSecurityGroupRuleResponse; +export declare function CreateSecurityGroupRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRuleResponse; +export declare function CreateSecurityGroupRuleResponseToJSON(value?: CreateSecurityGroupRuleResponse | null): any; diff --git a/dist/cjs/models/CreateSecurityGroupRuleResponse.js b/dist/cjs/models/CreateSecurityGroupRuleResponse.js new file mode 100644 index 00000000..d8f81bbc --- /dev/null +++ b/dist/cjs/models/CreateSecurityGroupRuleResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSecurityGroupRuleResponseToJSON = exports.CreateSecurityGroupRuleResponseFromJSONTyped = exports.CreateSecurityGroupRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const SecurityGroup_1 = require("./SecurityGroup"); +function CreateSecurityGroupRuleResponseFromJSON(json) { + return CreateSecurityGroupRuleResponseFromJSONTyped(json, false); +} +exports.CreateSecurityGroupRuleResponseFromJSON = CreateSecurityGroupRuleResponseFromJSON; +function CreateSecurityGroupRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'securityGroup': !(0, runtime_1.exists)(json, 'SecurityGroup') ? undefined : (0, SecurityGroup_1.SecurityGroupFromJSON)(json['SecurityGroup']), + }; +} +exports.CreateSecurityGroupRuleResponseFromJSONTyped = CreateSecurityGroupRuleResponseFromJSONTyped; +function CreateSecurityGroupRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'SecurityGroup': (0, SecurityGroup_1.SecurityGroupToJSON)(value.securityGroup), + }; +} +exports.CreateSecurityGroupRuleResponseToJSON = CreateSecurityGroupRuleResponseToJSON; diff --git a/dist/cjs/models/CreateServerCertificateRequest.d.ts b/dist/cjs/models/CreateServerCertificateRequest.d.ts new file mode 100644 index 00000000..af3dc573 --- /dev/null +++ b/dist/cjs/models/CreateServerCertificateRequest.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateServerCertificateRequest + */ +export interface CreateServerCertificateRequest { + /** + * The PEM-encoded X509 certificate. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + body: string; + /** + * The PEM-encoded intermediate certification authorities. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + chain?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateServerCertificateRequest + */ + dryRun?: boolean; + /** + * A unique name for the certificate. Constraints: 1-128 alphanumeric characters, pluses (+), equals (=), commas (,), periods (.), at signs (@), minuses (-), or underscores (_). + * @type {string} + * @memberof CreateServerCertificateRequest + */ + name: string; + /** + * The path to the server certificate, set to a slash (/) if not specified. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + path?: string; + /** + * The PEM-encoded private key matching the certificate. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + privateKey: string; +} +export declare function CreateServerCertificateRequestFromJSON(json: any): CreateServerCertificateRequest; +export declare function CreateServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServerCertificateRequest; +export declare function CreateServerCertificateRequestToJSON(value?: CreateServerCertificateRequest | null): any; diff --git a/dist/cjs/models/CreateServerCertificateRequest.js b/dist/cjs/models/CreateServerCertificateRequest.js new file mode 100644 index 00000000..ea202f86 --- /dev/null +++ b/dist/cjs/models/CreateServerCertificateRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateServerCertificateRequestToJSON = exports.CreateServerCertificateRequestFromJSONTyped = exports.CreateServerCertificateRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateServerCertificateRequestFromJSON(json) { + return CreateServerCertificateRequestFromJSONTyped(json, false); +} +exports.CreateServerCertificateRequestFromJSON = CreateServerCertificateRequestFromJSON; +function CreateServerCertificateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'body': json['Body'], + 'chain': !(0, runtime_1.exists)(json, 'Chain') ? undefined : json['Chain'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + 'path': !(0, runtime_1.exists)(json, 'Path') ? undefined : json['Path'], + 'privateKey': json['PrivateKey'], + }; +} +exports.CreateServerCertificateRequestFromJSONTyped = CreateServerCertificateRequestFromJSONTyped; +function CreateServerCertificateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Body': value.body, + 'Chain': value.chain, + 'DryRun': value.dryRun, + 'Name': value.name, + 'Path': value.path, + 'PrivateKey': value.privateKey, + }; +} +exports.CreateServerCertificateRequestToJSON = CreateServerCertificateRequestToJSON; diff --git a/dist/cjs/models/CreateServerCertificateResponse.d.ts b/dist/cjs/models/CreateServerCertificateResponse.d.ts new file mode 100644 index 00000000..8f8be4a3 --- /dev/null +++ b/dist/cjs/models/CreateServerCertificateResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ServerCertificate } from './ServerCertificate'; +/** + * + * @export + * @interface CreateServerCertificateResponse + */ +export interface CreateServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateServerCertificateResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {ServerCertificate} + * @memberof CreateServerCertificateResponse + */ + serverCertificate?: ServerCertificate; +} +export declare function CreateServerCertificateResponseFromJSON(json: any): CreateServerCertificateResponse; +export declare function CreateServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServerCertificateResponse; +export declare function CreateServerCertificateResponseToJSON(value?: CreateServerCertificateResponse | null): any; diff --git a/dist/cjs/models/CreateServerCertificateResponse.js b/dist/cjs/models/CreateServerCertificateResponse.js new file mode 100644 index 00000000..9a20abd3 --- /dev/null +++ b/dist/cjs/models/CreateServerCertificateResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateServerCertificateResponseToJSON = exports.CreateServerCertificateResponseFromJSONTyped = exports.CreateServerCertificateResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const ServerCertificate_1 = require("./ServerCertificate"); +function CreateServerCertificateResponseFromJSON(json) { + return CreateServerCertificateResponseFromJSONTyped(json, false); +} +exports.CreateServerCertificateResponseFromJSON = CreateServerCertificateResponseFromJSON; +function CreateServerCertificateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'serverCertificate': !(0, runtime_1.exists)(json, 'ServerCertificate') ? undefined : (0, ServerCertificate_1.ServerCertificateFromJSON)(json['ServerCertificate']), + }; +} +exports.CreateServerCertificateResponseFromJSONTyped = CreateServerCertificateResponseFromJSONTyped; +function CreateServerCertificateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'ServerCertificate': (0, ServerCertificate_1.ServerCertificateToJSON)(value.serverCertificate), + }; +} +exports.CreateServerCertificateResponseToJSON = CreateServerCertificateResponseToJSON; diff --git a/dist/cjs/models/CreateSnapshotExportTaskRequest.d.ts b/dist/cjs/models/CreateSnapshotExportTaskRequest.d.ts new file mode 100644 index 00000000..428061f0 --- /dev/null +++ b/dist/cjs/models/CreateSnapshotExportTaskRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportToCreate } from './OsuExportToCreate'; +/** + * + * @export + * @interface CreateSnapshotExportTaskRequest + */ +export interface CreateSnapshotExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSnapshotExportTaskRequest + */ + dryRun?: boolean; + /** + * + * @type {OsuExportToCreate} + * @memberof CreateSnapshotExportTaskRequest + */ + osuExport: OsuExportToCreate; + /** + * The ID of the snapshot to export. + * @type {string} + * @memberof CreateSnapshotExportTaskRequest + */ + snapshotId: string; +} +export declare function CreateSnapshotExportTaskRequestFromJSON(json: any): CreateSnapshotExportTaskRequest; +export declare function CreateSnapshotExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotExportTaskRequest; +export declare function CreateSnapshotExportTaskRequestToJSON(value?: CreateSnapshotExportTaskRequest | null): any; diff --git a/dist/cjs/models/CreateSnapshotExportTaskRequest.js b/dist/cjs/models/CreateSnapshotExportTaskRequest.js new file mode 100644 index 00000000..742e6fd8 --- /dev/null +++ b/dist/cjs/models/CreateSnapshotExportTaskRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSnapshotExportTaskRequestToJSON = exports.CreateSnapshotExportTaskRequestFromJSONTyped = exports.CreateSnapshotExportTaskRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const OsuExportToCreate_1 = require("./OsuExportToCreate"); +function CreateSnapshotExportTaskRequestFromJSON(json) { + return CreateSnapshotExportTaskRequestFromJSONTyped(json, false); +} +exports.CreateSnapshotExportTaskRequestFromJSON = CreateSnapshotExportTaskRequestFromJSON; +function CreateSnapshotExportTaskRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'osuExport': (0, OsuExportToCreate_1.OsuExportToCreateFromJSON)(json['OsuExport']), + 'snapshotId': json['SnapshotId'], + }; +} +exports.CreateSnapshotExportTaskRequestFromJSONTyped = CreateSnapshotExportTaskRequestFromJSONTyped; +function CreateSnapshotExportTaskRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'OsuExport': (0, OsuExportToCreate_1.OsuExportToCreateToJSON)(value.osuExport), + 'SnapshotId': value.snapshotId, + }; +} +exports.CreateSnapshotExportTaskRequestToJSON = CreateSnapshotExportTaskRequestToJSON; diff --git a/dist/cjs/models/CreateSnapshotExportTaskResponse.d.ts b/dist/cjs/models/CreateSnapshotExportTaskResponse.d.ts new file mode 100644 index 00000000..11cee29a --- /dev/null +++ b/dist/cjs/models/CreateSnapshotExportTaskResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SnapshotExportTask } from './SnapshotExportTask'; +/** + * + * @export + * @interface CreateSnapshotExportTaskResponse + */ +export interface CreateSnapshotExportTaskResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSnapshotExportTaskResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SnapshotExportTask} + * @memberof CreateSnapshotExportTaskResponse + */ + snapshotExportTask?: SnapshotExportTask; +} +export declare function CreateSnapshotExportTaskResponseFromJSON(json: any): CreateSnapshotExportTaskResponse; +export declare function CreateSnapshotExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotExportTaskResponse; +export declare function CreateSnapshotExportTaskResponseToJSON(value?: CreateSnapshotExportTaskResponse | null): any; diff --git a/dist/cjs/models/CreateSnapshotExportTaskResponse.js b/dist/cjs/models/CreateSnapshotExportTaskResponse.js new file mode 100644 index 00000000..1ce3580d --- /dev/null +++ b/dist/cjs/models/CreateSnapshotExportTaskResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSnapshotExportTaskResponseToJSON = exports.CreateSnapshotExportTaskResponseFromJSONTyped = exports.CreateSnapshotExportTaskResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const SnapshotExportTask_1 = require("./SnapshotExportTask"); +function CreateSnapshotExportTaskResponseFromJSON(json) { + return CreateSnapshotExportTaskResponseFromJSONTyped(json, false); +} +exports.CreateSnapshotExportTaskResponseFromJSON = CreateSnapshotExportTaskResponseFromJSON; +function CreateSnapshotExportTaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'snapshotExportTask': !(0, runtime_1.exists)(json, 'SnapshotExportTask') ? undefined : (0, SnapshotExportTask_1.SnapshotExportTaskFromJSON)(json['SnapshotExportTask']), + }; +} +exports.CreateSnapshotExportTaskResponseFromJSONTyped = CreateSnapshotExportTaskResponseFromJSONTyped; +function CreateSnapshotExportTaskResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'SnapshotExportTask': (0, SnapshotExportTask_1.SnapshotExportTaskToJSON)(value.snapshotExportTask), + }; +} +exports.CreateSnapshotExportTaskResponseToJSON = CreateSnapshotExportTaskResponseToJSON; diff --git a/dist/cjs/models/CreateSnapshotRequest.d.ts b/dist/cjs/models/CreateSnapshotRequest.d.ts new file mode 100644 index 00000000..7d901877 --- /dev/null +++ b/dist/cjs/models/CreateSnapshotRequest.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateSnapshotRequest + */ +export interface CreateSnapshotRequest { + /** + * A description for the snapshot. + * @type {string} + * @memberof CreateSnapshotRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSnapshotRequest + */ + dryRun?: boolean; + /** + * The pre-signed URL of the snapshot you want to import from the bucket. + * @type {string} + * @memberof CreateSnapshotRequest + */ + fileLocation?: string; + /** + * The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot. + * @type {number} + * @memberof CreateSnapshotRequest + */ + snapshotSize?: number; + /** + * The name of the source Region, which must be the same as the Region of your account. + * @type {string} + * @memberof CreateSnapshotRequest + */ + sourceRegionName?: string; + /** + * The ID of the snapshot you want to copy. + * @type {string} + * @memberof CreateSnapshotRequest + */ + sourceSnapshotId?: string; + /** + * The ID of the volume you want to create a snapshot of. + * @type {string} + * @memberof CreateSnapshotRequest + */ + volumeId?: string; +} +export declare function CreateSnapshotRequestFromJSON(json: any): CreateSnapshotRequest; +export declare function CreateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotRequest; +export declare function CreateSnapshotRequestToJSON(value?: CreateSnapshotRequest | null): any; diff --git a/dist/cjs/models/CreateSnapshotRequest.js b/dist/cjs/models/CreateSnapshotRequest.js new file mode 100644 index 00000000..76e77e53 --- /dev/null +++ b/dist/cjs/models/CreateSnapshotRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSnapshotRequestToJSON = exports.CreateSnapshotRequestFromJSONTyped = exports.CreateSnapshotRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateSnapshotRequestFromJSON(json) { + return CreateSnapshotRequestFromJSONTyped(json, false); +} +exports.CreateSnapshotRequestFromJSON = CreateSnapshotRequestFromJSON; +function CreateSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'fileLocation': !(0, runtime_1.exists)(json, 'FileLocation') ? undefined : json['FileLocation'], + 'snapshotSize': !(0, runtime_1.exists)(json, 'SnapshotSize') ? undefined : json['SnapshotSize'], + 'sourceRegionName': !(0, runtime_1.exists)(json, 'SourceRegionName') ? undefined : json['SourceRegionName'], + 'sourceSnapshotId': !(0, runtime_1.exists)(json, 'SourceSnapshotId') ? undefined : json['SourceSnapshotId'], + 'volumeId': !(0, runtime_1.exists)(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +exports.CreateSnapshotRequestFromJSONTyped = CreateSnapshotRequestFromJSONTyped; +function CreateSnapshotRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'FileLocation': value.fileLocation, + 'SnapshotSize': value.snapshotSize, + 'SourceRegionName': value.sourceRegionName, + 'SourceSnapshotId': value.sourceSnapshotId, + 'VolumeId': value.volumeId, + }; +} +exports.CreateSnapshotRequestToJSON = CreateSnapshotRequestToJSON; diff --git a/dist/cjs/models/CreateSnapshotResponse.d.ts b/dist/cjs/models/CreateSnapshotResponse.d.ts new file mode 100644 index 00000000..b375d765 --- /dev/null +++ b/dist/cjs/models/CreateSnapshotResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Snapshot } from './Snapshot'; +/** + * + * @export + * @interface CreateSnapshotResponse + */ +export interface CreateSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSnapshotResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Snapshot} + * @memberof CreateSnapshotResponse + */ + snapshot?: Snapshot; +} +export declare function CreateSnapshotResponseFromJSON(json: any): CreateSnapshotResponse; +export declare function CreateSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotResponse; +export declare function CreateSnapshotResponseToJSON(value?: CreateSnapshotResponse | null): any; diff --git a/dist/cjs/models/CreateSnapshotResponse.js b/dist/cjs/models/CreateSnapshotResponse.js new file mode 100644 index 00000000..018191a1 --- /dev/null +++ b/dist/cjs/models/CreateSnapshotResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSnapshotResponseToJSON = exports.CreateSnapshotResponseFromJSONTyped = exports.CreateSnapshotResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Snapshot_1 = require("./Snapshot"); +function CreateSnapshotResponseFromJSON(json) { + return CreateSnapshotResponseFromJSONTyped(json, false); +} +exports.CreateSnapshotResponseFromJSON = CreateSnapshotResponseFromJSON; +function CreateSnapshotResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'snapshot': !(0, runtime_1.exists)(json, 'Snapshot') ? undefined : (0, Snapshot_1.SnapshotFromJSON)(json['Snapshot']), + }; +} +exports.CreateSnapshotResponseFromJSONTyped = CreateSnapshotResponseFromJSONTyped; +function CreateSnapshotResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Snapshot': (0, Snapshot_1.SnapshotToJSON)(value.snapshot), + }; +} +exports.CreateSnapshotResponseToJSON = CreateSnapshotResponseToJSON; diff --git a/dist/cjs/models/CreateSubnetRequest.d.ts b/dist/cjs/models/CreateSubnetRequest.d.ts new file mode 100644 index 00000000..68ce43b0 --- /dev/null +++ b/dist/cjs/models/CreateSubnetRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateSubnetRequest + */ +export interface CreateSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSubnetRequest + */ + dryRun?: boolean; + /** + * The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof CreateSubnetRequest + */ + ipRange: string; + /** + * The ID of the Net for which you want to create a Subnet. + * @type {string} + * @memberof CreateSubnetRequest + */ + netId: string; + /** + * The name of the Subregion in which you want to create the Subnet. + * @type {string} + * @memberof CreateSubnetRequest + */ + subregionName?: string; +} +export declare function CreateSubnetRequestFromJSON(json: any): CreateSubnetRequest; +export declare function CreateSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubnetRequest; +export declare function CreateSubnetRequestToJSON(value?: CreateSubnetRequest | null): any; diff --git a/dist/cjs/models/CreateSubnetRequest.js b/dist/cjs/models/CreateSubnetRequest.js new file mode 100644 index 00000000..24c469ad --- /dev/null +++ b/dist/cjs/models/CreateSubnetRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSubnetRequestToJSON = exports.CreateSubnetRequestFromJSONTyped = exports.CreateSubnetRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateSubnetRequestFromJSON(json) { + return CreateSubnetRequestFromJSONTyped(json, false); +} +exports.CreateSubnetRequestFromJSON = CreateSubnetRequestFromJSON; +function CreateSubnetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRange': json['IpRange'], + 'netId': json['NetId'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + }; +} +exports.CreateSubnetRequestFromJSONTyped = CreateSubnetRequestFromJSONTyped; +function CreateSubnetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'IpRange': value.ipRange, + 'NetId': value.netId, + 'SubregionName': value.subregionName, + }; +} +exports.CreateSubnetRequestToJSON = CreateSubnetRequestToJSON; diff --git a/dist/cjs/models/CreateSubnetResponse.d.ts b/dist/cjs/models/CreateSubnetResponse.d.ts new file mode 100644 index 00000000..7096d24b --- /dev/null +++ b/dist/cjs/models/CreateSubnetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subnet } from './Subnet'; +/** + * + * @export + * @interface CreateSubnetResponse + */ +export interface CreateSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSubnetResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Subnet} + * @memberof CreateSubnetResponse + */ + subnet?: Subnet; +} +export declare function CreateSubnetResponseFromJSON(json: any): CreateSubnetResponse; +export declare function CreateSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubnetResponse; +export declare function CreateSubnetResponseToJSON(value?: CreateSubnetResponse | null): any; diff --git a/dist/cjs/models/CreateSubnetResponse.js b/dist/cjs/models/CreateSubnetResponse.js new file mode 100644 index 00000000..e770114f --- /dev/null +++ b/dist/cjs/models/CreateSubnetResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateSubnetResponseToJSON = exports.CreateSubnetResponseFromJSONTyped = exports.CreateSubnetResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Subnet_1 = require("./Subnet"); +function CreateSubnetResponseFromJSON(json) { + return CreateSubnetResponseFromJSONTyped(json, false); +} +exports.CreateSubnetResponseFromJSON = CreateSubnetResponseFromJSON; +function CreateSubnetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'subnet': !(0, runtime_1.exists)(json, 'Subnet') ? undefined : (0, Subnet_1.SubnetFromJSON)(json['Subnet']), + }; +} +exports.CreateSubnetResponseFromJSONTyped = CreateSubnetResponseFromJSONTyped; +function CreateSubnetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Subnet': (0, Subnet_1.SubnetToJSON)(value.subnet), + }; +} +exports.CreateSubnetResponseToJSON = CreateSubnetResponseToJSON; diff --git a/dist/cjs/models/CreateTagsRequest.d.ts b/dist/cjs/models/CreateTagsRequest.d.ts new file mode 100644 index 00000000..8ed76dbb --- /dev/null +++ b/dist/cjs/models/CreateTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface CreateTagsRequest + */ +export interface CreateTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateTagsRequest + */ + dryRun?: boolean; + /** + * One or more resource IDs. + * @type {Array} + * @memberof CreateTagsRequest + */ + resourceIds: Array; + /** + * One or more tags to add to the specified resources. + * @type {Array} + * @memberof CreateTagsRequest + */ + tags: Array; +} +export declare function CreateTagsRequestFromJSON(json: any): CreateTagsRequest; +export declare function CreateTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagsRequest; +export declare function CreateTagsRequestToJSON(value?: CreateTagsRequest | null): any; diff --git a/dist/cjs/models/CreateTagsRequest.js b/dist/cjs/models/CreateTagsRequest.js new file mode 100644 index 00000000..a50341a0 --- /dev/null +++ b/dist/cjs/models/CreateTagsRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateTagsRequestToJSON = exports.CreateTagsRequestFromJSONTyped = exports.CreateTagsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function CreateTagsRequestFromJSON(json) { + return CreateTagsRequestFromJSONTyped(json, false); +} +exports.CreateTagsRequestFromJSON = CreateTagsRequestFromJSON; +function CreateTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'resourceIds': json['ResourceIds'], + 'tags': (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.CreateTagsRequestFromJSONTyped = CreateTagsRequestFromJSONTyped; +function CreateTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ResourceIds': value.resourceIds, + 'Tags': (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.CreateTagsRequestToJSON = CreateTagsRequestToJSON; diff --git a/dist/cjs/models/CreateTagsResponse.d.ts b/dist/cjs/models/CreateTagsResponse.d.ts new file mode 100644 index 00000000..194285ee --- /dev/null +++ b/dist/cjs/models/CreateTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateTagsResponse + */ +export interface CreateTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateTagsResponseFromJSON(json: any): CreateTagsResponse; +export declare function CreateTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagsResponse; +export declare function CreateTagsResponseToJSON(value?: CreateTagsResponse | null): any; diff --git a/dist/cjs/models/CreateTagsResponse.js b/dist/cjs/models/CreateTagsResponse.js new file mode 100644 index 00000000..0126fca9 --- /dev/null +++ b/dist/cjs/models/CreateTagsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateTagsResponseToJSON = exports.CreateTagsResponseFromJSONTyped = exports.CreateTagsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateTagsResponseFromJSON(json) { + return CreateTagsResponseFromJSONTyped(json, false); +} +exports.CreateTagsResponseFromJSON = CreateTagsResponseFromJSON; +function CreateTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateTagsResponseFromJSONTyped = CreateTagsResponseFromJSONTyped; +function CreateTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateTagsResponseToJSON = CreateTagsResponseToJSON; diff --git a/dist/cjs/models/CreateVirtualGatewayRequest.d.ts b/dist/cjs/models/CreateVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..6b717879 --- /dev/null +++ b/dist/cjs/models/CreateVirtualGatewayRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVirtualGatewayRequest + */ +export interface CreateVirtualGatewayRequest { + /** + * The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateVirtualGatewayRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVirtualGatewayRequest + */ + dryRun?: boolean; +} +export declare function CreateVirtualGatewayRequestFromJSON(json: any): CreateVirtualGatewayRequest; +export declare function CreateVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVirtualGatewayRequest; +export declare function CreateVirtualGatewayRequestToJSON(value?: CreateVirtualGatewayRequest | null): any; diff --git a/dist/cjs/models/CreateVirtualGatewayRequest.js b/dist/cjs/models/CreateVirtualGatewayRequest.js new file mode 100644 index 00000000..28479c40 --- /dev/null +++ b/dist/cjs/models/CreateVirtualGatewayRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVirtualGatewayRequestToJSON = exports.CreateVirtualGatewayRequestFromJSONTyped = exports.CreateVirtualGatewayRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateVirtualGatewayRequestFromJSON(json) { + return CreateVirtualGatewayRequestFromJSONTyped(json, false); +} +exports.CreateVirtualGatewayRequestFromJSON = CreateVirtualGatewayRequestFromJSON; +function CreateVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'connectionType': json['ConnectionType'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.CreateVirtualGatewayRequestFromJSONTyped = CreateVirtualGatewayRequestFromJSONTyped; +function CreateVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + }; +} +exports.CreateVirtualGatewayRequestToJSON = CreateVirtualGatewayRequestToJSON; diff --git a/dist/cjs/models/CreateVirtualGatewayResponse.d.ts b/dist/cjs/models/CreateVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..ed019fcc --- /dev/null +++ b/dist/cjs/models/CreateVirtualGatewayResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VirtualGateway } from './VirtualGateway'; +/** + * + * @export + * @interface CreateVirtualGatewayResponse + */ +export interface CreateVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VirtualGateway} + * @memberof CreateVirtualGatewayResponse + */ + virtualGateway?: VirtualGateway; +} +export declare function CreateVirtualGatewayResponseFromJSON(json: any): CreateVirtualGatewayResponse; +export declare function CreateVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVirtualGatewayResponse; +export declare function CreateVirtualGatewayResponseToJSON(value?: CreateVirtualGatewayResponse | null): any; diff --git a/dist/cjs/models/CreateVirtualGatewayResponse.js b/dist/cjs/models/CreateVirtualGatewayResponse.js new file mode 100644 index 00000000..682b5c74 --- /dev/null +++ b/dist/cjs/models/CreateVirtualGatewayResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVirtualGatewayResponseToJSON = exports.CreateVirtualGatewayResponseFromJSONTyped = exports.CreateVirtualGatewayResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VirtualGateway_1 = require("./VirtualGateway"); +function CreateVirtualGatewayResponseFromJSON(json) { + return CreateVirtualGatewayResponseFromJSONTyped(json, false); +} +exports.CreateVirtualGatewayResponseFromJSON = CreateVirtualGatewayResponseFromJSON; +function CreateVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'virtualGateway': !(0, runtime_1.exists)(json, 'VirtualGateway') ? undefined : (0, VirtualGateway_1.VirtualGatewayFromJSON)(json['VirtualGateway']), + }; +} +exports.CreateVirtualGatewayResponseFromJSONTyped = CreateVirtualGatewayResponseFromJSONTyped; +function CreateVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VirtualGateway': (0, VirtualGateway_1.VirtualGatewayToJSON)(value.virtualGateway), + }; +} +exports.CreateVirtualGatewayResponseToJSON = CreateVirtualGatewayResponseToJSON; diff --git a/dist/cjs/models/CreateVmsRequest.d.ts b/dist/cjs/models/CreateVmsRequest.d.ts new file mode 100644 index 00000000..f639e78b --- /dev/null +++ b/dist/cjs/models/CreateVmsRequest.d.ts @@ -0,0 +1,154 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingVmCreation } from './BlockDeviceMappingVmCreation'; +import { NicForVmCreation } from './NicForVmCreation'; +import { Placement } from './Placement'; +/** + * + * @export + * @interface CreateVmsRequest + */ +export interface CreateVmsRequest { + /** + * One or more block device mappings. + * @type {Array} + * @memberof CreateVmsRequest + */ + blockDeviceMappings?: Array; + /** + * By default or if true, the VM is started on creation. If false, the VM is stopped on creation. + * @type {boolean} + * @memberof CreateVmsRequest + */ + bootOnCreation?: boolean; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof CreateVmsRequest + */ + bsuOptimized?: boolean; + /** + * A unique identifier which enables you to manage the idempotency. + * @type {string} + * @memberof CreateVmsRequest + */ + clientToken?: string; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof CreateVmsRequest + */ + deletionProtection?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVmsRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI used to create the VM. You can find the list of OMIs by calling the [ReadImages](#readimages) method. + * @type {string} + * @memberof CreateVmsRequest + */ + imageId: string; + /** + * The name of the keypair. + * @type {string} + * @memberof CreateVmsRequest + */ + keypairName?: string; + /** + * The maximum number of VMs you want to create. If all the VMs cannot be created, the largest possible number of VMs above MinVmsCount is created. + * @type {number} + * @memberof CreateVmsRequest + */ + maxVmsCount?: number; + /** + * The minimum number of VMs you want to create. If this number of VMs cannot be created, no VMs are created. + * @type {number} + * @memberof CreateVmsRequest + */ + minVmsCount?: number; + /** + * One or more NICs. If you specify this parameter, you must not specify the `SubnetId` and `SubregionName` parameters. You also must define one NIC as the primary network interface of the VM with `0` as its device number. + * @type {Array} + * @memberof CreateVmsRequest + */ + nics?: Array; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof CreateVmsRequest + */ + performance?: CreateVmsRequestPerformanceEnum; + /** + * + * @type {Placement} + * @memberof CreateVmsRequest + */ + placement?: Placement; + /** + * One or more private IPs of the VM. + * @type {Array} + * @memberof CreateVmsRequest + */ + privateIps?: Array; + /** + * One or more IDs of security group for the VMs. + * @type {Array} + * @memberof CreateVmsRequest + */ + securityGroupIds?: Array; + /** + * One or more names of security groups for the VMs. + * @type {Array} + * @memberof CreateVmsRequest + */ + securityGroups?: Array; + /** + * The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the `Nics` parameter. + * @type {string} + * @memberof CreateVmsRequest + */ + subnetId?: string; + /** + * Data or script used to add a specific configuration to the VM. It must be Base64-encoded and is limited to 500 kibibytes (KiB). + * @type {string} + * @memberof CreateVmsRequest + */ + userData?: string; + /** + * The VM behavior when you stop it. By default or if set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. + * @type {string} + * @memberof CreateVmsRequest + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM (`t2.small` by default).
+ * For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof CreateVmsRequest + */ + vmType?: string; +} +/** + * @export + */ +export declare const CreateVmsRequestPerformanceEnum: { + readonly Medium: "medium"; + readonly High: "high"; + readonly Highest: "highest"; +}; +export declare type CreateVmsRequestPerformanceEnum = typeof CreateVmsRequestPerformanceEnum[keyof typeof CreateVmsRequestPerformanceEnum]; +export declare function CreateVmsRequestFromJSON(json: any): CreateVmsRequest; +export declare function CreateVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVmsRequest; +export declare function CreateVmsRequestToJSON(value?: CreateVmsRequest | null): any; diff --git a/dist/cjs/models/CreateVmsRequest.js b/dist/cjs/models/CreateVmsRequest.js new file mode 100644 index 00000000..48183c7b --- /dev/null +++ b/dist/cjs/models/CreateVmsRequest.js @@ -0,0 +1,91 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVmsRequestToJSON = exports.CreateVmsRequestFromJSONTyped = exports.CreateVmsRequestFromJSON = exports.CreateVmsRequestPerformanceEnum = void 0; +const runtime_1 = require("../runtime"); +const BlockDeviceMappingVmCreation_1 = require("./BlockDeviceMappingVmCreation"); +const NicForVmCreation_1 = require("./NicForVmCreation"); +const Placement_1 = require("./Placement"); +/** + * @export + */ +exports.CreateVmsRequestPerformanceEnum = { + Medium: 'medium', + High: 'high', + Highest: 'highest' +}; +function CreateVmsRequestFromJSON(json) { + return CreateVmsRequestFromJSONTyped(json, false); +} +exports.CreateVmsRequestFromJSON = CreateVmsRequestFromJSON; +function CreateVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'blockDeviceMappings': !(0, runtime_1.exists)(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingVmCreation_1.BlockDeviceMappingVmCreationFromJSON)), + 'bootOnCreation': !(0, runtime_1.exists)(json, 'BootOnCreation') ? undefined : json['BootOnCreation'], + 'bsuOptimized': !(0, runtime_1.exists)(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'clientToken': !(0, runtime_1.exists)(json, 'ClientToken') ? undefined : json['ClientToken'], + 'deletionProtection': !(0, runtime_1.exists)(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'keypairName': !(0, runtime_1.exists)(json, 'KeypairName') ? undefined : json['KeypairName'], + 'maxVmsCount': !(0, runtime_1.exists)(json, 'MaxVmsCount') ? undefined : json['MaxVmsCount'], + 'minVmsCount': !(0, runtime_1.exists)(json, 'MinVmsCount') ? undefined : json['MinVmsCount'], + 'nics': !(0, runtime_1.exists)(json, 'Nics') ? undefined : (json['Nics'].map(NicForVmCreation_1.NicForVmCreationFromJSON)), + 'performance': !(0, runtime_1.exists)(json, 'Performance') ? undefined : json['Performance'], + 'placement': !(0, runtime_1.exists)(json, 'Placement') ? undefined : (0, Placement_1.PlacementFromJSON)(json['Placement']), + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + 'userData': !(0, runtime_1.exists)(json, 'UserData') ? undefined : json['UserData'], + 'vmInitiatedShutdownBehavior': !(0, runtime_1.exists)(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !(0, runtime_1.exists)(json, 'VmType') ? undefined : json['VmType'], + }; +} +exports.CreateVmsRequestFromJSONTyped = CreateVmsRequestFromJSONTyped; +function CreateVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingVmCreation_1.BlockDeviceMappingVmCreationToJSON)), + 'BootOnCreation': value.bootOnCreation, + 'BsuOptimized': value.bsuOptimized, + 'ClientToken': value.clientToken, + 'DeletionProtection': value.deletionProtection, + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'KeypairName': value.keypairName, + 'MaxVmsCount': value.maxVmsCount, + 'MinVmsCount': value.minVmsCount, + 'Nics': value.nics === undefined ? undefined : (value.nics.map(NicForVmCreation_1.NicForVmCreationToJSON)), + 'Performance': value.performance, + 'Placement': (0, Placement_1.PlacementToJSON)(value.placement), + 'PrivateIps': value.privateIps, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroups': value.securityGroups, + 'SubnetId': value.subnetId, + 'UserData': value.userData, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} +exports.CreateVmsRequestToJSON = CreateVmsRequestToJSON; diff --git a/dist/cjs/models/CreateVmsResponse.d.ts b/dist/cjs/models/CreateVmsResponse.d.ts new file mode 100644 index 00000000..bcf3638d --- /dev/null +++ b/dist/cjs/models/CreateVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Vm } from './Vm'; +/** + * + * @export + * @interface CreateVmsResponse + */ +export interface CreateVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more created VMs. + * @type {Array} + * @memberof CreateVmsResponse + */ + vms?: Array; +} +export declare function CreateVmsResponseFromJSON(json: any): CreateVmsResponse; +export declare function CreateVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVmsResponse; +export declare function CreateVmsResponseToJSON(value?: CreateVmsResponse | null): any; diff --git a/dist/cjs/models/CreateVmsResponse.js b/dist/cjs/models/CreateVmsResponse.js new file mode 100644 index 00000000..57453768 --- /dev/null +++ b/dist/cjs/models/CreateVmsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVmsResponseToJSON = exports.CreateVmsResponseFromJSONTyped = exports.CreateVmsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Vm_1 = require("./Vm"); +function CreateVmsResponseFromJSON(json) { + return CreateVmsResponseFromJSONTyped(json, false); +} +exports.CreateVmsResponseFromJSON = CreateVmsResponseFromJSON; +function CreateVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vms': !(0, runtime_1.exists)(json, 'Vms') ? undefined : (json['Vms'].map(Vm_1.VmFromJSON)), + }; +} +exports.CreateVmsResponseFromJSONTyped = CreateVmsResponseFromJSONTyped; +function CreateVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(Vm_1.VmToJSON)), + }; +} +exports.CreateVmsResponseToJSON = CreateVmsResponseToJSON; diff --git a/dist/cjs/models/CreateVolumeRequest.d.ts b/dist/cjs/models/CreateVolumeRequest.d.ts new file mode 100644 index 00000000..2d7c539f --- /dev/null +++ b/dist/cjs/models/CreateVolumeRequest.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVolumeRequest + */ +export interface CreateVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVolumeRequest + */ + dryRun?: boolean; + /** + * The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. + * @type {number} + * @memberof CreateVolumeRequest + */ + iops?: number; + /** + * The size of the volume, in gibibytes (GiB). The maximum allowed size for a volume is 14901 GiB. This parameter is required if the volume is not created from a snapshot (`SnapshotId` unspecified). + * @type {number} + * @memberof CreateVolumeRequest + */ + size?: number; + /** + * The ID of the snapshot from which you want to create the volume. + * @type {string} + * @memberof CreateVolumeRequest + */ + snapshotId?: string; + /** + * The Subregion in which you want to create the volume. + * @type {string} + * @memberof CreateVolumeRequest + */ + subregionName: string; + /** + * The type of volume you want to create (`io1` \| `gp2` \| `standard`). If not specified, a `standard` volume is created.
+ * For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). + * @type {string} + * @memberof CreateVolumeRequest + */ + volumeType?: string; +} +export declare function CreateVolumeRequestFromJSON(json: any): CreateVolumeRequest; +export declare function CreateVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVolumeRequest; +export declare function CreateVolumeRequestToJSON(value?: CreateVolumeRequest | null): any; diff --git a/dist/cjs/models/CreateVolumeRequest.js b/dist/cjs/models/CreateVolumeRequest.js new file mode 100644 index 00000000..a0cf5d01 --- /dev/null +++ b/dist/cjs/models/CreateVolumeRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVolumeRequestToJSON = exports.CreateVolumeRequestFromJSONTyped = exports.CreateVolumeRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateVolumeRequestFromJSON(json) { + return CreateVolumeRequestFromJSONTyped(json, false); +} +exports.CreateVolumeRequestFromJSON = CreateVolumeRequestFromJSON; +function CreateVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'iops': !(0, runtime_1.exists)(json, 'Iops') ? undefined : json['Iops'], + 'size': !(0, runtime_1.exists)(json, 'Size') ? undefined : json['Size'], + 'snapshotId': !(0, runtime_1.exists)(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'subregionName': json['SubregionName'], + 'volumeType': !(0, runtime_1.exists)(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +exports.CreateVolumeRequestFromJSONTyped = CreateVolumeRequestFromJSONTyped; +function CreateVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Iops': value.iops, + 'Size': value.size, + 'SnapshotId': value.snapshotId, + 'SubregionName': value.subregionName, + 'VolumeType': value.volumeType, + }; +} +exports.CreateVolumeRequestToJSON = CreateVolumeRequestToJSON; diff --git a/dist/cjs/models/CreateVolumeResponse.d.ts b/dist/cjs/models/CreateVolumeResponse.d.ts new file mode 100644 index 00000000..2096e84f --- /dev/null +++ b/dist/cjs/models/CreateVolumeResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Volume } from './Volume'; +/** + * + * @export + * @interface CreateVolumeResponse + */ +export interface CreateVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVolumeResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Volume} + * @memberof CreateVolumeResponse + */ + volume?: Volume; +} +export declare function CreateVolumeResponseFromJSON(json: any): CreateVolumeResponse; +export declare function CreateVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVolumeResponse; +export declare function CreateVolumeResponseToJSON(value?: CreateVolumeResponse | null): any; diff --git a/dist/cjs/models/CreateVolumeResponse.js b/dist/cjs/models/CreateVolumeResponse.js new file mode 100644 index 00000000..96cf2dc9 --- /dev/null +++ b/dist/cjs/models/CreateVolumeResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVolumeResponseToJSON = exports.CreateVolumeResponseFromJSONTyped = exports.CreateVolumeResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Volume_1 = require("./Volume"); +function CreateVolumeResponseFromJSON(json) { + return CreateVolumeResponseFromJSONTyped(json, false); +} +exports.CreateVolumeResponseFromJSON = CreateVolumeResponseFromJSON; +function CreateVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'volume': !(0, runtime_1.exists)(json, 'Volume') ? undefined : (0, Volume_1.VolumeFromJSON)(json['Volume']), + }; +} +exports.CreateVolumeResponseFromJSONTyped = CreateVolumeResponseFromJSONTyped; +function CreateVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Volume': (0, Volume_1.VolumeToJSON)(value.volume), + }; +} +exports.CreateVolumeResponseToJSON = CreateVolumeResponseToJSON; diff --git a/dist/cjs/models/CreateVpnConnectionRequest.d.ts b/dist/cjs/models/CreateVpnConnectionRequest.d.ts new file mode 100644 index 00000000..c8e75ae5 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVpnConnectionRequest + */ +export interface CreateVpnConnectionRequest { + /** + * The ID of the client gateway. + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + clientGatewayId: string; + /** + * The type of VPN connection (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVpnConnectionRequest + */ + dryRun?: boolean; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof CreateVpnConnectionRequest + */ + staticRoutesOnly?: boolean; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + virtualGatewayId: string; +} +export declare function CreateVpnConnectionRequestFromJSON(json: any): CreateVpnConnectionRequest; +export declare function CreateVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRequest; +export declare function CreateVpnConnectionRequestToJSON(value?: CreateVpnConnectionRequest | null): any; diff --git a/dist/cjs/models/CreateVpnConnectionRequest.js b/dist/cjs/models/CreateVpnConnectionRequest.js new file mode 100644 index 00000000..35484fb6 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVpnConnectionRequestToJSON = exports.CreateVpnConnectionRequestFromJSONTyped = exports.CreateVpnConnectionRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateVpnConnectionRequestFromJSON(json) { + return CreateVpnConnectionRequestFromJSONTyped(json, false); +} +exports.CreateVpnConnectionRequestFromJSON = CreateVpnConnectionRequestFromJSON; +function CreateVpnConnectionRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayId': json['ClientGatewayId'], + 'connectionType': json['ConnectionType'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'staticRoutesOnly': !(0, runtime_1.exists)(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +exports.CreateVpnConnectionRequestFromJSONTyped = CreateVpnConnectionRequestFromJSONTyped; +function CreateVpnConnectionRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.CreateVpnConnectionRequestToJSON = CreateVpnConnectionRequestToJSON; diff --git a/dist/cjs/models/CreateVpnConnectionResponse.d.ts b/dist/cjs/models/CreateVpnConnectionResponse.d.ts new file mode 100644 index 00000000..8d0c09d0 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VpnConnection } from './VpnConnection'; +/** + * + * @export + * @interface CreateVpnConnectionResponse + */ +export interface CreateVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVpnConnectionResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VpnConnection} + * @memberof CreateVpnConnectionResponse + */ + vpnConnection?: VpnConnection; +} +export declare function CreateVpnConnectionResponseFromJSON(json: any): CreateVpnConnectionResponse; +export declare function CreateVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionResponse; +export declare function CreateVpnConnectionResponseToJSON(value?: CreateVpnConnectionResponse | null): any; diff --git a/dist/cjs/models/CreateVpnConnectionResponse.js b/dist/cjs/models/CreateVpnConnectionResponse.js new file mode 100644 index 00000000..4e9559f0 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVpnConnectionResponseToJSON = exports.CreateVpnConnectionResponseFromJSONTyped = exports.CreateVpnConnectionResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VpnConnection_1 = require("./VpnConnection"); +function CreateVpnConnectionResponseFromJSON(json) { + return CreateVpnConnectionResponseFromJSONTyped(json, false); +} +exports.CreateVpnConnectionResponseFromJSON = CreateVpnConnectionResponseFromJSON; +function CreateVpnConnectionResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vpnConnection': !(0, runtime_1.exists)(json, 'VpnConnection') ? undefined : (0, VpnConnection_1.VpnConnectionFromJSON)(json['VpnConnection']), + }; +} +exports.CreateVpnConnectionResponseFromJSONTyped = CreateVpnConnectionResponseFromJSONTyped; +function CreateVpnConnectionResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VpnConnection': (0, VpnConnection_1.VpnConnectionToJSON)(value.vpnConnection), + }; +} +exports.CreateVpnConnectionResponseToJSON = CreateVpnConnectionResponseToJSON; diff --git a/dist/cjs/models/CreateVpnConnectionRouteRequest.d.ts b/dist/cjs/models/CreateVpnConnectionRouteRequest.d.ts new file mode 100644 index 00000000..2297a7a5 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionRouteRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVpnConnectionRouteRequest + */ +export interface CreateVpnConnectionRouteRequest { + /** + * The network prefix of the route, in CIDR notation (for example, 10.12.0.0/16). + * @type {string} + * @memberof CreateVpnConnectionRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVpnConnectionRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the target VPN connection of the static route. + * @type {string} + * @memberof CreateVpnConnectionRouteRequest + */ + vpnConnectionId: string; +} +export declare function CreateVpnConnectionRouteRequestFromJSON(json: any): CreateVpnConnectionRouteRequest; +export declare function CreateVpnConnectionRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRouteRequest; +export declare function CreateVpnConnectionRouteRequestToJSON(value?: CreateVpnConnectionRouteRequest | null): any; diff --git a/dist/cjs/models/CreateVpnConnectionRouteRequest.js b/dist/cjs/models/CreateVpnConnectionRouteRequest.js new file mode 100644 index 00000000..de1ea21c --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionRouteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVpnConnectionRouteRequestToJSON = exports.CreateVpnConnectionRouteRequestFromJSONTyped = exports.CreateVpnConnectionRouteRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function CreateVpnConnectionRouteRequestFromJSON(json) { + return CreateVpnConnectionRouteRequestFromJSONTyped(json, false); +} +exports.CreateVpnConnectionRouteRequestFromJSON = CreateVpnConnectionRouteRequestFromJSON; +function CreateVpnConnectionRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} +exports.CreateVpnConnectionRouteRequestFromJSONTyped = CreateVpnConnectionRouteRequestFromJSONTyped; +function CreateVpnConnectionRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} +exports.CreateVpnConnectionRouteRequestToJSON = CreateVpnConnectionRouteRequestToJSON; diff --git a/dist/cjs/models/CreateVpnConnectionRouteResponse.d.ts b/dist/cjs/models/CreateVpnConnectionRouteResponse.d.ts new file mode 100644 index 00000000..b88eaf75 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionRouteResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateVpnConnectionRouteResponse + */ +export interface CreateVpnConnectionRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVpnConnectionRouteResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateVpnConnectionRouteResponseFromJSON(json: any): CreateVpnConnectionRouteResponse; +export declare function CreateVpnConnectionRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRouteResponse; +export declare function CreateVpnConnectionRouteResponseToJSON(value?: CreateVpnConnectionRouteResponse | null): any; diff --git a/dist/cjs/models/CreateVpnConnectionRouteResponse.js b/dist/cjs/models/CreateVpnConnectionRouteResponse.js new file mode 100644 index 00000000..77334864 --- /dev/null +++ b/dist/cjs/models/CreateVpnConnectionRouteResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateVpnConnectionRouteResponseToJSON = exports.CreateVpnConnectionRouteResponseFromJSONTyped = exports.CreateVpnConnectionRouteResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function CreateVpnConnectionRouteResponseFromJSON(json) { + return CreateVpnConnectionRouteResponseFromJSONTyped(json, false); +} +exports.CreateVpnConnectionRouteResponseFromJSON = CreateVpnConnectionRouteResponseFromJSON; +function CreateVpnConnectionRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.CreateVpnConnectionRouteResponseFromJSONTyped = CreateVpnConnectionRouteResponseFromJSONTyped; +function CreateVpnConnectionRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.CreateVpnConnectionRouteResponseToJSON = CreateVpnConnectionRouteResponseToJSON; diff --git a/dist/cjs/models/DeleteAccessKeyRequest.d.ts b/dist/cjs/models/DeleteAccessKeyRequest.d.ts new file mode 100644 index 00000000..0618d35d --- /dev/null +++ b/dist/cjs/models/DeleteAccessKeyRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteAccessKeyRequest + */ +export interface DeleteAccessKeyRequest { + /** + * The ID of the access key you want to delete. + * @type {string} + * @memberof DeleteAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteAccessKeyRequest + */ + dryRun?: boolean; +} +export declare function DeleteAccessKeyRequestFromJSON(json: any): DeleteAccessKeyRequest; +export declare function DeleteAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccessKeyRequest; +export declare function DeleteAccessKeyRequestToJSON(value?: DeleteAccessKeyRequest | null): any; diff --git a/dist/cjs/models/DeleteAccessKeyRequest.js b/dist/cjs/models/DeleteAccessKeyRequest.js new file mode 100644 index 00000000..dbe3590b --- /dev/null +++ b/dist/cjs/models/DeleteAccessKeyRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteAccessKeyRequestToJSON = exports.DeleteAccessKeyRequestFromJSONTyped = exports.DeleteAccessKeyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteAccessKeyRequestFromJSON(json) { + return DeleteAccessKeyRequestFromJSONTyped(json, false); +} +exports.DeleteAccessKeyRequestFromJSON = DeleteAccessKeyRequestFromJSON; +function DeleteAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteAccessKeyRequestFromJSONTyped = DeleteAccessKeyRequestFromJSONTyped; +function DeleteAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteAccessKeyRequestToJSON = DeleteAccessKeyRequestToJSON; diff --git a/dist/cjs/models/DeleteAccessKeyResponse.d.ts b/dist/cjs/models/DeleteAccessKeyResponse.d.ts new file mode 100644 index 00000000..fcd9f47b --- /dev/null +++ b/dist/cjs/models/DeleteAccessKeyResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteAccessKeyResponse + */ +export interface DeleteAccessKeyResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteAccessKeyResponseFromJSON(json: any): DeleteAccessKeyResponse; +export declare function DeleteAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccessKeyResponse; +export declare function DeleteAccessKeyResponseToJSON(value?: DeleteAccessKeyResponse | null): any; diff --git a/dist/cjs/models/DeleteAccessKeyResponse.js b/dist/cjs/models/DeleteAccessKeyResponse.js new file mode 100644 index 00000000..35b23aa8 --- /dev/null +++ b/dist/cjs/models/DeleteAccessKeyResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteAccessKeyResponseToJSON = exports.DeleteAccessKeyResponseFromJSONTyped = exports.DeleteAccessKeyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteAccessKeyResponseFromJSON(json) { + return DeleteAccessKeyResponseFromJSONTyped(json, false); +} +exports.DeleteAccessKeyResponseFromJSON = DeleteAccessKeyResponseFromJSON; +function DeleteAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteAccessKeyResponseFromJSONTyped = DeleteAccessKeyResponseFromJSONTyped; +function DeleteAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteAccessKeyResponseToJSON = DeleteAccessKeyResponseToJSON; diff --git a/dist/cjs/models/DeleteApiAccessRuleRequest.d.ts b/dist/cjs/models/DeleteApiAccessRuleRequest.d.ts new file mode 100644 index 00000000..64e39569 --- /dev/null +++ b/dist/cjs/models/DeleteApiAccessRuleRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteApiAccessRuleRequest + */ +export interface DeleteApiAccessRuleRequest { + /** + * The ID of the API access rule you want to delete. + * @type {string} + * @memberof DeleteApiAccessRuleRequest + */ + apiAccessRuleId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteApiAccessRuleRequest + */ + dryRun?: boolean; +} +export declare function DeleteApiAccessRuleRequestFromJSON(json: any): DeleteApiAccessRuleRequest; +export declare function DeleteApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteApiAccessRuleRequest; +export declare function DeleteApiAccessRuleRequestToJSON(value?: DeleteApiAccessRuleRequest | null): any; diff --git a/dist/cjs/models/DeleteApiAccessRuleRequest.js b/dist/cjs/models/DeleteApiAccessRuleRequest.js new file mode 100644 index 00000000..5c9f733d --- /dev/null +++ b/dist/cjs/models/DeleteApiAccessRuleRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteApiAccessRuleRequestToJSON = exports.DeleteApiAccessRuleRequestFromJSONTyped = exports.DeleteApiAccessRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteApiAccessRuleRequestFromJSON(json) { + return DeleteApiAccessRuleRequestFromJSONTyped(json, false); +} +exports.DeleteApiAccessRuleRequestFromJSON = DeleteApiAccessRuleRequestFromJSON; +function DeleteApiAccessRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleId': json['ApiAccessRuleId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteApiAccessRuleRequestFromJSONTyped = DeleteApiAccessRuleRequestFromJSONTyped; +function DeleteApiAccessRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleId': value.apiAccessRuleId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteApiAccessRuleRequestToJSON = DeleteApiAccessRuleRequestToJSON; diff --git a/dist/cjs/models/DeleteApiAccessRuleResponse.d.ts b/dist/cjs/models/DeleteApiAccessRuleResponse.d.ts new file mode 100644 index 00000000..2e1f94a5 --- /dev/null +++ b/dist/cjs/models/DeleteApiAccessRuleResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteApiAccessRuleResponse + */ +export interface DeleteApiAccessRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteApiAccessRuleResponseFromJSON(json: any): DeleteApiAccessRuleResponse; +export declare function DeleteApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteApiAccessRuleResponse; +export declare function DeleteApiAccessRuleResponseToJSON(value?: DeleteApiAccessRuleResponse | null): any; diff --git a/dist/cjs/models/DeleteApiAccessRuleResponse.js b/dist/cjs/models/DeleteApiAccessRuleResponse.js new file mode 100644 index 00000000..b1c7e457 --- /dev/null +++ b/dist/cjs/models/DeleteApiAccessRuleResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteApiAccessRuleResponseToJSON = exports.DeleteApiAccessRuleResponseFromJSONTyped = exports.DeleteApiAccessRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteApiAccessRuleResponseFromJSON(json) { + return DeleteApiAccessRuleResponseFromJSONTyped(json, false); +} +exports.DeleteApiAccessRuleResponseFromJSON = DeleteApiAccessRuleResponseFromJSON; +function DeleteApiAccessRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteApiAccessRuleResponseFromJSONTyped = DeleteApiAccessRuleResponseFromJSONTyped; +function DeleteApiAccessRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteApiAccessRuleResponseToJSON = DeleteApiAccessRuleResponseToJSON; diff --git a/dist/cjs/models/DeleteCaRequest.d.ts b/dist/cjs/models/DeleteCaRequest.d.ts new file mode 100644 index 00000000..d5a5ac44 --- /dev/null +++ b/dist/cjs/models/DeleteCaRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteCaRequest + */ +export interface DeleteCaRequest { + /** + * The ID of the CA you want to delete. + * @type {string} + * @memberof DeleteCaRequest + */ + caId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteCaRequest + */ + dryRun?: boolean; +} +export declare function DeleteCaRequestFromJSON(json: any): DeleteCaRequest; +export declare function DeleteCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteCaRequest; +export declare function DeleteCaRequestToJSON(value?: DeleteCaRequest | null): any; diff --git a/dist/cjs/models/DeleteCaRequest.js b/dist/cjs/models/DeleteCaRequest.js new file mode 100644 index 00000000..96ce3516 --- /dev/null +++ b/dist/cjs/models/DeleteCaRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteCaRequestToJSON = exports.DeleteCaRequestFromJSONTyped = exports.DeleteCaRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteCaRequestFromJSON(json) { + return DeleteCaRequestFromJSONTyped(json, false); +} +exports.DeleteCaRequestFromJSON = DeleteCaRequestFromJSON; +function DeleteCaRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caId': json['CaId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteCaRequestFromJSONTyped = DeleteCaRequestFromJSONTyped; +function DeleteCaRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaId': value.caId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteCaRequestToJSON = DeleteCaRequestToJSON; diff --git a/dist/cjs/models/DeleteCaResponse.d.ts b/dist/cjs/models/DeleteCaResponse.d.ts new file mode 100644 index 00000000..d22842a2 --- /dev/null +++ b/dist/cjs/models/DeleteCaResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteCaResponse + */ +export interface DeleteCaResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteCaResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteCaResponseFromJSON(json: any): DeleteCaResponse; +export declare function DeleteCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteCaResponse; +export declare function DeleteCaResponseToJSON(value?: DeleteCaResponse | null): any; diff --git a/dist/cjs/models/DeleteCaResponse.js b/dist/cjs/models/DeleteCaResponse.js new file mode 100644 index 00000000..d4896a80 --- /dev/null +++ b/dist/cjs/models/DeleteCaResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteCaResponseToJSON = exports.DeleteCaResponseFromJSONTyped = exports.DeleteCaResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteCaResponseFromJSON(json) { + return DeleteCaResponseFromJSONTyped(json, false); +} +exports.DeleteCaResponseFromJSON = DeleteCaResponseFromJSON; +function DeleteCaResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteCaResponseFromJSONTyped = DeleteCaResponseFromJSONTyped; +function DeleteCaResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteCaResponseToJSON = DeleteCaResponseToJSON; diff --git a/dist/cjs/models/DeleteClientGatewayRequest.d.ts b/dist/cjs/models/DeleteClientGatewayRequest.d.ts new file mode 100644 index 00000000..13282f87 --- /dev/null +++ b/dist/cjs/models/DeleteClientGatewayRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteClientGatewayRequest + */ +export interface DeleteClientGatewayRequest { + /** + * The ID of the client gateway you want to delete. + * @type {string} + * @memberof DeleteClientGatewayRequest + */ + clientGatewayId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteClientGatewayRequest + */ + dryRun?: boolean; +} +export declare function DeleteClientGatewayRequestFromJSON(json: any): DeleteClientGatewayRequest; +export declare function DeleteClientGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteClientGatewayRequest; +export declare function DeleteClientGatewayRequestToJSON(value?: DeleteClientGatewayRequest | null): any; diff --git a/dist/cjs/models/DeleteClientGatewayRequest.js b/dist/cjs/models/DeleteClientGatewayRequest.js new file mode 100644 index 00000000..a15c71a1 --- /dev/null +++ b/dist/cjs/models/DeleteClientGatewayRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteClientGatewayRequestToJSON = exports.DeleteClientGatewayRequestFromJSONTyped = exports.DeleteClientGatewayRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteClientGatewayRequestFromJSON(json) { + return DeleteClientGatewayRequestFromJSONTyped(json, false); +} +exports.DeleteClientGatewayRequestFromJSON = DeleteClientGatewayRequestFromJSON; +function DeleteClientGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayId': json['ClientGatewayId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteClientGatewayRequestFromJSONTyped = DeleteClientGatewayRequestFromJSONTyped; +function DeleteClientGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayId': value.clientGatewayId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteClientGatewayRequestToJSON = DeleteClientGatewayRequestToJSON; diff --git a/dist/cjs/models/DeleteClientGatewayResponse.d.ts b/dist/cjs/models/DeleteClientGatewayResponse.d.ts new file mode 100644 index 00000000..4f3f6904 --- /dev/null +++ b/dist/cjs/models/DeleteClientGatewayResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteClientGatewayResponse + */ +export interface DeleteClientGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteClientGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteClientGatewayResponseFromJSON(json: any): DeleteClientGatewayResponse; +export declare function DeleteClientGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteClientGatewayResponse; +export declare function DeleteClientGatewayResponseToJSON(value?: DeleteClientGatewayResponse | null): any; diff --git a/dist/cjs/models/DeleteClientGatewayResponse.js b/dist/cjs/models/DeleteClientGatewayResponse.js new file mode 100644 index 00000000..f45bd7a8 --- /dev/null +++ b/dist/cjs/models/DeleteClientGatewayResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteClientGatewayResponseToJSON = exports.DeleteClientGatewayResponseFromJSONTyped = exports.DeleteClientGatewayResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteClientGatewayResponseFromJSON(json) { + return DeleteClientGatewayResponseFromJSONTyped(json, false); +} +exports.DeleteClientGatewayResponseFromJSON = DeleteClientGatewayResponseFromJSON; +function DeleteClientGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteClientGatewayResponseFromJSONTyped = DeleteClientGatewayResponseFromJSONTyped; +function DeleteClientGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteClientGatewayResponseToJSON = DeleteClientGatewayResponseToJSON; diff --git a/dist/cjs/models/DeleteDhcpOptionsRequest.d.ts b/dist/cjs/models/DeleteDhcpOptionsRequest.d.ts new file mode 100644 index 00000000..c1858bec --- /dev/null +++ b/dist/cjs/models/DeleteDhcpOptionsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteDhcpOptionsRequest + */ +export interface DeleteDhcpOptionsRequest { + /** + * The ID of the DHCP options set you want to delete. + * @type {string} + * @memberof DeleteDhcpOptionsRequest + */ + dhcpOptionsSetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDhcpOptionsRequest + */ + dryRun?: boolean; +} +export declare function DeleteDhcpOptionsRequestFromJSON(json: any): DeleteDhcpOptionsRequest; +export declare function DeleteDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDhcpOptionsRequest; +export declare function DeleteDhcpOptionsRequestToJSON(value?: DeleteDhcpOptionsRequest | null): any; diff --git a/dist/cjs/models/DeleteDhcpOptionsRequest.js b/dist/cjs/models/DeleteDhcpOptionsRequest.js new file mode 100644 index 00000000..ee0ee2d7 --- /dev/null +++ b/dist/cjs/models/DeleteDhcpOptionsRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDhcpOptionsRequestToJSON = exports.DeleteDhcpOptionsRequestFromJSONTyped = exports.DeleteDhcpOptionsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteDhcpOptionsRequestFromJSON(json) { + return DeleteDhcpOptionsRequestFromJSONTyped(json, false); +} +exports.DeleteDhcpOptionsRequestFromJSON = DeleteDhcpOptionsRequestFromJSON; +function DeleteDhcpOptionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetId': json['DhcpOptionsSetId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteDhcpOptionsRequestFromJSONTyped = DeleteDhcpOptionsRequestFromJSONTyped; +function DeleteDhcpOptionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteDhcpOptionsRequestToJSON = DeleteDhcpOptionsRequestToJSON; diff --git a/dist/cjs/models/DeleteDhcpOptionsResponse.d.ts b/dist/cjs/models/DeleteDhcpOptionsResponse.d.ts new file mode 100644 index 00000000..89b57f90 --- /dev/null +++ b/dist/cjs/models/DeleteDhcpOptionsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteDhcpOptionsResponse + */ +export interface DeleteDhcpOptionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteDhcpOptionsResponseFromJSON(json: any): DeleteDhcpOptionsResponse; +export declare function DeleteDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDhcpOptionsResponse; +export declare function DeleteDhcpOptionsResponseToJSON(value?: DeleteDhcpOptionsResponse | null): any; diff --git a/dist/cjs/models/DeleteDhcpOptionsResponse.js b/dist/cjs/models/DeleteDhcpOptionsResponse.js new file mode 100644 index 00000000..3131ec80 --- /dev/null +++ b/dist/cjs/models/DeleteDhcpOptionsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDhcpOptionsResponseToJSON = exports.DeleteDhcpOptionsResponseFromJSONTyped = exports.DeleteDhcpOptionsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteDhcpOptionsResponseFromJSON(json) { + return DeleteDhcpOptionsResponseFromJSONTyped(json, false); +} +exports.DeleteDhcpOptionsResponseFromJSON = DeleteDhcpOptionsResponseFromJSON; +function DeleteDhcpOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteDhcpOptionsResponseFromJSONTyped = DeleteDhcpOptionsResponseFromJSONTyped; +function DeleteDhcpOptionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteDhcpOptionsResponseToJSON = DeleteDhcpOptionsResponseToJSON; diff --git a/dist/cjs/models/DeleteDirectLinkInterfaceRequest.d.ts b/dist/cjs/models/DeleteDirectLinkInterfaceRequest.d.ts new file mode 100644 index 00000000..3cd137ee --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkInterfaceRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteDirectLinkInterfaceRequest + */ +export interface DeleteDirectLinkInterfaceRequest { + /** + * The ID of the DirectLink interface you want to delete. + * @type {string} + * @memberof DeleteDirectLinkInterfaceRequest + */ + directLinkInterfaceId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDirectLinkInterfaceRequest + */ + dryRun?: boolean; +} +export declare function DeleteDirectLinkInterfaceRequestFromJSON(json: any): DeleteDirectLinkInterfaceRequest; +export declare function DeleteDirectLinkInterfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkInterfaceRequest; +export declare function DeleteDirectLinkInterfaceRequestToJSON(value?: DeleteDirectLinkInterfaceRequest | null): any; diff --git a/dist/cjs/models/DeleteDirectLinkInterfaceRequest.js b/dist/cjs/models/DeleteDirectLinkInterfaceRequest.js new file mode 100644 index 00000000..51d84de3 --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkInterfaceRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDirectLinkInterfaceRequestToJSON = exports.DeleteDirectLinkInterfaceRequestFromJSONTyped = exports.DeleteDirectLinkInterfaceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteDirectLinkInterfaceRequestFromJSON(json) { + return DeleteDirectLinkInterfaceRequestFromJSONTyped(json, false); +} +exports.DeleteDirectLinkInterfaceRequestFromJSON = DeleteDirectLinkInterfaceRequestFromJSON; +function DeleteDirectLinkInterfaceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkInterfaceId': json['DirectLinkInterfaceId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteDirectLinkInterfaceRequestFromJSONTyped = DeleteDirectLinkInterfaceRequestFromJSONTyped; +function DeleteDirectLinkInterfaceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkInterfaceId': value.directLinkInterfaceId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteDirectLinkInterfaceRequestToJSON = DeleteDirectLinkInterfaceRequestToJSON; diff --git a/dist/cjs/models/DeleteDirectLinkInterfaceResponse.d.ts b/dist/cjs/models/DeleteDirectLinkInterfaceResponse.d.ts new file mode 100644 index 00000000..4f9b1a55 --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkInterfaceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteDirectLinkInterfaceResponse + */ +export interface DeleteDirectLinkInterfaceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDirectLinkInterfaceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteDirectLinkInterfaceResponseFromJSON(json: any): DeleteDirectLinkInterfaceResponse; +export declare function DeleteDirectLinkInterfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkInterfaceResponse; +export declare function DeleteDirectLinkInterfaceResponseToJSON(value?: DeleteDirectLinkInterfaceResponse | null): any; diff --git a/dist/cjs/models/DeleteDirectLinkInterfaceResponse.js b/dist/cjs/models/DeleteDirectLinkInterfaceResponse.js new file mode 100644 index 00000000..589c1a32 --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkInterfaceResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDirectLinkInterfaceResponseToJSON = exports.DeleteDirectLinkInterfaceResponseFromJSONTyped = exports.DeleteDirectLinkInterfaceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteDirectLinkInterfaceResponseFromJSON(json) { + return DeleteDirectLinkInterfaceResponseFromJSONTyped(json, false); +} +exports.DeleteDirectLinkInterfaceResponseFromJSON = DeleteDirectLinkInterfaceResponseFromJSON; +function DeleteDirectLinkInterfaceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteDirectLinkInterfaceResponseFromJSONTyped = DeleteDirectLinkInterfaceResponseFromJSONTyped; +function DeleteDirectLinkInterfaceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteDirectLinkInterfaceResponseToJSON = DeleteDirectLinkInterfaceResponseToJSON; diff --git a/dist/cjs/models/DeleteDirectLinkRequest.d.ts b/dist/cjs/models/DeleteDirectLinkRequest.d.ts new file mode 100644 index 00000000..d6838b9f --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteDirectLinkRequest + */ +export interface DeleteDirectLinkRequest { + /** + * The ID of the DirectLink you want to delete. + * @type {string} + * @memberof DeleteDirectLinkRequest + */ + directLinkId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDirectLinkRequest + */ + dryRun?: boolean; +} +export declare function DeleteDirectLinkRequestFromJSON(json: any): DeleteDirectLinkRequest; +export declare function DeleteDirectLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkRequest; +export declare function DeleteDirectLinkRequestToJSON(value?: DeleteDirectLinkRequest | null): any; diff --git a/dist/cjs/models/DeleteDirectLinkRequest.js b/dist/cjs/models/DeleteDirectLinkRequest.js new file mode 100644 index 00000000..298c5a46 --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDirectLinkRequestToJSON = exports.DeleteDirectLinkRequestFromJSONTyped = exports.DeleteDirectLinkRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteDirectLinkRequestFromJSON(json) { + return DeleteDirectLinkRequestFromJSONTyped(json, false); +} +exports.DeleteDirectLinkRequestFromJSON = DeleteDirectLinkRequestFromJSON; +function DeleteDirectLinkRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkId': json['DirectLinkId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.DeleteDirectLinkRequestFromJSONTyped = DeleteDirectLinkRequestFromJSONTyped; +function DeleteDirectLinkRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkId': value.directLinkId, + 'DryRun': value.dryRun, + }; +} +exports.DeleteDirectLinkRequestToJSON = DeleteDirectLinkRequestToJSON; diff --git a/dist/cjs/models/DeleteDirectLinkResponse.d.ts b/dist/cjs/models/DeleteDirectLinkResponse.d.ts new file mode 100644 index 00000000..5d835206 --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteDirectLinkResponse + */ +export interface DeleteDirectLinkResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDirectLinkResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteDirectLinkResponseFromJSON(json: any): DeleteDirectLinkResponse; +export declare function DeleteDirectLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkResponse; +export declare function DeleteDirectLinkResponseToJSON(value?: DeleteDirectLinkResponse | null): any; diff --git a/dist/cjs/models/DeleteDirectLinkResponse.js b/dist/cjs/models/DeleteDirectLinkResponse.js new file mode 100644 index 00000000..8840c944 --- /dev/null +++ b/dist/cjs/models/DeleteDirectLinkResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDirectLinkResponseToJSON = exports.DeleteDirectLinkResponseFromJSONTyped = exports.DeleteDirectLinkResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteDirectLinkResponseFromJSON(json) { + return DeleteDirectLinkResponseFromJSONTyped(json, false); +} +exports.DeleteDirectLinkResponseFromJSON = DeleteDirectLinkResponseFromJSON; +function DeleteDirectLinkResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteDirectLinkResponseFromJSONTyped = DeleteDirectLinkResponseFromJSONTyped; +function DeleteDirectLinkResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteDirectLinkResponseToJSON = DeleteDirectLinkResponseToJSON; diff --git a/dist/cjs/models/DeleteExportTaskRequest.d.ts b/dist/cjs/models/DeleteExportTaskRequest.d.ts new file mode 100644 index 00000000..4ae5ca3d --- /dev/null +++ b/dist/cjs/models/DeleteExportTaskRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteExportTaskRequest + */ +export interface DeleteExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteExportTaskRequest + */ + dryRun?: boolean; + /** + * The ID of the export task to delete. + * @type {string} + * @memberof DeleteExportTaskRequest + */ + exportTaskId: string; +} +export declare function DeleteExportTaskRequestFromJSON(json: any): DeleteExportTaskRequest; +export declare function DeleteExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteExportTaskRequest; +export declare function DeleteExportTaskRequestToJSON(value?: DeleteExportTaskRequest | null): any; diff --git a/dist/cjs/models/DeleteExportTaskRequest.js b/dist/cjs/models/DeleteExportTaskRequest.js new file mode 100644 index 00000000..e66dabc9 --- /dev/null +++ b/dist/cjs/models/DeleteExportTaskRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteExportTaskRequestToJSON = exports.DeleteExportTaskRequestFromJSONTyped = exports.DeleteExportTaskRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteExportTaskRequestFromJSON(json) { + return DeleteExportTaskRequestFromJSONTyped(json, false); +} +exports.DeleteExportTaskRequestFromJSON = DeleteExportTaskRequestFromJSON; +function DeleteExportTaskRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'exportTaskId': json['ExportTaskId'], + }; +} +exports.DeleteExportTaskRequestFromJSONTyped = DeleteExportTaskRequestFromJSONTyped; +function DeleteExportTaskRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ExportTaskId': value.exportTaskId, + }; +} +exports.DeleteExportTaskRequestToJSON = DeleteExportTaskRequestToJSON; diff --git a/dist/cjs/models/DeleteExportTaskResponse.d.ts b/dist/cjs/models/DeleteExportTaskResponse.d.ts new file mode 100644 index 00000000..aaa613ad --- /dev/null +++ b/dist/cjs/models/DeleteExportTaskResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteExportTaskResponse + */ +export interface DeleteExportTaskResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteExportTaskResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteExportTaskResponseFromJSON(json: any): DeleteExportTaskResponse; +export declare function DeleteExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteExportTaskResponse; +export declare function DeleteExportTaskResponseToJSON(value?: DeleteExportTaskResponse | null): any; diff --git a/dist/cjs/models/DeleteExportTaskResponse.js b/dist/cjs/models/DeleteExportTaskResponse.js new file mode 100644 index 00000000..ea6a3ebc --- /dev/null +++ b/dist/cjs/models/DeleteExportTaskResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteExportTaskResponseToJSON = exports.DeleteExportTaskResponseFromJSONTyped = exports.DeleteExportTaskResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteExportTaskResponseFromJSON(json) { + return DeleteExportTaskResponseFromJSONTyped(json, false); +} +exports.DeleteExportTaskResponseFromJSON = DeleteExportTaskResponseFromJSON; +function DeleteExportTaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteExportTaskResponseFromJSONTyped = DeleteExportTaskResponseFromJSONTyped; +function DeleteExportTaskResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteExportTaskResponseToJSON = DeleteExportTaskResponseToJSON; diff --git a/dist/cjs/models/DeleteFlexibleGpuRequest.d.ts b/dist/cjs/models/DeleteFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..f75b2875 --- /dev/null +++ b/dist/cjs/models/DeleteFlexibleGpuRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteFlexibleGpuRequest + */ +export interface DeleteFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to delete. + * @type {string} + * @memberof DeleteFlexibleGpuRequest + */ + flexibleGpuId: string; +} +export declare function DeleteFlexibleGpuRequestFromJSON(json: any): DeleteFlexibleGpuRequest; +export declare function DeleteFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteFlexibleGpuRequest; +export declare function DeleteFlexibleGpuRequestToJSON(value?: DeleteFlexibleGpuRequest | null): any; diff --git a/dist/cjs/models/DeleteFlexibleGpuRequest.js b/dist/cjs/models/DeleteFlexibleGpuRequest.js new file mode 100644 index 00000000..f57fb311 --- /dev/null +++ b/dist/cjs/models/DeleteFlexibleGpuRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteFlexibleGpuRequestToJSON = exports.DeleteFlexibleGpuRequestFromJSONTyped = exports.DeleteFlexibleGpuRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteFlexibleGpuRequestFromJSON(json) { + return DeleteFlexibleGpuRequestFromJSONTyped(json, false); +} +exports.DeleteFlexibleGpuRequestFromJSON = DeleteFlexibleGpuRequestFromJSON; +function DeleteFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} +exports.DeleteFlexibleGpuRequestFromJSONTyped = DeleteFlexibleGpuRequestFromJSONTyped; +function DeleteFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} +exports.DeleteFlexibleGpuRequestToJSON = DeleteFlexibleGpuRequestToJSON; diff --git a/dist/cjs/models/DeleteFlexibleGpuResponse.d.ts b/dist/cjs/models/DeleteFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..81810929 --- /dev/null +++ b/dist/cjs/models/DeleteFlexibleGpuResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteFlexibleGpuResponse + */ +export interface DeleteFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteFlexibleGpuResponseFromJSON(json: any): DeleteFlexibleGpuResponse; +export declare function DeleteFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteFlexibleGpuResponse; +export declare function DeleteFlexibleGpuResponseToJSON(value?: DeleteFlexibleGpuResponse | null): any; diff --git a/dist/cjs/models/DeleteFlexibleGpuResponse.js b/dist/cjs/models/DeleteFlexibleGpuResponse.js new file mode 100644 index 00000000..65c78a4b --- /dev/null +++ b/dist/cjs/models/DeleteFlexibleGpuResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteFlexibleGpuResponseToJSON = exports.DeleteFlexibleGpuResponseFromJSONTyped = exports.DeleteFlexibleGpuResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteFlexibleGpuResponseFromJSON(json) { + return DeleteFlexibleGpuResponseFromJSONTyped(json, false); +} +exports.DeleteFlexibleGpuResponseFromJSON = DeleteFlexibleGpuResponseFromJSON; +function DeleteFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteFlexibleGpuResponseFromJSONTyped = DeleteFlexibleGpuResponseFromJSONTyped; +function DeleteFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteFlexibleGpuResponseToJSON = DeleteFlexibleGpuResponseToJSON; diff --git a/dist/cjs/models/DeleteImageRequest.d.ts b/dist/cjs/models/DeleteImageRequest.d.ts new file mode 100644 index 00000000..d925180d --- /dev/null +++ b/dist/cjs/models/DeleteImageRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteImageRequest + */ +export interface DeleteImageRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteImageRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI you want to delete. + * @type {string} + * @memberof DeleteImageRequest + */ + imageId: string; +} +export declare function DeleteImageRequestFromJSON(json: any): DeleteImageRequest; +export declare function DeleteImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteImageRequest; +export declare function DeleteImageRequestToJSON(value?: DeleteImageRequest | null): any; diff --git a/dist/cjs/models/DeleteImageRequest.js b/dist/cjs/models/DeleteImageRequest.js new file mode 100644 index 00000000..f3f67872 --- /dev/null +++ b/dist/cjs/models/DeleteImageRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteImageRequestToJSON = exports.DeleteImageRequestFromJSONTyped = exports.DeleteImageRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteImageRequestFromJSON(json) { + return DeleteImageRequestFromJSONTyped(json, false); +} +exports.DeleteImageRequestFromJSON = DeleteImageRequestFromJSON; +function DeleteImageRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + }; +} +exports.DeleteImageRequestFromJSONTyped = DeleteImageRequestFromJSONTyped; +function DeleteImageRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + }; +} +exports.DeleteImageRequestToJSON = DeleteImageRequestToJSON; diff --git a/dist/cjs/models/DeleteImageResponse.d.ts b/dist/cjs/models/DeleteImageResponse.d.ts new file mode 100644 index 00000000..0203d10a --- /dev/null +++ b/dist/cjs/models/DeleteImageResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteImageResponse + */ +export interface DeleteImageResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteImageResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteImageResponseFromJSON(json: any): DeleteImageResponse; +export declare function DeleteImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteImageResponse; +export declare function DeleteImageResponseToJSON(value?: DeleteImageResponse | null): any; diff --git a/dist/cjs/models/DeleteImageResponse.js b/dist/cjs/models/DeleteImageResponse.js new file mode 100644 index 00000000..ffa1730e --- /dev/null +++ b/dist/cjs/models/DeleteImageResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteImageResponseToJSON = exports.DeleteImageResponseFromJSONTyped = exports.DeleteImageResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteImageResponseFromJSON(json) { + return DeleteImageResponseFromJSONTyped(json, false); +} +exports.DeleteImageResponseFromJSON = DeleteImageResponseFromJSON; +function DeleteImageResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteImageResponseFromJSONTyped = DeleteImageResponseFromJSONTyped; +function DeleteImageResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteImageResponseToJSON = DeleteImageResponseToJSON; diff --git a/dist/cjs/models/DeleteInternetServiceRequest.d.ts b/dist/cjs/models/DeleteInternetServiceRequest.d.ts new file mode 100644 index 00000000..9e5c14e3 --- /dev/null +++ b/dist/cjs/models/DeleteInternetServiceRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteInternetServiceRequest + */ +export interface DeleteInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to delete. + * @type {string} + * @memberof DeleteInternetServiceRequest + */ + internetServiceId: string; +} +export declare function DeleteInternetServiceRequestFromJSON(json: any): DeleteInternetServiceRequest; +export declare function DeleteInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteInternetServiceRequest; +export declare function DeleteInternetServiceRequestToJSON(value?: DeleteInternetServiceRequest | null): any; diff --git a/dist/cjs/models/DeleteInternetServiceRequest.js b/dist/cjs/models/DeleteInternetServiceRequest.js new file mode 100644 index 00000000..4017b213 --- /dev/null +++ b/dist/cjs/models/DeleteInternetServiceRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteInternetServiceRequestToJSON = exports.DeleteInternetServiceRequestFromJSONTyped = exports.DeleteInternetServiceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteInternetServiceRequestFromJSON(json) { + return DeleteInternetServiceRequestFromJSONTyped(json, false); +} +exports.DeleteInternetServiceRequestFromJSON = DeleteInternetServiceRequestFromJSON; +function DeleteInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + }; +} +exports.DeleteInternetServiceRequestFromJSONTyped = DeleteInternetServiceRequestFromJSONTyped; +function DeleteInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + }; +} +exports.DeleteInternetServiceRequestToJSON = DeleteInternetServiceRequestToJSON; diff --git a/dist/cjs/models/DeleteInternetServiceResponse.d.ts b/dist/cjs/models/DeleteInternetServiceResponse.d.ts new file mode 100644 index 00000000..e1a69f71 --- /dev/null +++ b/dist/cjs/models/DeleteInternetServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteInternetServiceResponse + */ +export interface DeleteInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteInternetServiceResponseFromJSON(json: any): DeleteInternetServiceResponse; +export declare function DeleteInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteInternetServiceResponse; +export declare function DeleteInternetServiceResponseToJSON(value?: DeleteInternetServiceResponse | null): any; diff --git a/dist/cjs/models/DeleteInternetServiceResponse.js b/dist/cjs/models/DeleteInternetServiceResponse.js new file mode 100644 index 00000000..de2ab7c8 --- /dev/null +++ b/dist/cjs/models/DeleteInternetServiceResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteInternetServiceResponseToJSON = exports.DeleteInternetServiceResponseFromJSONTyped = exports.DeleteInternetServiceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteInternetServiceResponseFromJSON(json) { + return DeleteInternetServiceResponseFromJSONTyped(json, false); +} +exports.DeleteInternetServiceResponseFromJSON = DeleteInternetServiceResponseFromJSON; +function DeleteInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteInternetServiceResponseFromJSONTyped = DeleteInternetServiceResponseFromJSONTyped; +function DeleteInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteInternetServiceResponseToJSON = DeleteInternetServiceResponseToJSON; diff --git a/dist/cjs/models/DeleteKeypairRequest.d.ts b/dist/cjs/models/DeleteKeypairRequest.d.ts new file mode 100644 index 00000000..af27278c --- /dev/null +++ b/dist/cjs/models/DeleteKeypairRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteKeypairRequest + */ +export interface DeleteKeypairRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteKeypairRequest + */ + dryRun?: boolean; + /** + * The name of the keypair you want to delete. + * @type {string} + * @memberof DeleteKeypairRequest + */ + keypairName: string; +} +export declare function DeleteKeypairRequestFromJSON(json: any): DeleteKeypairRequest; +export declare function DeleteKeypairRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKeypairRequest; +export declare function DeleteKeypairRequestToJSON(value?: DeleteKeypairRequest | null): any; diff --git a/dist/cjs/models/DeleteKeypairRequest.js b/dist/cjs/models/DeleteKeypairRequest.js new file mode 100644 index 00000000..c0136420 --- /dev/null +++ b/dist/cjs/models/DeleteKeypairRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteKeypairRequestToJSON = exports.DeleteKeypairRequestFromJSONTyped = exports.DeleteKeypairRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteKeypairRequestFromJSON(json) { + return DeleteKeypairRequestFromJSONTyped(json, false); +} +exports.DeleteKeypairRequestFromJSON = DeleteKeypairRequestFromJSON; +function DeleteKeypairRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'keypairName': json['KeypairName'], + }; +} +exports.DeleteKeypairRequestFromJSONTyped = DeleteKeypairRequestFromJSONTyped; +function DeleteKeypairRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'KeypairName': value.keypairName, + }; +} +exports.DeleteKeypairRequestToJSON = DeleteKeypairRequestToJSON; diff --git a/dist/cjs/models/DeleteKeypairResponse.d.ts b/dist/cjs/models/DeleteKeypairResponse.d.ts new file mode 100644 index 00000000..35157b9d --- /dev/null +++ b/dist/cjs/models/DeleteKeypairResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteKeypairResponse + */ +export interface DeleteKeypairResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteKeypairResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteKeypairResponseFromJSON(json: any): DeleteKeypairResponse; +export declare function DeleteKeypairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKeypairResponse; +export declare function DeleteKeypairResponseToJSON(value?: DeleteKeypairResponse | null): any; diff --git a/dist/cjs/models/DeleteKeypairResponse.js b/dist/cjs/models/DeleteKeypairResponse.js new file mode 100644 index 00000000..9135f769 --- /dev/null +++ b/dist/cjs/models/DeleteKeypairResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteKeypairResponseToJSON = exports.DeleteKeypairResponseFromJSONTyped = exports.DeleteKeypairResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteKeypairResponseFromJSON(json) { + return DeleteKeypairResponseFromJSONTyped(json, false); +} +exports.DeleteKeypairResponseFromJSON = DeleteKeypairResponseFromJSON; +function DeleteKeypairResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteKeypairResponseFromJSONTyped = DeleteKeypairResponseFromJSONTyped; +function DeleteKeypairResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteKeypairResponseToJSON = DeleteKeypairResponseToJSON; diff --git a/dist/cjs/models/DeleteListenerRuleRequest.d.ts b/dist/cjs/models/DeleteListenerRuleRequest.d.ts new file mode 100644 index 00000000..8bb287f4 --- /dev/null +++ b/dist/cjs/models/DeleteListenerRuleRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteListenerRuleRequest + */ +export interface DeleteListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteListenerRuleRequest + */ + dryRun?: boolean; + /** + * The name of the rule you want to delete. + * @type {string} + * @memberof DeleteListenerRuleRequest + */ + listenerRuleName: string; +} +export declare function DeleteListenerRuleRequestFromJSON(json: any): DeleteListenerRuleRequest; +export declare function DeleteListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteListenerRuleRequest; +export declare function DeleteListenerRuleRequestToJSON(value?: DeleteListenerRuleRequest | null): any; diff --git a/dist/cjs/models/DeleteListenerRuleRequest.js b/dist/cjs/models/DeleteListenerRuleRequest.js new file mode 100644 index 00000000..ca7040b4 --- /dev/null +++ b/dist/cjs/models/DeleteListenerRuleRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteListenerRuleRequestToJSON = exports.DeleteListenerRuleRequestFromJSONTyped = exports.DeleteListenerRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteListenerRuleRequestFromJSON(json) { + return DeleteListenerRuleRequestFromJSONTyped(json, false); +} +exports.DeleteListenerRuleRequestFromJSON = DeleteListenerRuleRequestFromJSON; +function DeleteListenerRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'listenerRuleName': json['ListenerRuleName'], + }; +} +exports.DeleteListenerRuleRequestFromJSONTyped = DeleteListenerRuleRequestFromJSONTyped; +function DeleteListenerRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ListenerRuleName': value.listenerRuleName, + }; +} +exports.DeleteListenerRuleRequestToJSON = DeleteListenerRuleRequestToJSON; diff --git a/dist/cjs/models/DeleteListenerRuleResponse.d.ts b/dist/cjs/models/DeleteListenerRuleResponse.d.ts new file mode 100644 index 00000000..6bae831b --- /dev/null +++ b/dist/cjs/models/DeleteListenerRuleResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteListenerRuleResponse + */ +export interface DeleteListenerRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteListenerRuleResponseFromJSON(json: any): DeleteListenerRuleResponse; +export declare function DeleteListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteListenerRuleResponse; +export declare function DeleteListenerRuleResponseToJSON(value?: DeleteListenerRuleResponse | null): any; diff --git a/dist/cjs/models/DeleteListenerRuleResponse.js b/dist/cjs/models/DeleteListenerRuleResponse.js new file mode 100644 index 00000000..d4956758 --- /dev/null +++ b/dist/cjs/models/DeleteListenerRuleResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteListenerRuleResponseToJSON = exports.DeleteListenerRuleResponseFromJSONTyped = exports.DeleteListenerRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteListenerRuleResponseFromJSON(json) { + return DeleteListenerRuleResponseFromJSONTyped(json, false); +} +exports.DeleteListenerRuleResponseFromJSON = DeleteListenerRuleResponseFromJSON; +function DeleteListenerRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteListenerRuleResponseFromJSONTyped = DeleteListenerRuleResponseFromJSONTyped; +function DeleteListenerRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteListenerRuleResponseToJSON = DeleteListenerRuleResponseToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerListenersRequest.d.ts b/dist/cjs/models/DeleteLoadBalancerListenersRequest.d.ts new file mode 100644 index 00000000..0f9b02f5 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerListenersRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteLoadBalancerListenersRequest + */ +export interface DeleteLoadBalancerListenersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerListenersRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to delete listeners. + * @type {string} + * @memberof DeleteLoadBalancerListenersRequest + */ + loadBalancerName: string; + /** + * One or more port numbers of the listeners you want to delete. + * @type {Array} + * @memberof DeleteLoadBalancerListenersRequest + */ + loadBalancerPorts: Array; +} +export declare function DeleteLoadBalancerListenersRequestFromJSON(json: any): DeleteLoadBalancerListenersRequest; +export declare function DeleteLoadBalancerListenersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerListenersRequest; +export declare function DeleteLoadBalancerListenersRequestToJSON(value?: DeleteLoadBalancerListenersRequest | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerListenersRequest.js b/dist/cjs/models/DeleteLoadBalancerListenersRequest.js new file mode 100644 index 00000000..a7818c80 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerListenersRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerListenersRequestToJSON = exports.DeleteLoadBalancerListenersRequestFromJSONTyped = exports.DeleteLoadBalancerListenersRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteLoadBalancerListenersRequestFromJSON(json) { + return DeleteLoadBalancerListenersRequestFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerListenersRequestFromJSON = DeleteLoadBalancerListenersRequestFromJSON; +function DeleteLoadBalancerListenersRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPorts': json['LoadBalancerPorts'], + }; +} +exports.DeleteLoadBalancerListenersRequestFromJSONTyped = DeleteLoadBalancerListenersRequestFromJSONTyped; +function DeleteLoadBalancerListenersRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPorts': value.loadBalancerPorts, + }; +} +exports.DeleteLoadBalancerListenersRequestToJSON = DeleteLoadBalancerListenersRequestToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerListenersResponse.d.ts b/dist/cjs/models/DeleteLoadBalancerListenersResponse.d.ts new file mode 100644 index 00000000..7e1e3f11 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerListenersResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerListenersResponse + */ +export interface DeleteLoadBalancerListenersResponse { + /** + * + * @type {LoadBalancer} + * @memberof DeleteLoadBalancerListenersResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerListenersResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerListenersResponseFromJSON(json: any): DeleteLoadBalancerListenersResponse; +export declare function DeleteLoadBalancerListenersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerListenersResponse; +export declare function DeleteLoadBalancerListenersResponseToJSON(value?: DeleteLoadBalancerListenersResponse | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerListenersResponse.js b/dist/cjs/models/DeleteLoadBalancerListenersResponse.js new file mode 100644 index 00000000..6882d05c --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerListenersResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerListenersResponseToJSON = exports.DeleteLoadBalancerListenersResponseFromJSONTyped = exports.DeleteLoadBalancerListenersResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteLoadBalancerListenersResponseFromJSON(json) { + return DeleteLoadBalancerListenersResponseFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerListenersResponseFromJSON = DeleteLoadBalancerListenersResponseFromJSON; +function DeleteLoadBalancerListenersResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !(0, runtime_1.exists)(json, 'LoadBalancer') ? undefined : (0, LoadBalancer_1.LoadBalancerFromJSON)(json['LoadBalancer']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteLoadBalancerListenersResponseFromJSONTyped = DeleteLoadBalancerListenersResponseFromJSONTyped; +function DeleteLoadBalancerListenersResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': (0, LoadBalancer_1.LoadBalancerToJSON)(value.loadBalancer), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteLoadBalancerListenersResponseToJSON = DeleteLoadBalancerListenersResponseToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerPolicyRequest.d.ts b/dist/cjs/models/DeleteLoadBalancerPolicyRequest.d.ts new file mode 100644 index 00000000..8dc14243 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerPolicyRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteLoadBalancerPolicyRequest + */ +export interface DeleteLoadBalancerPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerPolicyRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to delete a policy. + * @type {string} + * @memberof DeleteLoadBalancerPolicyRequest + */ + loadBalancerName: string; + /** + * The name of the policy you want to delete. + * @type {string} + * @memberof DeleteLoadBalancerPolicyRequest + */ + policyName: string; +} +export declare function DeleteLoadBalancerPolicyRequestFromJSON(json: any): DeleteLoadBalancerPolicyRequest; +export declare function DeleteLoadBalancerPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerPolicyRequest; +export declare function DeleteLoadBalancerPolicyRequestToJSON(value?: DeleteLoadBalancerPolicyRequest | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerPolicyRequest.js b/dist/cjs/models/DeleteLoadBalancerPolicyRequest.js new file mode 100644 index 00000000..c6be62c4 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerPolicyRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerPolicyRequestToJSON = exports.DeleteLoadBalancerPolicyRequestFromJSONTyped = exports.DeleteLoadBalancerPolicyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteLoadBalancerPolicyRequestFromJSON(json) { + return DeleteLoadBalancerPolicyRequestFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerPolicyRequestFromJSON = DeleteLoadBalancerPolicyRequestFromJSON; +function DeleteLoadBalancerPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'policyName': json['PolicyName'], + }; +} +exports.DeleteLoadBalancerPolicyRequestFromJSONTyped = DeleteLoadBalancerPolicyRequestFromJSONTyped; +function DeleteLoadBalancerPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'PolicyName': value.policyName, + }; +} +exports.DeleteLoadBalancerPolicyRequestToJSON = DeleteLoadBalancerPolicyRequestToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerPolicyResponse.d.ts b/dist/cjs/models/DeleteLoadBalancerPolicyResponse.d.ts new file mode 100644 index 00000000..6a033352 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerPolicyResponse + */ +export interface DeleteLoadBalancerPolicyResponse { + /** + * + * @type {LoadBalancer} + * @memberof DeleteLoadBalancerPolicyResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerPolicyResponseFromJSON(json: any): DeleteLoadBalancerPolicyResponse; +export declare function DeleteLoadBalancerPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerPolicyResponse; +export declare function DeleteLoadBalancerPolicyResponseToJSON(value?: DeleteLoadBalancerPolicyResponse | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerPolicyResponse.js b/dist/cjs/models/DeleteLoadBalancerPolicyResponse.js new file mode 100644 index 00000000..5bbc757f --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerPolicyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerPolicyResponseToJSON = exports.DeleteLoadBalancerPolicyResponseFromJSONTyped = exports.DeleteLoadBalancerPolicyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteLoadBalancerPolicyResponseFromJSON(json) { + return DeleteLoadBalancerPolicyResponseFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerPolicyResponseFromJSON = DeleteLoadBalancerPolicyResponseFromJSON; +function DeleteLoadBalancerPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !(0, runtime_1.exists)(json, 'LoadBalancer') ? undefined : (0, LoadBalancer_1.LoadBalancerFromJSON)(json['LoadBalancer']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteLoadBalancerPolicyResponseFromJSONTyped = DeleteLoadBalancerPolicyResponseFromJSONTyped; +function DeleteLoadBalancerPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': (0, LoadBalancer_1.LoadBalancerToJSON)(value.loadBalancer), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteLoadBalancerPolicyResponseToJSON = DeleteLoadBalancerPolicyResponseToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerRequest.d.ts b/dist/cjs/models/DeleteLoadBalancerRequest.d.ts new file mode 100644 index 00000000..5a267ae9 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteLoadBalancerRequest + */ +export interface DeleteLoadBalancerRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer you want to delete. + * @type {string} + * @memberof DeleteLoadBalancerRequest + */ + loadBalancerName: string; +} +export declare function DeleteLoadBalancerRequestFromJSON(json: any): DeleteLoadBalancerRequest; +export declare function DeleteLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerRequest; +export declare function DeleteLoadBalancerRequestToJSON(value?: DeleteLoadBalancerRequest | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerRequest.js b/dist/cjs/models/DeleteLoadBalancerRequest.js new file mode 100644 index 00000000..be3d9cb9 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerRequestToJSON = exports.DeleteLoadBalancerRequestFromJSONTyped = exports.DeleteLoadBalancerRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteLoadBalancerRequestFromJSON(json) { + return DeleteLoadBalancerRequestFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerRequestFromJSON = DeleteLoadBalancerRequestFromJSON; +function DeleteLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.DeleteLoadBalancerRequestFromJSONTyped = DeleteLoadBalancerRequestFromJSONTyped; +function DeleteLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.DeleteLoadBalancerRequestToJSON = DeleteLoadBalancerRequestToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerResponse.d.ts b/dist/cjs/models/DeleteLoadBalancerResponse.d.ts new file mode 100644 index 00000000..504e9dab --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerResponse + */ +export interface DeleteLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerResponseFromJSON(json: any): DeleteLoadBalancerResponse; +export declare function DeleteLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerResponse; +export declare function DeleteLoadBalancerResponseToJSON(value?: DeleteLoadBalancerResponse | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerResponse.js b/dist/cjs/models/DeleteLoadBalancerResponse.js new file mode 100644 index 00000000..2610dc66 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerResponseToJSON = exports.DeleteLoadBalancerResponseFromJSONTyped = exports.DeleteLoadBalancerResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteLoadBalancerResponseFromJSON(json) { + return DeleteLoadBalancerResponseFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerResponseFromJSON = DeleteLoadBalancerResponseFromJSON; +function DeleteLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteLoadBalancerResponseFromJSONTyped = DeleteLoadBalancerResponseFromJSONTyped; +function DeleteLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteLoadBalancerResponseToJSON = DeleteLoadBalancerResponseToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerTagsRequest.d.ts b/dist/cjs/models/DeleteLoadBalancerTagsRequest.d.ts new file mode 100644 index 00000000..65687e1b --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceLoadBalancerTag } from './ResourceLoadBalancerTag'; +/** + * + * @export + * @interface DeleteLoadBalancerTagsRequest + */ +export interface DeleteLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof DeleteLoadBalancerTagsRequest + */ + loadBalancerNames: Array; + /** + * One or more tags to delete from the load balancers. + * @type {Array} + * @memberof DeleteLoadBalancerTagsRequest + */ + tags: Array; +} +export declare function DeleteLoadBalancerTagsRequestFromJSON(json: any): DeleteLoadBalancerTagsRequest; +export declare function DeleteLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerTagsRequest; +export declare function DeleteLoadBalancerTagsRequestToJSON(value?: DeleteLoadBalancerTagsRequest | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerTagsRequest.js b/dist/cjs/models/DeleteLoadBalancerTagsRequest.js new file mode 100644 index 00000000..7ad1e5e6 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerTagsRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerTagsRequestToJSON = exports.DeleteLoadBalancerTagsRequestFromJSONTyped = exports.DeleteLoadBalancerTagsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceLoadBalancerTag_1 = require("./ResourceLoadBalancerTag"); +function DeleteLoadBalancerTagsRequestFromJSON(json) { + return DeleteLoadBalancerTagsRequestFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerTagsRequestFromJSON = DeleteLoadBalancerTagsRequestFromJSON; +function DeleteLoadBalancerTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + 'tags': (json['Tags'].map(ResourceLoadBalancerTag_1.ResourceLoadBalancerTagFromJSON)), + }; +} +exports.DeleteLoadBalancerTagsRequestFromJSONTyped = DeleteLoadBalancerTagsRequestFromJSONTyped; +function DeleteLoadBalancerTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + 'Tags': (value.tags.map(ResourceLoadBalancerTag_1.ResourceLoadBalancerTagToJSON)), + }; +} +exports.DeleteLoadBalancerTagsRequestToJSON = DeleteLoadBalancerTagsRequestToJSON; diff --git a/dist/cjs/models/DeleteLoadBalancerTagsResponse.d.ts b/dist/cjs/models/DeleteLoadBalancerTagsResponse.d.ts new file mode 100644 index 00000000..adb3a713 --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerTagsResponse + */ +export interface DeleteLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerTagsResponseFromJSON(json: any): DeleteLoadBalancerTagsResponse; +export declare function DeleteLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerTagsResponse; +export declare function DeleteLoadBalancerTagsResponseToJSON(value?: DeleteLoadBalancerTagsResponse | null): any; diff --git a/dist/cjs/models/DeleteLoadBalancerTagsResponse.js b/dist/cjs/models/DeleteLoadBalancerTagsResponse.js new file mode 100644 index 00000000..76c88b2c --- /dev/null +++ b/dist/cjs/models/DeleteLoadBalancerTagsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteLoadBalancerTagsResponseToJSON = exports.DeleteLoadBalancerTagsResponseFromJSONTyped = exports.DeleteLoadBalancerTagsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteLoadBalancerTagsResponseFromJSON(json) { + return DeleteLoadBalancerTagsResponseFromJSONTyped(json, false); +} +exports.DeleteLoadBalancerTagsResponseFromJSON = DeleteLoadBalancerTagsResponseFromJSON; +function DeleteLoadBalancerTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteLoadBalancerTagsResponseFromJSONTyped = DeleteLoadBalancerTagsResponseFromJSONTyped; +function DeleteLoadBalancerTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteLoadBalancerTagsResponseToJSON = DeleteLoadBalancerTagsResponseToJSON; diff --git a/dist/cjs/models/DeleteNatServiceRequest.d.ts b/dist/cjs/models/DeleteNatServiceRequest.d.ts new file mode 100644 index 00000000..91d7f36c --- /dev/null +++ b/dist/cjs/models/DeleteNatServiceRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNatServiceRequest + */ +export interface DeleteNatServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNatServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the NAT service you want to delete. + * @type {string} + * @memberof DeleteNatServiceRequest + */ + natServiceId: string; +} +export declare function DeleteNatServiceRequestFromJSON(json: any): DeleteNatServiceRequest; +export declare function DeleteNatServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNatServiceRequest; +export declare function DeleteNatServiceRequestToJSON(value?: DeleteNatServiceRequest | null): any; diff --git a/dist/cjs/models/DeleteNatServiceRequest.js b/dist/cjs/models/DeleteNatServiceRequest.js new file mode 100644 index 00000000..bcd4735a --- /dev/null +++ b/dist/cjs/models/DeleteNatServiceRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNatServiceRequestToJSON = exports.DeleteNatServiceRequestFromJSONTyped = exports.DeleteNatServiceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteNatServiceRequestFromJSON(json) { + return DeleteNatServiceRequestFromJSONTyped(json, false); +} +exports.DeleteNatServiceRequestFromJSON = DeleteNatServiceRequestFromJSON; +function DeleteNatServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'natServiceId': json['NatServiceId'], + }; +} +exports.DeleteNatServiceRequestFromJSONTyped = DeleteNatServiceRequestFromJSONTyped; +function DeleteNatServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NatServiceId': value.natServiceId, + }; +} +exports.DeleteNatServiceRequestToJSON = DeleteNatServiceRequestToJSON; diff --git a/dist/cjs/models/DeleteNatServiceResponse.d.ts b/dist/cjs/models/DeleteNatServiceResponse.d.ts new file mode 100644 index 00000000..56eecb13 --- /dev/null +++ b/dist/cjs/models/DeleteNatServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNatServiceResponse + */ +export interface DeleteNatServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNatServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNatServiceResponseFromJSON(json: any): DeleteNatServiceResponse; +export declare function DeleteNatServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNatServiceResponse; +export declare function DeleteNatServiceResponseToJSON(value?: DeleteNatServiceResponse | null): any; diff --git a/dist/cjs/models/DeleteNatServiceResponse.js b/dist/cjs/models/DeleteNatServiceResponse.js new file mode 100644 index 00000000..27c41e9c --- /dev/null +++ b/dist/cjs/models/DeleteNatServiceResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNatServiceResponseToJSON = exports.DeleteNatServiceResponseFromJSONTyped = exports.DeleteNatServiceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteNatServiceResponseFromJSON(json) { + return DeleteNatServiceResponseFromJSONTyped(json, false); +} +exports.DeleteNatServiceResponseFromJSON = DeleteNatServiceResponseFromJSON; +function DeleteNatServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteNatServiceResponseFromJSONTyped = DeleteNatServiceResponseFromJSONTyped; +function DeleteNatServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteNatServiceResponseToJSON = DeleteNatServiceResponseToJSON; diff --git a/dist/cjs/models/DeleteNetAccessPointRequest.d.ts b/dist/cjs/models/DeleteNetAccessPointRequest.d.ts new file mode 100644 index 00000000..b1571a8a --- /dev/null +++ b/dist/cjs/models/DeleteNetAccessPointRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNetAccessPointRequest + */ +export interface DeleteNetAccessPointRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net access point. + * @type {string} + * @memberof DeleteNetAccessPointRequest + */ + netAccessPointId: string; +} +export declare function DeleteNetAccessPointRequestFromJSON(json: any): DeleteNetAccessPointRequest; +export declare function DeleteNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetAccessPointRequest; +export declare function DeleteNetAccessPointRequestToJSON(value?: DeleteNetAccessPointRequest | null): any; diff --git a/dist/cjs/models/DeleteNetAccessPointRequest.js b/dist/cjs/models/DeleteNetAccessPointRequest.js new file mode 100644 index 00000000..6057dde4 --- /dev/null +++ b/dist/cjs/models/DeleteNetAccessPointRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNetAccessPointRequestToJSON = exports.DeleteNetAccessPointRequestFromJSONTyped = exports.DeleteNetAccessPointRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteNetAccessPointRequestFromJSON(json) { + return DeleteNetAccessPointRequestFromJSONTyped(json, false); +} +exports.DeleteNetAccessPointRequestFromJSON = DeleteNetAccessPointRequestFromJSON; +function DeleteNetAccessPointRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netAccessPointId': json['NetAccessPointId'], + }; +} +exports.DeleteNetAccessPointRequestFromJSONTyped = DeleteNetAccessPointRequestFromJSONTyped; +function DeleteNetAccessPointRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetAccessPointId': value.netAccessPointId, + }; +} +exports.DeleteNetAccessPointRequestToJSON = DeleteNetAccessPointRequestToJSON; diff --git a/dist/cjs/models/DeleteNetAccessPointResponse.d.ts b/dist/cjs/models/DeleteNetAccessPointResponse.d.ts new file mode 100644 index 00000000..978f46b1 --- /dev/null +++ b/dist/cjs/models/DeleteNetAccessPointResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNetAccessPointResponse + */ +export interface DeleteNetAccessPointResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNetAccessPointResponseFromJSON(json: any): DeleteNetAccessPointResponse; +export declare function DeleteNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetAccessPointResponse; +export declare function DeleteNetAccessPointResponseToJSON(value?: DeleteNetAccessPointResponse | null): any; diff --git a/dist/cjs/models/DeleteNetAccessPointResponse.js b/dist/cjs/models/DeleteNetAccessPointResponse.js new file mode 100644 index 00000000..ae9b7788 --- /dev/null +++ b/dist/cjs/models/DeleteNetAccessPointResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNetAccessPointResponseToJSON = exports.DeleteNetAccessPointResponseFromJSONTyped = exports.DeleteNetAccessPointResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteNetAccessPointResponseFromJSON(json) { + return DeleteNetAccessPointResponseFromJSONTyped(json, false); +} +exports.DeleteNetAccessPointResponseFromJSON = DeleteNetAccessPointResponseFromJSON; +function DeleteNetAccessPointResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteNetAccessPointResponseFromJSONTyped = DeleteNetAccessPointResponseFromJSONTyped; +function DeleteNetAccessPointResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteNetAccessPointResponseToJSON = DeleteNetAccessPointResponseToJSON; diff --git a/dist/cjs/models/DeleteNetPeeringRequest.d.ts b/dist/cjs/models/DeleteNetPeeringRequest.d.ts new file mode 100644 index 00000000..a98f8644 --- /dev/null +++ b/dist/cjs/models/DeleteNetPeeringRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNetPeeringRequest + */ +export interface DeleteNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to delete. + * @type {string} + * @memberof DeleteNetPeeringRequest + */ + netPeeringId: string; +} +export declare function DeleteNetPeeringRequestFromJSON(json: any): DeleteNetPeeringRequest; +export declare function DeleteNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetPeeringRequest; +export declare function DeleteNetPeeringRequestToJSON(value?: DeleteNetPeeringRequest | null): any; diff --git a/dist/cjs/models/DeleteNetPeeringRequest.js b/dist/cjs/models/DeleteNetPeeringRequest.js new file mode 100644 index 00000000..4638409e --- /dev/null +++ b/dist/cjs/models/DeleteNetPeeringRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNetPeeringRequestToJSON = exports.DeleteNetPeeringRequestFromJSONTyped = exports.DeleteNetPeeringRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteNetPeeringRequestFromJSON(json) { + return DeleteNetPeeringRequestFromJSONTyped(json, false); +} +exports.DeleteNetPeeringRequestFromJSON = DeleteNetPeeringRequestFromJSON; +function DeleteNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} +exports.DeleteNetPeeringRequestFromJSONTyped = DeleteNetPeeringRequestFromJSONTyped; +function DeleteNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} +exports.DeleteNetPeeringRequestToJSON = DeleteNetPeeringRequestToJSON; diff --git a/dist/cjs/models/DeleteNetPeeringResponse.d.ts b/dist/cjs/models/DeleteNetPeeringResponse.d.ts new file mode 100644 index 00000000..732bb475 --- /dev/null +++ b/dist/cjs/models/DeleteNetPeeringResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNetPeeringResponse + */ +export interface DeleteNetPeeringResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNetPeeringResponseFromJSON(json: any): DeleteNetPeeringResponse; +export declare function DeleteNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetPeeringResponse; +export declare function DeleteNetPeeringResponseToJSON(value?: DeleteNetPeeringResponse | null): any; diff --git a/dist/cjs/models/DeleteNetPeeringResponse.js b/dist/cjs/models/DeleteNetPeeringResponse.js new file mode 100644 index 00000000..3e051281 --- /dev/null +++ b/dist/cjs/models/DeleteNetPeeringResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNetPeeringResponseToJSON = exports.DeleteNetPeeringResponseFromJSONTyped = exports.DeleteNetPeeringResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteNetPeeringResponseFromJSON(json) { + return DeleteNetPeeringResponseFromJSONTyped(json, false); +} +exports.DeleteNetPeeringResponseFromJSON = DeleteNetPeeringResponseFromJSON; +function DeleteNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteNetPeeringResponseFromJSONTyped = DeleteNetPeeringResponseFromJSONTyped; +function DeleteNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteNetPeeringResponseToJSON = DeleteNetPeeringResponseToJSON; diff --git a/dist/cjs/models/DeleteNetRequest.d.ts b/dist/cjs/models/DeleteNetRequest.d.ts new file mode 100644 index 00000000..eb26908c --- /dev/null +++ b/dist/cjs/models/DeleteNetRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNetRequest + */ +export interface DeleteNetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetRequest + */ + dryRun?: boolean; + /** + * The ID of the Net you want to delete. + * @type {string} + * @memberof DeleteNetRequest + */ + netId: string; +} +export declare function DeleteNetRequestFromJSON(json: any): DeleteNetRequest; +export declare function DeleteNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetRequest; +export declare function DeleteNetRequestToJSON(value?: DeleteNetRequest | null): any; diff --git a/dist/cjs/models/DeleteNetRequest.js b/dist/cjs/models/DeleteNetRequest.js new file mode 100644 index 00000000..c1cd6d0c --- /dev/null +++ b/dist/cjs/models/DeleteNetRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNetRequestToJSON = exports.DeleteNetRequestFromJSONTyped = exports.DeleteNetRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteNetRequestFromJSON(json) { + return DeleteNetRequestFromJSONTyped(json, false); +} +exports.DeleteNetRequestFromJSON = DeleteNetRequestFromJSON; +function DeleteNetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} +exports.DeleteNetRequestFromJSONTyped = DeleteNetRequestFromJSONTyped; +function DeleteNetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} +exports.DeleteNetRequestToJSON = DeleteNetRequestToJSON; diff --git a/dist/cjs/models/DeleteNetResponse.d.ts b/dist/cjs/models/DeleteNetResponse.d.ts new file mode 100644 index 00000000..45dbc5b6 --- /dev/null +++ b/dist/cjs/models/DeleteNetResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNetResponse + */ +export interface DeleteNetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNetResponseFromJSON(json: any): DeleteNetResponse; +export declare function DeleteNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetResponse; +export declare function DeleteNetResponseToJSON(value?: DeleteNetResponse | null): any; diff --git a/dist/cjs/models/DeleteNetResponse.js b/dist/cjs/models/DeleteNetResponse.js new file mode 100644 index 00000000..016a6aa1 --- /dev/null +++ b/dist/cjs/models/DeleteNetResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNetResponseToJSON = exports.DeleteNetResponseFromJSONTyped = exports.DeleteNetResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteNetResponseFromJSON(json) { + return DeleteNetResponseFromJSONTyped(json, false); +} +exports.DeleteNetResponseFromJSON = DeleteNetResponseFromJSON; +function DeleteNetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteNetResponseFromJSONTyped = DeleteNetResponseFromJSONTyped; +function DeleteNetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteNetResponseToJSON = DeleteNetResponseToJSON; diff --git a/dist/cjs/models/DeleteNicRequest.d.ts b/dist/cjs/models/DeleteNicRequest.d.ts new file mode 100644 index 00000000..d5cfc44a --- /dev/null +++ b/dist/cjs/models/DeleteNicRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNicRequest + */ +export interface DeleteNicRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNicRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC you want to delete. + * @type {string} + * @memberof DeleteNicRequest + */ + nicId: string; +} +export declare function DeleteNicRequestFromJSON(json: any): DeleteNicRequest; +export declare function DeleteNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNicRequest; +export declare function DeleteNicRequestToJSON(value?: DeleteNicRequest | null): any; diff --git a/dist/cjs/models/DeleteNicRequest.js b/dist/cjs/models/DeleteNicRequest.js new file mode 100644 index 00000000..15d6f497 --- /dev/null +++ b/dist/cjs/models/DeleteNicRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNicRequestToJSON = exports.DeleteNicRequestFromJSONTyped = exports.DeleteNicRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteNicRequestFromJSON(json) { + return DeleteNicRequestFromJSONTyped(json, false); +} +exports.DeleteNicRequestFromJSON = DeleteNicRequestFromJSON; +function DeleteNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + }; +} +exports.DeleteNicRequestFromJSONTyped = DeleteNicRequestFromJSONTyped; +function DeleteNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NicId': value.nicId, + }; +} +exports.DeleteNicRequestToJSON = DeleteNicRequestToJSON; diff --git a/dist/cjs/models/DeleteNicResponse.d.ts b/dist/cjs/models/DeleteNicResponse.d.ts new file mode 100644 index 00000000..ac0fc104 --- /dev/null +++ b/dist/cjs/models/DeleteNicResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNicResponse + */ +export interface DeleteNicResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNicResponseFromJSON(json: any): DeleteNicResponse; +export declare function DeleteNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNicResponse; +export declare function DeleteNicResponseToJSON(value?: DeleteNicResponse | null): any; diff --git a/dist/cjs/models/DeleteNicResponse.js b/dist/cjs/models/DeleteNicResponse.js new file mode 100644 index 00000000..4c00c2b1 --- /dev/null +++ b/dist/cjs/models/DeleteNicResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteNicResponseToJSON = exports.DeleteNicResponseFromJSONTyped = exports.DeleteNicResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteNicResponseFromJSON(json) { + return DeleteNicResponseFromJSONTyped(json, false); +} +exports.DeleteNicResponseFromJSON = DeleteNicResponseFromJSON; +function DeleteNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteNicResponseFromJSONTyped = DeleteNicResponseFromJSONTyped; +function DeleteNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteNicResponseToJSON = DeleteNicResponseToJSON; diff --git a/dist/cjs/models/DeletePublicIpRequest.d.ts b/dist/cjs/models/DeletePublicIpRequest.d.ts new file mode 100644 index 00000000..ae64d9fc --- /dev/null +++ b/dist/cjs/models/DeletePublicIpRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeletePublicIpRequest + */ +export interface DeletePublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeletePublicIpRequest + */ + dryRun?: boolean; + /** + * The public IP. In the public Cloud, this parameter is required. + * @type {string} + * @memberof DeletePublicIpRequest + */ + publicIp?: string; + /** + * The ID representing the association of the public IP with the VM or the NIC. In a Net, this parameter is required. + * @type {string} + * @memberof DeletePublicIpRequest + */ + publicIpId?: string; +} +export declare function DeletePublicIpRequestFromJSON(json: any): DeletePublicIpRequest; +export declare function DeletePublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePublicIpRequest; +export declare function DeletePublicIpRequestToJSON(value?: DeletePublicIpRequest | null): any; diff --git a/dist/cjs/models/DeletePublicIpRequest.js b/dist/cjs/models/DeletePublicIpRequest.js new file mode 100644 index 00000000..4bd5eefb --- /dev/null +++ b/dist/cjs/models/DeletePublicIpRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeletePublicIpRequestToJSON = exports.DeletePublicIpRequestFromJSONTyped = exports.DeletePublicIpRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeletePublicIpRequestFromJSON(json) { + return DeletePublicIpRequestFromJSONTyped(json, false); +} +exports.DeletePublicIpRequestFromJSON = DeletePublicIpRequestFromJSON; +function DeletePublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !(0, runtime_1.exists)(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} +exports.DeletePublicIpRequestFromJSONTyped = DeletePublicIpRequestFromJSONTyped; +function DeletePublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + }; +} +exports.DeletePublicIpRequestToJSON = DeletePublicIpRequestToJSON; diff --git a/dist/cjs/models/DeletePublicIpResponse.d.ts b/dist/cjs/models/DeletePublicIpResponse.d.ts new file mode 100644 index 00000000..98d8405a --- /dev/null +++ b/dist/cjs/models/DeletePublicIpResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeletePublicIpResponse + */ +export interface DeletePublicIpResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeletePublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeletePublicIpResponseFromJSON(json: any): DeletePublicIpResponse; +export declare function DeletePublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePublicIpResponse; +export declare function DeletePublicIpResponseToJSON(value?: DeletePublicIpResponse | null): any; diff --git a/dist/cjs/models/DeletePublicIpResponse.js b/dist/cjs/models/DeletePublicIpResponse.js new file mode 100644 index 00000000..0174a7ef --- /dev/null +++ b/dist/cjs/models/DeletePublicIpResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeletePublicIpResponseToJSON = exports.DeletePublicIpResponseFromJSONTyped = exports.DeletePublicIpResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeletePublicIpResponseFromJSON(json) { + return DeletePublicIpResponseFromJSONTyped(json, false); +} +exports.DeletePublicIpResponseFromJSON = DeletePublicIpResponseFromJSON; +function DeletePublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeletePublicIpResponseFromJSONTyped = DeletePublicIpResponseFromJSONTyped; +function DeletePublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeletePublicIpResponseToJSON = DeletePublicIpResponseToJSON; diff --git a/dist/cjs/models/DeleteRouteRequest.d.ts b/dist/cjs/models/DeleteRouteRequest.d.ts new file mode 100644 index 00000000..9d2793b7 --- /dev/null +++ b/dist/cjs/models/DeleteRouteRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteRouteRequest + */ +export interface DeleteRouteRequest { + /** + * The exact IP range for the route. + * @type {string} + * @memberof DeleteRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the route table from which you want to delete a route. + * @type {string} + * @memberof DeleteRouteRequest + */ + routeTableId: string; +} +export declare function DeleteRouteRequestFromJSON(json: any): DeleteRouteRequest; +export declare function DeleteRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteRequest; +export declare function DeleteRouteRequestToJSON(value?: DeleteRouteRequest | null): any; diff --git a/dist/cjs/models/DeleteRouteRequest.js b/dist/cjs/models/DeleteRouteRequest.js new file mode 100644 index 00000000..2fb4bd85 --- /dev/null +++ b/dist/cjs/models/DeleteRouteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteRouteRequestToJSON = exports.DeleteRouteRequestFromJSONTyped = exports.DeleteRouteRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteRouteRequestFromJSON(json) { + return DeleteRouteRequestFromJSONTyped(json, false); +} +exports.DeleteRouteRequestFromJSON = DeleteRouteRequestFromJSON; +function DeleteRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + }; +} +exports.DeleteRouteRequestFromJSONTyped = DeleteRouteRequestFromJSONTyped; +function DeleteRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + }; +} +exports.DeleteRouteRequestToJSON = DeleteRouteRequestToJSON; diff --git a/dist/cjs/models/DeleteRouteResponse.d.ts b/dist/cjs/models/DeleteRouteResponse.d.ts new file mode 100644 index 00000000..0b70ac67 --- /dev/null +++ b/dist/cjs/models/DeleteRouteResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface DeleteRouteResponse + */ +export interface DeleteRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof DeleteRouteResponse + */ + routeTable?: RouteTable; +} +export declare function DeleteRouteResponseFromJSON(json: any): DeleteRouteResponse; +export declare function DeleteRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteResponse; +export declare function DeleteRouteResponseToJSON(value?: DeleteRouteResponse | null): any; diff --git a/dist/cjs/models/DeleteRouteResponse.js b/dist/cjs/models/DeleteRouteResponse.js new file mode 100644 index 00000000..73610657 --- /dev/null +++ b/dist/cjs/models/DeleteRouteResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteRouteResponseToJSON = exports.DeleteRouteResponseFromJSONTyped = exports.DeleteRouteResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const RouteTable_1 = require("./RouteTable"); +function DeleteRouteResponseFromJSON(json) { + return DeleteRouteResponseFromJSONTyped(json, false); +} +exports.DeleteRouteResponseFromJSON = DeleteRouteResponseFromJSON; +function DeleteRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'routeTable': !(0, runtime_1.exists)(json, 'RouteTable') ? undefined : (0, RouteTable_1.RouteTableFromJSON)(json['RouteTable']), + }; +} +exports.DeleteRouteResponseFromJSONTyped = DeleteRouteResponseFromJSONTyped; +function DeleteRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'RouteTable': (0, RouteTable_1.RouteTableToJSON)(value.routeTable), + }; +} +exports.DeleteRouteResponseToJSON = DeleteRouteResponseToJSON; diff --git a/dist/cjs/models/DeleteRouteTableRequest.d.ts b/dist/cjs/models/DeleteRouteTableRequest.d.ts new file mode 100644 index 00000000..7e1cdb85 --- /dev/null +++ b/dist/cjs/models/DeleteRouteTableRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteRouteTableRequest + */ +export interface DeleteRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the route table you want to delete. + * @type {string} + * @memberof DeleteRouteTableRequest + */ + routeTableId: string; +} +export declare function DeleteRouteTableRequestFromJSON(json: any): DeleteRouteTableRequest; +export declare function DeleteRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteTableRequest; +export declare function DeleteRouteTableRequestToJSON(value?: DeleteRouteTableRequest | null): any; diff --git a/dist/cjs/models/DeleteRouteTableRequest.js b/dist/cjs/models/DeleteRouteTableRequest.js new file mode 100644 index 00000000..063af189 --- /dev/null +++ b/dist/cjs/models/DeleteRouteTableRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteRouteTableRequestToJSON = exports.DeleteRouteTableRequestFromJSONTyped = exports.DeleteRouteTableRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteRouteTableRequestFromJSON(json) { + return DeleteRouteTableRequestFromJSONTyped(json, false); +} +exports.DeleteRouteTableRequestFromJSON = DeleteRouteTableRequestFromJSON; +function DeleteRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + }; +} +exports.DeleteRouteTableRequestFromJSONTyped = DeleteRouteTableRequestFromJSONTyped; +function DeleteRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + }; +} +exports.DeleteRouteTableRequestToJSON = DeleteRouteTableRequestToJSON; diff --git a/dist/cjs/models/DeleteRouteTableResponse.d.ts b/dist/cjs/models/DeleteRouteTableResponse.d.ts new file mode 100644 index 00000000..c14b3ce8 --- /dev/null +++ b/dist/cjs/models/DeleteRouteTableResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteRouteTableResponse + */ +export interface DeleteRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteRouteTableResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteRouteTableResponseFromJSON(json: any): DeleteRouteTableResponse; +export declare function DeleteRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteTableResponse; +export declare function DeleteRouteTableResponseToJSON(value?: DeleteRouteTableResponse | null): any; diff --git a/dist/cjs/models/DeleteRouteTableResponse.js b/dist/cjs/models/DeleteRouteTableResponse.js new file mode 100644 index 00000000..6b52dbce --- /dev/null +++ b/dist/cjs/models/DeleteRouteTableResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteRouteTableResponseToJSON = exports.DeleteRouteTableResponseFromJSONTyped = exports.DeleteRouteTableResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteRouteTableResponseFromJSON(json) { + return DeleteRouteTableResponseFromJSONTyped(json, false); +} +exports.DeleteRouteTableResponseFromJSON = DeleteRouteTableResponseFromJSON; +function DeleteRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteRouteTableResponseFromJSONTyped = DeleteRouteTableResponseFromJSONTyped; +function DeleteRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteRouteTableResponseToJSON = DeleteRouteTableResponseToJSON; diff --git a/dist/cjs/models/DeleteSecurityGroupRequest.d.ts b/dist/cjs/models/DeleteSecurityGroupRequest.d.ts new file mode 100644 index 00000000..25bb837e --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteSecurityGroupRequest + */ +export interface DeleteSecurityGroupRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSecurityGroupRequest + */ + dryRun?: boolean; + /** + * The ID of the security group you want to delete. + * @type {string} + * @memberof DeleteSecurityGroupRequest + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof DeleteSecurityGroupRequest + */ + securityGroupName?: string; +} +export declare function DeleteSecurityGroupRequestFromJSON(json: any): DeleteSecurityGroupRequest; +export declare function DeleteSecurityGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRequest; +export declare function DeleteSecurityGroupRequestToJSON(value?: DeleteSecurityGroupRequest | null): any; diff --git a/dist/cjs/models/DeleteSecurityGroupRequest.js b/dist/cjs/models/DeleteSecurityGroupRequest.js new file mode 100644 index 00000000..7b7f00ba --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSecurityGroupRequestToJSON = exports.DeleteSecurityGroupRequestFromJSONTyped = exports.DeleteSecurityGroupRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteSecurityGroupRequestFromJSON(json) { + return DeleteSecurityGroupRequestFromJSONTyped(json, false); +} +exports.DeleteSecurityGroupRequestFromJSON = DeleteSecurityGroupRequestFromJSON; +function DeleteSecurityGroupRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'securityGroupId': !(0, runtime_1.exists)(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !(0, runtime_1.exists)(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +exports.DeleteSecurityGroupRequestFromJSONTyped = DeleteSecurityGroupRequestFromJSONTyped; +function DeleteSecurityGroupRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} +exports.DeleteSecurityGroupRequestToJSON = DeleteSecurityGroupRequestToJSON; diff --git a/dist/cjs/models/DeleteSecurityGroupResponse.d.ts b/dist/cjs/models/DeleteSecurityGroupResponse.d.ts new file mode 100644 index 00000000..5611e33d --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteSecurityGroupResponse + */ +export interface DeleteSecurityGroupResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSecurityGroupResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteSecurityGroupResponseFromJSON(json: any): DeleteSecurityGroupResponse; +export declare function DeleteSecurityGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupResponse; +export declare function DeleteSecurityGroupResponseToJSON(value?: DeleteSecurityGroupResponse | null): any; diff --git a/dist/cjs/models/DeleteSecurityGroupResponse.js b/dist/cjs/models/DeleteSecurityGroupResponse.js new file mode 100644 index 00000000..fbb9cd70 --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSecurityGroupResponseToJSON = exports.DeleteSecurityGroupResponseFromJSONTyped = exports.DeleteSecurityGroupResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteSecurityGroupResponseFromJSON(json) { + return DeleteSecurityGroupResponseFromJSONTyped(json, false); +} +exports.DeleteSecurityGroupResponseFromJSON = DeleteSecurityGroupResponseFromJSON; +function DeleteSecurityGroupResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteSecurityGroupResponseFromJSONTyped = DeleteSecurityGroupResponseFromJSONTyped; +function DeleteSecurityGroupResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteSecurityGroupResponseToJSON = DeleteSecurityGroupResponseToJSON; diff --git a/dist/cjs/models/DeleteSecurityGroupRuleRequest.d.ts b/dist/cjs/models/DeleteSecurityGroupRuleRequest.d.ts new file mode 100644 index 00000000..512345f8 --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupRuleRequest.d.ts @@ -0,0 +1,82 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SecurityGroupRule } from './SecurityGroupRule'; +/** + * + * @export + * @interface DeleteSecurityGroupRuleRequest + */ +export interface DeleteSecurityGroupRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSecurityGroupRuleRequest + */ + dryRun?: boolean; + /** + * The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + flow: string; + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof DeleteSecurityGroupRuleRequest + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + ipProtocol?: string; + /** + * The IP range for the security group rule, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + ipRange?: string; + /** + * One or more rules you want to delete from the security group. + * @type {Array} + * @memberof DeleteSecurityGroupRuleRequest + */ + rules?: Array; + /** + * The account ID of the owner of the security group you want to delete a rule from. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupAccountIdToUnlink?: string; + /** + * The ID of the security group you want to delete a rule from. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupId: string; + /** + * The ID of the source security group. If you are in the Public Cloud, you can also specify the name of the source security group. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupNameToUnlink?: string; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof DeleteSecurityGroupRuleRequest + */ + toPortRange?: number; +} +export declare function DeleteSecurityGroupRuleRequestFromJSON(json: any): DeleteSecurityGroupRuleRequest; +export declare function DeleteSecurityGroupRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRuleRequest; +export declare function DeleteSecurityGroupRuleRequestToJSON(value?: DeleteSecurityGroupRuleRequest | null): any; diff --git a/dist/cjs/models/DeleteSecurityGroupRuleRequest.js b/dist/cjs/models/DeleteSecurityGroupRuleRequest.js new file mode 100644 index 00000000..369c771f --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupRuleRequest.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSecurityGroupRuleRequestToJSON = exports.DeleteSecurityGroupRuleRequestFromJSONTyped = exports.DeleteSecurityGroupRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const SecurityGroupRule_1 = require("./SecurityGroupRule"); +function DeleteSecurityGroupRuleRequestFromJSON(json) { + return DeleteSecurityGroupRuleRequestFromJSONTyped(json, false); +} +exports.DeleteSecurityGroupRuleRequestFromJSON = DeleteSecurityGroupRuleRequestFromJSON; +function DeleteSecurityGroupRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'flow': json['Flow'], + 'fromPortRange': !(0, runtime_1.exists)(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !(0, runtime_1.exists)(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRange': !(0, runtime_1.exists)(json, 'IpRange') ? undefined : json['IpRange'], + 'rules': !(0, runtime_1.exists)(json, 'Rules') ? undefined : (json['Rules'].map(SecurityGroupRule_1.SecurityGroupRuleFromJSON)), + 'securityGroupAccountIdToUnlink': !(0, runtime_1.exists)(json, 'SecurityGroupAccountIdToUnlink') ? undefined : json['SecurityGroupAccountIdToUnlink'], + 'securityGroupId': json['SecurityGroupId'], + 'securityGroupNameToUnlink': !(0, runtime_1.exists)(json, 'SecurityGroupNameToUnlink') ? undefined : json['SecurityGroupNameToUnlink'], + 'toPortRange': !(0, runtime_1.exists)(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} +exports.DeleteSecurityGroupRuleRequestFromJSONTyped = DeleteSecurityGroupRuleRequestFromJSONTyped; +function DeleteSecurityGroupRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Flow': value.flow, + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRange': value.ipRange, + 'Rules': value.rules === undefined ? undefined : (value.rules.map(SecurityGroupRule_1.SecurityGroupRuleToJSON)), + 'SecurityGroupAccountIdToUnlink': value.securityGroupAccountIdToUnlink, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupNameToUnlink': value.securityGroupNameToUnlink, + 'ToPortRange': value.toPortRange, + }; +} +exports.DeleteSecurityGroupRuleRequestToJSON = DeleteSecurityGroupRuleRequestToJSON; diff --git a/dist/cjs/models/DeleteSecurityGroupRuleResponse.d.ts b/dist/cjs/models/DeleteSecurityGroupRuleResponse.d.ts new file mode 100644 index 00000000..c535c621 --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface DeleteSecurityGroupRuleResponse + */ +export interface DeleteSecurityGroupRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSecurityGroupRuleResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof DeleteSecurityGroupRuleResponse + */ + securityGroup?: SecurityGroup; +} +export declare function DeleteSecurityGroupRuleResponseFromJSON(json: any): DeleteSecurityGroupRuleResponse; +export declare function DeleteSecurityGroupRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRuleResponse; +export declare function DeleteSecurityGroupRuleResponseToJSON(value?: DeleteSecurityGroupRuleResponse | null): any; diff --git a/dist/cjs/models/DeleteSecurityGroupRuleResponse.js b/dist/cjs/models/DeleteSecurityGroupRuleResponse.js new file mode 100644 index 00000000..83d82f67 --- /dev/null +++ b/dist/cjs/models/DeleteSecurityGroupRuleResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSecurityGroupRuleResponseToJSON = exports.DeleteSecurityGroupRuleResponseFromJSONTyped = exports.DeleteSecurityGroupRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const SecurityGroup_1 = require("./SecurityGroup"); +function DeleteSecurityGroupRuleResponseFromJSON(json) { + return DeleteSecurityGroupRuleResponseFromJSONTyped(json, false); +} +exports.DeleteSecurityGroupRuleResponseFromJSON = DeleteSecurityGroupRuleResponseFromJSON; +function DeleteSecurityGroupRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'securityGroup': !(0, runtime_1.exists)(json, 'SecurityGroup') ? undefined : (0, SecurityGroup_1.SecurityGroupFromJSON)(json['SecurityGroup']), + }; +} +exports.DeleteSecurityGroupRuleResponseFromJSONTyped = DeleteSecurityGroupRuleResponseFromJSONTyped; +function DeleteSecurityGroupRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'SecurityGroup': (0, SecurityGroup_1.SecurityGroupToJSON)(value.securityGroup), + }; +} +exports.DeleteSecurityGroupRuleResponseToJSON = DeleteSecurityGroupRuleResponseToJSON; diff --git a/dist/cjs/models/DeleteServerCertificateRequest.d.ts b/dist/cjs/models/DeleteServerCertificateRequest.d.ts new file mode 100644 index 00000000..50880a62 --- /dev/null +++ b/dist/cjs/models/DeleteServerCertificateRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteServerCertificateRequest + */ +export interface DeleteServerCertificateRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteServerCertificateRequest + */ + dryRun?: boolean; + /** + * The name of the server certificate you want to delete. + * @type {string} + * @memberof DeleteServerCertificateRequest + */ + name: string; +} +export declare function DeleteServerCertificateRequestFromJSON(json: any): DeleteServerCertificateRequest; +export declare function DeleteServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteServerCertificateRequest; +export declare function DeleteServerCertificateRequestToJSON(value?: DeleteServerCertificateRequest | null): any; diff --git a/dist/cjs/models/DeleteServerCertificateRequest.js b/dist/cjs/models/DeleteServerCertificateRequest.js new file mode 100644 index 00000000..7a5d028f --- /dev/null +++ b/dist/cjs/models/DeleteServerCertificateRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteServerCertificateRequestToJSON = exports.DeleteServerCertificateRequestFromJSONTyped = exports.DeleteServerCertificateRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteServerCertificateRequestFromJSON(json) { + return DeleteServerCertificateRequestFromJSONTyped(json, false); +} +exports.DeleteServerCertificateRequestFromJSON = DeleteServerCertificateRequestFromJSON; +function DeleteServerCertificateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + }; +} +exports.DeleteServerCertificateRequestFromJSONTyped = DeleteServerCertificateRequestFromJSONTyped; +function DeleteServerCertificateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Name': value.name, + }; +} +exports.DeleteServerCertificateRequestToJSON = DeleteServerCertificateRequestToJSON; diff --git a/dist/cjs/models/DeleteServerCertificateResponse.d.ts b/dist/cjs/models/DeleteServerCertificateResponse.d.ts new file mode 100644 index 00000000..2b400b72 --- /dev/null +++ b/dist/cjs/models/DeleteServerCertificateResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteServerCertificateResponse + */ +export interface DeleteServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteServerCertificateResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteServerCertificateResponseFromJSON(json: any): DeleteServerCertificateResponse; +export declare function DeleteServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteServerCertificateResponse; +export declare function DeleteServerCertificateResponseToJSON(value?: DeleteServerCertificateResponse | null): any; diff --git a/dist/cjs/models/DeleteServerCertificateResponse.js b/dist/cjs/models/DeleteServerCertificateResponse.js new file mode 100644 index 00000000..f6b42285 --- /dev/null +++ b/dist/cjs/models/DeleteServerCertificateResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteServerCertificateResponseToJSON = exports.DeleteServerCertificateResponseFromJSONTyped = exports.DeleteServerCertificateResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteServerCertificateResponseFromJSON(json) { + return DeleteServerCertificateResponseFromJSONTyped(json, false); +} +exports.DeleteServerCertificateResponseFromJSON = DeleteServerCertificateResponseFromJSON; +function DeleteServerCertificateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteServerCertificateResponseFromJSONTyped = DeleteServerCertificateResponseFromJSONTyped; +function DeleteServerCertificateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteServerCertificateResponseToJSON = DeleteServerCertificateResponseToJSON; diff --git a/dist/cjs/models/DeleteSnapshotRequest.d.ts b/dist/cjs/models/DeleteSnapshotRequest.d.ts new file mode 100644 index 00000000..685ccc85 --- /dev/null +++ b/dist/cjs/models/DeleteSnapshotRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteSnapshotRequest + */ +export interface DeleteSnapshotRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSnapshotRequest + */ + dryRun?: boolean; + /** + * The ID of the snapshot you want to delete. + * @type {string} + * @memberof DeleteSnapshotRequest + */ + snapshotId: string; +} +export declare function DeleteSnapshotRequestFromJSON(json: any): DeleteSnapshotRequest; +export declare function DeleteSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSnapshotRequest; +export declare function DeleteSnapshotRequestToJSON(value?: DeleteSnapshotRequest | null): any; diff --git a/dist/cjs/models/DeleteSnapshotRequest.js b/dist/cjs/models/DeleteSnapshotRequest.js new file mode 100644 index 00000000..61aede5c --- /dev/null +++ b/dist/cjs/models/DeleteSnapshotRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSnapshotRequestToJSON = exports.DeleteSnapshotRequestFromJSONTyped = exports.DeleteSnapshotRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteSnapshotRequestFromJSON(json) { + return DeleteSnapshotRequestFromJSONTyped(json, false); +} +exports.DeleteSnapshotRequestFromJSON = DeleteSnapshotRequestFromJSON; +function DeleteSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'snapshotId': json['SnapshotId'], + }; +} +exports.DeleteSnapshotRequestFromJSONTyped = DeleteSnapshotRequestFromJSONTyped; +function DeleteSnapshotRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'SnapshotId': value.snapshotId, + }; +} +exports.DeleteSnapshotRequestToJSON = DeleteSnapshotRequestToJSON; diff --git a/dist/cjs/models/DeleteSnapshotResponse.d.ts b/dist/cjs/models/DeleteSnapshotResponse.d.ts new file mode 100644 index 00000000..56d8d191 --- /dev/null +++ b/dist/cjs/models/DeleteSnapshotResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteSnapshotResponse + */ +export interface DeleteSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSnapshotResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteSnapshotResponseFromJSON(json: any): DeleteSnapshotResponse; +export declare function DeleteSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSnapshotResponse; +export declare function DeleteSnapshotResponseToJSON(value?: DeleteSnapshotResponse | null): any; diff --git a/dist/cjs/models/DeleteSnapshotResponse.js b/dist/cjs/models/DeleteSnapshotResponse.js new file mode 100644 index 00000000..b95e9dbf --- /dev/null +++ b/dist/cjs/models/DeleteSnapshotResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSnapshotResponseToJSON = exports.DeleteSnapshotResponseFromJSONTyped = exports.DeleteSnapshotResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteSnapshotResponseFromJSON(json) { + return DeleteSnapshotResponseFromJSONTyped(json, false); +} +exports.DeleteSnapshotResponseFromJSON = DeleteSnapshotResponseFromJSON; +function DeleteSnapshotResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteSnapshotResponseFromJSONTyped = DeleteSnapshotResponseFromJSONTyped; +function DeleteSnapshotResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteSnapshotResponseToJSON = DeleteSnapshotResponseToJSON; diff --git a/dist/cjs/models/DeleteSubnetRequest.d.ts b/dist/cjs/models/DeleteSubnetRequest.d.ts new file mode 100644 index 00000000..643f9f1e --- /dev/null +++ b/dist/cjs/models/DeleteSubnetRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteSubnetRequest + */ +export interface DeleteSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSubnetRequest + */ + dryRun?: boolean; + /** + * The ID of the Subnet you want to delete. + * @type {string} + * @memberof DeleteSubnetRequest + */ + subnetId: string; +} +export declare function DeleteSubnetRequestFromJSON(json: any): DeleteSubnetRequest; +export declare function DeleteSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSubnetRequest; +export declare function DeleteSubnetRequestToJSON(value?: DeleteSubnetRequest | null): any; diff --git a/dist/cjs/models/DeleteSubnetRequest.js b/dist/cjs/models/DeleteSubnetRequest.js new file mode 100644 index 00000000..fdfca0d7 --- /dev/null +++ b/dist/cjs/models/DeleteSubnetRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSubnetRequestToJSON = exports.DeleteSubnetRequestFromJSONTyped = exports.DeleteSubnetRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteSubnetRequestFromJSON(json) { + return DeleteSubnetRequestFromJSONTyped(json, false); +} +exports.DeleteSubnetRequestFromJSON = DeleteSubnetRequestFromJSON; +function DeleteSubnetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'subnetId': json['SubnetId'], + }; +} +exports.DeleteSubnetRequestFromJSONTyped = DeleteSubnetRequestFromJSONTyped; +function DeleteSubnetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'SubnetId': value.subnetId, + }; +} +exports.DeleteSubnetRequestToJSON = DeleteSubnetRequestToJSON; diff --git a/dist/cjs/models/DeleteSubnetResponse.d.ts b/dist/cjs/models/DeleteSubnetResponse.d.ts new file mode 100644 index 00000000..b7f91b21 --- /dev/null +++ b/dist/cjs/models/DeleteSubnetResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteSubnetResponse + */ +export interface DeleteSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSubnetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteSubnetResponseFromJSON(json: any): DeleteSubnetResponse; +export declare function DeleteSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSubnetResponse; +export declare function DeleteSubnetResponseToJSON(value?: DeleteSubnetResponse | null): any; diff --git a/dist/cjs/models/DeleteSubnetResponse.js b/dist/cjs/models/DeleteSubnetResponse.js new file mode 100644 index 00000000..11878b68 --- /dev/null +++ b/dist/cjs/models/DeleteSubnetResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteSubnetResponseToJSON = exports.DeleteSubnetResponseFromJSONTyped = exports.DeleteSubnetResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteSubnetResponseFromJSON(json) { + return DeleteSubnetResponseFromJSONTyped(json, false); +} +exports.DeleteSubnetResponseFromJSON = DeleteSubnetResponseFromJSON; +function DeleteSubnetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteSubnetResponseFromJSONTyped = DeleteSubnetResponseFromJSONTyped; +function DeleteSubnetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteSubnetResponseToJSON = DeleteSubnetResponseToJSON; diff --git a/dist/cjs/models/DeleteTagsRequest.d.ts b/dist/cjs/models/DeleteTagsRequest.d.ts new file mode 100644 index 00000000..9e001974 --- /dev/null +++ b/dist/cjs/models/DeleteTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface DeleteTagsRequest + */ +export interface DeleteTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteTagsRequest + */ + dryRun?: boolean; + /** + * One or more resource IDs. + * @type {Array} + * @memberof DeleteTagsRequest + */ + resourceIds: Array; + /** + * One or more tags to delete (if you set a tag value, only the tags matching exactly this value are deleted). + * @type {Array} + * @memberof DeleteTagsRequest + */ + tags: Array; +} +export declare function DeleteTagsRequestFromJSON(json: any): DeleteTagsRequest; +export declare function DeleteTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTagsRequest; +export declare function DeleteTagsRequestToJSON(value?: DeleteTagsRequest | null): any; diff --git a/dist/cjs/models/DeleteTagsRequest.js b/dist/cjs/models/DeleteTagsRequest.js new file mode 100644 index 00000000..ceb7243b --- /dev/null +++ b/dist/cjs/models/DeleteTagsRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteTagsRequestToJSON = exports.DeleteTagsRequestFromJSONTyped = exports.DeleteTagsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function DeleteTagsRequestFromJSON(json) { + return DeleteTagsRequestFromJSONTyped(json, false); +} +exports.DeleteTagsRequestFromJSON = DeleteTagsRequestFromJSON; +function DeleteTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'resourceIds': json['ResourceIds'], + 'tags': (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.DeleteTagsRequestFromJSONTyped = DeleteTagsRequestFromJSONTyped; +function DeleteTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ResourceIds': value.resourceIds, + 'Tags': (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.DeleteTagsRequestToJSON = DeleteTagsRequestToJSON; diff --git a/dist/cjs/models/DeleteTagsResponse.d.ts b/dist/cjs/models/DeleteTagsResponse.d.ts new file mode 100644 index 00000000..d91dea1b --- /dev/null +++ b/dist/cjs/models/DeleteTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteTagsResponse + */ +export interface DeleteTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteTagsResponseFromJSON(json: any): DeleteTagsResponse; +export declare function DeleteTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTagsResponse; +export declare function DeleteTagsResponseToJSON(value?: DeleteTagsResponse | null): any; diff --git a/dist/cjs/models/DeleteTagsResponse.js b/dist/cjs/models/DeleteTagsResponse.js new file mode 100644 index 00000000..964056fc --- /dev/null +++ b/dist/cjs/models/DeleteTagsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteTagsResponseToJSON = exports.DeleteTagsResponseFromJSONTyped = exports.DeleteTagsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteTagsResponseFromJSON(json) { + return DeleteTagsResponseFromJSONTyped(json, false); +} +exports.DeleteTagsResponseFromJSON = DeleteTagsResponseFromJSON; +function DeleteTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteTagsResponseFromJSONTyped = DeleteTagsResponseFromJSONTyped; +function DeleteTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteTagsResponseToJSON = DeleteTagsResponseToJSON; diff --git a/dist/cjs/models/DeleteVirtualGatewayRequest.d.ts b/dist/cjs/models/DeleteVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..f7051cee --- /dev/null +++ b/dist/cjs/models/DeleteVirtualGatewayRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVirtualGatewayRequest + */ +export interface DeleteVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the virtual gateway you want to delete. + * @type {string} + * @memberof DeleteVirtualGatewayRequest + */ + virtualGatewayId: string; +} +export declare function DeleteVirtualGatewayRequestFromJSON(json: any): DeleteVirtualGatewayRequest; +export declare function DeleteVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVirtualGatewayRequest; +export declare function DeleteVirtualGatewayRequestToJSON(value?: DeleteVirtualGatewayRequest | null): any; diff --git a/dist/cjs/models/DeleteVirtualGatewayRequest.js b/dist/cjs/models/DeleteVirtualGatewayRequest.js new file mode 100644 index 00000000..064e4edf --- /dev/null +++ b/dist/cjs/models/DeleteVirtualGatewayRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVirtualGatewayRequestToJSON = exports.DeleteVirtualGatewayRequestFromJSONTyped = exports.DeleteVirtualGatewayRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteVirtualGatewayRequestFromJSON(json) { + return DeleteVirtualGatewayRequestFromJSONTyped(json, false); +} +exports.DeleteVirtualGatewayRequestFromJSON = DeleteVirtualGatewayRequestFromJSON; +function DeleteVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +exports.DeleteVirtualGatewayRequestFromJSONTyped = DeleteVirtualGatewayRequestFromJSONTyped; +function DeleteVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.DeleteVirtualGatewayRequestToJSON = DeleteVirtualGatewayRequestToJSON; diff --git a/dist/cjs/models/DeleteVirtualGatewayResponse.d.ts b/dist/cjs/models/DeleteVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..fc6ead48 --- /dev/null +++ b/dist/cjs/models/DeleteVirtualGatewayResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVirtualGatewayResponse + */ +export interface DeleteVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVirtualGatewayResponseFromJSON(json: any): DeleteVirtualGatewayResponse; +export declare function DeleteVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVirtualGatewayResponse; +export declare function DeleteVirtualGatewayResponseToJSON(value?: DeleteVirtualGatewayResponse | null): any; diff --git a/dist/cjs/models/DeleteVirtualGatewayResponse.js b/dist/cjs/models/DeleteVirtualGatewayResponse.js new file mode 100644 index 00000000..4aa9692d --- /dev/null +++ b/dist/cjs/models/DeleteVirtualGatewayResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVirtualGatewayResponseToJSON = exports.DeleteVirtualGatewayResponseFromJSONTyped = exports.DeleteVirtualGatewayResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteVirtualGatewayResponseFromJSON(json) { + return DeleteVirtualGatewayResponseFromJSONTyped(json, false); +} +exports.DeleteVirtualGatewayResponseFromJSON = DeleteVirtualGatewayResponseFromJSON; +function DeleteVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteVirtualGatewayResponseFromJSONTyped = DeleteVirtualGatewayResponseFromJSONTyped; +function DeleteVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteVirtualGatewayResponseToJSON = DeleteVirtualGatewayResponseToJSON; diff --git a/dist/cjs/models/DeleteVmsRequest.d.ts b/dist/cjs/models/DeleteVmsRequest.d.ts new file mode 100644 index 00000000..ba73bd06 --- /dev/null +++ b/dist/cjs/models/DeleteVmsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVmsRequest + */ +export interface DeleteVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof DeleteVmsRequest + */ + vmIds: Array; +} +export declare function DeleteVmsRequestFromJSON(json: any): DeleteVmsRequest; +export declare function DeleteVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVmsRequest; +export declare function DeleteVmsRequestToJSON(value?: DeleteVmsRequest | null): any; diff --git a/dist/cjs/models/DeleteVmsRequest.js b/dist/cjs/models/DeleteVmsRequest.js new file mode 100644 index 00000000..ef3eb50f --- /dev/null +++ b/dist/cjs/models/DeleteVmsRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVmsRequestToJSON = exports.DeleteVmsRequestFromJSONTyped = exports.DeleteVmsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteVmsRequestFromJSON(json) { + return DeleteVmsRequestFromJSONTyped(json, false); +} +exports.DeleteVmsRequestFromJSON = DeleteVmsRequestFromJSON; +function DeleteVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} +exports.DeleteVmsRequestFromJSONTyped = DeleteVmsRequestFromJSONTyped; +function DeleteVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} +exports.DeleteVmsRequestToJSON = DeleteVmsRequestToJSON; diff --git a/dist/cjs/models/DeleteVmsResponse.d.ts b/dist/cjs/models/DeleteVmsResponse.d.ts new file mode 100644 index 00000000..ffa1e3c0 --- /dev/null +++ b/dist/cjs/models/DeleteVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmState } from './VmState'; +/** + * + * @export + * @interface DeleteVmsResponse + */ +export interface DeleteVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more terminated VMs. + * @type {Array} + * @memberof DeleteVmsResponse + */ + vms?: Array; +} +export declare function DeleteVmsResponseFromJSON(json: any): DeleteVmsResponse; +export declare function DeleteVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVmsResponse; +export declare function DeleteVmsResponseToJSON(value?: DeleteVmsResponse | null): any; diff --git a/dist/cjs/models/DeleteVmsResponse.js b/dist/cjs/models/DeleteVmsResponse.js new file mode 100644 index 00000000..dc46dc74 --- /dev/null +++ b/dist/cjs/models/DeleteVmsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVmsResponseToJSON = exports.DeleteVmsResponseFromJSONTyped = exports.DeleteVmsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VmState_1 = require("./VmState"); +function DeleteVmsResponseFromJSON(json) { + return DeleteVmsResponseFromJSONTyped(json, false); +} +exports.DeleteVmsResponseFromJSON = DeleteVmsResponseFromJSON; +function DeleteVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vms': !(0, runtime_1.exists)(json, 'Vms') ? undefined : (json['Vms'].map(VmState_1.VmStateFromJSON)), + }; +} +exports.DeleteVmsResponseFromJSONTyped = DeleteVmsResponseFromJSONTyped; +function DeleteVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmState_1.VmStateToJSON)), + }; +} +exports.DeleteVmsResponseToJSON = DeleteVmsResponseToJSON; diff --git a/dist/cjs/models/DeleteVolumeRequest.d.ts b/dist/cjs/models/DeleteVolumeRequest.d.ts new file mode 100644 index 00000000..0c8bb5ea --- /dev/null +++ b/dist/cjs/models/DeleteVolumeRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVolumeRequest + */ +export interface DeleteVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVolumeRequest + */ + dryRun?: boolean; + /** + * The ID of the volume you want to delete. + * @type {string} + * @memberof DeleteVolumeRequest + */ + volumeId: string; +} +export declare function DeleteVolumeRequestFromJSON(json: any): DeleteVolumeRequest; +export declare function DeleteVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVolumeRequest; +export declare function DeleteVolumeRequestToJSON(value?: DeleteVolumeRequest | null): any; diff --git a/dist/cjs/models/DeleteVolumeRequest.js b/dist/cjs/models/DeleteVolumeRequest.js new file mode 100644 index 00000000..57b16fef --- /dev/null +++ b/dist/cjs/models/DeleteVolumeRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVolumeRequestToJSON = exports.DeleteVolumeRequestFromJSONTyped = exports.DeleteVolumeRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteVolumeRequestFromJSON(json) { + return DeleteVolumeRequestFromJSONTyped(json, false); +} +exports.DeleteVolumeRequestFromJSON = DeleteVolumeRequestFromJSON; +function DeleteVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'volumeId': json['VolumeId'], + }; +} +exports.DeleteVolumeRequestFromJSONTyped = DeleteVolumeRequestFromJSONTyped; +function DeleteVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VolumeId': value.volumeId, + }; +} +exports.DeleteVolumeRequestToJSON = DeleteVolumeRequestToJSON; diff --git a/dist/cjs/models/DeleteVolumeResponse.d.ts b/dist/cjs/models/DeleteVolumeResponse.d.ts new file mode 100644 index 00000000..01388489 --- /dev/null +++ b/dist/cjs/models/DeleteVolumeResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVolumeResponse + */ +export interface DeleteVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVolumeResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVolumeResponseFromJSON(json: any): DeleteVolumeResponse; +export declare function DeleteVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVolumeResponse; +export declare function DeleteVolumeResponseToJSON(value?: DeleteVolumeResponse | null): any; diff --git a/dist/cjs/models/DeleteVolumeResponse.js b/dist/cjs/models/DeleteVolumeResponse.js new file mode 100644 index 00000000..577bd558 --- /dev/null +++ b/dist/cjs/models/DeleteVolumeResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVolumeResponseToJSON = exports.DeleteVolumeResponseFromJSONTyped = exports.DeleteVolumeResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteVolumeResponseFromJSON(json) { + return DeleteVolumeResponseFromJSONTyped(json, false); +} +exports.DeleteVolumeResponseFromJSON = DeleteVolumeResponseFromJSON; +function DeleteVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteVolumeResponseFromJSONTyped = DeleteVolumeResponseFromJSONTyped; +function DeleteVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteVolumeResponseToJSON = DeleteVolumeResponseToJSON; diff --git a/dist/cjs/models/DeleteVpnConnectionRequest.d.ts b/dist/cjs/models/DeleteVpnConnectionRequest.d.ts new file mode 100644 index 00000000..80d78a92 --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVpnConnectionRequest + */ +export interface DeleteVpnConnectionRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVpnConnectionRequest + */ + dryRun?: boolean; + /** + * The ID of the VPN connection you want to delete. + * @type {string} + * @memberof DeleteVpnConnectionRequest + */ + vpnConnectionId: string; +} +export declare function DeleteVpnConnectionRequestFromJSON(json: any): DeleteVpnConnectionRequest; +export declare function DeleteVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRequest; +export declare function DeleteVpnConnectionRequestToJSON(value?: DeleteVpnConnectionRequest | null): any; diff --git a/dist/cjs/models/DeleteVpnConnectionRequest.js b/dist/cjs/models/DeleteVpnConnectionRequest.js new file mode 100644 index 00000000..8ba35faf --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVpnConnectionRequestToJSON = exports.DeleteVpnConnectionRequestFromJSONTyped = exports.DeleteVpnConnectionRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteVpnConnectionRequestFromJSON(json) { + return DeleteVpnConnectionRequestFromJSONTyped(json, false); +} +exports.DeleteVpnConnectionRequestFromJSON = DeleteVpnConnectionRequestFromJSON; +function DeleteVpnConnectionRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} +exports.DeleteVpnConnectionRequestFromJSONTyped = DeleteVpnConnectionRequestFromJSONTyped; +function DeleteVpnConnectionRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} +exports.DeleteVpnConnectionRequestToJSON = DeleteVpnConnectionRequestToJSON; diff --git a/dist/cjs/models/DeleteVpnConnectionResponse.d.ts b/dist/cjs/models/DeleteVpnConnectionResponse.d.ts new file mode 100644 index 00000000..76e9cb69 --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVpnConnectionResponse + */ +export interface DeleteVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVpnConnectionResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVpnConnectionResponseFromJSON(json: any): DeleteVpnConnectionResponse; +export declare function DeleteVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionResponse; +export declare function DeleteVpnConnectionResponseToJSON(value?: DeleteVpnConnectionResponse | null): any; diff --git a/dist/cjs/models/DeleteVpnConnectionResponse.js b/dist/cjs/models/DeleteVpnConnectionResponse.js new file mode 100644 index 00000000..5a00b64a --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVpnConnectionResponseToJSON = exports.DeleteVpnConnectionResponseFromJSONTyped = exports.DeleteVpnConnectionResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteVpnConnectionResponseFromJSON(json) { + return DeleteVpnConnectionResponseFromJSONTyped(json, false); +} +exports.DeleteVpnConnectionResponseFromJSON = DeleteVpnConnectionResponseFromJSON; +function DeleteVpnConnectionResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteVpnConnectionResponseFromJSONTyped = DeleteVpnConnectionResponseFromJSONTyped; +function DeleteVpnConnectionResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteVpnConnectionResponseToJSON = DeleteVpnConnectionResponseToJSON; diff --git a/dist/cjs/models/DeleteVpnConnectionRouteRequest.d.ts b/dist/cjs/models/DeleteVpnConnectionRouteRequest.d.ts new file mode 100644 index 00000000..5eea48b6 --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionRouteRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVpnConnectionRouteRequest + */ +export interface DeleteVpnConnectionRouteRequest { + /** + * The network prefix of the route to delete, in CIDR notation (for example, 10.12.0.0/16). + * @type {string} + * @memberof DeleteVpnConnectionRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVpnConnectionRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the target VPN connection of the static route to delete. + * @type {string} + * @memberof DeleteVpnConnectionRouteRequest + */ + vpnConnectionId: string; +} +export declare function DeleteVpnConnectionRouteRequestFromJSON(json: any): DeleteVpnConnectionRouteRequest; +export declare function DeleteVpnConnectionRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRouteRequest; +export declare function DeleteVpnConnectionRouteRequestToJSON(value?: DeleteVpnConnectionRouteRequest | null): any; diff --git a/dist/cjs/models/DeleteVpnConnectionRouteRequest.js b/dist/cjs/models/DeleteVpnConnectionRouteRequest.js new file mode 100644 index 00000000..25d1c3cb --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionRouteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVpnConnectionRouteRequestToJSON = exports.DeleteVpnConnectionRouteRequestFromJSONTyped = exports.DeleteVpnConnectionRouteRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeleteVpnConnectionRouteRequestFromJSON(json) { + return DeleteVpnConnectionRouteRequestFromJSONTyped(json, false); +} +exports.DeleteVpnConnectionRouteRequestFromJSON = DeleteVpnConnectionRouteRequestFromJSON; +function DeleteVpnConnectionRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} +exports.DeleteVpnConnectionRouteRequestFromJSONTyped = DeleteVpnConnectionRouteRequestFromJSONTyped; +function DeleteVpnConnectionRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} +exports.DeleteVpnConnectionRouteRequestToJSON = DeleteVpnConnectionRouteRequestToJSON; diff --git a/dist/cjs/models/DeleteVpnConnectionRouteResponse.d.ts b/dist/cjs/models/DeleteVpnConnectionRouteResponse.d.ts new file mode 100644 index 00000000..77677299 --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionRouteResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVpnConnectionRouteResponse + */ +export interface DeleteVpnConnectionRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVpnConnectionRouteResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVpnConnectionRouteResponseFromJSON(json: any): DeleteVpnConnectionRouteResponse; +export declare function DeleteVpnConnectionRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRouteResponse; +export declare function DeleteVpnConnectionRouteResponseToJSON(value?: DeleteVpnConnectionRouteResponse | null): any; diff --git a/dist/cjs/models/DeleteVpnConnectionRouteResponse.js b/dist/cjs/models/DeleteVpnConnectionRouteResponse.js new file mode 100644 index 00000000..1cefc7d9 --- /dev/null +++ b/dist/cjs/models/DeleteVpnConnectionRouteResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteVpnConnectionRouteResponseToJSON = exports.DeleteVpnConnectionRouteResponseFromJSONTyped = exports.DeleteVpnConnectionRouteResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeleteVpnConnectionRouteResponseFromJSON(json) { + return DeleteVpnConnectionRouteResponseFromJSONTyped(json, false); +} +exports.DeleteVpnConnectionRouteResponseFromJSON = DeleteVpnConnectionRouteResponseFromJSON; +function DeleteVpnConnectionRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeleteVpnConnectionRouteResponseFromJSONTyped = DeleteVpnConnectionRouteResponseFromJSONTyped; +function DeleteVpnConnectionRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeleteVpnConnectionRouteResponseToJSON = DeleteVpnConnectionRouteResponseToJSON; diff --git a/dist/cjs/models/DeregisterVmsInLoadBalancerRequest.d.ts b/dist/cjs/models/DeregisterVmsInLoadBalancerRequest.d.ts new file mode 100644 index 00000000..54056803 --- /dev/null +++ b/dist/cjs/models/DeregisterVmsInLoadBalancerRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeregisterVmsInLoadBalancerRequest + */ +export interface DeregisterVmsInLoadBalancerRequest { + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + backendVmIds: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + loadBalancerName: string; +} +export declare function DeregisterVmsInLoadBalancerRequestFromJSON(json: any): DeregisterVmsInLoadBalancerRequest; +export declare function DeregisterVmsInLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeregisterVmsInLoadBalancerRequest; +export declare function DeregisterVmsInLoadBalancerRequestToJSON(value?: DeregisterVmsInLoadBalancerRequest | null): any; diff --git a/dist/cjs/models/DeregisterVmsInLoadBalancerRequest.js b/dist/cjs/models/DeregisterVmsInLoadBalancerRequest.js new file mode 100644 index 00000000..446f4713 --- /dev/null +++ b/dist/cjs/models/DeregisterVmsInLoadBalancerRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeregisterVmsInLoadBalancerRequestToJSON = exports.DeregisterVmsInLoadBalancerRequestFromJSONTyped = exports.DeregisterVmsInLoadBalancerRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DeregisterVmsInLoadBalancerRequestFromJSON(json) { + return DeregisterVmsInLoadBalancerRequestFromJSONTyped(json, false); +} +exports.DeregisterVmsInLoadBalancerRequestFromJSON = DeregisterVmsInLoadBalancerRequestFromJSON; +function DeregisterVmsInLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmIds': json['BackendVmIds'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.DeregisterVmsInLoadBalancerRequestFromJSONTyped = DeregisterVmsInLoadBalancerRequestFromJSONTyped; +function DeregisterVmsInLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.DeregisterVmsInLoadBalancerRequestToJSON = DeregisterVmsInLoadBalancerRequestToJSON; diff --git a/dist/cjs/models/DeregisterVmsInLoadBalancerResponse.d.ts b/dist/cjs/models/DeregisterVmsInLoadBalancerResponse.d.ts new file mode 100644 index 00000000..1363a51f --- /dev/null +++ b/dist/cjs/models/DeregisterVmsInLoadBalancerResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeregisterVmsInLoadBalancerResponse + */ +export interface DeregisterVmsInLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeregisterVmsInLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeregisterVmsInLoadBalancerResponseFromJSON(json: any): DeregisterVmsInLoadBalancerResponse; +export declare function DeregisterVmsInLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeregisterVmsInLoadBalancerResponse; +export declare function DeregisterVmsInLoadBalancerResponseToJSON(value?: DeregisterVmsInLoadBalancerResponse | null): any; diff --git a/dist/cjs/models/DeregisterVmsInLoadBalancerResponse.js b/dist/cjs/models/DeregisterVmsInLoadBalancerResponse.js new file mode 100644 index 00000000..547847b5 --- /dev/null +++ b/dist/cjs/models/DeregisterVmsInLoadBalancerResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeregisterVmsInLoadBalancerResponseToJSON = exports.DeregisterVmsInLoadBalancerResponseFromJSONTyped = exports.DeregisterVmsInLoadBalancerResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function DeregisterVmsInLoadBalancerResponseFromJSON(json) { + return DeregisterVmsInLoadBalancerResponseFromJSONTyped(json, false); +} +exports.DeregisterVmsInLoadBalancerResponseFromJSON = DeregisterVmsInLoadBalancerResponseFromJSON; +function DeregisterVmsInLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.DeregisterVmsInLoadBalancerResponseFromJSONTyped = DeregisterVmsInLoadBalancerResponseFromJSONTyped; +function DeregisterVmsInLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.DeregisterVmsInLoadBalancerResponseToJSON = DeregisterVmsInLoadBalancerResponseToJSON; diff --git a/dist/cjs/models/DhcpOptionsSet.d.ts b/dist/cjs/models/DhcpOptionsSet.d.ts new file mode 100644 index 00000000..3f21a3be --- /dev/null +++ b/dist/cjs/models/DhcpOptionsSet.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the DHCP options set. + * @export + * @interface DhcpOptionsSet + */ +export interface DhcpOptionsSet { + /** + * If true, the DHCP options set is a default one. If false, it is not. + * @type {boolean} + * @memberof DhcpOptionsSet + */ + _default?: boolean; + /** + * The ID of the DHCP options set. + * @type {string} + * @memberof DhcpOptionsSet + */ + dhcpOptionsSetId?: string; + /** + * The domain name. + * @type {string} + * @memberof DhcpOptionsSet + */ + domainName?: string; + /** + * One or more IPs for the domain name servers. + * @type {Array} + * @memberof DhcpOptionsSet + */ + domainNameServers?: Array; + /** + * One or more IPs for the NTP servers. + * @type {Array} + * @memberof DhcpOptionsSet + */ + ntpServers?: Array; + /** + * One or more tags associated with the DHCP options set. + * @type {Array} + * @memberof DhcpOptionsSet + */ + tags?: Array; +} +export declare function DhcpOptionsSetFromJSON(json: any): DhcpOptionsSet; +export declare function DhcpOptionsSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): DhcpOptionsSet; +export declare function DhcpOptionsSetToJSON(value?: DhcpOptionsSet | null): any; diff --git a/dist/cjs/models/DhcpOptionsSet.js b/dist/cjs/models/DhcpOptionsSet.js new file mode 100644 index 00000000..395d5cf1 --- /dev/null +++ b/dist/cjs/models/DhcpOptionsSet.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DhcpOptionsSetToJSON = exports.DhcpOptionsSetFromJSONTyped = exports.DhcpOptionsSetFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function DhcpOptionsSetFromJSON(json) { + return DhcpOptionsSetFromJSONTyped(json, false); +} +exports.DhcpOptionsSetFromJSON = DhcpOptionsSetFromJSON; +function DhcpOptionsSetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + '_default': !(0, runtime_1.exists)(json, 'Default') ? undefined : json['Default'], + 'dhcpOptionsSetId': !(0, runtime_1.exists)(json, 'DhcpOptionsSetId') ? undefined : json['DhcpOptionsSetId'], + 'domainName': !(0, runtime_1.exists)(json, 'DomainName') ? undefined : json['DomainName'], + 'domainNameServers': !(0, runtime_1.exists)(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'ntpServers': !(0, runtime_1.exists)(json, 'NtpServers') ? undefined : json['NtpServers'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.DhcpOptionsSetFromJSONTyped = DhcpOptionsSetFromJSONTyped; +function DhcpOptionsSetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Default': value._default, + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DomainName': value.domainName, + 'DomainNameServers': value.domainNameServers, + 'NtpServers': value.ntpServers, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.DhcpOptionsSetToJSON = DhcpOptionsSetToJSON; diff --git a/dist/cjs/models/DirectLink.d.ts b/dist/cjs/models/DirectLink.d.ts new file mode 100644 index 00000000..c0375d90 --- /dev/null +++ b/dist/cjs/models/DirectLink.d.ts @@ -0,0 +1,68 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink. + * @export + * @interface DirectLink + */ +export interface DirectLink { + /** + * The account ID of the owner of the DirectLink. + * @type {string} + * @memberof DirectLink + */ + accountId?: string; + /** + * The physical link bandwidth (either 1 Gbps or 10 Gbps). + * @type {string} + * @memberof DirectLink + */ + bandwidth?: string; + /** + * The ID of the DirectLink (for example, dxcon-xxxxxxxx). + * @type {string} + * @memberof DirectLink + */ + directLinkId?: string; + /** + * The name of the DirectLink. + * @type {string} + * @memberof DirectLink + */ + directLinkName?: string; + /** + * The datacenter where the DirectLink is located. + * @type {string} + * @memberof DirectLink + */ + location?: string; + /** + * The Region in which the DirectLink has been created. + * @type {string} + * @memberof DirectLink + */ + regionName?: string; + /** + * The state of the DirectLink.
+ * * `requested`: The DirectLink is requested but the request has not been validated yet.
+ * * `pending`: The DirectLink request has been validated. It remains in the `pending` state until you establish the physical link.
+ * * `available`: The physical link is established and the connection is ready to use.
+ * * `deleting`: The deletion process is in progress.
+ * * `deleted`: The DirectLink is deleted. + * @type {string} + * @memberof DirectLink + */ + state?: string; +} +export declare function DirectLinkFromJSON(json: any): DirectLink; +export declare function DirectLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLink; +export declare function DirectLinkToJSON(value?: DirectLink | null): any; diff --git a/dist/cjs/models/DirectLink.js b/dist/cjs/models/DirectLink.js new file mode 100644 index 00000000..6e37888d --- /dev/null +++ b/dist/cjs/models/DirectLink.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirectLinkToJSON = exports.DirectLinkFromJSONTyped = exports.DirectLinkFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DirectLinkFromJSON(json) { + return DirectLinkFromJSONTyped(json, false); +} +exports.DirectLinkFromJSON = DirectLinkFromJSON; +function DirectLinkFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'bandwidth': !(0, runtime_1.exists)(json, 'Bandwidth') ? undefined : json['Bandwidth'], + 'directLinkId': !(0, runtime_1.exists)(json, 'DirectLinkId') ? undefined : json['DirectLinkId'], + 'directLinkName': !(0, runtime_1.exists)(json, 'DirectLinkName') ? undefined : json['DirectLinkName'], + 'location': !(0, runtime_1.exists)(json, 'Location') ? undefined : json['Location'], + 'regionName': !(0, runtime_1.exists)(json, 'RegionName') ? undefined : json['RegionName'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + }; +} +exports.DirectLinkFromJSONTyped = DirectLinkFromJSONTyped; +function DirectLinkToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Bandwidth': value.bandwidth, + 'DirectLinkId': value.directLinkId, + 'DirectLinkName': value.directLinkName, + 'Location': value.location, + 'RegionName': value.regionName, + 'State': value.state, + }; +} +exports.DirectLinkToJSON = DirectLinkToJSON; diff --git a/dist/cjs/models/DirectLinkInterface.d.ts b/dist/cjs/models/DirectLinkInterface.d.ts new file mode 100644 index 00000000..19e24db6 --- /dev/null +++ b/dist/cjs/models/DirectLinkInterface.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink interface. + * @export + * @interface DirectLinkInterface + */ +export interface DirectLinkInterface { + /** + * The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer's side of the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterface + */ + bgpAsn: number; + /** + * The BGP authentication key. + * @type {string} + * @memberof DirectLinkInterface + */ + bgpKey?: string; + /** + * The IP on the customer's side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + clientPrivateIp?: string; + /** + * The name of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + directLinkInterfaceName: string; + /** + * The IP on the OUTSCALE side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + outscalePrivateIp?: string; + /** + * The ID of the target virtual gateway. + * @type {string} + * @memberof DirectLinkInterface + */ + virtualGatewayId: string; + /** + * The VLAN number associated with the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterface + */ + vlan: number; +} +export declare function DirectLinkInterfaceFromJSON(json: any): DirectLinkInterface; +export declare function DirectLinkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLinkInterface; +export declare function DirectLinkInterfaceToJSON(value?: DirectLinkInterface | null): any; diff --git a/dist/cjs/models/DirectLinkInterface.js b/dist/cjs/models/DirectLinkInterface.js new file mode 100644 index 00000000..2204c1ca --- /dev/null +++ b/dist/cjs/models/DirectLinkInterface.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirectLinkInterfaceToJSON = exports.DirectLinkInterfaceFromJSONTyped = exports.DirectLinkInterfaceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DirectLinkInterfaceFromJSON(json) { + return DirectLinkInterfaceFromJSONTyped(json, false); +} +exports.DirectLinkInterfaceFromJSON = DirectLinkInterfaceFromJSON; +function DirectLinkInterfaceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsn': json['BgpAsn'], + 'bgpKey': !(0, runtime_1.exists)(json, 'BgpKey') ? undefined : json['BgpKey'], + 'clientPrivateIp': !(0, runtime_1.exists)(json, 'ClientPrivateIp') ? undefined : json['ClientPrivateIp'], + 'directLinkInterfaceName': json['DirectLinkInterfaceName'], + 'outscalePrivateIp': !(0, runtime_1.exists)(json, 'OutscalePrivateIp') ? undefined : json['OutscalePrivateIp'], + 'virtualGatewayId': json['VirtualGatewayId'], + 'vlan': json['Vlan'], + }; +} +exports.DirectLinkInterfaceFromJSONTyped = DirectLinkInterfaceFromJSONTyped; +function DirectLinkInterfaceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsn': value.bgpAsn, + 'BgpKey': value.bgpKey, + 'ClientPrivateIp': value.clientPrivateIp, + 'DirectLinkInterfaceName': value.directLinkInterfaceName, + 'OutscalePrivateIp': value.outscalePrivateIp, + 'VirtualGatewayId': value.virtualGatewayId, + 'Vlan': value.vlan, + }; +} +exports.DirectLinkInterfaceToJSON = DirectLinkInterfaceToJSON; diff --git a/dist/cjs/models/DirectLinkInterfaces.d.ts b/dist/cjs/models/DirectLinkInterfaces.d.ts new file mode 100644 index 00000000..f34c49a0 --- /dev/null +++ b/dist/cjs/models/DirectLinkInterfaces.d.ts @@ -0,0 +1,99 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink interfaces. + * @export + * @interface DirectLinkInterfaces + */ +export interface DirectLinkInterfaces { + /** + * The account ID of the owner of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + accountId?: string; + /** + * The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer's side of the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterfaces + */ + bgpAsn?: number; + /** + * The BGP authentication key. + * @type {string} + * @memberof DirectLinkInterfaces + */ + bgpKey?: string; + /** + * The IP on the customer's side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + clientPrivateIp?: string; + /** + * The ID of the DirectLink. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkId?: string; + /** + * The ID of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkInterfaceId?: string; + /** + * The name of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkInterfaceName?: string; + /** + * The type of the DirectLink interface (always `private`). + * @type {string} + * @memberof DirectLinkInterfaces + */ + interfaceType?: string; + /** + * The datacenter where the DirectLink interface is located. + * @type {string} + * @memberof DirectLinkInterfaces + */ + location?: string; + /** + * The IP on the OUTSCALE side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + outscalePrivateIp?: string; + /** + * The state of the DirectLink interface (`pending` \| `available` \| `deleting` \| `deleted` \| `confirming` \| `rejected` \| `expired`). + * @type {string} + * @memberof DirectLinkInterfaces + */ + state?: string; + /** + * The ID of the target virtual gateway. + * @type {string} + * @memberof DirectLinkInterfaces + */ + virtualGatewayId?: string; + /** + * The VLAN number associated with the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterfaces + */ + vlan?: number; +} +export declare function DirectLinkInterfacesFromJSON(json: any): DirectLinkInterfaces; +export declare function DirectLinkInterfacesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLinkInterfaces; +export declare function DirectLinkInterfacesToJSON(value?: DirectLinkInterfaces | null): any; diff --git a/dist/cjs/models/DirectLinkInterfaces.js b/dist/cjs/models/DirectLinkInterfaces.js new file mode 100644 index 00000000..a82bc6a5 --- /dev/null +++ b/dist/cjs/models/DirectLinkInterfaces.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirectLinkInterfacesToJSON = exports.DirectLinkInterfacesFromJSONTyped = exports.DirectLinkInterfacesFromJSON = void 0; +const runtime_1 = require("../runtime"); +function DirectLinkInterfacesFromJSON(json) { + return DirectLinkInterfacesFromJSONTyped(json, false); +} +exports.DirectLinkInterfacesFromJSON = DirectLinkInterfacesFromJSON; +function DirectLinkInterfacesFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'bgpAsn': !(0, runtime_1.exists)(json, 'BgpAsn') ? undefined : json['BgpAsn'], + 'bgpKey': !(0, runtime_1.exists)(json, 'BgpKey') ? undefined : json['BgpKey'], + 'clientPrivateIp': !(0, runtime_1.exists)(json, 'ClientPrivateIp') ? undefined : json['ClientPrivateIp'], + 'directLinkId': !(0, runtime_1.exists)(json, 'DirectLinkId') ? undefined : json['DirectLinkId'], + 'directLinkInterfaceId': !(0, runtime_1.exists)(json, 'DirectLinkInterfaceId') ? undefined : json['DirectLinkInterfaceId'], + 'directLinkInterfaceName': !(0, runtime_1.exists)(json, 'DirectLinkInterfaceName') ? undefined : json['DirectLinkInterfaceName'], + 'interfaceType': !(0, runtime_1.exists)(json, 'InterfaceType') ? undefined : json['InterfaceType'], + 'location': !(0, runtime_1.exists)(json, 'Location') ? undefined : json['Location'], + 'outscalePrivateIp': !(0, runtime_1.exists)(json, 'OutscalePrivateIp') ? undefined : json['OutscalePrivateIp'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'virtualGatewayId': !(0, runtime_1.exists)(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vlan': !(0, runtime_1.exists)(json, 'Vlan') ? undefined : json['Vlan'], + }; +} +exports.DirectLinkInterfacesFromJSONTyped = DirectLinkInterfacesFromJSONTyped; +function DirectLinkInterfacesToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'BgpAsn': value.bgpAsn, + 'BgpKey': value.bgpKey, + 'ClientPrivateIp': value.clientPrivateIp, + 'DirectLinkId': value.directLinkId, + 'DirectLinkInterfaceId': value.directLinkInterfaceId, + 'DirectLinkInterfaceName': value.directLinkInterfaceName, + 'InterfaceType': value.interfaceType, + 'Location': value.location, + 'OutscalePrivateIp': value.outscalePrivateIp, + 'State': value.state, + 'VirtualGatewayId': value.virtualGatewayId, + 'Vlan': value.vlan, + }; +} +exports.DirectLinkInterfacesToJSON = DirectLinkInterfacesToJSON; diff --git a/dist/cjs/models/ErrorResponse.d.ts b/dist/cjs/models/ErrorResponse.d.ts new file mode 100644 index 00000000..53fb8784 --- /dev/null +++ b/dist/cjs/models/ErrorResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Errors } from './Errors'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ErrorResponse + */ +export interface ErrorResponse { + /** + * One or more errors. + * @type {Array} + * @memberof ErrorResponse + */ + errors?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ErrorResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ErrorResponseFromJSON(json: any): ErrorResponse; +export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse; +export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any; diff --git a/dist/cjs/models/ErrorResponse.js b/dist/cjs/models/ErrorResponse.js new file mode 100644 index 00000000..ac11c016 --- /dev/null +++ b/dist/cjs/models/ErrorResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ErrorResponseToJSON = exports.ErrorResponseFromJSONTyped = exports.ErrorResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Errors_1 = require("./Errors"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ErrorResponseFromJSON(json) { + return ErrorResponseFromJSONTyped(json, false); +} +exports.ErrorResponseFromJSON = ErrorResponseFromJSON; +function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'errors': !(0, runtime_1.exists)(json, 'Errors') ? undefined : (json['Errors'].map(Errors_1.ErrorsFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ErrorResponseFromJSONTyped = ErrorResponseFromJSONTyped; +function ErrorResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Errors': value.errors === undefined ? undefined : (value.errors.map(Errors_1.ErrorsToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ErrorResponseToJSON = ErrorResponseToJSON; diff --git a/dist/cjs/models/Errors.d.ts b/dist/cjs/models/Errors.d.ts new file mode 100644 index 00000000..dd46224b --- /dev/null +++ b/dist/cjs/models/Errors.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the errors. + * @export + * @interface Errors + */ +export interface Errors { + /** + * The code of the error. + * @type {string} + * @memberof Errors + */ + code?: string; + /** + * The details of the error. + * @type {string} + * @memberof Errors + */ + details?: string; + /** + * The type of the error. + * @type {string} + * @memberof Errors + */ + type?: string; +} +export declare function ErrorsFromJSON(json: any): Errors; +export declare function ErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Errors; +export declare function ErrorsToJSON(value?: Errors | null): any; diff --git a/dist/cjs/models/Errors.js b/dist/cjs/models/Errors.js new file mode 100644 index 00000000..0ea231b6 --- /dev/null +++ b/dist/cjs/models/Errors.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ErrorsToJSON = exports.ErrorsFromJSONTyped = exports.ErrorsFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ErrorsFromJSON(json) { + return ErrorsFromJSONTyped(json, false); +} +exports.ErrorsFromJSON = ErrorsFromJSON; +function ErrorsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'code': !(0, runtime_1.exists)(json, 'Code') ? undefined : json['Code'], + 'details': !(0, runtime_1.exists)(json, 'Details') ? undefined : json['Details'], + 'type': !(0, runtime_1.exists)(json, 'Type') ? undefined : json['Type'], + }; +} +exports.ErrorsFromJSONTyped = ErrorsFromJSONTyped; +function ErrorsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Code': value.code, + 'Details': value.details, + 'Type': value.type, + }; +} +exports.ErrorsToJSON = ErrorsToJSON; diff --git a/dist/cjs/models/FiltersAccessKeys.d.ts b/dist/cjs/models/FiltersAccessKeys.d.ts new file mode 100644 index 00000000..6ca9dd9c --- /dev/null +++ b/dist/cjs/models/FiltersAccessKeys.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersAccessKeys + */ +export interface FiltersAccessKeys { + /** + * The IDs of the access keys. + * @type {Array} + * @memberof FiltersAccessKeys + */ + accessKeyIds?: Array; + /** + * The states of the access keys (`ACTIVE` \| `INACTIVE`). + * @type {Array} + * @memberof FiltersAccessKeys + */ + states?: Array; +} +export declare function FiltersAccessKeysFromJSON(json: any): FiltersAccessKeys; +export declare function FiltersAccessKeysFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersAccessKeys; +export declare function FiltersAccessKeysToJSON(value?: FiltersAccessKeys | null): any; diff --git a/dist/cjs/models/FiltersAccessKeys.js b/dist/cjs/models/FiltersAccessKeys.js new file mode 100644 index 00000000..8c7c6b6c --- /dev/null +++ b/dist/cjs/models/FiltersAccessKeys.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersAccessKeysToJSON = exports.FiltersAccessKeysFromJSONTyped = exports.FiltersAccessKeysFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersAccessKeysFromJSON(json) { + return FiltersAccessKeysFromJSONTyped(json, false); +} +exports.FiltersAccessKeysFromJSON = FiltersAccessKeysFromJSON; +function FiltersAccessKeysFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyIds': !(0, runtime_1.exists)(json, 'AccessKeyIds') ? undefined : json['AccessKeyIds'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + }; +} +exports.FiltersAccessKeysFromJSONTyped = FiltersAccessKeysFromJSONTyped; +function FiltersAccessKeysToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyIds': value.accessKeyIds, + 'States': value.states, + }; +} +exports.FiltersAccessKeysToJSON = FiltersAccessKeysToJSON; diff --git a/dist/cjs/models/FiltersApiAccessRule.d.ts b/dist/cjs/models/FiltersApiAccessRule.d.ts new file mode 100644 index 00000000..24302d56 --- /dev/null +++ b/dist/cjs/models/FiltersApiAccessRule.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersApiAccessRule + */ +export interface FiltersApiAccessRule { + /** + * One or more IDs of API access rules. + * @type {Array} + * @memberof FiltersApiAccessRule + */ + apiAccessRuleIds?: Array; + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + cns?: Array; + /** + * One or more descriptions of API access rules. + * @type {Array} + * @memberof FiltersApiAccessRule + */ + descriptions?: Array; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + ipRanges?: Array; +} +export declare function FiltersApiAccessRuleFromJSON(json: any): FiltersApiAccessRule; +export declare function FiltersApiAccessRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersApiAccessRule; +export declare function FiltersApiAccessRuleToJSON(value?: FiltersApiAccessRule | null): any; diff --git a/dist/cjs/models/FiltersApiAccessRule.js b/dist/cjs/models/FiltersApiAccessRule.js new file mode 100644 index 00000000..9ac9a7ed --- /dev/null +++ b/dist/cjs/models/FiltersApiAccessRule.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersApiAccessRuleToJSON = exports.FiltersApiAccessRuleFromJSONTyped = exports.FiltersApiAccessRuleFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersApiAccessRuleFromJSON(json) { + return FiltersApiAccessRuleFromJSONTyped(json, false); +} +exports.FiltersApiAccessRuleFromJSON = FiltersApiAccessRuleFromJSON; +function FiltersApiAccessRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleIds': !(0, runtime_1.exists)(json, 'ApiAccessRuleIds') ? undefined : json['ApiAccessRuleIds'], + 'caIds': !(0, runtime_1.exists)(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !(0, runtime_1.exists)(json, 'Cns') ? undefined : json['Cns'], + 'descriptions': !(0, runtime_1.exists)(json, 'Descriptions') ? undefined : json['Descriptions'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +exports.FiltersApiAccessRuleFromJSONTyped = FiltersApiAccessRuleFromJSONTyped; +function FiltersApiAccessRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleIds': value.apiAccessRuleIds, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Descriptions': value.descriptions, + 'IpRanges': value.ipRanges, + }; +} +exports.FiltersApiAccessRuleToJSON = FiltersApiAccessRuleToJSON; diff --git a/dist/cjs/models/FiltersApiLog.d.ts b/dist/cjs/models/FiltersApiLog.d.ts new file mode 100644 index 00000000..4bb7de9f --- /dev/null +++ b/dist/cjs/models/FiltersApiLog.d.ts @@ -0,0 +1,75 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersApiLog + */ +export interface FiltersApiLog { + /** + * The access keys used for the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryAccessKeys?: Array; + /** + * The names of the APIs of the logged calls (always `oapi` for the OUTSCALE API). + * @type {Array} + * @memberof FiltersApiLog + */ + queryApiNames?: Array; + /** + * The names of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryCallNames?: Array; + /** + * The date after which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-14`). By default, this date is set to 48 hours before the `QueryDateBefore` parameter value. + * @type {Date} + * @memberof FiltersApiLog + */ + queryDateAfter?: Date; + /** + * The date before which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-30`). By default, this date is set to now, or 48 hours after the `QueryDateAfter` parameter value. + * @type {Date} + * @memberof FiltersApiLog + */ + queryDateBefore?: Date; + /** + * The IPs used for the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryIpAddresses?: Array; + /** + * The user agents of the HTTP requests of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryUserAgents?: Array; + /** + * The request IDs provided in the responses of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + requestIds?: Array; + /** + * The HTTP status codes of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + responseStatusCodes?: Array; +} +export declare function FiltersApiLogFromJSON(json: any): FiltersApiLog; +export declare function FiltersApiLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersApiLog; +export declare function FiltersApiLogToJSON(value?: FiltersApiLog | null): any; diff --git a/dist/cjs/models/FiltersApiLog.js b/dist/cjs/models/FiltersApiLog.js new file mode 100644 index 00000000..072ac95b --- /dev/null +++ b/dist/cjs/models/FiltersApiLog.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersApiLogToJSON = exports.FiltersApiLogFromJSONTyped = exports.FiltersApiLogFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersApiLogFromJSON(json) { + return FiltersApiLogFromJSONTyped(json, false); +} +exports.FiltersApiLogFromJSON = FiltersApiLogFromJSON; +function FiltersApiLogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'queryAccessKeys': !(0, runtime_1.exists)(json, 'QueryAccessKeys') ? undefined : json['QueryAccessKeys'], + 'queryApiNames': !(0, runtime_1.exists)(json, 'QueryApiNames') ? undefined : json['QueryApiNames'], + 'queryCallNames': !(0, runtime_1.exists)(json, 'QueryCallNames') ? undefined : json['QueryCallNames'], + 'queryDateAfter': !(0, runtime_1.exists)(json, 'QueryDateAfter') ? undefined : (new Date(json['QueryDateAfter'])), + 'queryDateBefore': !(0, runtime_1.exists)(json, 'QueryDateBefore') ? undefined : (new Date(json['QueryDateBefore'])), + 'queryIpAddresses': !(0, runtime_1.exists)(json, 'QueryIpAddresses') ? undefined : json['QueryIpAddresses'], + 'queryUserAgents': !(0, runtime_1.exists)(json, 'QueryUserAgents') ? undefined : json['QueryUserAgents'], + 'requestIds': !(0, runtime_1.exists)(json, 'RequestIds') ? undefined : json['RequestIds'], + 'responseStatusCodes': !(0, runtime_1.exists)(json, 'ResponseStatusCodes') ? undefined : json['ResponseStatusCodes'], + }; +} +exports.FiltersApiLogFromJSONTyped = FiltersApiLogFromJSONTyped; +function FiltersApiLogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'QueryAccessKeys': value.queryAccessKeys, + 'QueryApiNames': value.queryApiNames, + 'QueryCallNames': value.queryCallNames, + 'QueryDateAfter': value.queryDateAfter === undefined ? undefined : (value.queryDateAfter.toISOString().substr(0, 10)), + 'QueryDateBefore': value.queryDateBefore === undefined ? undefined : (value.queryDateBefore.toISOString().substr(0, 10)), + 'QueryIpAddresses': value.queryIpAddresses, + 'QueryUserAgents': value.queryUserAgents, + 'RequestIds': value.requestIds, + 'ResponseStatusCodes': value.responseStatusCodes, + }; +} +exports.FiltersApiLogToJSON = FiltersApiLogToJSON; diff --git a/dist/cjs/models/FiltersCa.d.ts b/dist/cjs/models/FiltersCa.d.ts new file mode 100644 index 00000000..0660e37c --- /dev/null +++ b/dist/cjs/models/FiltersCa.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersCa + */ +export interface FiltersCa { + /** + * The fingerprints of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + caFingerprints?: Array; + /** + * The IDs of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + caIds?: Array; + /** + * The descriptions of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + descriptions?: Array; +} +export declare function FiltersCaFromJSON(json: any): FiltersCa; +export declare function FiltersCaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersCa; +export declare function FiltersCaToJSON(value?: FiltersCa | null): any; diff --git a/dist/cjs/models/FiltersCa.js b/dist/cjs/models/FiltersCa.js new file mode 100644 index 00000000..54eb7dbc --- /dev/null +++ b/dist/cjs/models/FiltersCa.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersCaToJSON = exports.FiltersCaFromJSONTyped = exports.FiltersCaFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersCaFromJSON(json) { + return FiltersCaFromJSONTyped(json, false); +} +exports.FiltersCaFromJSON = FiltersCaFromJSON; +function FiltersCaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caFingerprints': !(0, runtime_1.exists)(json, 'CaFingerprints') ? undefined : json['CaFingerprints'], + 'caIds': !(0, runtime_1.exists)(json, 'CaIds') ? undefined : json['CaIds'], + 'descriptions': !(0, runtime_1.exists)(json, 'Descriptions') ? undefined : json['Descriptions'], + }; +} +exports.FiltersCaFromJSONTyped = FiltersCaFromJSONTyped; +function FiltersCaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaFingerprints': value.caFingerprints, + 'CaIds': value.caIds, + 'Descriptions': value.descriptions, + }; +} +exports.FiltersCaToJSON = FiltersCaToJSON; diff --git a/dist/cjs/models/FiltersClientGateway.d.ts b/dist/cjs/models/FiltersClientGateway.d.ts new file mode 100644 index 00000000..6e6bf0ae --- /dev/null +++ b/dist/cjs/models/FiltersClientGateway.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersClientGateway + */ +export interface FiltersClientGateway { + /** + * The Border Gateway Protocol (BGP) Autonomous System Numbers (ASNs) of the connections. + * @type {Array} + * @memberof FiltersClientGateway + */ + bgpAsns?: Array; + /** + * The IDs of the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + clientGatewayIds?: Array; + /** + * The types of communication tunnels used by the client gateways (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersClientGateway + */ + connectionTypes?: Array; + /** + * The public IPv4 addresses of the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + publicIps?: Array; + /** + * The states of the client gateways (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersClientGateway + */ + states?: Array; + /** + * The keys of the tags associated with the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + tagKeys?: Array; + /** + * The values of the tags associated with the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the client gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersClientGateway + */ + tags?: Array; +} +export declare function FiltersClientGatewayFromJSON(json: any): FiltersClientGateway; +export declare function FiltersClientGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersClientGateway; +export declare function FiltersClientGatewayToJSON(value?: FiltersClientGateway | null): any; diff --git a/dist/cjs/models/FiltersClientGateway.js b/dist/cjs/models/FiltersClientGateway.js new file mode 100644 index 00000000..91e8fb2b --- /dev/null +++ b/dist/cjs/models/FiltersClientGateway.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersClientGatewayToJSON = exports.FiltersClientGatewayFromJSONTyped = exports.FiltersClientGatewayFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersClientGatewayFromJSON(json) { + return FiltersClientGatewayFromJSONTyped(json, false); +} +exports.FiltersClientGatewayFromJSON = FiltersClientGatewayFromJSON; +function FiltersClientGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsns': !(0, runtime_1.exists)(json, 'BgpAsns') ? undefined : json['BgpAsns'], + 'clientGatewayIds': !(0, runtime_1.exists)(json, 'ClientGatewayIds') ? undefined : json['ClientGatewayIds'], + 'connectionTypes': !(0, runtime_1.exists)(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'publicIps': !(0, runtime_1.exists)(json, 'PublicIps') ? undefined : json['PublicIps'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersClientGatewayFromJSONTyped = FiltersClientGatewayFromJSONTyped; +function FiltersClientGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsns': value.bgpAsns, + 'ClientGatewayIds': value.clientGatewayIds, + 'ConnectionTypes': value.connectionTypes, + 'PublicIps': value.publicIps, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersClientGatewayToJSON = FiltersClientGatewayToJSON; diff --git a/dist/cjs/models/FiltersDhcpOptions.d.ts b/dist/cjs/models/FiltersDhcpOptions.d.ts new file mode 100644 index 00000000..e0aa9436 --- /dev/null +++ b/dist/cjs/models/FiltersDhcpOptions.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersDhcpOptions + */ +export interface FiltersDhcpOptions { + /** + * If true, lists all default DHCP options set. If false, lists all non-default DHCP options set. + * @type {boolean} + * @memberof FiltersDhcpOptions + */ + _default?: boolean; + /** + * The IDs of the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + dhcpOptionsSetIds?: Array; + /** + * The domain name servers used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + domainNameServers?: Array; + /** + * The domain names used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + domainNames?: Array; + /** + * The Network Time Protocol (NTP) servers used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + ntpServers?: Array; + /** + * The keys of the tags associated with the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tagKeys?: Array; + /** + * The values of the tags associated with the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the DHCP options sets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tags?: Array; +} +export declare function FiltersDhcpOptionsFromJSON(json: any): FiltersDhcpOptions; +export declare function FiltersDhcpOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDhcpOptions; +export declare function FiltersDhcpOptionsToJSON(value?: FiltersDhcpOptions | null): any; diff --git a/dist/cjs/models/FiltersDhcpOptions.js b/dist/cjs/models/FiltersDhcpOptions.js new file mode 100644 index 00000000..1e0d7d04 --- /dev/null +++ b/dist/cjs/models/FiltersDhcpOptions.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersDhcpOptionsToJSON = exports.FiltersDhcpOptionsFromJSONTyped = exports.FiltersDhcpOptionsFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersDhcpOptionsFromJSON(json) { + return FiltersDhcpOptionsFromJSONTyped(json, false); +} +exports.FiltersDhcpOptionsFromJSON = FiltersDhcpOptionsFromJSON; +function FiltersDhcpOptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + '_default': !(0, runtime_1.exists)(json, 'Default') ? undefined : json['Default'], + 'dhcpOptionsSetIds': !(0, runtime_1.exists)(json, 'DhcpOptionsSetIds') ? undefined : json['DhcpOptionsSetIds'], + 'domainNameServers': !(0, runtime_1.exists)(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'domainNames': !(0, runtime_1.exists)(json, 'DomainNames') ? undefined : json['DomainNames'], + 'ntpServers': !(0, runtime_1.exists)(json, 'NtpServers') ? undefined : json['NtpServers'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersDhcpOptionsFromJSONTyped = FiltersDhcpOptionsFromJSONTyped; +function FiltersDhcpOptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Default': value._default, + 'DhcpOptionsSetIds': value.dhcpOptionsSetIds, + 'DomainNameServers': value.domainNameServers, + 'DomainNames': value.domainNames, + 'NtpServers': value.ntpServers, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersDhcpOptionsToJSON = FiltersDhcpOptionsToJSON; diff --git a/dist/cjs/models/FiltersDirectLink.d.ts b/dist/cjs/models/FiltersDirectLink.d.ts new file mode 100644 index 00000000..0a87d2c4 --- /dev/null +++ b/dist/cjs/models/FiltersDirectLink.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersDirectLink + */ +export interface FiltersDirectLink { + /** + * The IDs of the DirectLinks. + * @type {Array} + * @memberof FiltersDirectLink + */ + directLinkIds?: Array; +} +export declare function FiltersDirectLinkFromJSON(json: any): FiltersDirectLink; +export declare function FiltersDirectLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDirectLink; +export declare function FiltersDirectLinkToJSON(value?: FiltersDirectLink | null): any; diff --git a/dist/cjs/models/FiltersDirectLink.js b/dist/cjs/models/FiltersDirectLink.js new file mode 100644 index 00000000..77d34ead --- /dev/null +++ b/dist/cjs/models/FiltersDirectLink.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersDirectLinkToJSON = exports.FiltersDirectLinkFromJSONTyped = exports.FiltersDirectLinkFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersDirectLinkFromJSON(json) { + return FiltersDirectLinkFromJSONTyped(json, false); +} +exports.FiltersDirectLinkFromJSON = FiltersDirectLinkFromJSON; +function FiltersDirectLinkFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkIds': !(0, runtime_1.exists)(json, 'DirectLinkIds') ? undefined : json['DirectLinkIds'], + }; +} +exports.FiltersDirectLinkFromJSONTyped = FiltersDirectLinkFromJSONTyped; +function FiltersDirectLinkToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkIds': value.directLinkIds, + }; +} +exports.FiltersDirectLinkToJSON = FiltersDirectLinkToJSON; diff --git a/dist/cjs/models/FiltersDirectLinkInterface.d.ts b/dist/cjs/models/FiltersDirectLinkInterface.d.ts new file mode 100644 index 00000000..7657cb85 --- /dev/null +++ b/dist/cjs/models/FiltersDirectLinkInterface.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersDirectLinkInterface + */ +export interface FiltersDirectLinkInterface { + /** + * The IDs of the DirectLinks. + * @type {Array} + * @memberof FiltersDirectLinkInterface + */ + directLinkIds?: Array; + /** + * The IDs of the DirectLink interfaces. + * @type {Array} + * @memberof FiltersDirectLinkInterface + */ + directLinkInterfaceIds?: Array; +} +export declare function FiltersDirectLinkInterfaceFromJSON(json: any): FiltersDirectLinkInterface; +export declare function FiltersDirectLinkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDirectLinkInterface; +export declare function FiltersDirectLinkInterfaceToJSON(value?: FiltersDirectLinkInterface | null): any; diff --git a/dist/cjs/models/FiltersDirectLinkInterface.js b/dist/cjs/models/FiltersDirectLinkInterface.js new file mode 100644 index 00000000..7554e3bc --- /dev/null +++ b/dist/cjs/models/FiltersDirectLinkInterface.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersDirectLinkInterfaceToJSON = exports.FiltersDirectLinkInterfaceFromJSONTyped = exports.FiltersDirectLinkInterfaceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersDirectLinkInterfaceFromJSON(json) { + return FiltersDirectLinkInterfaceFromJSONTyped(json, false); +} +exports.FiltersDirectLinkInterfaceFromJSON = FiltersDirectLinkInterfaceFromJSON; +function FiltersDirectLinkInterfaceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkIds': !(0, runtime_1.exists)(json, 'DirectLinkIds') ? undefined : json['DirectLinkIds'], + 'directLinkInterfaceIds': !(0, runtime_1.exists)(json, 'DirectLinkInterfaceIds') ? undefined : json['DirectLinkInterfaceIds'], + }; +} +exports.FiltersDirectLinkInterfaceFromJSONTyped = FiltersDirectLinkInterfaceFromJSONTyped; +function FiltersDirectLinkInterfaceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkIds': value.directLinkIds, + 'DirectLinkInterfaceIds': value.directLinkInterfaceIds, + }; +} +exports.FiltersDirectLinkInterfaceToJSON = FiltersDirectLinkInterfaceToJSON; diff --git a/dist/cjs/models/FiltersExportTask.d.ts b/dist/cjs/models/FiltersExportTask.d.ts new file mode 100644 index 00000000..9ad618c1 --- /dev/null +++ b/dist/cjs/models/FiltersExportTask.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersExportTask + */ +export interface FiltersExportTask { + /** + * The IDs of the export tasks. + * @type {Array} + * @memberof FiltersExportTask + */ + taskIds?: Array; +} +export declare function FiltersExportTaskFromJSON(json: any): FiltersExportTask; +export declare function FiltersExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersExportTask; +export declare function FiltersExportTaskToJSON(value?: FiltersExportTask | null): any; diff --git a/dist/cjs/models/FiltersExportTask.js b/dist/cjs/models/FiltersExportTask.js new file mode 100644 index 00000000..0d9d88ba --- /dev/null +++ b/dist/cjs/models/FiltersExportTask.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersExportTaskToJSON = exports.FiltersExportTaskFromJSONTyped = exports.FiltersExportTaskFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersExportTaskFromJSON(json) { + return FiltersExportTaskFromJSONTyped(json, false); +} +exports.FiltersExportTaskFromJSON = FiltersExportTaskFromJSON; +function FiltersExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'taskIds': !(0, runtime_1.exists)(json, 'TaskIds') ? undefined : json['TaskIds'], + }; +} +exports.FiltersExportTaskFromJSONTyped = FiltersExportTaskFromJSONTyped; +function FiltersExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'TaskIds': value.taskIds, + }; +} +exports.FiltersExportTaskToJSON = FiltersExportTaskToJSON; diff --git a/dist/cjs/models/FiltersFlexibleGpu.d.ts b/dist/cjs/models/FiltersFlexibleGpu.d.ts new file mode 100644 index 00000000..4d64c81c --- /dev/null +++ b/dist/cjs/models/FiltersFlexibleGpu.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersFlexibleGpu + */ +export interface FiltersFlexibleGpu { + /** + * Indicates whether the fGPU is deleted when terminating the VM. + * @type {boolean} + * @memberof FiltersFlexibleGpu + */ + deleteOnVmDeletion?: boolean; + /** + * One or more IDs of fGPUs. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + flexibleGpuIds?: Array; + /** + * The processor generations that the fGPUs are compatible with. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + generations?: Array; + /** + * One or more models of fGPUs. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + modelNames?: Array; + /** + * The states of the fGPUs (`allocated` \| `attaching` \| `attached` \| `detaching`). + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + states?: Array; + /** + * The Subregions where the fGPUs are located. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + subregionNames?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + vmIds?: Array; +} +export declare function FiltersFlexibleGpuFromJSON(json: any): FiltersFlexibleGpu; +export declare function FiltersFlexibleGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersFlexibleGpu; +export declare function FiltersFlexibleGpuToJSON(value?: FiltersFlexibleGpu | null): any; diff --git a/dist/cjs/models/FiltersFlexibleGpu.js b/dist/cjs/models/FiltersFlexibleGpu.js new file mode 100644 index 00000000..ec7df3cf --- /dev/null +++ b/dist/cjs/models/FiltersFlexibleGpu.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersFlexibleGpuToJSON = exports.FiltersFlexibleGpuFromJSONTyped = exports.FiltersFlexibleGpuFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersFlexibleGpuFromJSON(json) { + return FiltersFlexibleGpuFromJSONTyped(json, false); +} +exports.FiltersFlexibleGpuFromJSON = FiltersFlexibleGpuFromJSON; +function FiltersFlexibleGpuFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'flexibleGpuIds': !(0, runtime_1.exists)(json, 'FlexibleGpuIds') ? undefined : json['FlexibleGpuIds'], + 'generations': !(0, runtime_1.exists)(json, 'Generations') ? undefined : json['Generations'], + 'modelNames': !(0, runtime_1.exists)(json, 'ModelNames') ? undefined : json['ModelNames'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'vmIds': !(0, runtime_1.exists)(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +exports.FiltersFlexibleGpuFromJSONTyped = FiltersFlexibleGpuFromJSONTyped; +function FiltersFlexibleGpuToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'FlexibleGpuIds': value.flexibleGpuIds, + 'Generations': value.generations, + 'ModelNames': value.modelNames, + 'States': value.states, + 'SubregionNames': value.subregionNames, + 'VmIds': value.vmIds, + }; +} +exports.FiltersFlexibleGpuToJSON = FiltersFlexibleGpuToJSON; diff --git a/dist/cjs/models/FiltersImage.d.ts b/dist/cjs/models/FiltersImage.d.ts new file mode 100644 index 00000000..ac5724d5 --- /dev/null +++ b/dist/cjs/models/FiltersImage.d.ts @@ -0,0 +1,159 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersImage + */ +export interface FiltersImage { + /** + * The account aliases of the owners of the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + accountAliases?: Array; + /** + * The account IDs of the owners of the OMIs. By default, all the OMIs for which you have launch permissions are described. + * @type {Array} + * @memberof FiltersImage + */ + accountIds?: Array; + /** + * The architectures of the OMIs (`i386` \| `x86_64`). + * @type {Array} + * @memberof FiltersImage + */ + architectures?: Array; + /** + * Whether the volumes are deleted or not when terminating the VM. + * @type {boolean} + * @memberof FiltersImage + */ + blockDeviceMappingDeleteOnVmDeletion?: boolean; + /** + * The device names for the volumes. + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingDeviceNames?: Array; + /** + * The IDs of the snapshots used to create the volumes. + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingSnapshotIds?: Array; + /** + * The sizes of the volumes, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingVolumeSizes?: Array; + /** + * The types of volumes (`standard` \| `gp2` \| `io1`). + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingVolumeTypes?: Array; + /** + * The descriptions of the OMIs, provided when they were created. + * @type {Array} + * @memberof FiltersImage + */ + descriptions?: Array; + /** + * The locations of the buckets where the OMI files are stored. + * @type {Array} + * @memberof FiltersImage + */ + fileLocations?: Array; + /** + * The hypervisor type of the OMI (always `xen`). + * @type {Array} + * @memberof FiltersImage + */ + hypervisors?: Array; + /** + * The IDs of the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + imageIds?: Array; + /** + * The names of the OMIs, provided when they were created. + * @type {Array} + * @memberof FiltersImage + */ + imageNames?: Array; + /** + * The account IDs of the users who have launch permissions for the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + permissionsToLaunchAccountIds?: Array; + /** + * If true, lists all public OMIs. If false, lists all private OMIs. + * @type {boolean} + * @memberof FiltersImage + */ + permissionsToLaunchGlobalPermission?: boolean; + /** + * The product code associated with the OMI (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof FiltersImage + */ + productCodes?: Array; + /** + * The name of the root device. This value must be /dev/sda1. + * @type {Array} + * @memberof FiltersImage + */ + rootDeviceNames?: Array; + /** + * The types of root device used by the OMIs (always `bsu`). + * @type {Array} + * @memberof FiltersImage + */ + rootDeviceTypes?: Array; + /** + * The states of the OMIs (`pending` \| `available` \| `failed`). + * @type {Array} + * @memberof FiltersImage + */ + states?: Array; + /** + * The keys of the tags associated with the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + tagKeys?: Array; + /** + * The values of the tags associated with the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the OMIs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersImage + */ + tags?: Array; + /** + * The virtualization types (always `hvm`). + * @type {Array} + * @memberof FiltersImage + */ + virtualizationTypes?: Array; +} +export declare function FiltersImageFromJSON(json: any): FiltersImage; +export declare function FiltersImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersImage; +export declare function FiltersImageToJSON(value?: FiltersImage | null): any; diff --git a/dist/cjs/models/FiltersImage.js b/dist/cjs/models/FiltersImage.js new file mode 100644 index 00000000..2d950ab2 --- /dev/null +++ b/dist/cjs/models/FiltersImage.js @@ -0,0 +1,86 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersImageToJSON = exports.FiltersImageFromJSONTyped = exports.FiltersImageFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersImageFromJSON(json) { + return FiltersImageFromJSONTyped(json, false); +} +exports.FiltersImageFromJSON = FiltersImageFromJSON; +function FiltersImageFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAliases': !(0, runtime_1.exists)(json, 'AccountAliases') ? undefined : json['AccountAliases'], + 'accountIds': !(0, runtime_1.exists)(json, 'AccountIds') ? undefined : json['AccountIds'], + 'architectures': !(0, runtime_1.exists)(json, 'Architectures') ? undefined : json['Architectures'], + 'blockDeviceMappingDeleteOnVmDeletion': !(0, runtime_1.exists)(json, 'BlockDeviceMappingDeleteOnVmDeletion') ? undefined : json['BlockDeviceMappingDeleteOnVmDeletion'], + 'blockDeviceMappingDeviceNames': !(0, runtime_1.exists)(json, 'BlockDeviceMappingDeviceNames') ? undefined : json['BlockDeviceMappingDeviceNames'], + 'blockDeviceMappingSnapshotIds': !(0, runtime_1.exists)(json, 'BlockDeviceMappingSnapshotIds') ? undefined : json['BlockDeviceMappingSnapshotIds'], + 'blockDeviceMappingVolumeSizes': !(0, runtime_1.exists)(json, 'BlockDeviceMappingVolumeSizes') ? undefined : json['BlockDeviceMappingVolumeSizes'], + 'blockDeviceMappingVolumeTypes': !(0, runtime_1.exists)(json, 'BlockDeviceMappingVolumeTypes') ? undefined : json['BlockDeviceMappingVolumeTypes'], + 'descriptions': !(0, runtime_1.exists)(json, 'Descriptions') ? undefined : json['Descriptions'], + 'fileLocations': !(0, runtime_1.exists)(json, 'FileLocations') ? undefined : json['FileLocations'], + 'hypervisors': !(0, runtime_1.exists)(json, 'Hypervisors') ? undefined : json['Hypervisors'], + 'imageIds': !(0, runtime_1.exists)(json, 'ImageIds') ? undefined : json['ImageIds'], + 'imageNames': !(0, runtime_1.exists)(json, 'ImageNames') ? undefined : json['ImageNames'], + 'permissionsToLaunchAccountIds': !(0, runtime_1.exists)(json, 'PermissionsToLaunchAccountIds') ? undefined : json['PermissionsToLaunchAccountIds'], + 'permissionsToLaunchGlobalPermission': !(0, runtime_1.exists)(json, 'PermissionsToLaunchGlobalPermission') ? undefined : json['PermissionsToLaunchGlobalPermission'], + 'productCodes': !(0, runtime_1.exists)(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'rootDeviceNames': !(0, runtime_1.exists)(json, 'RootDeviceNames') ? undefined : json['RootDeviceNames'], + 'rootDeviceTypes': !(0, runtime_1.exists)(json, 'RootDeviceTypes') ? undefined : json['RootDeviceTypes'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'virtualizationTypes': !(0, runtime_1.exists)(json, 'VirtualizationTypes') ? undefined : json['VirtualizationTypes'], + }; +} +exports.FiltersImageFromJSONTyped = FiltersImageFromJSONTyped; +function FiltersImageToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAliases': value.accountAliases, + 'AccountIds': value.accountIds, + 'Architectures': value.architectures, + 'BlockDeviceMappingDeleteOnVmDeletion': value.blockDeviceMappingDeleteOnVmDeletion, + 'BlockDeviceMappingDeviceNames': value.blockDeviceMappingDeviceNames, + 'BlockDeviceMappingSnapshotIds': value.blockDeviceMappingSnapshotIds, + 'BlockDeviceMappingVolumeSizes': value.blockDeviceMappingVolumeSizes, + 'BlockDeviceMappingVolumeTypes': value.blockDeviceMappingVolumeTypes, + 'Descriptions': value.descriptions, + 'FileLocations': value.fileLocations, + 'Hypervisors': value.hypervisors, + 'ImageIds': value.imageIds, + 'ImageNames': value.imageNames, + 'PermissionsToLaunchAccountIds': value.permissionsToLaunchAccountIds, + 'PermissionsToLaunchGlobalPermission': value.permissionsToLaunchGlobalPermission, + 'ProductCodes': value.productCodes, + 'RootDeviceNames': value.rootDeviceNames, + 'RootDeviceTypes': value.rootDeviceTypes, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualizationTypes': value.virtualizationTypes, + }; +} +exports.FiltersImageToJSON = FiltersImageToJSON; diff --git a/dist/cjs/models/FiltersInternetService.d.ts b/dist/cjs/models/FiltersInternetService.d.ts new file mode 100644 index 00000000..2b06aa06 --- /dev/null +++ b/dist/cjs/models/FiltersInternetService.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersInternetService + */ +export interface FiltersInternetService { + /** + * The IDs of the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + internetServiceIds?: Array; + /** + * The IDs of the Nets the Internet services are attached to. + * @type {Array} + * @memberof FiltersInternetService + */ + linkNetIds?: Array; + /** + * The current states of the attachments between the Internet services and the Nets (only `available`, if the Internet gateway is attached to a VPC). + * @type {Array} + * @memberof FiltersInternetService + */ + linkStates?: Array; + /** + * The keys of the tags associated with the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Internet services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersInternetService + */ + tags?: Array; +} +export declare function FiltersInternetServiceFromJSON(json: any): FiltersInternetService; +export declare function FiltersInternetServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersInternetService; +export declare function FiltersInternetServiceToJSON(value?: FiltersInternetService | null): any; diff --git a/dist/cjs/models/FiltersInternetService.js b/dist/cjs/models/FiltersInternetService.js new file mode 100644 index 00000000..3edbe57a --- /dev/null +++ b/dist/cjs/models/FiltersInternetService.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersInternetServiceToJSON = exports.FiltersInternetServiceFromJSONTyped = exports.FiltersInternetServiceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersInternetServiceFromJSON(json) { + return FiltersInternetServiceFromJSONTyped(json, false); +} +exports.FiltersInternetServiceFromJSON = FiltersInternetServiceFromJSON; +function FiltersInternetServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetServiceIds': !(0, runtime_1.exists)(json, 'InternetServiceIds') ? undefined : json['InternetServiceIds'], + 'linkNetIds': !(0, runtime_1.exists)(json, 'LinkNetIds') ? undefined : json['LinkNetIds'], + 'linkStates': !(0, runtime_1.exists)(json, 'LinkStates') ? undefined : json['LinkStates'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersInternetServiceFromJSONTyped = FiltersInternetServiceFromJSONTyped; +function FiltersInternetServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetServiceIds': value.internetServiceIds, + 'LinkNetIds': value.linkNetIds, + 'LinkStates': value.linkStates, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersInternetServiceToJSON = FiltersInternetServiceToJSON; diff --git a/dist/cjs/models/FiltersKeypair.d.ts b/dist/cjs/models/FiltersKeypair.d.ts new file mode 100644 index 00000000..70a2a4a2 --- /dev/null +++ b/dist/cjs/models/FiltersKeypair.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersKeypair + */ +export interface FiltersKeypair { + /** + * The fingerprints of the keypairs. + * @type {Array} + * @memberof FiltersKeypair + */ + keypairFingerprints?: Array; + /** + * The names of the keypairs. + * @type {Array} + * @memberof FiltersKeypair + */ + keypairNames?: Array; +} +export declare function FiltersKeypairFromJSON(json: any): FiltersKeypair; +export declare function FiltersKeypairFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersKeypair; +export declare function FiltersKeypairToJSON(value?: FiltersKeypair | null): any; diff --git a/dist/cjs/models/FiltersKeypair.js b/dist/cjs/models/FiltersKeypair.js new file mode 100644 index 00000000..a7769996 --- /dev/null +++ b/dist/cjs/models/FiltersKeypair.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersKeypairToJSON = exports.FiltersKeypairFromJSONTyped = exports.FiltersKeypairFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersKeypairFromJSON(json) { + return FiltersKeypairFromJSONTyped(json, false); +} +exports.FiltersKeypairFromJSON = FiltersKeypairFromJSON; +function FiltersKeypairFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairFingerprints': !(0, runtime_1.exists)(json, 'KeypairFingerprints') ? undefined : json['KeypairFingerprints'], + 'keypairNames': !(0, runtime_1.exists)(json, 'KeypairNames') ? undefined : json['KeypairNames'], + }; +} +exports.FiltersKeypairFromJSONTyped = FiltersKeypairFromJSONTyped; +function FiltersKeypairToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'KeypairFingerprints': value.keypairFingerprints, + 'KeypairNames': value.keypairNames, + }; +} +exports.FiltersKeypairToJSON = FiltersKeypairToJSON; diff --git a/dist/cjs/models/FiltersListenerRule.d.ts b/dist/cjs/models/FiltersListenerRule.d.ts new file mode 100644 index 00000000..d0dfc3f5 --- /dev/null +++ b/dist/cjs/models/FiltersListenerRule.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersListenerRule + */ +export interface FiltersListenerRule { + /** + * The names of the listener rules. + * @type {Array} + * @memberof FiltersListenerRule + */ + listenerRuleNames?: Array; +} +export declare function FiltersListenerRuleFromJSON(json: any): FiltersListenerRule; +export declare function FiltersListenerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersListenerRule; +export declare function FiltersListenerRuleToJSON(value?: FiltersListenerRule | null): any; diff --git a/dist/cjs/models/FiltersListenerRule.js b/dist/cjs/models/FiltersListenerRule.js new file mode 100644 index 00000000..3ca1d3b8 --- /dev/null +++ b/dist/cjs/models/FiltersListenerRule.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersListenerRuleToJSON = exports.FiltersListenerRuleFromJSONTyped = exports.FiltersListenerRuleFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersListenerRuleFromJSON(json) { + return FiltersListenerRuleFromJSONTyped(json, false); +} +exports.FiltersListenerRuleFromJSON = FiltersListenerRuleFromJSON; +function FiltersListenerRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRuleNames': !(0, runtime_1.exists)(json, 'ListenerRuleNames') ? undefined : json['ListenerRuleNames'], + }; +} +exports.FiltersListenerRuleFromJSONTyped = FiltersListenerRuleFromJSONTyped; +function FiltersListenerRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRuleNames': value.listenerRuleNames, + }; +} +exports.FiltersListenerRuleToJSON = FiltersListenerRuleToJSON; diff --git a/dist/cjs/models/FiltersLoadBalancer.d.ts b/dist/cjs/models/FiltersLoadBalancer.d.ts new file mode 100644 index 00000000..1ad5c2d3 --- /dev/null +++ b/dist/cjs/models/FiltersLoadBalancer.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersLoadBalancer + */ +export interface FiltersLoadBalancer { + /** + * The names of the load balancers. + * @type {Array} + * @memberof FiltersLoadBalancer + */ + loadBalancerNames?: Array; +} +export declare function FiltersLoadBalancerFromJSON(json: any): FiltersLoadBalancer; +export declare function FiltersLoadBalancerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersLoadBalancer; +export declare function FiltersLoadBalancerToJSON(value?: FiltersLoadBalancer | null): any; diff --git a/dist/cjs/models/FiltersLoadBalancer.js b/dist/cjs/models/FiltersLoadBalancer.js new file mode 100644 index 00000000..6e79db81 --- /dev/null +++ b/dist/cjs/models/FiltersLoadBalancer.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersLoadBalancerToJSON = exports.FiltersLoadBalancerFromJSONTyped = exports.FiltersLoadBalancerFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersLoadBalancerFromJSON(json) { + return FiltersLoadBalancerFromJSONTyped(json, false); +} +exports.FiltersLoadBalancerFromJSON = FiltersLoadBalancerFromJSON; +function FiltersLoadBalancerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancerNames': !(0, runtime_1.exists)(json, 'LoadBalancerNames') ? undefined : json['LoadBalancerNames'], + }; +} +exports.FiltersLoadBalancerFromJSONTyped = FiltersLoadBalancerFromJSONTyped; +function FiltersLoadBalancerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancerNames': value.loadBalancerNames, + }; +} +exports.FiltersLoadBalancerToJSON = FiltersLoadBalancerToJSON; diff --git a/dist/cjs/models/FiltersNatService.d.ts b/dist/cjs/models/FiltersNatService.d.ts new file mode 100644 index 00000000..95d9c891 --- /dev/null +++ b/dist/cjs/models/FiltersNatService.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNatService + */ +export interface FiltersNatService { + /** + * The IDs of the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + natServiceIds?: Array; + /** + * The IDs of the Nets in which the NAT services are. + * @type {Array} + * @memberof FiltersNatService + */ + netIds?: Array; + /** + * The states of the NAT services (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersNatService + */ + states?: Array; + /** + * The IDs of the Subnets in which the NAT services are. + * @type {Array} + * @memberof FiltersNatService + */ + subnetIds?: Array; + /** + * The keys of the tags associated with the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + tagKeys?: Array; + /** + * The values of the tags associated with the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the NAT services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNatService + */ + tags?: Array; +} +export declare function FiltersNatServiceFromJSON(json: any): FiltersNatService; +export declare function FiltersNatServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNatService; +export declare function FiltersNatServiceToJSON(value?: FiltersNatService | null): any; diff --git a/dist/cjs/models/FiltersNatService.js b/dist/cjs/models/FiltersNatService.js new file mode 100644 index 00000000..84cfe46c --- /dev/null +++ b/dist/cjs/models/FiltersNatService.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersNatServiceToJSON = exports.FiltersNatServiceFromJSONTyped = exports.FiltersNatServiceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersNatServiceFromJSON(json) { + return FiltersNatServiceFromJSONTyped(json, false); +} +exports.FiltersNatServiceFromJSON = FiltersNatServiceFromJSON; +function FiltersNatServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natServiceIds': !(0, runtime_1.exists)(json, 'NatServiceIds') ? undefined : json['NatServiceIds'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'subnetIds': !(0, runtime_1.exists)(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersNatServiceFromJSONTyped = FiltersNatServiceFromJSONTyped; +function FiltersNatServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatServiceIds': value.natServiceIds, + 'NetIds': value.netIds, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersNatServiceToJSON = FiltersNatServiceToJSON; diff --git a/dist/cjs/models/FiltersNet.d.ts b/dist/cjs/models/FiltersNet.d.ts new file mode 100644 index 00000000..9dea7106 --- /dev/null +++ b/dist/cjs/models/FiltersNet.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNet + */ +export interface FiltersNet { + /** + * The IDs of the DHCP options sets. + * @type {Array} + * @memberof FiltersNet + */ + dhcpOptionsSetIds?: Array; + /** + * The IP ranges for the Nets, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof FiltersNet + */ + ipRanges?: Array; + /** + * If true, the Net used is the default one. + * @type {boolean} + * @memberof FiltersNet + */ + isDefault?: boolean; + /** + * The IDs of the Nets. + * @type {Array} + * @memberof FiltersNet + */ + netIds?: Array; + /** + * The states of the Nets (`pending` \| `available`). + * @type {Array} + * @memberof FiltersNet + */ + states?: Array; + /** + * The keys of the tags associated with the Nets. + * @type {Array} + * @memberof FiltersNet + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Nets. + * @type {Array} + * @memberof FiltersNet + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Nets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNet + */ + tags?: Array; +} +export declare function FiltersNetFromJSON(json: any): FiltersNet; +export declare function FiltersNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNet; +export declare function FiltersNetToJSON(value?: FiltersNet | null): any; diff --git a/dist/cjs/models/FiltersNet.js b/dist/cjs/models/FiltersNet.js new file mode 100644 index 00000000..2ebd9819 --- /dev/null +++ b/dist/cjs/models/FiltersNet.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersNetToJSON = exports.FiltersNetFromJSONTyped = exports.FiltersNetFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersNetFromJSON(json) { + return FiltersNetFromJSONTyped(json, false); +} +exports.FiltersNetFromJSON = FiltersNetFromJSON; +function FiltersNetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetIds': !(0, runtime_1.exists)(json, 'DhcpOptionsSetIds') ? undefined : json['DhcpOptionsSetIds'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + 'isDefault': !(0, runtime_1.exists)(json, 'IsDefault') ? undefined : json['IsDefault'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersNetFromJSONTyped = FiltersNetFromJSONTyped; +function FiltersNetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetIds': value.dhcpOptionsSetIds, + 'IpRanges': value.ipRanges, + 'IsDefault': value.isDefault, + 'NetIds': value.netIds, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersNetToJSON = FiltersNetToJSON; diff --git a/dist/cjs/models/FiltersNetAccessPoint.d.ts b/dist/cjs/models/FiltersNetAccessPoint.d.ts new file mode 100644 index 00000000..1f26f42f --- /dev/null +++ b/dist/cjs/models/FiltersNetAccessPoint.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNetAccessPoint + */ +export interface FiltersNetAccessPoint { + /** + * The IDs of the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + netAccessPointIds?: Array; + /** + * The IDs of the Nets. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + netIds?: Array; + /** + * The names of the services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + serviceNames?: Array; + /** + * The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + states?: Array; + /** + * The keys of the tags associated with the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tags?: Array; +} +export declare function FiltersNetAccessPointFromJSON(json: any): FiltersNetAccessPoint; +export declare function FiltersNetAccessPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNetAccessPoint; +export declare function FiltersNetAccessPointToJSON(value?: FiltersNetAccessPoint | null): any; diff --git a/dist/cjs/models/FiltersNetAccessPoint.js b/dist/cjs/models/FiltersNetAccessPoint.js new file mode 100644 index 00000000..f4465385 --- /dev/null +++ b/dist/cjs/models/FiltersNetAccessPoint.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersNetAccessPointToJSON = exports.FiltersNetAccessPointFromJSONTyped = exports.FiltersNetAccessPointFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersNetAccessPointFromJSON(json) { + return FiltersNetAccessPointFromJSONTyped(json, false); +} +exports.FiltersNetAccessPointFromJSON = FiltersNetAccessPointFromJSON; +function FiltersNetAccessPointFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPointIds': !(0, runtime_1.exists)(json, 'NetAccessPointIds') ? undefined : json['NetAccessPointIds'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'serviceNames': !(0, runtime_1.exists)(json, 'ServiceNames') ? undefined : json['ServiceNames'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersNetAccessPointFromJSONTyped = FiltersNetAccessPointFromJSONTyped; +function FiltersNetAccessPointToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPointIds': value.netAccessPointIds, + 'NetIds': value.netIds, + 'ServiceNames': value.serviceNames, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersNetAccessPointToJSON = FiltersNetAccessPointToJSON; diff --git a/dist/cjs/models/FiltersNetPeering.d.ts b/dist/cjs/models/FiltersNetPeering.d.ts new file mode 100644 index 00000000..cb9115eb --- /dev/null +++ b/dist/cjs/models/FiltersNetPeering.d.ts @@ -0,0 +1,93 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNetPeering + */ +export interface FiltersNetPeering { + /** + * The account IDs of the owners of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetAccountIds?: Array; + /** + * The IP ranges of the peer Nets, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetIpRanges?: Array; + /** + * The IDs of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetNetIds?: Array; + /** + * The IDs of the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + netPeeringIds?: Array; + /** + * The account IDs of the owners of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetAccountIds?: Array; + /** + * The IP ranges of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetIpRanges?: Array; + /** + * The IDs of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetNetIds?: Array; + /** + * Additional information about the states of the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + stateMessages?: Array; + /** + * The states of the Net peering connections (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). + * @type {Array} + * @memberof FiltersNetPeering + */ + stateNames?: Array; + /** + * The keys of the tags associated with the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Net peering connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNetPeering + */ + tags?: Array; +} +export declare function FiltersNetPeeringFromJSON(json: any): FiltersNetPeering; +export declare function FiltersNetPeeringFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNetPeering; +export declare function FiltersNetPeeringToJSON(value?: FiltersNetPeering | null): any; diff --git a/dist/cjs/models/FiltersNetPeering.js b/dist/cjs/models/FiltersNetPeering.js new file mode 100644 index 00000000..e6417e22 --- /dev/null +++ b/dist/cjs/models/FiltersNetPeering.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersNetPeeringToJSON = exports.FiltersNetPeeringFromJSONTyped = exports.FiltersNetPeeringFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersNetPeeringFromJSON(json) { + return FiltersNetPeeringFromJSONTyped(json, false); +} +exports.FiltersNetPeeringFromJSON = FiltersNetPeeringFromJSON; +function FiltersNetPeeringFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accepterNetAccountIds': !(0, runtime_1.exists)(json, 'AccepterNetAccountIds') ? undefined : json['AccepterNetAccountIds'], + 'accepterNetIpRanges': !(0, runtime_1.exists)(json, 'AccepterNetIpRanges') ? undefined : json['AccepterNetIpRanges'], + 'accepterNetNetIds': !(0, runtime_1.exists)(json, 'AccepterNetNetIds') ? undefined : json['AccepterNetNetIds'], + 'netPeeringIds': !(0, runtime_1.exists)(json, 'NetPeeringIds') ? undefined : json['NetPeeringIds'], + 'sourceNetAccountIds': !(0, runtime_1.exists)(json, 'SourceNetAccountIds') ? undefined : json['SourceNetAccountIds'], + 'sourceNetIpRanges': !(0, runtime_1.exists)(json, 'SourceNetIpRanges') ? undefined : json['SourceNetIpRanges'], + 'sourceNetNetIds': !(0, runtime_1.exists)(json, 'SourceNetNetIds') ? undefined : json['SourceNetNetIds'], + 'stateMessages': !(0, runtime_1.exists)(json, 'StateMessages') ? undefined : json['StateMessages'], + 'stateNames': !(0, runtime_1.exists)(json, 'StateNames') ? undefined : json['StateNames'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersNetPeeringFromJSONTyped = FiltersNetPeeringFromJSONTyped; +function FiltersNetPeeringToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccepterNetAccountIds': value.accepterNetAccountIds, + 'AccepterNetIpRanges': value.accepterNetIpRanges, + 'AccepterNetNetIds': value.accepterNetNetIds, + 'NetPeeringIds': value.netPeeringIds, + 'SourceNetAccountIds': value.sourceNetAccountIds, + 'SourceNetIpRanges': value.sourceNetIpRanges, + 'SourceNetNetIds': value.sourceNetNetIds, + 'StateMessages': value.stateMessages, + 'StateNames': value.stateNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersNetPeeringToJSON = FiltersNetPeeringToJSON; diff --git a/dist/cjs/models/FiltersNic.d.ts b/dist/cjs/models/FiltersNic.d.ts new file mode 100644 index 00000000..f8043c44 --- /dev/null +++ b/dist/cjs/models/FiltersNic.d.ts @@ -0,0 +1,189 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNic + */ +export interface FiltersNic { + /** + * The descriptions of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + descriptions?: Array; + /** + * Whether the source/destination checking is enabled (true) or disabled (false). + * @type {boolean} + * @memberof FiltersNic + */ + isSourceDestCheck?: boolean; + /** + * Whether the NICs are deleted when the VMs they are attached to are terminated. + * @type {boolean} + * @memberof FiltersNic + */ + linkNicDeleteOnVmDeletion?: boolean; + /** + * The device numbers the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicDeviceNumbers?: Array; + /** + * The attachment IDs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkNicLinkNicIds?: Array; + /** + * The states of the attachments. + * @type {Array} + * @memberof FiltersNic + */ + linkNicStates?: Array; + /** + * The account IDs of the owners of the VMs the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicVmAccountIds?: Array; + /** + * The IDs of the VMs the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicVmIds?: Array; + /** + * The account IDs of the owners of the public IPs associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpAccountIds?: Array; + /** + * The association IDs returned when the public IPs were associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpLinkPublicIpIds?: Array; + /** + * The allocation IDs returned when the public IPs were allocated to their accounts. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpPublicIpIds?: Array; + /** + * The public IPs associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpPublicIps?: Array; + /** + * The Media Access Control (MAC) addresses of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + macAddresses?: Array; + /** + * The IDs of the Nets where the NICs are located. + * @type {Array} + * @memberof FiltersNic + */ + netIds?: Array; + /** + * The IDs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + nicIds?: Array; + /** + * The private DNS names associated with the primary private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateDnsNames?: Array; + /** + * The account IDs of the owner of the public IPs associated with the private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsLinkPublicIpAccountIds?: Array; + /** + * The public IPs associated with the private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsLinkPublicIpPublicIps?: Array; + /** + * Whether the private IP is the primary IP associated with the NIC. + * @type {boolean} + * @memberof FiltersNic + */ + privateIpsPrimaryIp?: boolean; + /** + * The private IPs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsPrivateIps?: Array; + /** + * The IDs of the security groups associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + securityGroupIds?: Array; + /** + * The names of the security groups associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + securityGroupNames?: Array; + /** + * The states of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + states?: Array; + /** + * The IDs of the Subnets for the NICs. + * @type {Array} + * @memberof FiltersNic + */ + subnetIds?: Array; + /** + * The Subregions where the NICs are located. + * @type {Array} + * @memberof FiltersNic + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + tagKeys?: Array; + /** + * The values of the tags associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the NICs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNic + */ + tags?: Array; +} +export declare function FiltersNicFromJSON(json: any): FiltersNic; +export declare function FiltersNicFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNic; +export declare function FiltersNicToJSON(value?: FiltersNic | null): any; diff --git a/dist/cjs/models/FiltersNic.js b/dist/cjs/models/FiltersNic.js new file mode 100644 index 00000000..71237d80 --- /dev/null +++ b/dist/cjs/models/FiltersNic.js @@ -0,0 +1,96 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersNicToJSON = exports.FiltersNicFromJSONTyped = exports.FiltersNicFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersNicFromJSON(json) { + return FiltersNicFromJSONTyped(json, false); +} +exports.FiltersNicFromJSON = FiltersNicFromJSON; +function FiltersNicFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'descriptions': !(0, runtime_1.exists)(json, 'Descriptions') ? undefined : json['Descriptions'], + 'isSourceDestCheck': !(0, runtime_1.exists)(json, 'IsSourceDestCheck') ? undefined : json['IsSourceDestCheck'], + 'linkNicDeleteOnVmDeletion': !(0, runtime_1.exists)(json, 'LinkNicDeleteOnVmDeletion') ? undefined : json['LinkNicDeleteOnVmDeletion'], + 'linkNicDeviceNumbers': !(0, runtime_1.exists)(json, 'LinkNicDeviceNumbers') ? undefined : json['LinkNicDeviceNumbers'], + 'linkNicLinkNicIds': !(0, runtime_1.exists)(json, 'LinkNicLinkNicIds') ? undefined : json['LinkNicLinkNicIds'], + 'linkNicStates': !(0, runtime_1.exists)(json, 'LinkNicStates') ? undefined : json['LinkNicStates'], + 'linkNicVmAccountIds': !(0, runtime_1.exists)(json, 'LinkNicVmAccountIds') ? undefined : json['LinkNicVmAccountIds'], + 'linkNicVmIds': !(0, runtime_1.exists)(json, 'LinkNicVmIds') ? undefined : json['LinkNicVmIds'], + 'linkPublicIpAccountIds': !(0, runtime_1.exists)(json, 'LinkPublicIpAccountIds') ? undefined : json['LinkPublicIpAccountIds'], + 'linkPublicIpLinkPublicIpIds': !(0, runtime_1.exists)(json, 'LinkPublicIpLinkPublicIpIds') ? undefined : json['LinkPublicIpLinkPublicIpIds'], + 'linkPublicIpPublicIpIds': !(0, runtime_1.exists)(json, 'LinkPublicIpPublicIpIds') ? undefined : json['LinkPublicIpPublicIpIds'], + 'linkPublicIpPublicIps': !(0, runtime_1.exists)(json, 'LinkPublicIpPublicIps') ? undefined : json['LinkPublicIpPublicIps'], + 'macAddresses': !(0, runtime_1.exists)(json, 'MacAddresses') ? undefined : json['MacAddresses'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'nicIds': !(0, runtime_1.exists)(json, 'NicIds') ? undefined : json['NicIds'], + 'privateDnsNames': !(0, runtime_1.exists)(json, 'PrivateDnsNames') ? undefined : json['PrivateDnsNames'], + 'privateIpsLinkPublicIpAccountIds': !(0, runtime_1.exists)(json, 'PrivateIpsLinkPublicIpAccountIds') ? undefined : json['PrivateIpsLinkPublicIpAccountIds'], + 'privateIpsLinkPublicIpPublicIps': !(0, runtime_1.exists)(json, 'PrivateIpsLinkPublicIpPublicIps') ? undefined : json['PrivateIpsLinkPublicIpPublicIps'], + 'privateIpsPrimaryIp': !(0, runtime_1.exists)(json, 'PrivateIpsPrimaryIp') ? undefined : json['PrivateIpsPrimaryIp'], + 'privateIpsPrivateIps': !(0, runtime_1.exists)(json, 'PrivateIpsPrivateIps') ? undefined : json['PrivateIpsPrivateIps'], + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroupNames': !(0, runtime_1.exists)(json, 'SecurityGroupNames') ? undefined : json['SecurityGroupNames'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'subnetIds': !(0, runtime_1.exists)(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersNicFromJSONTyped = FiltersNicFromJSONTyped; +function FiltersNicToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Descriptions': value.descriptions, + 'IsSourceDestCheck': value.isSourceDestCheck, + 'LinkNicDeleteOnVmDeletion': value.linkNicDeleteOnVmDeletion, + 'LinkNicDeviceNumbers': value.linkNicDeviceNumbers, + 'LinkNicLinkNicIds': value.linkNicLinkNicIds, + 'LinkNicStates': value.linkNicStates, + 'LinkNicVmAccountIds': value.linkNicVmAccountIds, + 'LinkNicVmIds': value.linkNicVmIds, + 'LinkPublicIpAccountIds': value.linkPublicIpAccountIds, + 'LinkPublicIpLinkPublicIpIds': value.linkPublicIpLinkPublicIpIds, + 'LinkPublicIpPublicIpIds': value.linkPublicIpPublicIpIds, + 'LinkPublicIpPublicIps': value.linkPublicIpPublicIps, + 'MacAddresses': value.macAddresses, + 'NetIds': value.netIds, + 'NicIds': value.nicIds, + 'PrivateDnsNames': value.privateDnsNames, + 'PrivateIpsLinkPublicIpAccountIds': value.privateIpsLinkPublicIpAccountIds, + 'PrivateIpsLinkPublicIpPublicIps': value.privateIpsLinkPublicIpPublicIps, + 'PrivateIpsPrimaryIp': value.privateIpsPrimaryIp, + 'PrivateIpsPrivateIps': value.privateIpsPrivateIps, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroupNames': value.securityGroupNames, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersNicToJSON = FiltersNicToJSON; diff --git a/dist/cjs/models/FiltersProductType.d.ts b/dist/cjs/models/FiltersProductType.d.ts new file mode 100644 index 00000000..08d66f01 --- /dev/null +++ b/dist/cjs/models/FiltersProductType.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersProductType + */ +export interface FiltersProductType { + /** + * The IDs of the product types. + * @type {Array} + * @memberof FiltersProductType + */ + productTypeIds?: Array; +} +export declare function FiltersProductTypeFromJSON(json: any): FiltersProductType; +export declare function FiltersProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersProductType; +export declare function FiltersProductTypeToJSON(value?: FiltersProductType | null): any; diff --git a/dist/cjs/models/FiltersProductType.js b/dist/cjs/models/FiltersProductType.js new file mode 100644 index 00000000..276dcd95 --- /dev/null +++ b/dist/cjs/models/FiltersProductType.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersProductTypeToJSON = exports.FiltersProductTypeFromJSONTyped = exports.FiltersProductTypeFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersProductTypeFromJSON(json) { + return FiltersProductTypeFromJSONTyped(json, false); +} +exports.FiltersProductTypeFromJSON = FiltersProductTypeFromJSON; +function FiltersProductTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'productTypeIds': !(0, runtime_1.exists)(json, 'ProductTypeIds') ? undefined : json['ProductTypeIds'], + }; +} +exports.FiltersProductTypeFromJSONTyped = FiltersProductTypeFromJSONTyped; +function FiltersProductTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ProductTypeIds': value.productTypeIds, + }; +} +exports.FiltersProductTypeToJSON = FiltersProductTypeToJSON; diff --git a/dist/cjs/models/FiltersPublicIp.d.ts b/dist/cjs/models/FiltersPublicIp.d.ts new file mode 100644 index 00000000..65b7fa4f --- /dev/null +++ b/dist/cjs/models/FiltersPublicIp.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersPublicIp + */ +export interface FiltersPublicIp { + /** + * The IDs representing the associations of public IPs with VMs or NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + linkPublicIpIds?: Array; + /** + * The account IDs of the owners of the NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + nicAccountIds?: Array; + /** + * The IDs of the NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + nicIds?: Array; + /** + * Whether the public IPs are for use in the public Cloud or in a Net. + * @type {Array} + * @memberof FiltersPublicIp + */ + placements?: Array; + /** + * The private IPs associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + privateIps?: Array; + /** + * The IDs of the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + publicIpIds?: Array; + /** + * The public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + publicIps?: Array; + /** + * The keys of the tags associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + tagKeys?: Array; + /** + * The values of the tags associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the public IPs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersPublicIp + */ + tags?: Array; + /** + * The IDs of the VMs. + * @type {Array} + * @memberof FiltersPublicIp + */ + vmIds?: Array; +} +export declare function FiltersPublicIpFromJSON(json: any): FiltersPublicIp; +export declare function FiltersPublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersPublicIp; +export declare function FiltersPublicIpToJSON(value?: FiltersPublicIp | null): any; diff --git a/dist/cjs/models/FiltersPublicIp.js b/dist/cjs/models/FiltersPublicIp.js new file mode 100644 index 00000000..f923de7f --- /dev/null +++ b/dist/cjs/models/FiltersPublicIp.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersPublicIpToJSON = exports.FiltersPublicIpFromJSONTyped = exports.FiltersPublicIpFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersPublicIpFromJSON(json) { + return FiltersPublicIpFromJSONTyped(json, false); +} +exports.FiltersPublicIpFromJSON = FiltersPublicIpFromJSON; +function FiltersPublicIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpIds': !(0, runtime_1.exists)(json, 'LinkPublicIpIds') ? undefined : json['LinkPublicIpIds'], + 'nicAccountIds': !(0, runtime_1.exists)(json, 'NicAccountIds') ? undefined : json['NicAccountIds'], + 'nicIds': !(0, runtime_1.exists)(json, 'NicIds') ? undefined : json['NicIds'], + 'placements': !(0, runtime_1.exists)(json, 'Placements') ? undefined : json['Placements'], + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'publicIpIds': !(0, runtime_1.exists)(json, 'PublicIpIds') ? undefined : json['PublicIpIds'], + 'publicIps': !(0, runtime_1.exists)(json, 'PublicIps') ? undefined : json['PublicIps'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'vmIds': !(0, runtime_1.exists)(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +exports.FiltersPublicIpFromJSONTyped = FiltersPublicIpFromJSONTyped; +function FiltersPublicIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpIds': value.linkPublicIpIds, + 'NicAccountIds': value.nicAccountIds, + 'NicIds': value.nicIds, + 'Placements': value.placements, + 'PrivateIps': value.privateIps, + 'PublicIpIds': value.publicIpIds, + 'PublicIps': value.publicIps, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VmIds': value.vmIds, + }; +} +exports.FiltersPublicIpToJSON = FiltersPublicIpToJSON; diff --git a/dist/cjs/models/FiltersQuota.d.ts b/dist/cjs/models/FiltersQuota.d.ts new file mode 100644 index 00000000..73c92289 --- /dev/null +++ b/dist/cjs/models/FiltersQuota.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersQuota + */ +export interface FiltersQuota { + /** + * The group names of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + collections?: Array; + /** + * The names of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + quotaNames?: Array; + /** + * The resource IDs if these are resource-specific quotas, `global` if they are not. + * @type {Array} + * @memberof FiltersQuota + */ + quotaTypes?: Array; + /** + * The description of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + shortDescriptions?: Array; +} +export declare function FiltersQuotaFromJSON(json: any): FiltersQuota; +export declare function FiltersQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersQuota; +export declare function FiltersQuotaToJSON(value?: FiltersQuota | null): any; diff --git a/dist/cjs/models/FiltersQuota.js b/dist/cjs/models/FiltersQuota.js new file mode 100644 index 00000000..223e161d --- /dev/null +++ b/dist/cjs/models/FiltersQuota.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersQuotaToJSON = exports.FiltersQuotaFromJSONTyped = exports.FiltersQuotaFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersQuotaFromJSON(json) { + return FiltersQuotaFromJSONTyped(json, false); +} +exports.FiltersQuotaFromJSON = FiltersQuotaFromJSON; +function FiltersQuotaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'collections': !(0, runtime_1.exists)(json, 'Collections') ? undefined : json['Collections'], + 'quotaNames': !(0, runtime_1.exists)(json, 'QuotaNames') ? undefined : json['QuotaNames'], + 'quotaTypes': !(0, runtime_1.exists)(json, 'QuotaTypes') ? undefined : json['QuotaTypes'], + 'shortDescriptions': !(0, runtime_1.exists)(json, 'ShortDescriptions') ? undefined : json['ShortDescriptions'], + }; +} +exports.FiltersQuotaFromJSONTyped = FiltersQuotaFromJSONTyped; +function FiltersQuotaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Collections': value.collections, + 'QuotaNames': value.quotaNames, + 'QuotaTypes': value.quotaTypes, + 'ShortDescriptions': value.shortDescriptions, + }; +} +exports.FiltersQuotaToJSON = FiltersQuotaToJSON; diff --git a/dist/cjs/models/FiltersRouteTable.d.ts b/dist/cjs/models/FiltersRouteTable.d.ts new file mode 100644 index 00000000..2a33fd06 --- /dev/null +++ b/dist/cjs/models/FiltersRouteTable.d.ts @@ -0,0 +1,123 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersRouteTable + */ +export interface FiltersRouteTable { + /** + * The IDs of the route tables involved in the associations. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkRouteTableIds?: Array; + /** + * The IDs of the associations between the route tables and the Subnets. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkRouteTableLinkRouteTableIds?: Array; + /** + * If true, the route tables are the main ones for their Nets. + * @type {boolean} + * @memberof FiltersRouteTable + */ + linkRouteTableMain?: boolean; + /** + * The IDs of the Subnets involved in the associations. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkSubnetIds?: Array; + /** + * The IDs of the Nets for the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + netIds?: Array; + /** + * The methods used to create a route. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeCreationMethods?: Array; + /** + * The IP ranges specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeDestinationIpRanges?: Array; + /** + * The service IDs specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeDestinationServiceIds?: Array; + /** + * The IDs of the gateways specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeGatewayIds?: Array; + /** + * The IDs of the NAT services specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeNatServiceIds?: Array; + /** + * The IDs of the Net peering connections specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeNetPeeringIds?: Array; + /** + * The states of routes in the route tables (`active` \| `blackhole`). The `blackhole` state indicates that the target of the route is not available. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeStates?: Array; + /** + * The IDs of the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeTableIds?: Array; + /** + * The IDs of the VMs specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeVmIds?: Array; + /** + * The keys of the tags associated with the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + tagKeys?: Array; + /** + * The values of the tags associated with the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the route tables, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersRouteTable + */ + tags?: Array; +} +export declare function FiltersRouteTableFromJSON(json: any): FiltersRouteTable; +export declare function FiltersRouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersRouteTable; +export declare function FiltersRouteTableToJSON(value?: FiltersRouteTable | null): any; diff --git a/dist/cjs/models/FiltersRouteTable.js b/dist/cjs/models/FiltersRouteTable.js new file mode 100644 index 00000000..06356d08 --- /dev/null +++ b/dist/cjs/models/FiltersRouteTable.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersRouteTableToJSON = exports.FiltersRouteTableFromJSONTyped = exports.FiltersRouteTableFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersRouteTableFromJSON(json) { + return FiltersRouteTableFromJSONTyped(json, false); +} +exports.FiltersRouteTableFromJSON = FiltersRouteTableFromJSON; +function FiltersRouteTableFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTableIds': !(0, runtime_1.exists)(json, 'LinkRouteTableIds') ? undefined : json['LinkRouteTableIds'], + 'linkRouteTableLinkRouteTableIds': !(0, runtime_1.exists)(json, 'LinkRouteTableLinkRouteTableIds') ? undefined : json['LinkRouteTableLinkRouteTableIds'], + 'linkRouteTableMain': !(0, runtime_1.exists)(json, 'LinkRouteTableMain') ? undefined : json['LinkRouteTableMain'], + 'linkSubnetIds': !(0, runtime_1.exists)(json, 'LinkSubnetIds') ? undefined : json['LinkSubnetIds'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'routeCreationMethods': !(0, runtime_1.exists)(json, 'RouteCreationMethods') ? undefined : json['RouteCreationMethods'], + 'routeDestinationIpRanges': !(0, runtime_1.exists)(json, 'RouteDestinationIpRanges') ? undefined : json['RouteDestinationIpRanges'], + 'routeDestinationServiceIds': !(0, runtime_1.exists)(json, 'RouteDestinationServiceIds') ? undefined : json['RouteDestinationServiceIds'], + 'routeGatewayIds': !(0, runtime_1.exists)(json, 'RouteGatewayIds') ? undefined : json['RouteGatewayIds'], + 'routeNatServiceIds': !(0, runtime_1.exists)(json, 'RouteNatServiceIds') ? undefined : json['RouteNatServiceIds'], + 'routeNetPeeringIds': !(0, runtime_1.exists)(json, 'RouteNetPeeringIds') ? undefined : json['RouteNetPeeringIds'], + 'routeStates': !(0, runtime_1.exists)(json, 'RouteStates') ? undefined : json['RouteStates'], + 'routeTableIds': !(0, runtime_1.exists)(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'routeVmIds': !(0, runtime_1.exists)(json, 'RouteVmIds') ? undefined : json['RouteVmIds'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersRouteTableFromJSONTyped = FiltersRouteTableFromJSONTyped; +function FiltersRouteTableToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTableIds': value.linkRouteTableIds, + 'LinkRouteTableLinkRouteTableIds': value.linkRouteTableLinkRouteTableIds, + 'LinkRouteTableMain': value.linkRouteTableMain, + 'LinkSubnetIds': value.linkSubnetIds, + 'NetIds': value.netIds, + 'RouteCreationMethods': value.routeCreationMethods, + 'RouteDestinationIpRanges': value.routeDestinationIpRanges, + 'RouteDestinationServiceIds': value.routeDestinationServiceIds, + 'RouteGatewayIds': value.routeGatewayIds, + 'RouteNatServiceIds': value.routeNatServiceIds, + 'RouteNetPeeringIds': value.routeNetPeeringIds, + 'RouteStates': value.routeStates, + 'RouteTableIds': value.routeTableIds, + 'RouteVmIds': value.routeVmIds, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersRouteTableToJSON = FiltersRouteTableToJSON; diff --git a/dist/cjs/models/FiltersSecurityGroup.d.ts b/dist/cjs/models/FiltersSecurityGroup.d.ts new file mode 100644 index 00000000..70ba62b9 --- /dev/null +++ b/dist/cjs/models/FiltersSecurityGroup.d.ts @@ -0,0 +1,153 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSecurityGroup + */ +export interface FiltersSecurityGroup { + /** + * The account IDs of the owners of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + accountIds?: Array; + /** + * The descriptions of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + descriptions?: Array; + /** + * The account IDs that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleAccountIds?: Array; + /** + * The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleFromPortRanges?: Array; + /** + * The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleIpRanges?: Array; + /** + * The IP protocols for the permissions (`tcp` \| `udp` \| `icmp`, or a protocol number, or `-1` for all protocols). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleProtocols?: Array; + /** + * The IDs of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleSecurityGroupIds?: Array; + /** + * The names of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleSecurityGroupNames?: Array; + /** + * The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleToPortRanges?: Array; + /** + * The IDs of the Nets specified when the security groups were created. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + netIds?: Array; + /** + * The account IDs that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleAccountIds?: Array; + /** + * The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleFromPortRanges?: Array; + /** + * The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleIpRanges?: Array; + /** + * The IP protocols for the permissions (`tcp` \| `udp` \| `icmp`, or a protocol number, or `-1` for all protocols). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleProtocols?: Array; + /** + * The IDs of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleSecurityGroupIds?: Array; + /** + * The names of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleSecurityGroupNames?: Array; + /** + * The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleToPortRanges?: Array; + /** + * The IDs of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + securityGroupIds?: Array; + /** + * The names of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + securityGroupNames?: Array; + /** + * The keys of the tags associated with the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tagKeys?: Array; + /** + * The values of the tags associated with the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the security groups, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tags?: Array; +} +export declare function FiltersSecurityGroupFromJSON(json: any): FiltersSecurityGroup; +export declare function FiltersSecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSecurityGroup; +export declare function FiltersSecurityGroupToJSON(value?: FiltersSecurityGroup | null): any; diff --git a/dist/cjs/models/FiltersSecurityGroup.js b/dist/cjs/models/FiltersSecurityGroup.js new file mode 100644 index 00000000..a4bde92c --- /dev/null +++ b/dist/cjs/models/FiltersSecurityGroup.js @@ -0,0 +1,84 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersSecurityGroupToJSON = exports.FiltersSecurityGroupFromJSONTyped = exports.FiltersSecurityGroupFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersSecurityGroupFromJSON(json) { + return FiltersSecurityGroupFromJSONTyped(json, false); +} +exports.FiltersSecurityGroupFromJSON = FiltersSecurityGroupFromJSON; +function FiltersSecurityGroupFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountIds': !(0, runtime_1.exists)(json, 'AccountIds') ? undefined : json['AccountIds'], + 'descriptions': !(0, runtime_1.exists)(json, 'Descriptions') ? undefined : json['Descriptions'], + 'inboundRuleAccountIds': !(0, runtime_1.exists)(json, 'InboundRuleAccountIds') ? undefined : json['InboundRuleAccountIds'], + 'inboundRuleFromPortRanges': !(0, runtime_1.exists)(json, 'InboundRuleFromPortRanges') ? undefined : json['InboundRuleFromPortRanges'], + 'inboundRuleIpRanges': !(0, runtime_1.exists)(json, 'InboundRuleIpRanges') ? undefined : json['InboundRuleIpRanges'], + 'inboundRuleProtocols': !(0, runtime_1.exists)(json, 'InboundRuleProtocols') ? undefined : json['InboundRuleProtocols'], + 'inboundRuleSecurityGroupIds': !(0, runtime_1.exists)(json, 'InboundRuleSecurityGroupIds') ? undefined : json['InboundRuleSecurityGroupIds'], + 'inboundRuleSecurityGroupNames': !(0, runtime_1.exists)(json, 'InboundRuleSecurityGroupNames') ? undefined : json['InboundRuleSecurityGroupNames'], + 'inboundRuleToPortRanges': !(0, runtime_1.exists)(json, 'InboundRuleToPortRanges') ? undefined : json['InboundRuleToPortRanges'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'outboundRuleAccountIds': !(0, runtime_1.exists)(json, 'OutboundRuleAccountIds') ? undefined : json['OutboundRuleAccountIds'], + 'outboundRuleFromPortRanges': !(0, runtime_1.exists)(json, 'OutboundRuleFromPortRanges') ? undefined : json['OutboundRuleFromPortRanges'], + 'outboundRuleIpRanges': !(0, runtime_1.exists)(json, 'OutboundRuleIpRanges') ? undefined : json['OutboundRuleIpRanges'], + 'outboundRuleProtocols': !(0, runtime_1.exists)(json, 'OutboundRuleProtocols') ? undefined : json['OutboundRuleProtocols'], + 'outboundRuleSecurityGroupIds': !(0, runtime_1.exists)(json, 'OutboundRuleSecurityGroupIds') ? undefined : json['OutboundRuleSecurityGroupIds'], + 'outboundRuleSecurityGroupNames': !(0, runtime_1.exists)(json, 'OutboundRuleSecurityGroupNames') ? undefined : json['OutboundRuleSecurityGroupNames'], + 'outboundRuleToPortRanges': !(0, runtime_1.exists)(json, 'OutboundRuleToPortRanges') ? undefined : json['OutboundRuleToPortRanges'], + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroupNames': !(0, runtime_1.exists)(json, 'SecurityGroupNames') ? undefined : json['SecurityGroupNames'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersSecurityGroupFromJSONTyped = FiltersSecurityGroupFromJSONTyped; +function FiltersSecurityGroupToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountIds': value.accountIds, + 'Descriptions': value.descriptions, + 'InboundRuleAccountIds': value.inboundRuleAccountIds, + 'InboundRuleFromPortRanges': value.inboundRuleFromPortRanges, + 'InboundRuleIpRanges': value.inboundRuleIpRanges, + 'InboundRuleProtocols': value.inboundRuleProtocols, + 'InboundRuleSecurityGroupIds': value.inboundRuleSecurityGroupIds, + 'InboundRuleSecurityGroupNames': value.inboundRuleSecurityGroupNames, + 'InboundRuleToPortRanges': value.inboundRuleToPortRanges, + 'NetIds': value.netIds, + 'OutboundRuleAccountIds': value.outboundRuleAccountIds, + 'OutboundRuleFromPortRanges': value.outboundRuleFromPortRanges, + 'OutboundRuleIpRanges': value.outboundRuleIpRanges, + 'OutboundRuleProtocols': value.outboundRuleProtocols, + 'OutboundRuleSecurityGroupIds': value.outboundRuleSecurityGroupIds, + 'OutboundRuleSecurityGroupNames': value.outboundRuleSecurityGroupNames, + 'OutboundRuleToPortRanges': value.outboundRuleToPortRanges, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroupNames': value.securityGroupNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersSecurityGroupToJSON = FiltersSecurityGroupToJSON; diff --git a/dist/cjs/models/FiltersServerCertificate.d.ts b/dist/cjs/models/FiltersServerCertificate.d.ts new file mode 100644 index 00000000..ed5f6e9b --- /dev/null +++ b/dist/cjs/models/FiltersServerCertificate.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersServerCertificate + */ +export interface FiltersServerCertificate { + /** + * The paths to the server certificates. + * @type {Array} + * @memberof FiltersServerCertificate + */ + paths?: Array; +} +export declare function FiltersServerCertificateFromJSON(json: any): FiltersServerCertificate; +export declare function FiltersServerCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersServerCertificate; +export declare function FiltersServerCertificateToJSON(value?: FiltersServerCertificate | null): any; diff --git a/dist/cjs/models/FiltersServerCertificate.js b/dist/cjs/models/FiltersServerCertificate.js new file mode 100644 index 00000000..41198c78 --- /dev/null +++ b/dist/cjs/models/FiltersServerCertificate.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersServerCertificateToJSON = exports.FiltersServerCertificateFromJSONTyped = exports.FiltersServerCertificateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersServerCertificateFromJSON(json) { + return FiltersServerCertificateFromJSONTyped(json, false); +} +exports.FiltersServerCertificateFromJSON = FiltersServerCertificateFromJSON; +function FiltersServerCertificateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'paths': !(0, runtime_1.exists)(json, 'Paths') ? undefined : json['Paths'], + }; +} +exports.FiltersServerCertificateFromJSONTyped = FiltersServerCertificateFromJSONTyped; +function FiltersServerCertificateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Paths': value.paths, + }; +} +exports.FiltersServerCertificateToJSON = FiltersServerCertificateToJSON; diff --git a/dist/cjs/models/FiltersService.d.ts b/dist/cjs/models/FiltersService.d.ts new file mode 100644 index 00000000..d70f8634 --- /dev/null +++ b/dist/cjs/models/FiltersService.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersService + */ +export interface FiltersService { + /** + * The IDs of the services. + * @type {Array} + * @memberof FiltersService + */ + serviceIds?: Array; + /** + * The names of the services. + * @type {Array} + * @memberof FiltersService + */ + serviceNames?: Array; +} +export declare function FiltersServiceFromJSON(json: any): FiltersService; +export declare function FiltersServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersService; +export declare function FiltersServiceToJSON(value?: FiltersService | null): any; diff --git a/dist/cjs/models/FiltersService.js b/dist/cjs/models/FiltersService.js new file mode 100644 index 00000000..2187ce57 --- /dev/null +++ b/dist/cjs/models/FiltersService.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersServiceToJSON = exports.FiltersServiceFromJSONTyped = exports.FiltersServiceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersServiceFromJSON(json) { + return FiltersServiceFromJSONTyped(json, false); +} +exports.FiltersServiceFromJSON = FiltersServiceFromJSON; +function FiltersServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'serviceIds': !(0, runtime_1.exists)(json, 'ServiceIds') ? undefined : json['ServiceIds'], + 'serviceNames': !(0, runtime_1.exists)(json, 'ServiceNames') ? undefined : json['ServiceNames'], + }; +} +exports.FiltersServiceFromJSONTyped = FiltersServiceFromJSONTyped; +function FiltersServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ServiceIds': value.serviceIds, + 'ServiceNames': value.serviceNames, + }; +} +exports.FiltersServiceToJSON = FiltersServiceToJSON; diff --git a/dist/cjs/models/FiltersSnapshot.d.ts b/dist/cjs/models/FiltersSnapshot.d.ts new file mode 100644 index 00000000..b4853712 --- /dev/null +++ b/dist/cjs/models/FiltersSnapshot.d.ts @@ -0,0 +1,99 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSnapshot + */ +export interface FiltersSnapshot { + /** + * The account aliases of the owners of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + accountAliases?: Array; + /** + * The account IDs of the owners of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + accountIds?: Array; + /** + * The descriptions of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + descriptions?: Array; + /** + * The account IDs of one or more users who have permissions to create volumes. + * @type {Array} + * @memberof FiltersSnapshot + */ + permissionsToCreateVolumeAccountIds?: Array; + /** + * If true, lists all public volumes. If false, lists all private volumes. + * @type {boolean} + * @memberof FiltersSnapshot + */ + permissionsToCreateVolumeGlobalPermission?: boolean; + /** + * The progresses of the snapshots, as a percentage. + * @type {Array} + * @memberof FiltersSnapshot + */ + progresses?: Array; + /** + * The IDs of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + snapshotIds?: Array; + /** + * The states of the snapshots (`in-queue` \| `completed` \| `error`). + * @type {Array} + * @memberof FiltersSnapshot + */ + states?: Array; + /** + * The keys of the tags associated with the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + tagKeys?: Array; + /** + * The values of the tags associated with the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the snapshots, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSnapshot + */ + tags?: Array; + /** + * The IDs of the volumes used to create the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + volumeIds?: Array; + /** + * The sizes of the volumes used to create the snapshots, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersSnapshot + */ + volumeSizes?: Array; +} +export declare function FiltersSnapshotFromJSON(json: any): FiltersSnapshot; +export declare function FiltersSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSnapshot; +export declare function FiltersSnapshotToJSON(value?: FiltersSnapshot | null): any; diff --git a/dist/cjs/models/FiltersSnapshot.js b/dist/cjs/models/FiltersSnapshot.js new file mode 100644 index 00000000..7f9f3653 --- /dev/null +++ b/dist/cjs/models/FiltersSnapshot.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersSnapshotToJSON = exports.FiltersSnapshotFromJSONTyped = exports.FiltersSnapshotFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersSnapshotFromJSON(json) { + return FiltersSnapshotFromJSONTyped(json, false); +} +exports.FiltersSnapshotFromJSON = FiltersSnapshotFromJSON; +function FiltersSnapshotFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAliases': !(0, runtime_1.exists)(json, 'AccountAliases') ? undefined : json['AccountAliases'], + 'accountIds': !(0, runtime_1.exists)(json, 'AccountIds') ? undefined : json['AccountIds'], + 'descriptions': !(0, runtime_1.exists)(json, 'Descriptions') ? undefined : json['Descriptions'], + 'permissionsToCreateVolumeAccountIds': !(0, runtime_1.exists)(json, 'PermissionsToCreateVolumeAccountIds') ? undefined : json['PermissionsToCreateVolumeAccountIds'], + 'permissionsToCreateVolumeGlobalPermission': !(0, runtime_1.exists)(json, 'PermissionsToCreateVolumeGlobalPermission') ? undefined : json['PermissionsToCreateVolumeGlobalPermission'], + 'progresses': !(0, runtime_1.exists)(json, 'Progresses') ? undefined : json['Progresses'], + 'snapshotIds': !(0, runtime_1.exists)(json, 'SnapshotIds') ? undefined : json['SnapshotIds'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'volumeIds': !(0, runtime_1.exists)(json, 'VolumeIds') ? undefined : json['VolumeIds'], + 'volumeSizes': !(0, runtime_1.exists)(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + }; +} +exports.FiltersSnapshotFromJSONTyped = FiltersSnapshotFromJSONTyped; +function FiltersSnapshotToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAliases': value.accountAliases, + 'AccountIds': value.accountIds, + 'Descriptions': value.descriptions, + 'PermissionsToCreateVolumeAccountIds': value.permissionsToCreateVolumeAccountIds, + 'PermissionsToCreateVolumeGlobalPermission': value.permissionsToCreateVolumeGlobalPermission, + 'Progresses': value.progresses, + 'SnapshotIds': value.snapshotIds, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VolumeIds': value.volumeIds, + 'VolumeSizes': value.volumeSizes, + }; +} +exports.FiltersSnapshotToJSON = FiltersSnapshotToJSON; diff --git a/dist/cjs/models/FiltersSubnet.d.ts b/dist/cjs/models/FiltersSubnet.d.ts new file mode 100644 index 00000000..bb71cbe5 --- /dev/null +++ b/dist/cjs/models/FiltersSubnet.d.ts @@ -0,0 +1,75 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSubnet + */ +export interface FiltersSubnet { + /** + * The number of available IPs. + * @type {Array} + * @memberof FiltersSubnet + */ + availableIpsCounts?: Array; + /** + * The IP ranges in the Subnets, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof FiltersSubnet + */ + ipRanges?: Array; + /** + * The IDs of the Nets in which the Subnets are. + * @type {Array} + * @memberof FiltersSubnet + */ + netIds?: Array; + /** + * The states of the Subnets (`pending` \| `available`). + * @type {Array} + * @memberof FiltersSubnet + */ + states?: Array; + /** + * The IDs of the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + subnetIds?: Array; + /** + * The names of the Subregions in which the Subnets are located. + * @type {Array} + * @memberof FiltersSubnet + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Subnets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSubnet + */ + tags?: Array; +} +export declare function FiltersSubnetFromJSON(json: any): FiltersSubnet; +export declare function FiltersSubnetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSubnet; +export declare function FiltersSubnetToJSON(value?: FiltersSubnet | null): any; diff --git a/dist/cjs/models/FiltersSubnet.js b/dist/cjs/models/FiltersSubnet.js new file mode 100644 index 00000000..5a711626 --- /dev/null +++ b/dist/cjs/models/FiltersSubnet.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersSubnetToJSON = exports.FiltersSubnetFromJSONTyped = exports.FiltersSubnetFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersSubnetFromJSON(json) { + return FiltersSubnetFromJSONTyped(json, false); +} +exports.FiltersSubnetFromJSON = FiltersSubnetFromJSON; +function FiltersSubnetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'availableIpsCounts': !(0, runtime_1.exists)(json, 'AvailableIpsCounts') ? undefined : json['AvailableIpsCounts'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + 'netIds': !(0, runtime_1.exists)(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'subnetIds': !(0, runtime_1.exists)(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + }; +} +exports.FiltersSubnetFromJSONTyped = FiltersSubnetFromJSONTyped; +function FiltersSubnetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AvailableIpsCounts': value.availableIpsCounts, + 'IpRanges': value.ipRanges, + 'NetIds': value.netIds, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} +exports.FiltersSubnetToJSON = FiltersSubnetToJSON; diff --git a/dist/cjs/models/FiltersSubregion.d.ts b/dist/cjs/models/FiltersSubregion.d.ts new file mode 100644 index 00000000..b2873a9f --- /dev/null +++ b/dist/cjs/models/FiltersSubregion.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSubregion + */ +export interface FiltersSubregion { + /** + * The names of the Subregions. + * @type {Array} + * @memberof FiltersSubregion + */ + subregionNames?: Array; +} +export declare function FiltersSubregionFromJSON(json: any): FiltersSubregion; +export declare function FiltersSubregionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSubregion; +export declare function FiltersSubregionToJSON(value?: FiltersSubregion | null): any; diff --git a/dist/cjs/models/FiltersSubregion.js b/dist/cjs/models/FiltersSubregion.js new file mode 100644 index 00000000..553e00b7 --- /dev/null +++ b/dist/cjs/models/FiltersSubregion.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersSubregionToJSON = exports.FiltersSubregionFromJSONTyped = exports.FiltersSubregionFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersSubregionFromJSON(json) { + return FiltersSubregionFromJSONTyped(json, false); +} +exports.FiltersSubregionFromJSON = FiltersSubregionFromJSON; +function FiltersSubregionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + }; +} +exports.FiltersSubregionFromJSONTyped = FiltersSubregionFromJSONTyped; +function FiltersSubregionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SubregionNames': value.subregionNames, + }; +} +exports.FiltersSubregionToJSON = FiltersSubregionToJSON; diff --git a/dist/cjs/models/FiltersTag.d.ts b/dist/cjs/models/FiltersTag.d.ts new file mode 100644 index 00000000..86936a00 --- /dev/null +++ b/dist/cjs/models/FiltersTag.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersTag + */ +export interface FiltersTag { + /** + * The keys of the tags that are assigned to the resources. You can use this filter alongside the `Values` filter. In that case, you filter the resources corresponding to each tag, regardless of the other filter. + * @type {Array} + * @memberof FiltersTag + */ + keys?: Array; + /** + * The IDs of the resources with which the tags are associated. + * @type {Array} + * @memberof FiltersTag + */ + resourceIds?: Array; + /** + * The resource type (`vm` \| `image` \| `volume` \| `snapshot` \| `public-ip` \| `security-group` \| `route-table` \| `nic` \| `net` \| `subnet` \| `net-peering` \| `net-access-point` \| `nat-service` \| `internet-service` \| `client-gateway` \| `virtual-gateway` \| `vpn-connection` \| `dhcp-options` \| `task`). + * @type {Array} + * @memberof FiltersTag + */ + resourceTypes?: Array; + /** + * The values of the tags that are assigned to the resources. You can use this filter alongside the `TagKeys` filter. In that case, you filter the resources corresponding to each tag, regardless of the other filter. + * @type {Array} + * @memberof FiltersTag + */ + values?: Array; +} +export declare function FiltersTagFromJSON(json: any): FiltersTag; +export declare function FiltersTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersTag; +export declare function FiltersTagToJSON(value?: FiltersTag | null): any; diff --git a/dist/cjs/models/FiltersTag.js b/dist/cjs/models/FiltersTag.js new file mode 100644 index 00000000..bffbb25f --- /dev/null +++ b/dist/cjs/models/FiltersTag.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersTagToJSON = exports.FiltersTagFromJSONTyped = exports.FiltersTagFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersTagFromJSON(json) { + return FiltersTagFromJSONTyped(json, false); +} +exports.FiltersTagFromJSON = FiltersTagFromJSON; +function FiltersTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keys': !(0, runtime_1.exists)(json, 'Keys') ? undefined : json['Keys'], + 'resourceIds': !(0, runtime_1.exists)(json, 'ResourceIds') ? undefined : json['ResourceIds'], + 'resourceTypes': !(0, runtime_1.exists)(json, 'ResourceTypes') ? undefined : json['ResourceTypes'], + 'values': !(0, runtime_1.exists)(json, 'Values') ? undefined : json['Values'], + }; +} +exports.FiltersTagFromJSONTyped = FiltersTagFromJSONTyped; +function FiltersTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Keys': value.keys, + 'ResourceIds': value.resourceIds, + 'ResourceTypes': value.resourceTypes, + 'Values': value.values, + }; +} +exports.FiltersTagToJSON = FiltersTagToJSON; diff --git a/dist/cjs/models/FiltersVirtualGateway.d.ts b/dist/cjs/models/FiltersVirtualGateway.d.ts new file mode 100644 index 00000000..7f41fffd --- /dev/null +++ b/dist/cjs/models/FiltersVirtualGateway.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVirtualGateway + */ +export interface FiltersVirtualGateway { + /** + * The types of the virtual gateways (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + connectionTypes?: Array; + /** + * The IDs of the Nets the virtual gateways are attached to. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + linkNetIds?: Array; + /** + * The current states of the attachments between the virtual gateways and the Nets (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + linkStates?: Array; + /** + * The states of the virtual gateways (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + states?: Array; + /** + * The keys of the tags associated with the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tagKeys?: Array; + /** + * The values of the tags associated with the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the virtual gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tags?: Array; + /** + * The IDs of the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + virtualGatewayIds?: Array; +} +export declare function FiltersVirtualGatewayFromJSON(json: any): FiltersVirtualGateway; +export declare function FiltersVirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVirtualGateway; +export declare function FiltersVirtualGatewayToJSON(value?: FiltersVirtualGateway | null): any; diff --git a/dist/cjs/models/FiltersVirtualGateway.js b/dist/cjs/models/FiltersVirtualGateway.js new file mode 100644 index 00000000..e7b59640 --- /dev/null +++ b/dist/cjs/models/FiltersVirtualGateway.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersVirtualGatewayToJSON = exports.FiltersVirtualGatewayFromJSONTyped = exports.FiltersVirtualGatewayFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersVirtualGatewayFromJSON(json) { + return FiltersVirtualGatewayFromJSONTyped(json, false); +} +exports.FiltersVirtualGatewayFromJSON = FiltersVirtualGatewayFromJSON; +function FiltersVirtualGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'connectionTypes': !(0, runtime_1.exists)(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'linkNetIds': !(0, runtime_1.exists)(json, 'LinkNetIds') ? undefined : json['LinkNetIds'], + 'linkStates': !(0, runtime_1.exists)(json, 'LinkStates') ? undefined : json['LinkStates'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'virtualGatewayIds': !(0, runtime_1.exists)(json, 'VirtualGatewayIds') ? undefined : json['VirtualGatewayIds'], + }; +} +exports.FiltersVirtualGatewayFromJSONTyped = FiltersVirtualGatewayFromJSONTyped; +function FiltersVirtualGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConnectionTypes': value.connectionTypes, + 'LinkNetIds': value.linkNetIds, + 'LinkStates': value.linkStates, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualGatewayIds': value.virtualGatewayIds, + }; +} +exports.FiltersVirtualGatewayToJSON = FiltersVirtualGatewayToJSON; diff --git a/dist/cjs/models/FiltersVm.d.ts b/dist/cjs/models/FiltersVm.d.ts new file mode 100644 index 00000000..4abd63d1 --- /dev/null +++ b/dist/cjs/models/FiltersVm.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVm + */ +export interface FiltersVm { + /** + * The keys of the tags associated with the VMs. + * @type {Array} + * @memberof FiltersVm + */ + tagKeys?: Array; + /** + * The values of the tags associated with the VMs. + * @type {Array} + * @memberof FiltersVm + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the VMs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVm + */ + tags?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVm + */ + vmIds?: Array; +} +export declare function FiltersVmFromJSON(json: any): FiltersVm; +export declare function FiltersVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVm; +export declare function FiltersVmToJSON(value?: FiltersVm | null): any; diff --git a/dist/cjs/models/FiltersVm.js b/dist/cjs/models/FiltersVm.js new file mode 100644 index 00000000..746f796e --- /dev/null +++ b/dist/cjs/models/FiltersVm.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersVmToJSON = exports.FiltersVmFromJSONTyped = exports.FiltersVmFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersVmFromJSON(json) { + return FiltersVmFromJSONTyped(json, false); +} +exports.FiltersVmFromJSON = FiltersVmFromJSON; +function FiltersVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'vmIds': !(0, runtime_1.exists)(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +exports.FiltersVmFromJSONTyped = FiltersVmFromJSONTyped; +function FiltersVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VmIds': value.vmIds, + }; +} +exports.FiltersVmToJSON = FiltersVmToJSON; diff --git a/dist/cjs/models/FiltersVmType.d.ts b/dist/cjs/models/FiltersVmType.d.ts new file mode 100644 index 00000000..3f8da068 --- /dev/null +++ b/dist/cjs/models/FiltersVmType.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVmType + */ +export interface FiltersVmType { + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof FiltersVmType + */ + bsuOptimized?: boolean; + /** + * The amounts of memory, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVmType + */ + memorySizes?: Array; + /** + * The numbers of vCores. + * @type {Array} + * @memberof FiltersVmType + */ + vcoreCounts?: Array; + /** + * The names of the VM types. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {Array} + * @memberof FiltersVmType + */ + vmTypeNames?: Array; + /** + * The maximum number of ephemeral storage disks. + * @type {Array} + * @memberof FiltersVmType + */ + volumeCounts?: Array; + /** + * The size of one ephemeral storage disk, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVmType + */ + volumeSizes?: Array; +} +export declare function FiltersVmTypeFromJSON(json: any): FiltersVmType; +export declare function FiltersVmTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVmType; +export declare function FiltersVmTypeToJSON(value?: FiltersVmType | null): any; diff --git a/dist/cjs/models/FiltersVmType.js b/dist/cjs/models/FiltersVmType.js new file mode 100644 index 00000000..f92bffc2 --- /dev/null +++ b/dist/cjs/models/FiltersVmType.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersVmTypeToJSON = exports.FiltersVmTypeFromJSONTyped = exports.FiltersVmTypeFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersVmTypeFromJSON(json) { + return FiltersVmTypeFromJSONTyped(json, false); +} +exports.FiltersVmTypeFromJSON = FiltersVmTypeFromJSON; +function FiltersVmTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsuOptimized': !(0, runtime_1.exists)(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'memorySizes': !(0, runtime_1.exists)(json, 'MemorySizes') ? undefined : json['MemorySizes'], + 'vcoreCounts': !(0, runtime_1.exists)(json, 'VcoreCounts') ? undefined : json['VcoreCounts'], + 'vmTypeNames': !(0, runtime_1.exists)(json, 'VmTypeNames') ? undefined : json['VmTypeNames'], + 'volumeCounts': !(0, runtime_1.exists)(json, 'VolumeCounts') ? undefined : json['VolumeCounts'], + 'volumeSizes': !(0, runtime_1.exists)(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + }; +} +exports.FiltersVmTypeFromJSONTyped = FiltersVmTypeFromJSONTyped; +function FiltersVmTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BsuOptimized': value.bsuOptimized, + 'MemorySizes': value.memorySizes, + 'VcoreCounts': value.vcoreCounts, + 'VmTypeNames': value.vmTypeNames, + 'VolumeCounts': value.volumeCounts, + 'VolumeSizes': value.volumeSizes, + }; +} +exports.FiltersVmTypeToJSON = FiltersVmTypeToJSON; diff --git a/dist/cjs/models/FiltersVmsState.d.ts b/dist/cjs/models/FiltersVmsState.d.ts new file mode 100644 index 00000000..203af45a --- /dev/null +++ b/dist/cjs/models/FiltersVmsState.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVmsState + */ +export interface FiltersVmsState { + /** + * The code for the scheduled event (`system-reboot` \| `system-maintenance`). + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventCodes?: Array; + /** + * The description of the scheduled event. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventDescriptions?: Array; + /** + * The latest time the event can end. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventsNotAfter?: Array; + /** + * The earliest time the event can start. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventsNotBefore?: Array; + /** + * The names of the Subregions of the VMs. + * @type {Array} + * @memberof FiltersVmsState + */ + subregionNames?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVmsState + */ + vmIds?: Array; + /** + * The states of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {Array} + * @memberof FiltersVmsState + */ + vmStates?: Array; +} +export declare function FiltersVmsStateFromJSON(json: any): FiltersVmsState; +export declare function FiltersVmsStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVmsState; +export declare function FiltersVmsStateToJSON(value?: FiltersVmsState | null): any; diff --git a/dist/cjs/models/FiltersVmsState.js b/dist/cjs/models/FiltersVmsState.js new file mode 100644 index 00000000..7ace806d --- /dev/null +++ b/dist/cjs/models/FiltersVmsState.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersVmsStateToJSON = exports.FiltersVmsStateFromJSONTyped = exports.FiltersVmsStateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersVmsStateFromJSON(json) { + return FiltersVmsStateFromJSONTyped(json, false); +} +exports.FiltersVmsStateFromJSON = FiltersVmsStateFromJSON; +function FiltersVmsStateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'maintenanceEventCodes': !(0, runtime_1.exists)(json, 'MaintenanceEventCodes') ? undefined : json['MaintenanceEventCodes'], + 'maintenanceEventDescriptions': !(0, runtime_1.exists)(json, 'MaintenanceEventDescriptions') ? undefined : json['MaintenanceEventDescriptions'], + 'maintenanceEventsNotAfter': !(0, runtime_1.exists)(json, 'MaintenanceEventsNotAfter') ? undefined : json['MaintenanceEventsNotAfter'], + 'maintenanceEventsNotBefore': !(0, runtime_1.exists)(json, 'MaintenanceEventsNotBefore') ? undefined : json['MaintenanceEventsNotBefore'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'vmIds': !(0, runtime_1.exists)(json, 'VmIds') ? undefined : json['VmIds'], + 'vmStates': !(0, runtime_1.exists)(json, 'VmStates') ? undefined : json['VmStates'], + }; +} +exports.FiltersVmsStateFromJSONTyped = FiltersVmsStateFromJSONTyped; +function FiltersVmsStateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'MaintenanceEventCodes': value.maintenanceEventCodes, + 'MaintenanceEventDescriptions': value.maintenanceEventDescriptions, + 'MaintenanceEventsNotAfter': value.maintenanceEventsNotAfter, + 'MaintenanceEventsNotBefore': value.maintenanceEventsNotBefore, + 'SubregionNames': value.subregionNames, + 'VmIds': value.vmIds, + 'VmStates': value.vmStates, + }; +} +exports.FiltersVmsStateToJSON = FiltersVmsStateToJSON; diff --git a/dist/cjs/models/FiltersVolume.d.ts b/dist/cjs/models/FiltersVolume.d.ts new file mode 100644 index 00000000..6059948d --- /dev/null +++ b/dist/cjs/models/FiltersVolume.d.ts @@ -0,0 +1,111 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVolume + */ +export interface FiltersVolume { + /** + * The dates and times at which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + creationDates?: Array; + /** + * Whether the volumes are deleted or not when terminating the VMs. + * @type {boolean} + * @memberof FiltersVolume + */ + linkVolumeDeleteOnVmDeletion?: boolean; + /** + * The VM device names. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeDeviceNames?: Array; + /** + * The dates and times at which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeLinkDates?: Array; + /** + * The attachment states of the volumes (`attaching` \| `detaching` \| `attached` \| `detached`). + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeLinkStates?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeVmIds?: Array; + /** + * The snapshots from which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + snapshotIds?: Array; + /** + * The names of the Subregions in which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + tagKeys?: Array; + /** + * The values of the tags associated with the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the volumes, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVolume + */ + tags?: Array; + /** + * The IDs of the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + volumeIds?: Array; + /** + * The sizes of the volumes, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVolume + */ + volumeSizes?: Array; + /** + * The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). + * @type {Array} + * @memberof FiltersVolume + */ + volumeStates?: Array; + /** + * The types of the volumes (`standard` \| `gp2` \| `io1`). + * @type {Array} + * @memberof FiltersVolume + */ + volumeTypes?: Array; +} +export declare function FiltersVolumeFromJSON(json: any): FiltersVolume; +export declare function FiltersVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVolume; +export declare function FiltersVolumeToJSON(value?: FiltersVolume | null): any; diff --git a/dist/cjs/models/FiltersVolume.js b/dist/cjs/models/FiltersVolume.js new file mode 100644 index 00000000..865d83b9 --- /dev/null +++ b/dist/cjs/models/FiltersVolume.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersVolumeToJSON = exports.FiltersVolumeFromJSONTyped = exports.FiltersVolumeFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersVolumeFromJSON(json) { + return FiltersVolumeFromJSONTyped(json, false); +} +exports.FiltersVolumeFromJSON = FiltersVolumeFromJSON; +function FiltersVolumeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'creationDates': !(0, runtime_1.exists)(json, 'CreationDates') ? undefined : json['CreationDates'], + 'linkVolumeDeleteOnVmDeletion': !(0, runtime_1.exists)(json, 'LinkVolumeDeleteOnVmDeletion') ? undefined : json['LinkVolumeDeleteOnVmDeletion'], + 'linkVolumeDeviceNames': !(0, runtime_1.exists)(json, 'LinkVolumeDeviceNames') ? undefined : json['LinkVolumeDeviceNames'], + 'linkVolumeLinkDates': !(0, runtime_1.exists)(json, 'LinkVolumeLinkDates') ? undefined : json['LinkVolumeLinkDates'], + 'linkVolumeLinkStates': !(0, runtime_1.exists)(json, 'LinkVolumeLinkStates') ? undefined : json['LinkVolumeLinkStates'], + 'linkVolumeVmIds': !(0, runtime_1.exists)(json, 'LinkVolumeVmIds') ? undefined : json['LinkVolumeVmIds'], + 'snapshotIds': !(0, runtime_1.exists)(json, 'SnapshotIds') ? undefined : json['SnapshotIds'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'volumeIds': !(0, runtime_1.exists)(json, 'VolumeIds') ? undefined : json['VolumeIds'], + 'volumeSizes': !(0, runtime_1.exists)(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + 'volumeStates': !(0, runtime_1.exists)(json, 'VolumeStates') ? undefined : json['VolumeStates'], + 'volumeTypes': !(0, runtime_1.exists)(json, 'VolumeTypes') ? undefined : json['VolumeTypes'], + }; +} +exports.FiltersVolumeFromJSONTyped = FiltersVolumeFromJSONTyped; +function FiltersVolumeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CreationDates': value.creationDates, + 'LinkVolumeDeleteOnVmDeletion': value.linkVolumeDeleteOnVmDeletion, + 'LinkVolumeDeviceNames': value.linkVolumeDeviceNames, + 'LinkVolumeLinkDates': value.linkVolumeLinkDates, + 'LinkVolumeLinkStates': value.linkVolumeLinkStates, + 'LinkVolumeVmIds': value.linkVolumeVmIds, + 'SnapshotIds': value.snapshotIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VolumeIds': value.volumeIds, + 'VolumeSizes': value.volumeSizes, + 'VolumeStates': value.volumeStates, + 'VolumeTypes': value.volumeTypes, + }; +} +exports.FiltersVolumeToJSON = FiltersVolumeToJSON; diff --git a/dist/cjs/models/FiltersVpnConnection.d.ts b/dist/cjs/models/FiltersVpnConnection.d.ts new file mode 100644 index 00000000..536e810d --- /dev/null +++ b/dist/cjs/models/FiltersVpnConnection.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVpnConnection + */ +export interface FiltersVpnConnection { + /** + * The Border Gateway Protocol (BGP) Autonomous System Numbers (ASNs) of the connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + bgpAsns?: Array; + /** + * The IDs of the client gateways. + * @type {Array} + * @memberof FiltersVpnConnection + */ + clientGatewayIds?: Array; + /** + * The types of the VPN connections (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersVpnConnection + */ + connectionTypes?: Array; + /** + * The destination IP ranges. + * @type {Array} + * @memberof FiltersVpnConnection + */ + routeDestinationIpRanges?: Array; + /** + * The states of the VPN connections (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersVpnConnection + */ + states?: Array; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof FiltersVpnConnection + */ + staticRoutesOnly?: boolean; + /** + * The keys of the tags associated with the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tagKeys?: Array; + /** + * The values of the tags associated with the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the VPN connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tags?: Array; + /** + * The IDs of the virtual gateways. + * @type {Array} + * @memberof FiltersVpnConnection + */ + virtualGatewayIds?: Array; + /** + * The IDs of the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + vpnConnectionIds?: Array; +} +export declare function FiltersVpnConnectionFromJSON(json: any): FiltersVpnConnection; +export declare function FiltersVpnConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVpnConnection; +export declare function FiltersVpnConnectionToJSON(value?: FiltersVpnConnection | null): any; diff --git a/dist/cjs/models/FiltersVpnConnection.js b/dist/cjs/models/FiltersVpnConnection.js new file mode 100644 index 00000000..e8dd43d2 --- /dev/null +++ b/dist/cjs/models/FiltersVpnConnection.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FiltersVpnConnectionToJSON = exports.FiltersVpnConnectionFromJSONTyped = exports.FiltersVpnConnectionFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FiltersVpnConnectionFromJSON(json) { + return FiltersVpnConnectionFromJSONTyped(json, false); +} +exports.FiltersVpnConnectionFromJSON = FiltersVpnConnectionFromJSON; +function FiltersVpnConnectionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsns': !(0, runtime_1.exists)(json, 'BgpAsns') ? undefined : json['BgpAsns'], + 'clientGatewayIds': !(0, runtime_1.exists)(json, 'ClientGatewayIds') ? undefined : json['ClientGatewayIds'], + 'connectionTypes': !(0, runtime_1.exists)(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'routeDestinationIpRanges': !(0, runtime_1.exists)(json, 'RouteDestinationIpRanges') ? undefined : json['RouteDestinationIpRanges'], + 'states': !(0, runtime_1.exists)(json, 'States') ? undefined : json['States'], + 'staticRoutesOnly': !(0, runtime_1.exists)(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'tagKeys': !(0, runtime_1.exists)(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !(0, runtime_1.exists)(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : json['Tags'], + 'virtualGatewayIds': !(0, runtime_1.exists)(json, 'VirtualGatewayIds') ? undefined : json['VirtualGatewayIds'], + 'vpnConnectionIds': !(0, runtime_1.exists)(json, 'VpnConnectionIds') ? undefined : json['VpnConnectionIds'], + }; +} +exports.FiltersVpnConnectionFromJSONTyped = FiltersVpnConnectionFromJSONTyped; +function FiltersVpnConnectionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsns': value.bgpAsns, + 'ClientGatewayIds': value.clientGatewayIds, + 'ConnectionTypes': value.connectionTypes, + 'RouteDestinationIpRanges': value.routeDestinationIpRanges, + 'States': value.states, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualGatewayIds': value.virtualGatewayIds, + 'VpnConnectionIds': value.vpnConnectionIds, + }; +} +exports.FiltersVpnConnectionToJSON = FiltersVpnConnectionToJSON; diff --git a/dist/cjs/models/FlexibleGpu.d.ts b/dist/cjs/models/FlexibleGpu.d.ts new file mode 100644 index 00000000..83d481bf --- /dev/null +++ b/dist/cjs/models/FlexibleGpu.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the flexible GPU (fGPU). + * @export + * @interface FlexibleGpu + */ +export interface FlexibleGpu { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof FlexibleGpu + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the fGPU. + * @type {string} + * @memberof FlexibleGpu + */ + flexibleGpuId?: string; + /** + * The compatible processor generation. + * @type {string} + * @memberof FlexibleGpu + */ + generation?: string; + /** + * The model of fGPU. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {string} + * @memberof FlexibleGpu + */ + modelName?: string; + /** + * The state of the fGPU (`allocated` \| `attaching` \| `attached` \| `detaching`). + * @type {string} + * @memberof FlexibleGpu + */ + state?: string; + /** + * The Subregion where the fGPU is located. + * @type {string} + * @memberof FlexibleGpu + */ + subregionName?: string; + /** + * The ID of the VM the fGPU is attached to, if any. + * @type {string} + * @memberof FlexibleGpu + */ + vmId?: string; +} +export declare function FlexibleGpuFromJSON(json: any): FlexibleGpu; +export declare function FlexibleGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlexibleGpu; +export declare function FlexibleGpuToJSON(value?: FlexibleGpu | null): any; diff --git a/dist/cjs/models/FlexibleGpu.js b/dist/cjs/models/FlexibleGpu.js new file mode 100644 index 00000000..fc2fe104 --- /dev/null +++ b/dist/cjs/models/FlexibleGpu.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FlexibleGpuToJSON = exports.FlexibleGpuFromJSONTyped = exports.FlexibleGpuFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FlexibleGpuFromJSON(json) { + return FlexibleGpuFromJSONTyped(json, false); +} +exports.FlexibleGpuFromJSON = FlexibleGpuFromJSON; +function FlexibleGpuFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'flexibleGpuId': !(0, runtime_1.exists)(json, 'FlexibleGpuId') ? undefined : json['FlexibleGpuId'], + 'generation': !(0, runtime_1.exists)(json, 'Generation') ? undefined : json['Generation'], + 'modelName': !(0, runtime_1.exists)(json, 'ModelName') ? undefined : json['ModelName'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.FlexibleGpuFromJSONTyped = FlexibleGpuFromJSONTyped; +function FlexibleGpuToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'FlexibleGpuId': value.flexibleGpuId, + 'Generation': value.generation, + 'ModelName': value.modelName, + 'State': value.state, + 'SubregionName': value.subregionName, + 'VmId': value.vmId, + }; +} +exports.FlexibleGpuToJSON = FlexibleGpuToJSON; diff --git a/dist/cjs/models/FlexibleGpuCatalog.d.ts b/dist/cjs/models/FlexibleGpuCatalog.d.ts new file mode 100644 index 00000000..e5eee8c3 --- /dev/null +++ b/dist/cjs/models/FlexibleGpuCatalog.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the flexible GPU (fGPU) that is available in the public catalog. + * @export + * @interface FlexibleGpuCatalog + */ +export interface FlexibleGpuCatalog { + /** + * The generations of VMs that the fGPU is compatible with. + * @type {Array} + * @memberof FlexibleGpuCatalog + */ + generations?: Array; + /** + * The maximum number of VM vCores that the fGPU is compatible with. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + maxCpu?: number; + /** + * The maximum amount of VM memory that the fGPU is compatible with. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + maxRam?: number; + /** + * The model of fGPU. + * @type {string} + * @memberof FlexibleGpuCatalog + */ + modelName?: string; + /** + * The amount of video RAM (VRAM) of the fGPU. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + vRam?: number; +} +export declare function FlexibleGpuCatalogFromJSON(json: any): FlexibleGpuCatalog; +export declare function FlexibleGpuCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlexibleGpuCatalog; +export declare function FlexibleGpuCatalogToJSON(value?: FlexibleGpuCatalog | null): any; diff --git a/dist/cjs/models/FlexibleGpuCatalog.js b/dist/cjs/models/FlexibleGpuCatalog.js new file mode 100644 index 00000000..0f86a1d3 --- /dev/null +++ b/dist/cjs/models/FlexibleGpuCatalog.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FlexibleGpuCatalogToJSON = exports.FlexibleGpuCatalogFromJSONTyped = exports.FlexibleGpuCatalogFromJSON = void 0; +const runtime_1 = require("../runtime"); +function FlexibleGpuCatalogFromJSON(json) { + return FlexibleGpuCatalogFromJSONTyped(json, false); +} +exports.FlexibleGpuCatalogFromJSON = FlexibleGpuCatalogFromJSON; +function FlexibleGpuCatalogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'generations': !(0, runtime_1.exists)(json, 'Generations') ? undefined : json['Generations'], + 'maxCpu': !(0, runtime_1.exists)(json, 'MaxCpu') ? undefined : json['MaxCpu'], + 'maxRam': !(0, runtime_1.exists)(json, 'MaxRam') ? undefined : json['MaxRam'], + 'modelName': !(0, runtime_1.exists)(json, 'ModelName') ? undefined : json['ModelName'], + 'vRam': !(0, runtime_1.exists)(json, 'VRam') ? undefined : json['VRam'], + }; +} +exports.FlexibleGpuCatalogFromJSONTyped = FlexibleGpuCatalogFromJSONTyped; +function FlexibleGpuCatalogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Generations': value.generations, + 'MaxCpu': value.maxCpu, + 'MaxRam': value.maxRam, + 'ModelName': value.modelName, + 'VRam': value.vRam, + }; +} +exports.FlexibleGpuCatalogToJSON = FlexibleGpuCatalogToJSON; diff --git a/dist/cjs/models/HealthCheck.d.ts b/dist/cjs/models/HealthCheck.d.ts new file mode 100644 index 00000000..e217f297 --- /dev/null +++ b/dist/cjs/models/HealthCheck.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the health check configuration. + * @export + * @interface HealthCheck + */ +export interface HealthCheck { + /** + * The number of seconds between two pings (between `5` and `600` both included). + * @type {number} + * @memberof HealthCheck + */ + checkInterval: number; + /** + * The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). + * @type {number} + * @memberof HealthCheck + */ + healthyThreshold: number; + /** + * If you use the HTTP or HTTPS protocols, the ping path. + * @type {string} + * @memberof HealthCheck + */ + path?: string; + /** + * The port number (between `1` and `65535`, both included). + * @type {number} + * @memberof HealthCheck + */ + port: number; + /** + * The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof HealthCheck + */ + protocol: string; + /** + * The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). + * @type {number} + * @memberof HealthCheck + */ + timeout: number; + /** + * The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). + * @type {number} + * @memberof HealthCheck + */ + unhealthyThreshold: number; +} +export declare function HealthCheckFromJSON(json: any): HealthCheck; +export declare function HealthCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthCheck; +export declare function HealthCheckToJSON(value?: HealthCheck | null): any; diff --git a/dist/cjs/models/HealthCheck.js b/dist/cjs/models/HealthCheck.js new file mode 100644 index 00000000..bba44a86 --- /dev/null +++ b/dist/cjs/models/HealthCheck.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HealthCheckToJSON = exports.HealthCheckFromJSONTyped = exports.HealthCheckFromJSON = void 0; +const runtime_1 = require("../runtime"); +function HealthCheckFromJSON(json) { + return HealthCheckFromJSONTyped(json, false); +} +exports.HealthCheckFromJSON = HealthCheckFromJSON; +function HealthCheckFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'checkInterval': json['CheckInterval'], + 'healthyThreshold': json['HealthyThreshold'], + 'path': !(0, runtime_1.exists)(json, 'Path') ? undefined : json['Path'], + 'port': json['Port'], + 'protocol': json['Protocol'], + 'timeout': json['Timeout'], + 'unhealthyThreshold': json['UnhealthyThreshold'], + }; +} +exports.HealthCheckFromJSONTyped = HealthCheckFromJSONTyped; +function HealthCheckToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CheckInterval': value.checkInterval, + 'HealthyThreshold': value.healthyThreshold, + 'Path': value.path, + 'Port': value.port, + 'Protocol': value.protocol, + 'Timeout': value.timeout, + 'UnhealthyThreshold': value.unhealthyThreshold, + }; +} +exports.HealthCheckToJSON = HealthCheckToJSON; diff --git a/dist/cjs/models/Image.d.ts b/dist/cjs/models/Image.d.ts new file mode 100644 index 00000000..e4ded36e --- /dev/null +++ b/dist/cjs/models/Image.d.ts @@ -0,0 +1,127 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingImage } from './BlockDeviceMappingImage'; +import { PermissionsOnResource } from './PermissionsOnResource'; +import { ResourceTag } from './ResourceTag'; +import { StateComment } from './StateComment'; +/** + * Information about the OMI. + * @export + * @interface Image + */ +export interface Image { + /** + * The account alias of the owner of the OMI. + * @type {string} + * @memberof Image + */ + accountAlias?: string; + /** + * The account ID of the owner of the OMI. + * @type {string} + * @memberof Image + */ + accountId?: string; + /** + * The architecture of the OMI (by default, `i386`). + * @type {string} + * @memberof Image + */ + architecture?: string; + /** + * One or more block device mappings. + * @type {Array} + * @memberof Image + */ + blockDeviceMappings?: Array; + /** + * The date and time at which the OMI was created. + * @type {Date} + * @memberof Image + */ + creationDate?: Date; + /** + * The description of the OMI. + * @type {string} + * @memberof Image + */ + description?: string; + /** + * The location of the bucket where the OMI files are stored. + * @type {string} + * @memberof Image + */ + fileLocation?: string; + /** + * The ID of the OMI. + * @type {string} + * @memberof Image + */ + imageId?: string; + /** + * The name of the OMI. + * @type {string} + * @memberof Image + */ + imageName?: string; + /** + * The type of the OMI. + * @type {string} + * @memberof Image + */ + imageType?: string; + /** + * + * @type {PermissionsOnResource} + * @memberof Image + */ + permissionsToLaunch?: PermissionsOnResource; + /** + * The product code associated with the OMI (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof Image + */ + productCodes?: Array; + /** + * The name of the root device. + * @type {string} + * @memberof Image + */ + rootDeviceName?: string; + /** + * The type of root device used by the OMI (always `bsu`). + * @type {string} + * @memberof Image + */ + rootDeviceType?: string; + /** + * The state of the OMI (`pending` \| `available` \| `failed`). + * @type {string} + * @memberof Image + */ + state?: string; + /** + * + * @type {StateComment} + * @memberof Image + */ + stateComment?: StateComment; + /** + * One or more tags associated with the OMI. + * @type {Array} + * @memberof Image + */ + tags?: Array; +} +export declare function ImageFromJSON(json: any): Image; +export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image; +export declare function ImageToJSON(value?: Image | null): any; diff --git a/dist/cjs/models/Image.js b/dist/cjs/models/Image.js new file mode 100644 index 00000000..b075d7fe --- /dev/null +++ b/dist/cjs/models/Image.js @@ -0,0 +1,78 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BlockDeviceMappingImage_1 = require("./BlockDeviceMappingImage"); +const PermissionsOnResource_1 = require("./PermissionsOnResource"); +const ResourceTag_1 = require("./ResourceTag"); +const StateComment_1 = require("./StateComment"); +function ImageFromJSON(json) { + return ImageFromJSONTyped(json, false); +} +exports.ImageFromJSON = ImageFromJSON; +function ImageFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAlias': !(0, runtime_1.exists)(json, 'AccountAlias') ? undefined : json['AccountAlias'], + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'architecture': !(0, runtime_1.exists)(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !(0, runtime_1.exists)(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingImage_1.BlockDeviceMappingImageFromJSON)), + 'creationDate': !(0, runtime_1.exists)(json, 'CreationDate') ? undefined : (new Date(json['CreationDate'])), + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'fileLocation': !(0, runtime_1.exists)(json, 'FileLocation') ? undefined : json['FileLocation'], + 'imageId': !(0, runtime_1.exists)(json, 'ImageId') ? undefined : json['ImageId'], + 'imageName': !(0, runtime_1.exists)(json, 'ImageName') ? undefined : json['ImageName'], + 'imageType': !(0, runtime_1.exists)(json, 'ImageType') ? undefined : json['ImageType'], + 'permissionsToLaunch': !(0, runtime_1.exists)(json, 'PermissionsToLaunch') ? undefined : (0, PermissionsOnResource_1.PermissionsOnResourceFromJSON)(json['PermissionsToLaunch']), + 'productCodes': !(0, runtime_1.exists)(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'rootDeviceName': !(0, runtime_1.exists)(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'rootDeviceType': !(0, runtime_1.exists)(json, 'RootDeviceType') ? undefined : json['RootDeviceType'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'stateComment': !(0, runtime_1.exists)(json, 'StateComment') ? undefined : (0, StateComment_1.StateCommentFromJSON)(json['StateComment']), + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.ImageFromJSONTyped = ImageFromJSONTyped; +function ImageToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAlias': value.accountAlias, + 'AccountId': value.accountId, + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingImage_1.BlockDeviceMappingImageToJSON)), + 'CreationDate': value.creationDate === undefined ? undefined : (value.creationDate.toISOString().substr(0, 10)), + 'Description': value.description, + 'FileLocation': value.fileLocation, + 'ImageId': value.imageId, + 'ImageName': value.imageName, + 'ImageType': value.imageType, + 'PermissionsToLaunch': (0, PermissionsOnResource_1.PermissionsOnResourceToJSON)(value.permissionsToLaunch), + 'ProductCodes': value.productCodes, + 'RootDeviceName': value.rootDeviceName, + 'RootDeviceType': value.rootDeviceType, + 'State': value.state, + 'StateComment': (0, StateComment_1.StateCommentToJSON)(value.stateComment), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.ImageToJSON = ImageToJSON; diff --git a/dist/cjs/models/ImageExportTask.d.ts b/dist/cjs/models/ImageExportTask.d.ts new file mode 100644 index 00000000..772c2642 --- /dev/null +++ b/dist/cjs/models/ImageExportTask.d.ts @@ -0,0 +1,65 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportImageExportTask } from './OsuExportImageExportTask'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the OMI export task. + * @export + * @interface ImageExportTask + */ +export interface ImageExportTask { + /** + * If the OMI export task fails, an error message appears. + * @type {string} + * @memberof ImageExportTask + */ + comment?: string; + /** + * The ID of the OMI to be exported. + * @type {string} + * @memberof ImageExportTask + */ + imageId?: string; + /** + * + * @type {OsuExportImageExportTask} + * @memberof ImageExportTask + */ + osuExport?: OsuExportImageExportTask; + /** + * The progress of the OMI export task, as a percentage. + * @type {number} + * @memberof ImageExportTask + */ + progress?: number; + /** + * The state of the OMI export task (`pending/queued` \| `pending` \| `completed` \| `failed` \| `cancelled`). + * @type {string} + * @memberof ImageExportTask + */ + state?: string; + /** + * One or more tags associated with the image export task. + * @type {Array} + * @memberof ImageExportTask + */ + tags?: Array; + /** + * The ID of the OMI export task. + * @type {string} + * @memberof ImageExportTask + */ + taskId?: string; +} +export declare function ImageExportTaskFromJSON(json: any): ImageExportTask; +export declare function ImageExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageExportTask; +export declare function ImageExportTaskToJSON(value?: ImageExportTask | null): any; diff --git a/dist/cjs/models/ImageExportTask.js b/dist/cjs/models/ImageExportTask.js new file mode 100644 index 00000000..35fa5b8b --- /dev/null +++ b/dist/cjs/models/ImageExportTask.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImageExportTaskToJSON = exports.ImageExportTaskFromJSONTyped = exports.ImageExportTaskFromJSON = void 0; +const runtime_1 = require("../runtime"); +const OsuExportImageExportTask_1 = require("./OsuExportImageExportTask"); +const ResourceTag_1 = require("./ResourceTag"); +function ImageExportTaskFromJSON(json) { + return ImageExportTaskFromJSONTyped(json, false); +} +exports.ImageExportTaskFromJSON = ImageExportTaskFromJSON; +function ImageExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'comment': !(0, runtime_1.exists)(json, 'Comment') ? undefined : json['Comment'], + 'imageId': !(0, runtime_1.exists)(json, 'ImageId') ? undefined : json['ImageId'], + 'osuExport': !(0, runtime_1.exists)(json, 'OsuExport') ? undefined : (0, OsuExportImageExportTask_1.OsuExportImageExportTaskFromJSON)(json['OsuExport']), + 'progress': !(0, runtime_1.exists)(json, 'Progress') ? undefined : json['Progress'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'taskId': !(0, runtime_1.exists)(json, 'TaskId') ? undefined : json['TaskId'], + }; +} +exports.ImageExportTaskFromJSONTyped = ImageExportTaskFromJSONTyped; +function ImageExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Comment': value.comment, + 'ImageId': value.imageId, + 'OsuExport': (0, OsuExportImageExportTask_1.OsuExportImageExportTaskToJSON)(value.osuExport), + 'Progress': value.progress, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'TaskId': value.taskId, + }; +} +exports.ImageExportTaskToJSON = ImageExportTaskToJSON; diff --git a/dist/cjs/models/InternetService.d.ts b/dist/cjs/models/InternetService.d.ts new file mode 100644 index 00000000..1a00c9c6 --- /dev/null +++ b/dist/cjs/models/InternetService.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Internet service. + * @export + * @interface InternetService + */ +export interface InternetService { + /** + * The ID of the Internet service. + * @type {string} + * @memberof InternetService + */ + internetServiceId?: string; + /** + * The ID of the Net attached to the Internet service. + * @type {string} + * @memberof InternetService + */ + netId?: string; + /** + * The state of the attachment of the Internet service to the Net (always `available`). + * @type {string} + * @memberof InternetService + */ + state?: string; + /** + * One or more tags associated with the Internet service. + * @type {Array} + * @memberof InternetService + */ + tags?: Array; +} +export declare function InternetServiceFromJSON(json: any): InternetService; +export declare function InternetServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternetService; +export declare function InternetServiceToJSON(value?: InternetService | null): any; diff --git a/dist/cjs/models/InternetService.js b/dist/cjs/models/InternetService.js new file mode 100644 index 00000000..9fc0aca4 --- /dev/null +++ b/dist/cjs/models/InternetService.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InternetServiceToJSON = exports.InternetServiceFromJSONTyped = exports.InternetServiceFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function InternetServiceFromJSON(json) { + return InternetServiceFromJSONTyped(json, false); +} +exports.InternetServiceFromJSON = InternetServiceFromJSON; +function InternetServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetServiceId': !(0, runtime_1.exists)(json, 'InternetServiceId') ? undefined : json['InternetServiceId'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.InternetServiceFromJSONTyped = InternetServiceFromJSONTyped; +function InternetServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.InternetServiceToJSON = InternetServiceToJSON; diff --git a/dist/cjs/models/Keypair.d.ts b/dist/cjs/models/Keypair.d.ts new file mode 100644 index 00000000..2ea64a8a --- /dev/null +++ b/dist/cjs/models/Keypair.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the keypair. + * @export + * @interface Keypair + */ +export interface Keypair { + /** + * The MD5 public key fingerprint as specified in section 4 of RFC 4716. + * @type {string} + * @memberof Keypair + */ + keypairFingerprint?: string; + /** + * The name of the keypair. + * @type {string} + * @memberof Keypair + */ + keypairName?: string; +} +export declare function KeypairFromJSON(json: any): Keypair; +export declare function KeypairFromJSONTyped(json: any, ignoreDiscriminator: boolean): Keypair; +export declare function KeypairToJSON(value?: Keypair | null): any; diff --git a/dist/cjs/models/Keypair.js b/dist/cjs/models/Keypair.js new file mode 100644 index 00000000..eacf91c0 --- /dev/null +++ b/dist/cjs/models/Keypair.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KeypairToJSON = exports.KeypairFromJSONTyped = exports.KeypairFromJSON = void 0; +const runtime_1 = require("../runtime"); +function KeypairFromJSON(json) { + return KeypairFromJSONTyped(json, false); +} +exports.KeypairFromJSON = KeypairFromJSON; +function KeypairFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairFingerprint': !(0, runtime_1.exists)(json, 'KeypairFingerprint') ? undefined : json['KeypairFingerprint'], + 'keypairName': !(0, runtime_1.exists)(json, 'KeypairName') ? undefined : json['KeypairName'], + }; +} +exports.KeypairFromJSONTyped = KeypairFromJSONTyped; +function KeypairToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'KeypairFingerprint': value.keypairFingerprint, + 'KeypairName': value.keypairName, + }; +} +exports.KeypairToJSON = KeypairToJSON; diff --git a/dist/cjs/models/KeypairCreated.d.ts b/dist/cjs/models/KeypairCreated.d.ts new file mode 100644 index 00000000..e3ea7ac1 --- /dev/null +++ b/dist/cjs/models/KeypairCreated.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the created keypair. + * @export + * @interface KeypairCreated + */ +export interface KeypairCreated { + /** + * The MD5 public key fingerprint as specified in section 4 of RFC 4716. + * @type {string} + * @memberof KeypairCreated + */ + keypairFingerprint?: string; + /** + * The name of the keypair. + * @type {string} + * @memberof KeypairCreated + */ + keypairName?: string; + /** + * The private key. When saving the private key in a .rsa file, replace the `\n` escape sequences with line breaks. + * @type {string} + * @memberof KeypairCreated + */ + privateKey?: string; +} +export declare function KeypairCreatedFromJSON(json: any): KeypairCreated; +export declare function KeypairCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeypairCreated; +export declare function KeypairCreatedToJSON(value?: KeypairCreated | null): any; diff --git a/dist/cjs/models/KeypairCreated.js b/dist/cjs/models/KeypairCreated.js new file mode 100644 index 00000000..56bdfae4 --- /dev/null +++ b/dist/cjs/models/KeypairCreated.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KeypairCreatedToJSON = exports.KeypairCreatedFromJSONTyped = exports.KeypairCreatedFromJSON = void 0; +const runtime_1 = require("../runtime"); +function KeypairCreatedFromJSON(json) { + return KeypairCreatedFromJSONTyped(json, false); +} +exports.KeypairCreatedFromJSON = KeypairCreatedFromJSON; +function KeypairCreatedFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairFingerprint': !(0, runtime_1.exists)(json, 'KeypairFingerprint') ? undefined : json['KeypairFingerprint'], + 'keypairName': !(0, runtime_1.exists)(json, 'KeypairName') ? undefined : json['KeypairName'], + 'privateKey': !(0, runtime_1.exists)(json, 'PrivateKey') ? undefined : json['PrivateKey'], + }; +} +exports.KeypairCreatedFromJSONTyped = KeypairCreatedFromJSONTyped; +function KeypairCreatedToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'KeypairFingerprint': value.keypairFingerprint, + 'KeypairName': value.keypairName, + 'PrivateKey': value.privateKey, + }; +} +exports.KeypairCreatedToJSON = KeypairCreatedToJSON; diff --git a/dist/cjs/models/LinkFlexibleGpuRequest.d.ts b/dist/cjs/models/LinkFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..5a0950dc --- /dev/null +++ b/dist/cjs/models/LinkFlexibleGpuRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkFlexibleGpuRequest + */ +export interface LinkFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to attach. + * @type {string} + * @memberof LinkFlexibleGpuRequest + */ + flexibleGpuId: string; + /** + * The ID of the VM you want to attach the fGPU to. + * @type {string} + * @memberof LinkFlexibleGpuRequest + */ + vmId: string; +} +export declare function LinkFlexibleGpuRequestFromJSON(json: any): LinkFlexibleGpuRequest; +export declare function LinkFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFlexibleGpuRequest; +export declare function LinkFlexibleGpuRequestToJSON(value?: LinkFlexibleGpuRequest | null): any; diff --git a/dist/cjs/models/LinkFlexibleGpuRequest.js b/dist/cjs/models/LinkFlexibleGpuRequest.js new file mode 100644 index 00000000..d063d271 --- /dev/null +++ b/dist/cjs/models/LinkFlexibleGpuRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkFlexibleGpuRequestToJSON = exports.LinkFlexibleGpuRequestFromJSONTyped = exports.LinkFlexibleGpuRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkFlexibleGpuRequestFromJSON(json) { + return LinkFlexibleGpuRequestFromJSONTyped(json, false); +} +exports.LinkFlexibleGpuRequestFromJSON = LinkFlexibleGpuRequestFromJSON; +function LinkFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + 'vmId': json['VmId'], + }; +} +exports.LinkFlexibleGpuRequestFromJSONTyped = LinkFlexibleGpuRequestFromJSONTyped; +function LinkFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + 'VmId': value.vmId, + }; +} +exports.LinkFlexibleGpuRequestToJSON = LinkFlexibleGpuRequestToJSON; diff --git a/dist/cjs/models/LinkFlexibleGpuResponse.d.ts b/dist/cjs/models/LinkFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..393835c0 --- /dev/null +++ b/dist/cjs/models/LinkFlexibleGpuResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkFlexibleGpuResponse + */ +export interface LinkFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkFlexibleGpuResponseFromJSON(json: any): LinkFlexibleGpuResponse; +export declare function LinkFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFlexibleGpuResponse; +export declare function LinkFlexibleGpuResponseToJSON(value?: LinkFlexibleGpuResponse | null): any; diff --git a/dist/cjs/models/LinkFlexibleGpuResponse.js b/dist/cjs/models/LinkFlexibleGpuResponse.js new file mode 100644 index 00000000..51de7711 --- /dev/null +++ b/dist/cjs/models/LinkFlexibleGpuResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkFlexibleGpuResponseToJSON = exports.LinkFlexibleGpuResponseFromJSONTyped = exports.LinkFlexibleGpuResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkFlexibleGpuResponseFromJSON(json) { + return LinkFlexibleGpuResponseFromJSONTyped(json, false); +} +exports.LinkFlexibleGpuResponseFromJSON = LinkFlexibleGpuResponseFromJSON; +function LinkFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkFlexibleGpuResponseFromJSONTyped = LinkFlexibleGpuResponseFromJSONTyped; +function LinkFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkFlexibleGpuResponseToJSON = LinkFlexibleGpuResponseToJSON; diff --git a/dist/cjs/models/LinkInternetServiceRequest.d.ts b/dist/cjs/models/LinkInternetServiceRequest.d.ts new file mode 100644 index 00000000..724a3605 --- /dev/null +++ b/dist/cjs/models/LinkInternetServiceRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkInternetServiceRequest + */ +export interface LinkInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to attach. + * @type {string} + * @memberof LinkInternetServiceRequest + */ + internetServiceId: string; + /** + * The ID of the Net to which you want to attach the Internet service. + * @type {string} + * @memberof LinkInternetServiceRequest + */ + netId: string; +} +export declare function LinkInternetServiceRequestFromJSON(json: any): LinkInternetServiceRequest; +export declare function LinkInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkInternetServiceRequest; +export declare function LinkInternetServiceRequestToJSON(value?: LinkInternetServiceRequest | null): any; diff --git a/dist/cjs/models/LinkInternetServiceRequest.js b/dist/cjs/models/LinkInternetServiceRequest.js new file mode 100644 index 00000000..d08daf55 --- /dev/null +++ b/dist/cjs/models/LinkInternetServiceRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkInternetServiceRequestToJSON = exports.LinkInternetServiceRequestFromJSONTyped = exports.LinkInternetServiceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkInternetServiceRequestFromJSON(json) { + return LinkInternetServiceRequestFromJSONTyped(json, false); +} +exports.LinkInternetServiceRequestFromJSON = LinkInternetServiceRequestFromJSON; +function LinkInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + 'netId': json['NetId'], + }; +} +exports.LinkInternetServiceRequestFromJSONTyped = LinkInternetServiceRequestFromJSONTyped; +function LinkInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + }; +} +exports.LinkInternetServiceRequestToJSON = LinkInternetServiceRequestToJSON; diff --git a/dist/cjs/models/LinkInternetServiceResponse.d.ts b/dist/cjs/models/LinkInternetServiceResponse.d.ts new file mode 100644 index 00000000..8f64c564 --- /dev/null +++ b/dist/cjs/models/LinkInternetServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkInternetServiceResponse + */ +export interface LinkInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkInternetServiceResponseFromJSON(json: any): LinkInternetServiceResponse; +export declare function LinkInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkInternetServiceResponse; +export declare function LinkInternetServiceResponseToJSON(value?: LinkInternetServiceResponse | null): any; diff --git a/dist/cjs/models/LinkInternetServiceResponse.js b/dist/cjs/models/LinkInternetServiceResponse.js new file mode 100644 index 00000000..4e7074ba --- /dev/null +++ b/dist/cjs/models/LinkInternetServiceResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkInternetServiceResponseToJSON = exports.LinkInternetServiceResponseFromJSONTyped = exports.LinkInternetServiceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkInternetServiceResponseFromJSON(json) { + return LinkInternetServiceResponseFromJSONTyped(json, false); +} +exports.LinkInternetServiceResponseFromJSON = LinkInternetServiceResponseFromJSON; +function LinkInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkInternetServiceResponseFromJSONTyped = LinkInternetServiceResponseFromJSONTyped; +function LinkInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkInternetServiceResponseToJSON = LinkInternetServiceResponseToJSON; diff --git a/dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.d.ts b/dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.d.ts new file mode 100644 index 00000000..ef9a74a6 --- /dev/null +++ b/dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkLoadBalancerBackendMachinesRequest + */ +export interface LinkLoadBalancerBackendMachinesRequest { + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + loadBalancerName: string; +} +export declare function LinkLoadBalancerBackendMachinesRequestFromJSON(json: any): LinkLoadBalancerBackendMachinesRequest; +export declare function LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkLoadBalancerBackendMachinesRequest; +export declare function LinkLoadBalancerBackendMachinesRequestToJSON(value?: LinkLoadBalancerBackendMachinesRequest | null): any; diff --git a/dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.js b/dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.js new file mode 100644 index 00000000..146c2fde --- /dev/null +++ b/dist/cjs/models/LinkLoadBalancerBackendMachinesRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkLoadBalancerBackendMachinesRequestToJSON = exports.LinkLoadBalancerBackendMachinesRequestFromJSONTyped = exports.LinkLoadBalancerBackendMachinesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkLoadBalancerBackendMachinesRequestFromJSON(json) { + return LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, false); +} +exports.LinkLoadBalancerBackendMachinesRequestFromJSON = LinkLoadBalancerBackendMachinesRequestFromJSON; +function LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendIps': !(0, runtime_1.exists)(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !(0, runtime_1.exists)(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.LinkLoadBalancerBackendMachinesRequestFromJSONTyped = LinkLoadBalancerBackendMachinesRequestFromJSONTyped; +function LinkLoadBalancerBackendMachinesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.LinkLoadBalancerBackendMachinesRequestToJSON = LinkLoadBalancerBackendMachinesRequestToJSON; diff --git a/dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.d.ts b/dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.d.ts new file mode 100644 index 00000000..05be4e83 --- /dev/null +++ b/dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkLoadBalancerBackendMachinesResponse + */ +export interface LinkLoadBalancerBackendMachinesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkLoadBalancerBackendMachinesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkLoadBalancerBackendMachinesResponseFromJSON(json: any): LinkLoadBalancerBackendMachinesResponse; +export declare function LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkLoadBalancerBackendMachinesResponse; +export declare function LinkLoadBalancerBackendMachinesResponseToJSON(value?: LinkLoadBalancerBackendMachinesResponse | null): any; diff --git a/dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.js b/dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.js new file mode 100644 index 00000000..6b8a251e --- /dev/null +++ b/dist/cjs/models/LinkLoadBalancerBackendMachinesResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkLoadBalancerBackendMachinesResponseToJSON = exports.LinkLoadBalancerBackendMachinesResponseFromJSONTyped = exports.LinkLoadBalancerBackendMachinesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkLoadBalancerBackendMachinesResponseFromJSON(json) { + return LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, false); +} +exports.LinkLoadBalancerBackendMachinesResponseFromJSON = LinkLoadBalancerBackendMachinesResponseFromJSON; +function LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkLoadBalancerBackendMachinesResponseFromJSONTyped = LinkLoadBalancerBackendMachinesResponseFromJSONTyped; +function LinkLoadBalancerBackendMachinesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkLoadBalancerBackendMachinesResponseToJSON = LinkLoadBalancerBackendMachinesResponseToJSON; diff --git a/dist/cjs/models/LinkNic.d.ts b/dist/cjs/models/LinkNic.d.ts new file mode 100644 index 00000000..bb0ca6cd --- /dev/null +++ b/dist/cjs/models/LinkNic.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the NIC attachment. + * @export + * @interface LinkNic + */ +export interface LinkNic { + /** + * If true, the NIC is deleted when the VM is terminated. + * @type {boolean} + * @memberof LinkNic + */ + deleteOnVmDeletion?: boolean; + /** + * The device index for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNic + */ + deviceNumber?: number; + /** + * The ID of the NIC to attach. + * @type {string} + * @memberof LinkNic + */ + linkNicId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof LinkNic + */ + state?: string; + /** + * The account ID of the owner of the VM. + * @type {string} + * @memberof LinkNic + */ + vmAccountId?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof LinkNic + */ + vmId?: string; +} +export declare function LinkNicFromJSON(json: any): LinkNic; +export declare function LinkNicFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNic; +export declare function LinkNicToJSON(value?: LinkNic | null): any; diff --git a/dist/cjs/models/LinkNic.js b/dist/cjs/models/LinkNic.js new file mode 100644 index 00000000..befca0fc --- /dev/null +++ b/dist/cjs/models/LinkNic.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkNicToJSON = exports.LinkNicFromJSONTyped = exports.LinkNicFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkNicFromJSON(json) { + return LinkNicFromJSONTyped(json, false); +} +exports.LinkNicFromJSON = LinkNicFromJSON; +function LinkNicFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceNumber': !(0, runtime_1.exists)(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'linkNicId': !(0, runtime_1.exists)(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'vmAccountId': !(0, runtime_1.exists)(json, 'VmAccountId') ? undefined : json['VmAccountId'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.LinkNicFromJSONTyped = LinkNicFromJSONTyped; +function LinkNicToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceNumber': value.deviceNumber, + 'LinkNicId': value.linkNicId, + 'State': value.state, + 'VmAccountId': value.vmAccountId, + 'VmId': value.vmId, + }; +} +exports.LinkNicToJSON = LinkNicToJSON; diff --git a/dist/cjs/models/LinkNicLight.d.ts b/dist/cjs/models/LinkNicLight.d.ts new file mode 100644 index 00000000..1cd8f48c --- /dev/null +++ b/dist/cjs/models/LinkNicLight.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the network interface card (NIC). + * @export + * @interface LinkNicLight + */ +export interface LinkNicLight { + /** + * If true, the NIC is deleted when the VM is terminated. + * @type {boolean} + * @memberof LinkNicLight + */ + deleteOnVmDeletion?: boolean; + /** + * The device index for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNicLight + */ + deviceNumber?: number; + /** + * The ID of the NIC to attach. + * @type {string} + * @memberof LinkNicLight + */ + linkNicId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof LinkNicLight + */ + state?: string; +} +export declare function LinkNicLightFromJSON(json: any): LinkNicLight; +export declare function LinkNicLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicLight; +export declare function LinkNicLightToJSON(value?: LinkNicLight | null): any; diff --git a/dist/cjs/models/LinkNicLight.js b/dist/cjs/models/LinkNicLight.js new file mode 100644 index 00000000..2e890350 --- /dev/null +++ b/dist/cjs/models/LinkNicLight.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkNicLightToJSON = exports.LinkNicLightFromJSONTyped = exports.LinkNicLightFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkNicLightFromJSON(json) { + return LinkNicLightFromJSONTyped(json, false); +} +exports.LinkNicLightFromJSON = LinkNicLightFromJSON; +function LinkNicLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceNumber': !(0, runtime_1.exists)(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'linkNicId': !(0, runtime_1.exists)(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + }; +} +exports.LinkNicLightFromJSONTyped = LinkNicLightFromJSONTyped; +function LinkNicLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceNumber': value.deviceNumber, + 'LinkNicId': value.linkNicId, + 'State': value.state, + }; +} +exports.LinkNicLightToJSON = LinkNicLightToJSON; diff --git a/dist/cjs/models/LinkNicRequest.d.ts b/dist/cjs/models/LinkNicRequest.d.ts new file mode 100644 index 00000000..8894da08 --- /dev/null +++ b/dist/cjs/models/LinkNicRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkNicRequest + */ +export interface LinkNicRequest { + /** + * The index of the VM device for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNicRequest + */ + deviceNumber: number; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkNicRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC you want to attach. + * @type {string} + * @memberof LinkNicRequest + */ + nicId: string; + /** + * The ID of the VM to which you want to attach the NIC. + * @type {string} + * @memberof LinkNicRequest + */ + vmId: string; +} +export declare function LinkNicRequestFromJSON(json: any): LinkNicRequest; +export declare function LinkNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicRequest; +export declare function LinkNicRequestToJSON(value?: LinkNicRequest | null): any; diff --git a/dist/cjs/models/LinkNicRequest.js b/dist/cjs/models/LinkNicRequest.js new file mode 100644 index 00000000..0a89c3b6 --- /dev/null +++ b/dist/cjs/models/LinkNicRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkNicRequestToJSON = exports.LinkNicRequestFromJSONTyped = exports.LinkNicRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkNicRequestFromJSON(json) { + return LinkNicRequestFromJSONTyped(json, false); +} +exports.LinkNicRequestFromJSON = LinkNicRequestFromJSON; +function LinkNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deviceNumber': json['DeviceNumber'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'vmId': json['VmId'], + }; +} +exports.LinkNicRequestFromJSONTyped = LinkNicRequestFromJSONTyped; +function LinkNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeviceNumber': value.deviceNumber, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'VmId': value.vmId, + }; +} +exports.LinkNicRequestToJSON = LinkNicRequestToJSON; diff --git a/dist/cjs/models/LinkNicResponse.d.ts b/dist/cjs/models/LinkNicResponse.d.ts new file mode 100644 index 00000000..a1366a1d --- /dev/null +++ b/dist/cjs/models/LinkNicResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkNicResponse + */ +export interface LinkNicResponse { + /** + * The ID of the NIC attachment. + * @type {string} + * @memberof LinkNicResponse + */ + linkNicId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkNicResponseFromJSON(json: any): LinkNicResponse; +export declare function LinkNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicResponse; +export declare function LinkNicResponseToJSON(value?: LinkNicResponse | null): any; diff --git a/dist/cjs/models/LinkNicResponse.js b/dist/cjs/models/LinkNicResponse.js new file mode 100644 index 00000000..2652ff3c --- /dev/null +++ b/dist/cjs/models/LinkNicResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkNicResponseToJSON = exports.LinkNicResponseFromJSONTyped = exports.LinkNicResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkNicResponseFromJSON(json) { + return LinkNicResponseFromJSONTyped(json, false); +} +exports.LinkNicResponseFromJSON = LinkNicResponseFromJSON; +function LinkNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkNicId': !(0, runtime_1.exists)(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkNicResponseFromJSONTyped = LinkNicResponseFromJSONTyped; +function LinkNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkNicId': value.linkNicId, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkNicResponseToJSON = LinkNicResponseToJSON; diff --git a/dist/cjs/models/LinkNicToUpdate.d.ts b/dist/cjs/models/LinkNicToUpdate.d.ts new file mode 100644 index 00000000..c2eeebcc --- /dev/null +++ b/dist/cjs/models/LinkNicToUpdate.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the NIC attachment. If you are modifying the `DeleteOnVmDeletion` attribute, you must specify the ID of the NIC attachment. + * @export + * @interface LinkNicToUpdate + */ +export interface LinkNicToUpdate { + /** + * If true, the NIC is deleted when the VM is terminated. If false, the NIC is detached from the VM. + * @type {boolean} + * @memberof LinkNicToUpdate + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the NIC attachment. + * @type {string} + * @memberof LinkNicToUpdate + */ + linkNicId?: string; +} +export declare function LinkNicToUpdateFromJSON(json: any): LinkNicToUpdate; +export declare function LinkNicToUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicToUpdate; +export declare function LinkNicToUpdateToJSON(value?: LinkNicToUpdate | null): any; diff --git a/dist/cjs/models/LinkNicToUpdate.js b/dist/cjs/models/LinkNicToUpdate.js new file mode 100644 index 00000000..95853e4a --- /dev/null +++ b/dist/cjs/models/LinkNicToUpdate.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkNicToUpdateToJSON = exports.LinkNicToUpdateFromJSONTyped = exports.LinkNicToUpdateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkNicToUpdateFromJSON(json) { + return LinkNicToUpdateFromJSONTyped(json, false); +} +exports.LinkNicToUpdateFromJSON = LinkNicToUpdateFromJSON; +function LinkNicToUpdateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'linkNicId': !(0, runtime_1.exists)(json, 'LinkNicId') ? undefined : json['LinkNicId'], + }; +} +exports.LinkNicToUpdateFromJSONTyped = LinkNicToUpdateFromJSONTyped; +function LinkNicToUpdateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'LinkNicId': value.linkNicId, + }; +} +exports.LinkNicToUpdateToJSON = LinkNicToUpdateToJSON; diff --git a/dist/cjs/models/LinkPrivateIpsRequest.d.ts b/dist/cjs/models/LinkPrivateIpsRequest.d.ts new file mode 100644 index 00000000..eb430e31 --- /dev/null +++ b/dist/cjs/models/LinkPrivateIpsRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkPrivateIpsRequest + */ +export interface LinkPrivateIpsRequest { + /** + * If true, allows an IP that is already assigned to another NIC in the same Subnet to be assigned to the NIC you specified. + * @type {boolean} + * @memberof LinkPrivateIpsRequest + */ + allowRelink?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkPrivateIpsRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC. + * @type {string} + * @memberof LinkPrivateIpsRequest + */ + nicId: string; + /** + * The secondary private IP or IPs you want to assign to the NIC within the IP range of the Subnet. + * @type {Array} + * @memberof LinkPrivateIpsRequest + */ + privateIps?: Array; + /** + * The number of secondary private IPs to assign to the NIC. + * @type {number} + * @memberof LinkPrivateIpsRequest + */ + secondaryPrivateIpCount?: number; +} +export declare function LinkPrivateIpsRequestFromJSON(json: any): LinkPrivateIpsRequest; +export declare function LinkPrivateIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPrivateIpsRequest; +export declare function LinkPrivateIpsRequestToJSON(value?: LinkPrivateIpsRequest | null): any; diff --git a/dist/cjs/models/LinkPrivateIpsRequest.js b/dist/cjs/models/LinkPrivateIpsRequest.js new file mode 100644 index 00000000..46c8b849 --- /dev/null +++ b/dist/cjs/models/LinkPrivateIpsRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkPrivateIpsRequestToJSON = exports.LinkPrivateIpsRequestFromJSONTyped = exports.LinkPrivateIpsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkPrivateIpsRequestFromJSON(json) { + return LinkPrivateIpsRequestFromJSONTyped(json, false); +} +exports.LinkPrivateIpsRequestFromJSON = LinkPrivateIpsRequestFromJSON; +function LinkPrivateIpsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'allowRelink': !(0, runtime_1.exists)(json, 'AllowRelink') ? undefined : json['AllowRelink'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'secondaryPrivateIpCount': !(0, runtime_1.exists)(json, 'SecondaryPrivateIpCount') ? undefined : json['SecondaryPrivateIpCount'], + }; +} +exports.LinkPrivateIpsRequestFromJSONTyped = LinkPrivateIpsRequestFromJSONTyped; +function LinkPrivateIpsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AllowRelink': value.allowRelink, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps, + 'SecondaryPrivateIpCount': value.secondaryPrivateIpCount, + }; +} +exports.LinkPrivateIpsRequestToJSON = LinkPrivateIpsRequestToJSON; diff --git a/dist/cjs/models/LinkPrivateIpsResponse.d.ts b/dist/cjs/models/LinkPrivateIpsResponse.d.ts new file mode 100644 index 00000000..1feee3d8 --- /dev/null +++ b/dist/cjs/models/LinkPrivateIpsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkPrivateIpsResponse + */ +export interface LinkPrivateIpsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkPrivateIpsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkPrivateIpsResponseFromJSON(json: any): LinkPrivateIpsResponse; +export declare function LinkPrivateIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPrivateIpsResponse; +export declare function LinkPrivateIpsResponseToJSON(value?: LinkPrivateIpsResponse | null): any; diff --git a/dist/cjs/models/LinkPrivateIpsResponse.js b/dist/cjs/models/LinkPrivateIpsResponse.js new file mode 100644 index 00000000..40b2c0d6 --- /dev/null +++ b/dist/cjs/models/LinkPrivateIpsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkPrivateIpsResponseToJSON = exports.LinkPrivateIpsResponseFromJSONTyped = exports.LinkPrivateIpsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkPrivateIpsResponseFromJSON(json) { + return LinkPrivateIpsResponseFromJSONTyped(json, false); +} +exports.LinkPrivateIpsResponseFromJSON = LinkPrivateIpsResponseFromJSON; +function LinkPrivateIpsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkPrivateIpsResponseFromJSONTyped = LinkPrivateIpsResponseFromJSONTyped; +function LinkPrivateIpsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkPrivateIpsResponseToJSON = LinkPrivateIpsResponseToJSON; diff --git a/dist/cjs/models/LinkPublicIp.d.ts b/dist/cjs/models/LinkPublicIp.d.ts new file mode 100644 index 00000000..7723a635 --- /dev/null +++ b/dist/cjs/models/LinkPublicIp.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the public IP association. + * @export + * @interface LinkPublicIp + */ +export interface LinkPublicIp { + /** + * (Required in a Net) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof LinkPublicIp + */ + linkPublicIpId?: string; + /** + * The name of the public DNS. + * @type {string} + * @memberof LinkPublicIp + */ + publicDnsName?: string; + /** + * The public IP associated with the NIC. + * @type {string} + * @memberof LinkPublicIp + */ + publicIp?: string; + /** + * The account ID of the owner of the public IP. + * @type {string} + * @memberof LinkPublicIp + */ + publicIpAccountId?: string; + /** + * The allocation ID of the public IP. + * @type {string} + * @memberof LinkPublicIp + */ + publicIpId?: string; +} +export declare function LinkPublicIpFromJSON(json: any): LinkPublicIp; +export declare function LinkPublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIp; +export declare function LinkPublicIpToJSON(value?: LinkPublicIp | null): any; diff --git a/dist/cjs/models/LinkPublicIp.js b/dist/cjs/models/LinkPublicIp.js new file mode 100644 index 00000000..139c1d6c --- /dev/null +++ b/dist/cjs/models/LinkPublicIp.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkPublicIpToJSON = exports.LinkPublicIpFromJSONTyped = exports.LinkPublicIpFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkPublicIpFromJSON(json) { + return LinkPublicIpFromJSONTyped(json, false); +} +exports.LinkPublicIpFromJSON = LinkPublicIpFromJSON; +function LinkPublicIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpId': !(0, runtime_1.exists)(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'publicDnsName': !(0, runtime_1.exists)(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpAccountId': !(0, runtime_1.exists)(json, 'PublicIpAccountId') ? undefined : json['PublicIpAccountId'], + 'publicIpId': !(0, runtime_1.exists)(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} +exports.LinkPublicIpFromJSONTyped = LinkPublicIpFromJSONTyped; +function LinkPublicIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpId': value.linkPublicIpId, + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'PublicIpAccountId': value.publicIpAccountId, + 'PublicIpId': value.publicIpId, + }; +} +exports.LinkPublicIpToJSON = LinkPublicIpToJSON; diff --git a/dist/cjs/models/LinkPublicIpLightForVm.d.ts b/dist/cjs/models/LinkPublicIpLightForVm.d.ts new file mode 100644 index 00000000..57745ca0 --- /dev/null +++ b/dist/cjs/models/LinkPublicIpLightForVm.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the public IP associated with the NIC. + * @export + * @interface LinkPublicIpLightForVm + */ +export interface LinkPublicIpLightForVm { + /** + * The name of the public DNS. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicDnsName?: string; + /** + * The public IP associated with the NIC. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicIp?: string; + /** + * The account ID of the owner of the public IP. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicIpAccountId?: string; +} +export declare function LinkPublicIpLightForVmFromJSON(json: any): LinkPublicIpLightForVm; +export declare function LinkPublicIpLightForVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpLightForVm; +export declare function LinkPublicIpLightForVmToJSON(value?: LinkPublicIpLightForVm | null): any; diff --git a/dist/cjs/models/LinkPublicIpLightForVm.js b/dist/cjs/models/LinkPublicIpLightForVm.js new file mode 100644 index 00000000..34c905a3 --- /dev/null +++ b/dist/cjs/models/LinkPublicIpLightForVm.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkPublicIpLightForVmToJSON = exports.LinkPublicIpLightForVmFromJSONTyped = exports.LinkPublicIpLightForVmFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkPublicIpLightForVmFromJSON(json) { + return LinkPublicIpLightForVmFromJSONTyped(json, false); +} +exports.LinkPublicIpLightForVmFromJSON = LinkPublicIpLightForVmFromJSON; +function LinkPublicIpLightForVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicDnsName': !(0, runtime_1.exists)(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpAccountId': !(0, runtime_1.exists)(json, 'PublicIpAccountId') ? undefined : json['PublicIpAccountId'], + }; +} +exports.LinkPublicIpLightForVmFromJSONTyped = LinkPublicIpLightForVmFromJSONTyped; +function LinkPublicIpLightForVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'PublicIpAccountId': value.publicIpAccountId, + }; +} +exports.LinkPublicIpLightForVmToJSON = LinkPublicIpLightForVmToJSON; diff --git a/dist/cjs/models/LinkPublicIpRequest.d.ts b/dist/cjs/models/LinkPublicIpRequest.d.ts new file mode 100644 index 00000000..9e735182 --- /dev/null +++ b/dist/cjs/models/LinkPublicIpRequest.d.ts @@ -0,0 +1,65 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkPublicIpRequest + */ +export interface LinkPublicIpRequest { + /** + * If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the EIP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.) + * @type {boolean} + * @memberof LinkPublicIpRequest + */ + allowRelink?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkPublicIpRequest + */ + dryRun?: boolean; + /** + * (Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the `VmId` parameter instead. You cannot specify both parameters at the same time. + * @type {string} + * @memberof LinkPublicIpRequest + */ + nicId?: string; + /** + * (Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP. + * @type {string} + * @memberof LinkPublicIpRequest + */ + privateIp?: string; + /** + * The public IP. This parameter is required unless you use the `PublicIpId` parameter. + * @type {string} + * @memberof LinkPublicIpRequest + */ + publicIp?: string; + /** + * The allocation ID of the public IP. This parameter is required unless you use the `PublicIp` parameter. + * @type {string} + * @memberof LinkPublicIpRequest + */ + publicIpId?: string; + /** + * The ID of the VM.
+ * - In the public Cloud, this parameter is required.
+ * - In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the `NicId` parameter instead. You cannot specify both parameters at the same time. + * @type {string} + * @memberof LinkPublicIpRequest + */ + vmId?: string; +} +export declare function LinkPublicIpRequestFromJSON(json: any): LinkPublicIpRequest; +export declare function LinkPublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpRequest; +export declare function LinkPublicIpRequestToJSON(value?: LinkPublicIpRequest | null): any; diff --git a/dist/cjs/models/LinkPublicIpRequest.js b/dist/cjs/models/LinkPublicIpRequest.js new file mode 100644 index 00000000..07ac76df --- /dev/null +++ b/dist/cjs/models/LinkPublicIpRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkPublicIpRequestToJSON = exports.LinkPublicIpRequestFromJSONTyped = exports.LinkPublicIpRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkPublicIpRequestFromJSON(json) { + return LinkPublicIpRequestFromJSONTyped(json, false); +} +exports.LinkPublicIpRequestFromJSON = LinkPublicIpRequestFromJSON; +function LinkPublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'allowRelink': !(0, runtime_1.exists)(json, 'AllowRelink') ? undefined : json['AllowRelink'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'privateIp': !(0, runtime_1.exists)(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !(0, runtime_1.exists)(json, 'PublicIpId') ? undefined : json['PublicIpId'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.LinkPublicIpRequestFromJSONTyped = LinkPublicIpRequestFromJSONTyped; +function LinkPublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AllowRelink': value.allowRelink, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIp': value.privateIp, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + 'VmId': value.vmId, + }; +} +exports.LinkPublicIpRequestToJSON = LinkPublicIpRequestToJSON; diff --git a/dist/cjs/models/LinkPublicIpResponse.d.ts b/dist/cjs/models/LinkPublicIpResponse.d.ts new file mode 100644 index 00000000..e8ef20e5 --- /dev/null +++ b/dist/cjs/models/LinkPublicIpResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkPublicIpResponse + */ +export interface LinkPublicIpResponse { + /** + * (Net only) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof LinkPublicIpResponse + */ + linkPublicIpId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkPublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkPublicIpResponseFromJSON(json: any): LinkPublicIpResponse; +export declare function LinkPublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpResponse; +export declare function LinkPublicIpResponseToJSON(value?: LinkPublicIpResponse | null): any; diff --git a/dist/cjs/models/LinkPublicIpResponse.js b/dist/cjs/models/LinkPublicIpResponse.js new file mode 100644 index 00000000..04ba9f16 --- /dev/null +++ b/dist/cjs/models/LinkPublicIpResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkPublicIpResponseToJSON = exports.LinkPublicIpResponseFromJSONTyped = exports.LinkPublicIpResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkPublicIpResponseFromJSON(json) { + return LinkPublicIpResponseFromJSONTyped(json, false); +} +exports.LinkPublicIpResponseFromJSON = LinkPublicIpResponseFromJSON; +function LinkPublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpId': !(0, runtime_1.exists)(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkPublicIpResponseFromJSONTyped = LinkPublicIpResponseFromJSONTyped; +function LinkPublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpId': value.linkPublicIpId, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkPublicIpResponseToJSON = LinkPublicIpResponseToJSON; diff --git a/dist/cjs/models/LinkRouteTable.d.ts b/dist/cjs/models/LinkRouteTable.d.ts new file mode 100644 index 00000000..aeebc0bf --- /dev/null +++ b/dist/cjs/models/LinkRouteTable.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more associations between the route table and the Subnets. + * @export + * @interface LinkRouteTable + */ +export interface LinkRouteTable { + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof LinkRouteTable + */ + linkRouteTableId?: string; + /** + * If true, the route table is the main one. + * @type {boolean} + * @memberof LinkRouteTable + */ + main?: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof LinkRouteTable + */ + routeTableId?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof LinkRouteTable + */ + subnetId?: string; +} +export declare function LinkRouteTableFromJSON(json: any): LinkRouteTable; +export declare function LinkRouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTable; +export declare function LinkRouteTableToJSON(value?: LinkRouteTable | null): any; diff --git a/dist/cjs/models/LinkRouteTable.js b/dist/cjs/models/LinkRouteTable.js new file mode 100644 index 00000000..712c3501 --- /dev/null +++ b/dist/cjs/models/LinkRouteTable.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkRouteTableToJSON = exports.LinkRouteTableFromJSONTyped = exports.LinkRouteTableFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkRouteTableFromJSON(json) { + return LinkRouteTableFromJSONTyped(json, false); +} +exports.LinkRouteTableFromJSON = LinkRouteTableFromJSON; +function LinkRouteTableFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTableId': !(0, runtime_1.exists)(json, 'LinkRouteTableId') ? undefined : json['LinkRouteTableId'], + 'main': !(0, runtime_1.exists)(json, 'Main') ? undefined : json['Main'], + 'routeTableId': !(0, runtime_1.exists)(json, 'RouteTableId') ? undefined : json['RouteTableId'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} +exports.LinkRouteTableFromJSONTyped = LinkRouteTableFromJSONTyped; +function LinkRouteTableToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTableId': value.linkRouteTableId, + 'Main': value.main, + 'RouteTableId': value.routeTableId, + 'SubnetId': value.subnetId, + }; +} +exports.LinkRouteTableToJSON = LinkRouteTableToJSON; diff --git a/dist/cjs/models/LinkRouteTableRequest.d.ts b/dist/cjs/models/LinkRouteTableRequest.d.ts new file mode 100644 index 00000000..9b282ca9 --- /dev/null +++ b/dist/cjs/models/LinkRouteTableRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkRouteTableRequest + */ +export interface LinkRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof LinkRouteTableRequest + */ + routeTableId: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof LinkRouteTableRequest + */ + subnetId: string; +} +export declare function LinkRouteTableRequestFromJSON(json: any): LinkRouteTableRequest; +export declare function LinkRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTableRequest; +export declare function LinkRouteTableRequestToJSON(value?: LinkRouteTableRequest | null): any; diff --git a/dist/cjs/models/LinkRouteTableRequest.js b/dist/cjs/models/LinkRouteTableRequest.js new file mode 100644 index 00000000..5d572ced --- /dev/null +++ b/dist/cjs/models/LinkRouteTableRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkRouteTableRequestToJSON = exports.LinkRouteTableRequestFromJSONTyped = exports.LinkRouteTableRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkRouteTableRequestFromJSON(json) { + return LinkRouteTableRequestFromJSONTyped(json, false); +} +exports.LinkRouteTableRequestFromJSON = LinkRouteTableRequestFromJSON; +function LinkRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + 'subnetId': json['SubnetId'], + }; +} +exports.LinkRouteTableRequestFromJSONTyped = LinkRouteTableRequestFromJSONTyped; +function LinkRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + 'SubnetId': value.subnetId, + }; +} +exports.LinkRouteTableRequestToJSON = LinkRouteTableRequestToJSON; diff --git a/dist/cjs/models/LinkRouteTableResponse.d.ts b/dist/cjs/models/LinkRouteTableResponse.d.ts new file mode 100644 index 00000000..013890ac --- /dev/null +++ b/dist/cjs/models/LinkRouteTableResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkRouteTableResponse + */ +export interface LinkRouteTableResponse { + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof LinkRouteTableResponse + */ + linkRouteTableId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkRouteTableResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkRouteTableResponseFromJSON(json: any): LinkRouteTableResponse; +export declare function LinkRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTableResponse; +export declare function LinkRouteTableResponseToJSON(value?: LinkRouteTableResponse | null): any; diff --git a/dist/cjs/models/LinkRouteTableResponse.js b/dist/cjs/models/LinkRouteTableResponse.js new file mode 100644 index 00000000..28ddefff --- /dev/null +++ b/dist/cjs/models/LinkRouteTableResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkRouteTableResponseToJSON = exports.LinkRouteTableResponseFromJSONTyped = exports.LinkRouteTableResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkRouteTableResponseFromJSON(json) { + return LinkRouteTableResponseFromJSONTyped(json, false); +} +exports.LinkRouteTableResponseFromJSON = LinkRouteTableResponseFromJSON; +function LinkRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTableId': !(0, runtime_1.exists)(json, 'LinkRouteTableId') ? undefined : json['LinkRouteTableId'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkRouteTableResponseFromJSONTyped = LinkRouteTableResponseFromJSONTyped; +function LinkRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTableId': value.linkRouteTableId, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkRouteTableResponseToJSON = LinkRouteTableResponseToJSON; diff --git a/dist/cjs/models/LinkVirtualGatewayRequest.d.ts b/dist/cjs/models/LinkVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..aa5fc09d --- /dev/null +++ b/dist/cjs/models/LinkVirtualGatewayRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkVirtualGatewayRequest + */ +export interface LinkVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the Net to which you want to attach the virtual gateway. + * @type {string} + * @memberof LinkVirtualGatewayRequest + */ + netId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof LinkVirtualGatewayRequest + */ + virtualGatewayId: string; +} +export declare function LinkVirtualGatewayRequestFromJSON(json: any): LinkVirtualGatewayRequest; +export declare function LinkVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVirtualGatewayRequest; +export declare function LinkVirtualGatewayRequestToJSON(value?: LinkVirtualGatewayRequest | null): any; diff --git a/dist/cjs/models/LinkVirtualGatewayRequest.js b/dist/cjs/models/LinkVirtualGatewayRequest.js new file mode 100644 index 00000000..faa57578 --- /dev/null +++ b/dist/cjs/models/LinkVirtualGatewayRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkVirtualGatewayRequestToJSON = exports.LinkVirtualGatewayRequestFromJSONTyped = exports.LinkVirtualGatewayRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkVirtualGatewayRequestFromJSON(json) { + return LinkVirtualGatewayRequestFromJSONTyped(json, false); +} +exports.LinkVirtualGatewayRequestFromJSON = LinkVirtualGatewayRequestFromJSON; +function LinkVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +exports.LinkVirtualGatewayRequestFromJSONTyped = LinkVirtualGatewayRequestFromJSONTyped; +function LinkVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.LinkVirtualGatewayRequestToJSON = LinkVirtualGatewayRequestToJSON; diff --git a/dist/cjs/models/LinkVirtualGatewayResponse.d.ts b/dist/cjs/models/LinkVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..e89349a2 --- /dev/null +++ b/dist/cjs/models/LinkVirtualGatewayResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetToVirtualGatewayLink } from './NetToVirtualGatewayLink'; +/** + * + * @export + * @interface LinkVirtualGatewayResponse + */ +export interface LinkVirtualGatewayResponse { + /** + * + * @type {NetToVirtualGatewayLink} + * @memberof LinkVirtualGatewayResponse + */ + netToVirtualGatewayLink?: NetToVirtualGatewayLink; + /** + * + * @type {ModelResponseContext} + * @memberof LinkVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkVirtualGatewayResponseFromJSON(json: any): LinkVirtualGatewayResponse; +export declare function LinkVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVirtualGatewayResponse; +export declare function LinkVirtualGatewayResponseToJSON(value?: LinkVirtualGatewayResponse | null): any; diff --git a/dist/cjs/models/LinkVirtualGatewayResponse.js b/dist/cjs/models/LinkVirtualGatewayResponse.js new file mode 100644 index 00000000..7be97c6f --- /dev/null +++ b/dist/cjs/models/LinkVirtualGatewayResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkVirtualGatewayResponseToJSON = exports.LinkVirtualGatewayResponseFromJSONTyped = exports.LinkVirtualGatewayResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetToVirtualGatewayLink_1 = require("./NetToVirtualGatewayLink"); +function LinkVirtualGatewayResponseFromJSON(json) { + return LinkVirtualGatewayResponseFromJSONTyped(json, false); +} +exports.LinkVirtualGatewayResponseFromJSON = LinkVirtualGatewayResponseFromJSON; +function LinkVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netToVirtualGatewayLink': !(0, runtime_1.exists)(json, 'NetToVirtualGatewayLink') ? undefined : (0, NetToVirtualGatewayLink_1.NetToVirtualGatewayLinkFromJSON)(json['NetToVirtualGatewayLink']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkVirtualGatewayResponseFromJSONTyped = LinkVirtualGatewayResponseFromJSONTyped; +function LinkVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetToVirtualGatewayLink': (0, NetToVirtualGatewayLink_1.NetToVirtualGatewayLinkToJSON)(value.netToVirtualGatewayLink), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkVirtualGatewayResponseToJSON = LinkVirtualGatewayResponseToJSON; diff --git a/dist/cjs/models/LinkVolumeRequest.d.ts b/dist/cjs/models/LinkVolumeRequest.d.ts new file mode 100644 index 00000000..c175a2e5 --- /dev/null +++ b/dist/cjs/models/LinkVolumeRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkVolumeRequest + */ +export interface LinkVolumeRequest { + /** + * The name of the device. + * @type {string} + * @memberof LinkVolumeRequest + */ + deviceName: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkVolumeRequest + */ + dryRun?: boolean; + /** + * The ID of the VM you want to attach the volume to. + * @type {string} + * @memberof LinkVolumeRequest + */ + vmId: string; + /** + * The ID of the volume you want to attach. + * @type {string} + * @memberof LinkVolumeRequest + */ + volumeId: string; +} +export declare function LinkVolumeRequestFromJSON(json: any): LinkVolumeRequest; +export declare function LinkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVolumeRequest; +export declare function LinkVolumeRequestToJSON(value?: LinkVolumeRequest | null): any; diff --git a/dist/cjs/models/LinkVolumeRequest.js b/dist/cjs/models/LinkVolumeRequest.js new file mode 100644 index 00000000..c71b684e --- /dev/null +++ b/dist/cjs/models/LinkVolumeRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkVolumeRequestToJSON = exports.LinkVolumeRequestFromJSONTyped = exports.LinkVolumeRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkVolumeRequestFromJSON(json) { + return LinkVolumeRequestFromJSONTyped(json, false); +} +exports.LinkVolumeRequestFromJSON = LinkVolumeRequestFromJSON; +function LinkVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deviceName': json['DeviceName'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + 'volumeId': json['VolumeId'], + }; +} +exports.LinkVolumeRequestFromJSONTyped = LinkVolumeRequestFromJSONTyped; +function LinkVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeviceName': value.deviceName, + 'DryRun': value.dryRun, + 'VmId': value.vmId, + 'VolumeId': value.volumeId, + }; +} +exports.LinkVolumeRequestToJSON = LinkVolumeRequestToJSON; diff --git a/dist/cjs/models/LinkVolumeResponse.d.ts b/dist/cjs/models/LinkVolumeResponse.d.ts new file mode 100644 index 00000000..c3f4e5c4 --- /dev/null +++ b/dist/cjs/models/LinkVolumeResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkVolumeResponse + */ +export interface LinkVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkVolumeResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkVolumeResponseFromJSON(json: any): LinkVolumeResponse; +export declare function LinkVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVolumeResponse; +export declare function LinkVolumeResponseToJSON(value?: LinkVolumeResponse | null): any; diff --git a/dist/cjs/models/LinkVolumeResponse.js b/dist/cjs/models/LinkVolumeResponse.js new file mode 100644 index 00000000..8fc3c027 --- /dev/null +++ b/dist/cjs/models/LinkVolumeResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkVolumeResponseToJSON = exports.LinkVolumeResponseFromJSONTyped = exports.LinkVolumeResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function LinkVolumeResponseFromJSON(json) { + return LinkVolumeResponseFromJSONTyped(json, false); +} +exports.LinkVolumeResponseFromJSON = LinkVolumeResponseFromJSON; +function LinkVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.LinkVolumeResponseFromJSONTyped = LinkVolumeResponseFromJSONTyped; +function LinkVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.LinkVolumeResponseToJSON = LinkVolumeResponseToJSON; diff --git a/dist/cjs/models/LinkedVolume.d.ts b/dist/cjs/models/LinkedVolume.d.ts new file mode 100644 index 00000000..b4ab4933 --- /dev/null +++ b/dist/cjs/models/LinkedVolume.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about volume attachment. + * @export + * @interface LinkedVolume + */ +export interface LinkedVolume { + /** + * If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof LinkedVolume + */ + deleteOnVmDeletion?: boolean; + /** + * The name of the device. + * @type {string} + * @memberof LinkedVolume + */ + deviceName?: string; + /** + * The state of the attachment of the volume (`attaching` \| `detaching` \| `attached` \| `detached`). + * @type {string} + * @memberof LinkedVolume + */ + state?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof LinkedVolume + */ + vmId?: string; + /** + * The ID of the volume. + * @type {string} + * @memberof LinkedVolume + */ + volumeId?: string; +} +export declare function LinkedVolumeFromJSON(json: any): LinkedVolume; +export declare function LinkedVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkedVolume; +export declare function LinkedVolumeToJSON(value?: LinkedVolume | null): any; diff --git a/dist/cjs/models/LinkedVolume.js b/dist/cjs/models/LinkedVolume.js new file mode 100644 index 00000000..5118b3a9 --- /dev/null +++ b/dist/cjs/models/LinkedVolume.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkedVolumeToJSON = exports.LinkedVolumeFromJSONTyped = exports.LinkedVolumeFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LinkedVolumeFromJSON(json) { + return LinkedVolumeFromJSONTyped(json, false); +} +exports.LinkedVolumeFromJSON = LinkedVolumeFromJSON; +function LinkedVolumeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceName': !(0, runtime_1.exists)(json, 'DeviceName') ? undefined : json['DeviceName'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + 'volumeId': !(0, runtime_1.exists)(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +exports.LinkedVolumeFromJSONTyped = LinkedVolumeFromJSONTyped; +function LinkedVolumeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceName': value.deviceName, + 'State': value.state, + 'VmId': value.vmId, + 'VolumeId': value.volumeId, + }; +} +exports.LinkedVolumeToJSON = LinkedVolumeToJSON; diff --git a/dist/cjs/models/Listener.d.ts b/dist/cjs/models/Listener.d.ts new file mode 100644 index 00000000..58a807ae --- /dev/null +++ b/dist/cjs/models/Listener.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener. + * @export + * @interface Listener + */ +export interface Listener { + /** + * The port on which the back-end VM is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof Listener + */ + backendPort?: number; + /** + * The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof Listener + */ + backendProtocol?: string; + /** + * The port on which the load balancer is listening (between 1 and `65535`, both included). + * @type {number} + * @memberof Listener + */ + loadBalancerPort?: number; + /** + * The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof Listener + */ + loadBalancerProtocol?: string; + /** + * The names of the policies. If there are no policies enabled, the list is empty. + * @type {Array} + * @memberof Listener + */ + policyNames?: Array; + /** + * The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). + * @type {string} + * @memberof Listener + */ + serverCertificateId?: string; +} +export declare function ListenerFromJSON(json: any): Listener; +export declare function ListenerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Listener; +export declare function ListenerToJSON(value?: Listener | null): any; diff --git a/dist/cjs/models/Listener.js b/dist/cjs/models/Listener.js new file mode 100644 index 00000000..af00754b --- /dev/null +++ b/dist/cjs/models/Listener.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListenerToJSON = exports.ListenerFromJSONTyped = exports.ListenerFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ListenerFromJSON(json) { + return ListenerFromJSONTyped(json, false); +} +exports.ListenerFromJSON = ListenerFromJSON; +function ListenerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendPort': !(0, runtime_1.exists)(json, 'BackendPort') ? undefined : json['BackendPort'], + 'backendProtocol': !(0, runtime_1.exists)(json, 'BackendProtocol') ? undefined : json['BackendProtocol'], + 'loadBalancerPort': !(0, runtime_1.exists)(json, 'LoadBalancerPort') ? undefined : json['LoadBalancerPort'], + 'loadBalancerProtocol': !(0, runtime_1.exists)(json, 'LoadBalancerProtocol') ? undefined : json['LoadBalancerProtocol'], + 'policyNames': !(0, runtime_1.exists)(json, 'PolicyNames') ? undefined : json['PolicyNames'], + 'serverCertificateId': !(0, runtime_1.exists)(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} +exports.ListenerFromJSONTyped = ListenerFromJSONTyped; +function ListenerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendPort': value.backendPort, + 'BackendProtocol': value.backendProtocol, + 'LoadBalancerPort': value.loadBalancerPort, + 'LoadBalancerProtocol': value.loadBalancerProtocol, + 'PolicyNames': value.policyNames, + 'ServerCertificateId': value.serverCertificateId, + }; +} +exports.ListenerToJSON = ListenerToJSON; diff --git a/dist/cjs/models/ListenerForCreation.d.ts b/dist/cjs/models/ListenerForCreation.d.ts new file mode 100644 index 00000000..93cbe552 --- /dev/null +++ b/dist/cjs/models/ListenerForCreation.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener to create. + * @export + * @interface ListenerForCreation + */ +export interface ListenerForCreation { + /** + * The port on which the back-end VM is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof ListenerForCreation + */ + backendPort: number; + /** + * The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof ListenerForCreation + */ + backendProtocol?: string; + /** + * The port on which the load balancer is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof ListenerForCreation + */ + loadBalancerPort: number; + /** + * The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof ListenerForCreation + */ + loadBalancerProtocol: string; + /** + * The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). + * @type {string} + * @memberof ListenerForCreation + */ + serverCertificateId?: string; +} +export declare function ListenerForCreationFromJSON(json: any): ListenerForCreation; +export declare function ListenerForCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerForCreation; +export declare function ListenerForCreationToJSON(value?: ListenerForCreation | null): any; diff --git a/dist/cjs/models/ListenerForCreation.js b/dist/cjs/models/ListenerForCreation.js new file mode 100644 index 00000000..997d9a21 --- /dev/null +++ b/dist/cjs/models/ListenerForCreation.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListenerForCreationToJSON = exports.ListenerForCreationFromJSONTyped = exports.ListenerForCreationFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ListenerForCreationFromJSON(json) { + return ListenerForCreationFromJSONTyped(json, false); +} +exports.ListenerForCreationFromJSON = ListenerForCreationFromJSON; +function ListenerForCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendPort': json['BackendPort'], + 'backendProtocol': !(0, runtime_1.exists)(json, 'BackendProtocol') ? undefined : json['BackendProtocol'], + 'loadBalancerPort': json['LoadBalancerPort'], + 'loadBalancerProtocol': json['LoadBalancerProtocol'], + 'serverCertificateId': !(0, runtime_1.exists)(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} +exports.ListenerForCreationFromJSONTyped = ListenerForCreationFromJSONTyped; +function ListenerForCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendPort': value.backendPort, + 'BackendProtocol': value.backendProtocol, + 'LoadBalancerPort': value.loadBalancerPort, + 'LoadBalancerProtocol': value.loadBalancerProtocol, + 'ServerCertificateId': value.serverCertificateId, + }; +} +exports.ListenerForCreationToJSON = ListenerForCreationToJSON; diff --git a/dist/cjs/models/ListenerRule.d.ts b/dist/cjs/models/ListenerRule.d.ts new file mode 100644 index 00000000..d63e2cb2 --- /dev/null +++ b/dist/cjs/models/ListenerRule.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener rule. + * @export + * @interface ListenerRule + */ +export interface ListenerRule { + /** + * The type of action for the rule (always `forward`). + * @type {string} + * @memberof ListenerRule + */ + action?: string; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof ListenerRule + */ + hostNamePattern?: string; + /** + * The ID of the listener. + * @type {number} + * @memberof ListenerRule + */ + listenerId?: number; + /** + * The ID of the listener rule. + * @type {number} + * @memberof ListenerRule + */ + listenerRuleId?: number; + /** + * A human-readable name for the listener rule. + * @type {string} + * @memberof ListenerRule + */ + listenerRuleName?: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof ListenerRule + */ + pathPattern?: string; + /** + * The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. + * @type {number} + * @memberof ListenerRule + */ + priority?: number; + /** + * The IDs of the backend VMs. + * @type {Array} + * @memberof ListenerRule + */ + vmIds?: Array; +} +export declare function ListenerRuleFromJSON(json: any): ListenerRule; +export declare function ListenerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerRule; +export declare function ListenerRuleToJSON(value?: ListenerRule | null): any; diff --git a/dist/cjs/models/ListenerRule.js b/dist/cjs/models/ListenerRule.js new file mode 100644 index 00000000..d5bd43b1 --- /dev/null +++ b/dist/cjs/models/ListenerRule.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListenerRuleToJSON = exports.ListenerRuleFromJSONTyped = exports.ListenerRuleFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ListenerRuleFromJSON(json) { + return ListenerRuleFromJSONTyped(json, false); +} +exports.ListenerRuleFromJSON = ListenerRuleFromJSON; +function ListenerRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'action': !(0, runtime_1.exists)(json, 'Action') ? undefined : json['Action'], + 'hostNamePattern': !(0, runtime_1.exists)(json, 'HostNamePattern') ? undefined : json['HostNamePattern'], + 'listenerId': !(0, runtime_1.exists)(json, 'ListenerId') ? undefined : json['ListenerId'], + 'listenerRuleId': !(0, runtime_1.exists)(json, 'ListenerRuleId') ? undefined : json['ListenerRuleId'], + 'listenerRuleName': !(0, runtime_1.exists)(json, 'ListenerRuleName') ? undefined : json['ListenerRuleName'], + 'pathPattern': !(0, runtime_1.exists)(json, 'PathPattern') ? undefined : json['PathPattern'], + 'priority': !(0, runtime_1.exists)(json, 'Priority') ? undefined : json['Priority'], + 'vmIds': !(0, runtime_1.exists)(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +exports.ListenerRuleFromJSONTyped = ListenerRuleFromJSONTyped; +function ListenerRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Action': value.action, + 'HostNamePattern': value.hostNamePattern, + 'ListenerId': value.listenerId, + 'ListenerRuleId': value.listenerRuleId, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + 'Priority': value.priority, + 'VmIds': value.vmIds, + }; +} +exports.ListenerRuleToJSON = ListenerRuleToJSON; diff --git a/dist/cjs/models/ListenerRuleForCreation.d.ts b/dist/cjs/models/ListenerRuleForCreation.d.ts new file mode 100644 index 00000000..1047880b --- /dev/null +++ b/dist/cjs/models/ListenerRuleForCreation.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener rule. + * @export + * @interface ListenerRuleForCreation + */ +export interface ListenerRuleForCreation { + /** + * The type of action for the rule (always `forward`). + * @type {string} + * @memberof ListenerRuleForCreation + */ + action?: string; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof ListenerRuleForCreation + */ + hostNamePattern?: string; + /** + * A human-readable name for the listener rule. + * @type {string} + * @memberof ListenerRuleForCreation + */ + listenerRuleName: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof ListenerRuleForCreation + */ + pathPattern?: string; + /** + * The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. + * @type {number} + * @memberof ListenerRuleForCreation + */ + priority: number; +} +export declare function ListenerRuleForCreationFromJSON(json: any): ListenerRuleForCreation; +export declare function ListenerRuleForCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerRuleForCreation; +export declare function ListenerRuleForCreationToJSON(value?: ListenerRuleForCreation | null): any; diff --git a/dist/cjs/models/ListenerRuleForCreation.js b/dist/cjs/models/ListenerRuleForCreation.js new file mode 100644 index 00000000..be2d81c0 --- /dev/null +++ b/dist/cjs/models/ListenerRuleForCreation.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListenerRuleForCreationToJSON = exports.ListenerRuleForCreationFromJSONTyped = exports.ListenerRuleForCreationFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ListenerRuleForCreationFromJSON(json) { + return ListenerRuleForCreationFromJSONTyped(json, false); +} +exports.ListenerRuleForCreationFromJSON = ListenerRuleForCreationFromJSON; +function ListenerRuleForCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'action': !(0, runtime_1.exists)(json, 'Action') ? undefined : json['Action'], + 'hostNamePattern': !(0, runtime_1.exists)(json, 'HostNamePattern') ? undefined : json['HostNamePattern'], + 'listenerRuleName': json['ListenerRuleName'], + 'pathPattern': !(0, runtime_1.exists)(json, 'PathPattern') ? undefined : json['PathPattern'], + 'priority': json['Priority'], + }; +} +exports.ListenerRuleForCreationFromJSONTyped = ListenerRuleForCreationFromJSONTyped; +function ListenerRuleForCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Action': value.action, + 'HostNamePattern': value.hostNamePattern, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + 'Priority': value.priority, + }; +} +exports.ListenerRuleForCreationToJSON = ListenerRuleForCreationToJSON; diff --git a/dist/cjs/models/LoadBalancer.d.ts b/dist/cjs/models/LoadBalancer.d.ts new file mode 100644 index 00000000..e8c74d05 --- /dev/null +++ b/dist/cjs/models/LoadBalancer.d.ts @@ -0,0 +1,132 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessLog } from './AccessLog'; +import { ApplicationStickyCookiePolicy } from './ApplicationStickyCookiePolicy'; +import { HealthCheck } from './HealthCheck'; +import { Listener } from './Listener'; +import { LoadBalancerStickyCookiePolicy } from './LoadBalancerStickyCookiePolicy'; +import { ResourceTag } from './ResourceTag'; +import { SourceSecurityGroup } from './SourceSecurityGroup'; +/** + * Information about the load balancer. + * @export + * @interface LoadBalancer + */ +export interface LoadBalancer { + /** + * + * @type {AccessLog} + * @memberof LoadBalancer + */ + accessLog?: AccessLog; + /** + * The stickiness policies defined for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + applicationStickyCookiePolicies?: Array; + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof LoadBalancer + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + backendVmIds?: Array; + /** + * The DNS name of the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + dnsName?: string; + /** + * + * @type {HealthCheck} + * @memberof LoadBalancer + */ + healthCheck?: HealthCheck; + /** + * The listeners for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + listeners?: Array; + /** + * The name of the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + loadBalancerName?: string; + /** + * The policies defined for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + loadBalancerStickyCookiePolicies?: Array; + /** + * The type of load balancer. Valid only for load balancers in a Net.
+ * If `LoadBalancerType` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP.
+ * If `LoadBalancerType` is `internal`, the load balancer has a public DNS name that resolves to a private IP. + * @type {string} + * @memberof LoadBalancer + */ + loadBalancerType?: string; + /** + * The ID of the Net for the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + netId?: string; + /** + * (internet-facing only) The public IP associated with the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + publicIp?: string; + /** + * One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. + * @type {Array} + * @memberof LoadBalancer + */ + securityGroups?: Array; + /** + * + * @type {SourceSecurityGroup} + * @memberof LoadBalancer + */ + sourceSecurityGroup?: SourceSecurityGroup; + /** + * The ID of the Subnet in which the load balancer was created. + * @type {Array} + * @memberof LoadBalancer + */ + subnets?: Array; + /** + * The ID of the Subregion in which the load balancer was created. + * @type {Array} + * @memberof LoadBalancer + */ + subregionNames?: Array; + /** + * One or more tags associated with the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + tags?: Array; +} +export declare function LoadBalancerFromJSON(json: any): LoadBalancer; +export declare function LoadBalancerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancer; +export declare function LoadBalancerToJSON(value?: LoadBalancer | null): any; diff --git a/dist/cjs/models/LoadBalancer.js b/dist/cjs/models/LoadBalancer.js new file mode 100644 index 00000000..da9ccacd --- /dev/null +++ b/dist/cjs/models/LoadBalancer.js @@ -0,0 +1,81 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoadBalancerToJSON = exports.LoadBalancerFromJSONTyped = exports.LoadBalancerFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccessLog_1 = require("./AccessLog"); +const ApplicationStickyCookiePolicy_1 = require("./ApplicationStickyCookiePolicy"); +const HealthCheck_1 = require("./HealthCheck"); +const Listener_1 = require("./Listener"); +const LoadBalancerStickyCookiePolicy_1 = require("./LoadBalancerStickyCookiePolicy"); +const ResourceTag_1 = require("./ResourceTag"); +const SourceSecurityGroup_1 = require("./SourceSecurityGroup"); +function LoadBalancerFromJSON(json) { + return LoadBalancerFromJSONTyped(json, false); +} +exports.LoadBalancerFromJSON = LoadBalancerFromJSON; +function LoadBalancerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessLog': !(0, runtime_1.exists)(json, 'AccessLog') ? undefined : (0, AccessLog_1.AccessLogFromJSON)(json['AccessLog']), + 'applicationStickyCookiePolicies': !(0, runtime_1.exists)(json, 'ApplicationStickyCookiePolicies') ? undefined : (json['ApplicationStickyCookiePolicies'].map(ApplicationStickyCookiePolicy_1.ApplicationStickyCookiePolicyFromJSON)), + 'backendIps': !(0, runtime_1.exists)(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !(0, runtime_1.exists)(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dnsName': !(0, runtime_1.exists)(json, 'DnsName') ? undefined : json['DnsName'], + 'healthCheck': !(0, runtime_1.exists)(json, 'HealthCheck') ? undefined : (0, HealthCheck_1.HealthCheckFromJSON)(json['HealthCheck']), + 'listeners': !(0, runtime_1.exists)(json, 'Listeners') ? undefined : (json['Listeners'].map(Listener_1.ListenerFromJSON)), + 'loadBalancerName': !(0, runtime_1.exists)(json, 'LoadBalancerName') ? undefined : json['LoadBalancerName'], + 'loadBalancerStickyCookiePolicies': !(0, runtime_1.exists)(json, 'LoadBalancerStickyCookiePolicies') ? undefined : (json['LoadBalancerStickyCookiePolicies'].map(LoadBalancerStickyCookiePolicy_1.LoadBalancerStickyCookiePolicyFromJSON)), + 'loadBalancerType': !(0, runtime_1.exists)(json, 'LoadBalancerType') ? undefined : json['LoadBalancerType'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'sourceSecurityGroup': !(0, runtime_1.exists)(json, 'SourceSecurityGroup') ? undefined : (0, SourceSecurityGroup_1.SourceSecurityGroupFromJSON)(json['SourceSecurityGroup']), + 'subnets': !(0, runtime_1.exists)(json, 'Subnets') ? undefined : json['Subnets'], + 'subregionNames': !(0, runtime_1.exists)(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.LoadBalancerFromJSONTyped = LoadBalancerFromJSONTyped; +function LoadBalancerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessLog': (0, AccessLog_1.AccessLogToJSON)(value.accessLog), + 'ApplicationStickyCookiePolicies': value.applicationStickyCookiePolicies === undefined ? undefined : (value.applicationStickyCookiePolicies.map(ApplicationStickyCookiePolicy_1.ApplicationStickyCookiePolicyToJSON)), + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DnsName': value.dnsName, + 'HealthCheck': (0, HealthCheck_1.HealthCheckToJSON)(value.healthCheck), + 'Listeners': value.listeners === undefined ? undefined : (value.listeners.map(Listener_1.ListenerToJSON)), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerStickyCookiePolicies': value.loadBalancerStickyCookiePolicies === undefined ? undefined : (value.loadBalancerStickyCookiePolicies.map(LoadBalancerStickyCookiePolicy_1.LoadBalancerStickyCookiePolicyToJSON)), + 'LoadBalancerType': value.loadBalancerType, + 'NetId': value.netId, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'SourceSecurityGroup': (0, SourceSecurityGroup_1.SourceSecurityGroupToJSON)(value.sourceSecurityGroup), + 'Subnets': value.subnets, + 'SubregionNames': value.subregionNames, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.LoadBalancerToJSON = LoadBalancerToJSON; diff --git a/dist/cjs/models/LoadBalancerLight.d.ts b/dist/cjs/models/LoadBalancerLight.d.ts new file mode 100644 index 00000000..3e707f00 --- /dev/null +++ b/dist/cjs/models/LoadBalancerLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the load balancer. + * @export + * @interface LoadBalancerLight + */ +export interface LoadBalancerLight { + /** + * The name of the load balancer to which the listener is attached. + * @type {string} + * @memberof LoadBalancerLight + */ + loadBalancerName: string; + /** + * The port of load balancer on which the load balancer is listening (between `1` and `65535` both included). + * @type {number} + * @memberof LoadBalancerLight + */ + loadBalancerPort: number; +} +export declare function LoadBalancerLightFromJSON(json: any): LoadBalancerLight; +export declare function LoadBalancerLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerLight; +export declare function LoadBalancerLightToJSON(value?: LoadBalancerLight | null): any; diff --git a/dist/cjs/models/LoadBalancerLight.js b/dist/cjs/models/LoadBalancerLight.js new file mode 100644 index 00000000..cfb85f6a --- /dev/null +++ b/dist/cjs/models/LoadBalancerLight.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoadBalancerLightToJSON = exports.LoadBalancerLightFromJSONTyped = exports.LoadBalancerLightFromJSON = void 0; +function LoadBalancerLightFromJSON(json) { + return LoadBalancerLightFromJSONTyped(json, false); +} +exports.LoadBalancerLightFromJSON = LoadBalancerLightFromJSON; +function LoadBalancerLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPort': json['LoadBalancerPort'], + }; +} +exports.LoadBalancerLightFromJSONTyped = LoadBalancerLightFromJSONTyped; +function LoadBalancerLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPort': value.loadBalancerPort, + }; +} +exports.LoadBalancerLightToJSON = LoadBalancerLightToJSON; diff --git a/dist/cjs/models/LoadBalancerStickyCookiePolicy.d.ts b/dist/cjs/models/LoadBalancerStickyCookiePolicy.d.ts new file mode 100644 index 00000000..080b4af3 --- /dev/null +++ b/dist/cjs/models/LoadBalancerStickyCookiePolicy.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the stickiness policy. + * @export + * @interface LoadBalancerStickyCookiePolicy + */ +export interface LoadBalancerStickyCookiePolicy { + /** + * The time period, in seconds, after which the cookie should be considered stale.
+ * If `1`, the stickiness session lasts for the duration of the browser session. + * @type {number} + * @memberof LoadBalancerStickyCookiePolicy + */ + cookieExpirationPeriod?: number; + /** + * The name of the stickiness policy. + * @type {string} + * @memberof LoadBalancerStickyCookiePolicy + */ + policyName?: string; +} +export declare function LoadBalancerStickyCookiePolicyFromJSON(json: any): LoadBalancerStickyCookiePolicy; +export declare function LoadBalancerStickyCookiePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerStickyCookiePolicy; +export declare function LoadBalancerStickyCookiePolicyToJSON(value?: LoadBalancerStickyCookiePolicy | null): any; diff --git a/dist/cjs/models/LoadBalancerStickyCookiePolicy.js b/dist/cjs/models/LoadBalancerStickyCookiePolicy.js new file mode 100644 index 00000000..96e8d779 --- /dev/null +++ b/dist/cjs/models/LoadBalancerStickyCookiePolicy.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoadBalancerStickyCookiePolicyToJSON = exports.LoadBalancerStickyCookiePolicyFromJSONTyped = exports.LoadBalancerStickyCookiePolicyFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LoadBalancerStickyCookiePolicyFromJSON(json) { + return LoadBalancerStickyCookiePolicyFromJSONTyped(json, false); +} +exports.LoadBalancerStickyCookiePolicyFromJSON = LoadBalancerStickyCookiePolicyFromJSON; +function LoadBalancerStickyCookiePolicyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cookieExpirationPeriod': !(0, runtime_1.exists)(json, 'CookieExpirationPeriod') ? undefined : json['CookieExpirationPeriod'], + 'policyName': !(0, runtime_1.exists)(json, 'PolicyName') ? undefined : json['PolicyName'], + }; +} +exports.LoadBalancerStickyCookiePolicyFromJSONTyped = LoadBalancerStickyCookiePolicyFromJSONTyped; +function LoadBalancerStickyCookiePolicyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CookieExpirationPeriod': value.cookieExpirationPeriod, + 'PolicyName': value.policyName, + }; +} +exports.LoadBalancerStickyCookiePolicyToJSON = LoadBalancerStickyCookiePolicyToJSON; diff --git a/dist/cjs/models/LoadBalancerTag.d.ts b/dist/cjs/models/LoadBalancerTag.d.ts new file mode 100644 index 00000000..c58daf52 --- /dev/null +++ b/dist/cjs/models/LoadBalancerTag.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the load balancer tag. + * @export + * @interface LoadBalancerTag + */ +export interface LoadBalancerTag { + /** + * The key of the tag. + * @type {string} + * @memberof LoadBalancerTag + */ + key?: string; + /** + * The name of the load balancer. + * @type {string} + * @memberof LoadBalancerTag + */ + loadBalancerName?: string; + /** + * The value of the tag. + * @type {string} + * @memberof LoadBalancerTag + */ + value?: string; +} +export declare function LoadBalancerTagFromJSON(json: any): LoadBalancerTag; +export declare function LoadBalancerTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerTag; +export declare function LoadBalancerTagToJSON(value?: LoadBalancerTag | null): any; diff --git a/dist/cjs/models/LoadBalancerTag.js b/dist/cjs/models/LoadBalancerTag.js new file mode 100644 index 00000000..6b5e61d9 --- /dev/null +++ b/dist/cjs/models/LoadBalancerTag.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoadBalancerTagToJSON = exports.LoadBalancerTagFromJSONTyped = exports.LoadBalancerTagFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LoadBalancerTagFromJSON(json) { + return LoadBalancerTagFromJSONTyped(json, false); +} +exports.LoadBalancerTagFromJSON = LoadBalancerTagFromJSON; +function LoadBalancerTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': !(0, runtime_1.exists)(json, 'Key') ? undefined : json['Key'], + 'loadBalancerName': !(0, runtime_1.exists)(json, 'LoadBalancerName') ? undefined : json['LoadBalancerName'], + 'value': !(0, runtime_1.exists)(json, 'Value') ? undefined : json['Value'], + }; +} +exports.LoadBalancerTagFromJSONTyped = LoadBalancerTagFromJSONTyped; +function LoadBalancerTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + 'LoadBalancerName': value.loadBalancerName, + 'Value': value.value, + }; +} +exports.LoadBalancerTagToJSON = LoadBalancerTagToJSON; diff --git a/dist/cjs/models/Location.d.ts b/dist/cjs/models/Location.d.ts new file mode 100644 index 00000000..fda2e949 --- /dev/null +++ b/dist/cjs/models/Location.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink location. + * @export + * @interface Location + */ +export interface Location { + /** + * The location code, to be set as the `Location` parameter of the *CreateDirectLink* method when creating a DirectLink. + * @type {string} + * @memberof Location + */ + code?: string; + /** + * The name and description of the location, corresponding to a datacenter. + * @type {string} + * @memberof Location + */ + name?: string; +} +export declare function LocationFromJSON(json: any): Location; +export declare function LocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Location; +export declare function LocationToJSON(value?: Location | null): any; diff --git a/dist/cjs/models/Location.js b/dist/cjs/models/Location.js new file mode 100644 index 00000000..837fff05 --- /dev/null +++ b/dist/cjs/models/Location.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocationToJSON = exports.LocationFromJSONTyped = exports.LocationFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LocationFromJSON(json) { + return LocationFromJSONTyped(json, false); +} +exports.LocationFromJSON = LocationFromJSON; +function LocationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'code': !(0, runtime_1.exists)(json, 'Code') ? undefined : json['Code'], + 'name': !(0, runtime_1.exists)(json, 'Name') ? undefined : json['Name'], + }; +} +exports.LocationFromJSONTyped = LocationFromJSONTyped; +function LocationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Code': value.code, + 'Name': value.name, + }; +} +exports.LocationToJSON = LocationToJSON; diff --git a/dist/cjs/models/Log.d.ts b/dist/cjs/models/Log.d.ts new file mode 100644 index 00000000..6f1b4ba4 --- /dev/null +++ b/dist/cjs/models/Log.d.ts @@ -0,0 +1,117 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the log. + * @export + * @interface Log + */ +export interface Log { + /** + * The account ID of the logged call. + * @type {string} + * @memberof Log + */ + accountId?: string; + /** + * The duration of the logged call, in microseconds. + * @type {number} + * @memberof Log + */ + callDuration?: number; + /** + * The access key used for the logged call. + * @type {string} + * @memberof Log + */ + queryAccessKey?: string; + /** + * The name of the API used by the logged call (always `oapi` for the OUTSCALE API). + * @type {string} + * @memberof Log + */ + queryApiName?: string; + /** + * The version of the API used by the logged call. + * @type {string} + * @memberof Log + */ + queryApiVersion?: string; + /** + * The name of the logged call. + * @type {string} + * @memberof Log + */ + queryCallName?: string; + /** + * The date of the logged call, in ISO 8601 format. + * @type {Date} + * @memberof Log + */ + queryDate?: Date; + /** + * The raw header of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryHeaderRaw?: string; + /** + * The size of the raw header of the HTTP request of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + queryHeaderSize?: number; + /** + * The IP used for the logged call. + * @type {string} + * @memberof Log + */ + queryIpAddress?: string; + /** + * The raw payload of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryPayloadRaw?: string; + /** + * The size of the raw payload of the HTTP request of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + queryPayloadSize?: number; + /** + * The user agent of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryUserAgent?: string; + /** + * The request ID provided in the response of the logged call. + * @type {string} + * @memberof Log + */ + requestId?: string; + /** + * The size of the response of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + responseSize?: number; + /** + * The HTTP status code of the response of the logged call. + * @type {number} + * @memberof Log + */ + responseStatusCode?: number; +} +export declare function LogFromJSON(json: any): Log; +export declare function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log; +export declare function LogToJSON(value?: Log | null): any; diff --git a/dist/cjs/models/Log.js b/dist/cjs/models/Log.js new file mode 100644 index 00000000..165c5dc7 --- /dev/null +++ b/dist/cjs/models/Log.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LogToJSON = exports.LogFromJSONTyped = exports.LogFromJSON = void 0; +const runtime_1 = require("../runtime"); +function LogFromJSON(json) { + return LogFromJSONTyped(json, false); +} +exports.LogFromJSON = LogFromJSON; +function LogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'callDuration': !(0, runtime_1.exists)(json, 'CallDuration') ? undefined : json['CallDuration'], + 'queryAccessKey': !(0, runtime_1.exists)(json, 'QueryAccessKey') ? undefined : json['QueryAccessKey'], + 'queryApiName': !(0, runtime_1.exists)(json, 'QueryApiName') ? undefined : json['QueryApiName'], + 'queryApiVersion': !(0, runtime_1.exists)(json, 'QueryApiVersion') ? undefined : json['QueryApiVersion'], + 'queryCallName': !(0, runtime_1.exists)(json, 'QueryCallName') ? undefined : json['QueryCallName'], + 'queryDate': !(0, runtime_1.exists)(json, 'QueryDate') ? undefined : (new Date(json['QueryDate'])), + 'queryHeaderRaw': !(0, runtime_1.exists)(json, 'QueryHeaderRaw') ? undefined : json['QueryHeaderRaw'], + 'queryHeaderSize': !(0, runtime_1.exists)(json, 'QueryHeaderSize') ? undefined : json['QueryHeaderSize'], + 'queryIpAddress': !(0, runtime_1.exists)(json, 'QueryIpAddress') ? undefined : json['QueryIpAddress'], + 'queryPayloadRaw': !(0, runtime_1.exists)(json, 'QueryPayloadRaw') ? undefined : json['QueryPayloadRaw'], + 'queryPayloadSize': !(0, runtime_1.exists)(json, 'QueryPayloadSize') ? undefined : json['QueryPayloadSize'], + 'queryUserAgent': !(0, runtime_1.exists)(json, 'QueryUserAgent') ? undefined : json['QueryUserAgent'], + 'requestId': !(0, runtime_1.exists)(json, 'RequestId') ? undefined : json['RequestId'], + 'responseSize': !(0, runtime_1.exists)(json, 'ResponseSize') ? undefined : json['ResponseSize'], + 'responseStatusCode': !(0, runtime_1.exists)(json, 'ResponseStatusCode') ? undefined : json['ResponseStatusCode'], + }; +} +exports.LogFromJSONTyped = LogFromJSONTyped; +function LogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'CallDuration': value.callDuration, + 'QueryAccessKey': value.queryAccessKey, + 'QueryApiName': value.queryApiName, + 'QueryApiVersion': value.queryApiVersion, + 'QueryCallName': value.queryCallName, + 'QueryDate': value.queryDate === undefined ? undefined : (value.queryDate.toISOString().substr(0, 10)), + 'QueryHeaderRaw': value.queryHeaderRaw, + 'QueryHeaderSize': value.queryHeaderSize, + 'QueryIpAddress': value.queryIpAddress, + 'QueryPayloadRaw': value.queryPayloadRaw, + 'QueryPayloadSize': value.queryPayloadSize, + 'QueryUserAgent': value.queryUserAgent, + 'RequestId': value.requestId, + 'ResponseSize': value.responseSize, + 'ResponseStatusCode': value.responseStatusCode, + }; +} +exports.LogToJSON = LogToJSON; diff --git a/dist/cjs/models/MaintenanceEvent.d.ts b/dist/cjs/models/MaintenanceEvent.d.ts new file mode 100644 index 00000000..ea74396f --- /dev/null +++ b/dist/cjs/models/MaintenanceEvent.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the maintenance event. + * @export + * @interface MaintenanceEvent + */ +export interface MaintenanceEvent { + /** + * The code of the event (`system-reboot` \| `system-maintenance`). + * @type {string} + * @memberof MaintenanceEvent + */ + code?: string; + /** + * The description of the event. + * @type {string} + * @memberof MaintenanceEvent + */ + description?: string; + /** + * The latest scheduled end time for the event. + * @type {Date} + * @memberof MaintenanceEvent + */ + notAfter?: Date; + /** + * The earliest scheduled start time for the event. + * @type {Date} + * @memberof MaintenanceEvent + */ + notBefore?: Date; +} +export declare function MaintenanceEventFromJSON(json: any): MaintenanceEvent; +export declare function MaintenanceEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaintenanceEvent; +export declare function MaintenanceEventToJSON(value?: MaintenanceEvent | null): any; diff --git a/dist/cjs/models/MaintenanceEvent.js b/dist/cjs/models/MaintenanceEvent.js new file mode 100644 index 00000000..071bb4b8 --- /dev/null +++ b/dist/cjs/models/MaintenanceEvent.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MaintenanceEventToJSON = exports.MaintenanceEventFromJSONTyped = exports.MaintenanceEventFromJSON = void 0; +const runtime_1 = require("../runtime"); +function MaintenanceEventFromJSON(json) { + return MaintenanceEventFromJSONTyped(json, false); +} +exports.MaintenanceEventFromJSON = MaintenanceEventFromJSON; +function MaintenanceEventFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'code': !(0, runtime_1.exists)(json, 'Code') ? undefined : json['Code'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'notAfter': !(0, runtime_1.exists)(json, 'NotAfter') ? undefined : (new Date(json['NotAfter'])), + 'notBefore': !(0, runtime_1.exists)(json, 'NotBefore') ? undefined : (new Date(json['NotBefore'])), + }; +} +exports.MaintenanceEventFromJSONTyped = MaintenanceEventFromJSONTyped; +function MaintenanceEventToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Code': value.code, + 'Description': value.description, + 'NotAfter': value.notAfter === undefined ? undefined : (value.notAfter.toISOString().substr(0, 10)), + 'NotBefore': value.notBefore === undefined ? undefined : (value.notBefore.toISOString().substr(0, 10)), + }; +} +exports.MaintenanceEventToJSON = MaintenanceEventToJSON; diff --git a/dist/cjs/models/ModelResponseContext.d.ts b/dist/cjs/models/ModelResponseContext.d.ts new file mode 100644 index 00000000..79c8c24e --- /dev/null +++ b/dist/cjs/models/ModelResponseContext.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the context of the response. + * @export + * @interface ModelResponseContext + */ +export interface ModelResponseContext { + /** + * The ID of the request. + * @type {string} + * @memberof ModelResponseContext + */ + requestId?: string; +} +export declare function ModelResponseContextFromJSON(json: any): ModelResponseContext; +export declare function ModelResponseContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelResponseContext; +export declare function ModelResponseContextToJSON(value?: ModelResponseContext | null): any; diff --git a/dist/cjs/models/ModelResponseContext.js b/dist/cjs/models/ModelResponseContext.js new file mode 100644 index 00000000..80899a57 --- /dev/null +++ b/dist/cjs/models/ModelResponseContext.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModelResponseContextToJSON = exports.ModelResponseContextFromJSONTyped = exports.ModelResponseContextFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ModelResponseContextFromJSON(json) { + return ModelResponseContextFromJSONTyped(json, false); +} +exports.ModelResponseContextFromJSON = ModelResponseContextFromJSON; +function ModelResponseContextFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'requestId': !(0, runtime_1.exists)(json, 'RequestId') ? undefined : json['RequestId'], + }; +} +exports.ModelResponseContextFromJSONTyped = ModelResponseContextFromJSONTyped; +function ModelResponseContextToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'RequestId': value.requestId, + }; +} +exports.ModelResponseContextToJSON = ModelResponseContextToJSON; diff --git a/dist/cjs/models/NatService.d.ts b/dist/cjs/models/NatService.d.ts new file mode 100644 index 00000000..8c0af504 --- /dev/null +++ b/dist/cjs/models/NatService.d.ts @@ -0,0 +1,59 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PublicIpLight } from './PublicIpLight'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the NAT service. + * @export + * @interface NatService + */ +export interface NatService { + /** + * The ID of the NAT service. + * @type {string} + * @memberof NatService + */ + natServiceId?: string; + /** + * The ID of the Net in which the NAT service is. + * @type {string} + * @memberof NatService + */ + netId?: string; + /** + * Information about the public IP or IPs associated with the NAT service. + * @type {Array} + * @memberof NatService + */ + publicIps?: Array; + /** + * The state of the NAT service (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof NatService + */ + state?: string; + /** + * The ID of the Subnet in which the NAT service is. + * @type {string} + * @memberof NatService + */ + subnetId?: string; + /** + * One or more tags associated with the NAT service. + * @type {Array} + * @memberof NatService + */ + tags?: Array; +} +export declare function NatServiceFromJSON(json: any): NatService; +export declare function NatServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NatService; +export declare function NatServiceToJSON(value?: NatService | null): any; diff --git a/dist/cjs/models/NatService.js b/dist/cjs/models/NatService.js new file mode 100644 index 00000000..6d92920c --- /dev/null +++ b/dist/cjs/models/NatService.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NatServiceToJSON = exports.NatServiceFromJSONTyped = exports.NatServiceFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PublicIpLight_1 = require("./PublicIpLight"); +const ResourceTag_1 = require("./ResourceTag"); +function NatServiceFromJSON(json) { + return NatServiceFromJSONTyped(json, false); +} +exports.NatServiceFromJSON = NatServiceFromJSON; +function NatServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natServiceId': !(0, runtime_1.exists)(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'publicIps': !(0, runtime_1.exists)(json, 'PublicIps') ? undefined : (json['PublicIps'].map(PublicIpLight_1.PublicIpLightFromJSON)), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.NatServiceFromJSONTyped = NatServiceFromJSONTyped; +function NatServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatServiceId': value.natServiceId, + 'NetId': value.netId, + 'PublicIps': value.publicIps === undefined ? undefined : (value.publicIps.map(PublicIpLight_1.PublicIpLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.NatServiceToJSON = NatServiceToJSON; diff --git a/dist/cjs/models/Net.d.ts b/dist/cjs/models/Net.d.ts new file mode 100644 index 00000000..4179ea4e --- /dev/null +++ b/dist/cjs/models/Net.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Net. + * @export + * @interface Net + */ +export interface Net { + /** + * The ID of the DHCP options set (or `default` if you want to associate the default one). + * @type {string} + * @memberof Net + */ + dhcpOptionsSetId?: string; + /** + * The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof Net + */ + ipRange?: string; + /** + * The ID of the Net. + * @type {string} + * @memberof Net + */ + netId?: string; + /** + * The state of the Net (`pending` \| `available`). + * @type {string} + * @memberof Net + */ + state?: string; + /** + * One or more tags associated with the Net. + * @type {Array} + * @memberof Net + */ + tags?: Array; + /** + * The VM tenancy in a Net. + * @type {string} + * @memberof Net + */ + tenancy?: string; +} +export declare function NetFromJSON(json: any): Net; +export declare function NetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Net; +export declare function NetToJSON(value?: Net | null): any; diff --git a/dist/cjs/models/Net.js b/dist/cjs/models/Net.js new file mode 100644 index 00000000..92d2e728 --- /dev/null +++ b/dist/cjs/models/Net.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetToJSON = exports.NetFromJSONTyped = exports.NetFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function NetFromJSON(json) { + return NetFromJSONTyped(json, false); +} +exports.NetFromJSON = NetFromJSON; +function NetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetId': !(0, runtime_1.exists)(json, 'DhcpOptionsSetId') ? undefined : json['DhcpOptionsSetId'], + 'ipRange': !(0, runtime_1.exists)(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'tenancy': !(0, runtime_1.exists)(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} +exports.NetFromJSONTyped = NetFromJSONTyped; +function NetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'Tenancy': value.tenancy, + }; +} +exports.NetToJSON = NetToJSON; diff --git a/dist/cjs/models/NetAccessPoint.d.ts b/dist/cjs/models/NetAccessPoint.d.ts new file mode 100644 index 00000000..41785ba9 --- /dev/null +++ b/dist/cjs/models/NetAccessPoint.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Net access point. + * @export + * @interface NetAccessPoint + */ +export interface NetAccessPoint { + /** + * The ID of the Net access point. + * @type {string} + * @memberof NetAccessPoint + */ + netAccessPointId?: string; + /** + * The ID of the Net with which the Net access point is associated. + * @type {string} + * @memberof NetAccessPoint + */ + netId?: string; + /** + * The ID of the route tables associated with the Net access point. + * @type {Array} + * @memberof NetAccessPoint + */ + routeTableIds?: Array; + /** + * The name of the service with which the Net access point is associated. + * @type {string} + * @memberof NetAccessPoint + */ + serviceName?: string; + /** + * The state of the Net access point (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof NetAccessPoint + */ + state?: string; + /** + * One or more tags associated with the Net access point. + * @type {Array} + * @memberof NetAccessPoint + */ + tags?: Array; +} +export declare function NetAccessPointFromJSON(json: any): NetAccessPoint; +export declare function NetAccessPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetAccessPoint; +export declare function NetAccessPointToJSON(value?: NetAccessPoint | null): any; diff --git a/dist/cjs/models/NetAccessPoint.js b/dist/cjs/models/NetAccessPoint.js new file mode 100644 index 00000000..d9aba97e --- /dev/null +++ b/dist/cjs/models/NetAccessPoint.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetAccessPointToJSON = exports.NetAccessPointFromJSONTyped = exports.NetAccessPointFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function NetAccessPointFromJSON(json) { + return NetAccessPointFromJSONTyped(json, false); +} +exports.NetAccessPointFromJSON = NetAccessPointFromJSON; +function NetAccessPointFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPointId': !(0, runtime_1.exists)(json, 'NetAccessPointId') ? undefined : json['NetAccessPointId'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'routeTableIds': !(0, runtime_1.exists)(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'serviceName': !(0, runtime_1.exists)(json, 'ServiceName') ? undefined : json['ServiceName'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.NetAccessPointFromJSONTyped = NetAccessPointFromJSONTyped; +function NetAccessPointToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPointId': value.netAccessPointId, + 'NetId': value.netId, + 'RouteTableIds': value.routeTableIds, + 'ServiceName': value.serviceName, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.NetAccessPointToJSON = NetAccessPointToJSON; diff --git a/dist/cjs/models/NetPeering.d.ts b/dist/cjs/models/NetPeering.d.ts new file mode 100644 index 00000000..bcd46eb7 --- /dev/null +++ b/dist/cjs/models/NetPeering.d.ts @@ -0,0 +1,55 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccepterNet } from './AccepterNet'; +import { NetPeeringState } from './NetPeeringState'; +import { ResourceTag } from './ResourceTag'; +import { SourceNet } from './SourceNet'; +/** + * Information about the Net peering connection. + * @export + * @interface NetPeering + */ +export interface NetPeering { + /** + * + * @type {AccepterNet} + * @memberof NetPeering + */ + accepterNet?: AccepterNet; + /** + * The ID of the Net peering connection. + * @type {string} + * @memberof NetPeering + */ + netPeeringId?: string; + /** + * + * @type {SourceNet} + * @memberof NetPeering + */ + sourceNet?: SourceNet; + /** + * + * @type {NetPeeringState} + * @memberof NetPeering + */ + state?: NetPeeringState; + /** + * One or more tags associated with the Net peering connection. + * @type {Array} + * @memberof NetPeering + */ + tags?: Array; +} +export declare function NetPeeringFromJSON(json: any): NetPeering; +export declare function NetPeeringFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetPeering; +export declare function NetPeeringToJSON(value?: NetPeering | null): any; diff --git a/dist/cjs/models/NetPeering.js b/dist/cjs/models/NetPeering.js new file mode 100644 index 00000000..1f620fe6 --- /dev/null +++ b/dist/cjs/models/NetPeering.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetPeeringToJSON = exports.NetPeeringFromJSONTyped = exports.NetPeeringFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccepterNet_1 = require("./AccepterNet"); +const NetPeeringState_1 = require("./NetPeeringState"); +const ResourceTag_1 = require("./ResourceTag"); +const SourceNet_1 = require("./SourceNet"); +function NetPeeringFromJSON(json) { + return NetPeeringFromJSONTyped(json, false); +} +exports.NetPeeringFromJSON = NetPeeringFromJSON; +function NetPeeringFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accepterNet': !(0, runtime_1.exists)(json, 'AccepterNet') ? undefined : (0, AccepterNet_1.AccepterNetFromJSON)(json['AccepterNet']), + 'netPeeringId': !(0, runtime_1.exists)(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'sourceNet': !(0, runtime_1.exists)(json, 'SourceNet') ? undefined : (0, SourceNet_1.SourceNetFromJSON)(json['SourceNet']), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : (0, NetPeeringState_1.NetPeeringStateFromJSON)(json['State']), + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.NetPeeringFromJSONTyped = NetPeeringFromJSONTyped; +function NetPeeringToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccepterNet': (0, AccepterNet_1.AccepterNetToJSON)(value.accepterNet), + 'NetPeeringId': value.netPeeringId, + 'SourceNet': (0, SourceNet_1.SourceNetToJSON)(value.sourceNet), + 'State': (0, NetPeeringState_1.NetPeeringStateToJSON)(value.state), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.NetPeeringToJSON = NetPeeringToJSON; diff --git a/dist/cjs/models/NetPeeringState.d.ts b/dist/cjs/models/NetPeeringState.d.ts new file mode 100644 index 00000000..4c875bc7 --- /dev/null +++ b/dist/cjs/models/NetPeeringState.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the state of the Net peering connection. + * @export + * @interface NetPeeringState + */ +export interface NetPeeringState { + /** + * Additional information about the state of the Net peering connection. + * @type {string} + * @memberof NetPeeringState + */ + message?: string; + /** + * The state of the Net peering connection (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). + * @type {string} + * @memberof NetPeeringState + */ + name?: string; +} +export declare function NetPeeringStateFromJSON(json: any): NetPeeringState; +export declare function NetPeeringStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetPeeringState; +export declare function NetPeeringStateToJSON(value?: NetPeeringState | null): any; diff --git a/dist/cjs/models/NetPeeringState.js b/dist/cjs/models/NetPeeringState.js new file mode 100644 index 00000000..71fd11d7 --- /dev/null +++ b/dist/cjs/models/NetPeeringState.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetPeeringStateToJSON = exports.NetPeeringStateFromJSONTyped = exports.NetPeeringStateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function NetPeeringStateFromJSON(json) { + return NetPeeringStateFromJSONTyped(json, false); +} +exports.NetPeeringStateFromJSON = NetPeeringStateFromJSON; +function NetPeeringStateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'message': !(0, runtime_1.exists)(json, 'Message') ? undefined : json['Message'], + 'name': !(0, runtime_1.exists)(json, 'Name') ? undefined : json['Name'], + }; +} +exports.NetPeeringStateFromJSONTyped = NetPeeringStateFromJSONTyped; +function NetPeeringStateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Message': value.message, + 'Name': value.name, + }; +} +exports.NetPeeringStateToJSON = NetPeeringStateToJSON; diff --git a/dist/cjs/models/NetToVirtualGatewayLink.d.ts b/dist/cjs/models/NetToVirtualGatewayLink.d.ts new file mode 100644 index 00000000..8ff1bd8a --- /dev/null +++ b/dist/cjs/models/NetToVirtualGatewayLink.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the attachment. + * @export + * @interface NetToVirtualGatewayLink + */ +export interface NetToVirtualGatewayLink { + /** + * The ID of the Net to which the virtual gateway is attached. + * @type {string} + * @memberof NetToVirtualGatewayLink + */ + netId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof NetToVirtualGatewayLink + */ + state?: string; +} +export declare function NetToVirtualGatewayLinkFromJSON(json: any): NetToVirtualGatewayLink; +export declare function NetToVirtualGatewayLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetToVirtualGatewayLink; +export declare function NetToVirtualGatewayLinkToJSON(value?: NetToVirtualGatewayLink | null): any; diff --git a/dist/cjs/models/NetToVirtualGatewayLink.js b/dist/cjs/models/NetToVirtualGatewayLink.js new file mode 100644 index 00000000..96b900e6 --- /dev/null +++ b/dist/cjs/models/NetToVirtualGatewayLink.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetToVirtualGatewayLinkToJSON = exports.NetToVirtualGatewayLinkFromJSONTyped = exports.NetToVirtualGatewayLinkFromJSON = void 0; +const runtime_1 = require("../runtime"); +function NetToVirtualGatewayLinkFromJSON(json) { + return NetToVirtualGatewayLinkFromJSONTyped(json, false); +} +exports.NetToVirtualGatewayLinkFromJSON = NetToVirtualGatewayLinkFromJSON; +function NetToVirtualGatewayLinkFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + }; +} +exports.NetToVirtualGatewayLinkFromJSONTyped = NetToVirtualGatewayLinkFromJSONTyped; +function NetToVirtualGatewayLinkToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetId': value.netId, + 'State': value.state, + }; +} +exports.NetToVirtualGatewayLinkToJSON = NetToVirtualGatewayLinkToJSON; diff --git a/dist/cjs/models/Nic.d.ts b/dist/cjs/models/Nic.d.ts new file mode 100644 index 00000000..942472ca --- /dev/null +++ b/dist/cjs/models/Nic.d.ts @@ -0,0 +1,116 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkNic } from './LinkNic'; +import { LinkPublicIp } from './LinkPublicIp'; +import { PrivateIp } from './PrivateIp'; +import { ResourceTag } from './ResourceTag'; +import { SecurityGroupLight } from './SecurityGroupLight'; +/** + * Information about the NIC. + * @export + * @interface Nic + */ +export interface Nic { + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof Nic + */ + accountId?: string; + /** + * The description of the NIC. + * @type {string} + * @memberof Nic + */ + description?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof Nic + */ + isSourceDestChecked?: boolean; + /** + * + * @type {LinkNic} + * @memberof Nic + */ + linkNic?: LinkNic; + /** + * + * @type {LinkPublicIp} + * @memberof Nic + */ + linkPublicIp?: LinkPublicIp; + /** + * The Media Access Control (MAC) address of the NIC. + * @type {string} + * @memberof Nic + */ + macAddress?: string; + /** + * The ID of the Net for the NIC. + * @type {string} + * @memberof Nic + */ + netId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof Nic + */ + nicId?: string; + /** + * The name of the private DNS. + * @type {string} + * @memberof Nic + */ + privateDnsName?: string; + /** + * The private IPs of the NIC. + * @type {Array} + * @memberof Nic + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof Nic + */ + securityGroups?: Array; + /** + * The state of the NIC (`available` \| `attaching` \| `in-use` \| `detaching`). + * @type {string} + * @memberof Nic + */ + state?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof Nic + */ + subnetId?: string; + /** + * The Subregion in which the NIC is located. + * @type {string} + * @memberof Nic + */ + subregionName?: string; + /** + * One or more tags associated with the NIC. + * @type {Array} + * @memberof Nic + */ + tags?: Array; +} +export declare function NicFromJSON(json: any): Nic; +export declare function NicFromJSONTyped(json: any, ignoreDiscriminator: boolean): Nic; +export declare function NicToJSON(value?: Nic | null): any; diff --git a/dist/cjs/models/Nic.js b/dist/cjs/models/Nic.js new file mode 100644 index 00000000..77ab1240 --- /dev/null +++ b/dist/cjs/models/Nic.js @@ -0,0 +1,75 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NicToJSON = exports.NicFromJSONTyped = exports.NicFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkNic_1 = require("./LinkNic"); +const LinkPublicIp_1 = require("./LinkPublicIp"); +const PrivateIp_1 = require("./PrivateIp"); +const ResourceTag_1 = require("./ResourceTag"); +const SecurityGroupLight_1 = require("./SecurityGroupLight"); +function NicFromJSON(json) { + return NicFromJSONTyped(json, false); +} +exports.NicFromJSON = NicFromJSON; +function NicFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'isSourceDestChecked': !(0, runtime_1.exists)(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'linkNic': !(0, runtime_1.exists)(json, 'LinkNic') ? undefined : (0, LinkNic_1.LinkNicFromJSON)(json['LinkNic']), + 'linkPublicIp': !(0, runtime_1.exists)(json, 'LinkPublicIp') ? undefined : (0, LinkPublicIp_1.LinkPublicIpFromJSON)(json['LinkPublicIp']), + 'macAddress': !(0, runtime_1.exists)(json, 'MacAddress') ? undefined : json['MacAddress'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'privateDnsName': !(0, runtime_1.exists)(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIp_1.PrivateIpFromJSON)), + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupLight_1.SecurityGroupLightFromJSON)), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.NicFromJSONTyped = NicFromJSONTyped; +function NicToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'LinkNic': (0, LinkNic_1.LinkNicToJSON)(value.linkNic), + 'LinkPublicIp': (0, LinkPublicIp_1.LinkPublicIpToJSON)(value.linkPublicIp), + 'MacAddress': value.macAddress, + 'NetId': value.netId, + 'NicId': value.nicId, + 'PrivateDnsName': value.privateDnsName, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIp_1.PrivateIpToJSON)), + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupLight_1.SecurityGroupLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.NicToJSON = NicToJSON; diff --git a/dist/cjs/models/NicForVmCreation.d.ts b/dist/cjs/models/NicForVmCreation.d.ts new file mode 100644 index 00000000..682000ce --- /dev/null +++ b/dist/cjs/models/NicForVmCreation.d.ts @@ -0,0 +1,70 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PrivateIpLight } from './PrivateIpLight'; +/** + * Information about the network interface card (NIC) when creating a virtual machine (VM). + * @export + * @interface NicForVmCreation + */ +export interface NicForVmCreation { + /** + * If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see [UpdateNic](#updatenic). + * @type {boolean} + * @memberof NicForVmCreation + */ + deleteOnVmDeletion?: boolean; + /** + * The description of the NIC, if you are creating a NIC when creating the VM. + * @type {string} + * @memberof NicForVmCreation + */ + description?: string; + /** + * The index of the VM device for the NIC attachment (between 0 and 7, both included). This parameter is required if you create a NIC when creating the VM. + * @type {number} + * @memberof NicForVmCreation + */ + deviceNumber?: number; + /** + * The ID of the NIC, if you are attaching an existing NIC when creating a VM. + * @type {string} + * @memberof NicForVmCreation + */ + nicId?: string; + /** + * One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP. + * @type {Array} + * @memberof NicForVmCreation + */ + privateIps?: Array; + /** + * The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the `PrivateIps` parameter. + * @type {number} + * @memberof NicForVmCreation + */ + secondaryPrivateIpCount?: number; + /** + * One or more IDs of security groups for the NIC, if you create a NIC when creating a VM. + * @type {Array} + * @memberof NicForVmCreation + */ + securityGroupIds?: Array; + /** + * The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM. + * @type {string} + * @memberof NicForVmCreation + */ + subnetId?: string; +} +export declare function NicForVmCreationFromJSON(json: any): NicForVmCreation; +export declare function NicForVmCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NicForVmCreation; +export declare function NicForVmCreationToJSON(value?: NicForVmCreation | null): any; diff --git a/dist/cjs/models/NicForVmCreation.js b/dist/cjs/models/NicForVmCreation.js new file mode 100644 index 00000000..692069c6 --- /dev/null +++ b/dist/cjs/models/NicForVmCreation.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NicForVmCreationToJSON = exports.NicForVmCreationFromJSONTyped = exports.NicForVmCreationFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PrivateIpLight_1 = require("./PrivateIpLight"); +function NicForVmCreationFromJSON(json) { + return NicForVmCreationFromJSONTyped(json, false); +} +exports.NicForVmCreationFromJSON = NicForVmCreationFromJSON; +function NicForVmCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'deviceNumber': !(0, runtime_1.exists)(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpLight_1.PrivateIpLightFromJSON)), + 'secondaryPrivateIpCount': !(0, runtime_1.exists)(json, 'SecondaryPrivateIpCount') ? undefined : json['SecondaryPrivateIpCount'], + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} +exports.NicForVmCreationFromJSONTyped = NicForVmCreationFromJSONTyped; +function NicForVmCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'Description': value.description, + 'DeviceNumber': value.deviceNumber, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpLight_1.PrivateIpLightToJSON)), + 'SecondaryPrivateIpCount': value.secondaryPrivateIpCount, + 'SecurityGroupIds': value.securityGroupIds, + 'SubnetId': value.subnetId, + }; +} +exports.NicForVmCreationToJSON = NicForVmCreationToJSON; diff --git a/dist/cjs/models/NicLight.d.ts b/dist/cjs/models/NicLight.d.ts new file mode 100644 index 00000000..0b9e8b49 --- /dev/null +++ b/dist/cjs/models/NicLight.d.ts @@ -0,0 +1,103 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkNicLight } from './LinkNicLight'; +import { LinkPublicIpLightForVm } from './LinkPublicIpLightForVm'; +import { PrivateIpLightForVm } from './PrivateIpLightForVm'; +import { SecurityGroupLight } from './SecurityGroupLight'; +/** + * Information about the network interface card (NIC). + * @export + * @interface NicLight + */ +export interface NicLight { + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof NicLight + */ + accountId?: string; + /** + * The description of the NIC. + * @type {string} + * @memberof NicLight + */ + description?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof NicLight + */ + isSourceDestChecked?: boolean; + /** + * + * @type {LinkNicLight} + * @memberof NicLight + */ + linkNic?: LinkNicLight; + /** + * + * @type {LinkPublicIpLightForVm} + * @memberof NicLight + */ + linkPublicIp?: LinkPublicIpLightForVm; + /** + * The Media Access Control (MAC) address of the NIC. + * @type {string} + * @memberof NicLight + */ + macAddress?: string; + /** + * The ID of the Net for the NIC. + * @type {string} + * @memberof NicLight + */ + netId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof NicLight + */ + nicId?: string; + /** + * The name of the private DNS. + * @type {string} + * @memberof NicLight + */ + privateDnsName?: string; + /** + * The private IP or IPs of the NIC. + * @type {Array} + * @memberof NicLight + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof NicLight + */ + securityGroups?: Array; + /** + * The state of the NIC (`available` \| `attaching` \| `in-use` \| `detaching`). + * @type {string} + * @memberof NicLight + */ + state?: string; + /** + * The ID of the Subnet for the NIC. + * @type {string} + * @memberof NicLight + */ + subnetId?: string; +} +export declare function NicLightFromJSON(json: any): NicLight; +export declare function NicLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): NicLight; +export declare function NicLightToJSON(value?: NicLight | null): any; diff --git a/dist/cjs/models/NicLight.js b/dist/cjs/models/NicLight.js new file mode 100644 index 00000000..05502286 --- /dev/null +++ b/dist/cjs/models/NicLight.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NicLightToJSON = exports.NicLightFromJSONTyped = exports.NicLightFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkNicLight_1 = require("./LinkNicLight"); +const LinkPublicIpLightForVm_1 = require("./LinkPublicIpLightForVm"); +const PrivateIpLightForVm_1 = require("./PrivateIpLightForVm"); +const SecurityGroupLight_1 = require("./SecurityGroupLight"); +function NicLightFromJSON(json) { + return NicLightFromJSONTyped(json, false); +} +exports.NicLightFromJSON = NicLightFromJSON; +function NicLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'isSourceDestChecked': !(0, runtime_1.exists)(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'linkNic': !(0, runtime_1.exists)(json, 'LinkNic') ? undefined : (0, LinkNicLight_1.LinkNicLightFromJSON)(json['LinkNic']), + 'linkPublicIp': !(0, runtime_1.exists)(json, 'LinkPublicIp') ? undefined : (0, LinkPublicIpLightForVm_1.LinkPublicIpLightForVmFromJSON)(json['LinkPublicIp']), + 'macAddress': !(0, runtime_1.exists)(json, 'MacAddress') ? undefined : json['MacAddress'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'privateDnsName': !(0, runtime_1.exists)(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIps': !(0, runtime_1.exists)(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpLightForVm_1.PrivateIpLightForVmFromJSON)), + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupLight_1.SecurityGroupLightFromJSON)), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} +exports.NicLightFromJSONTyped = NicLightFromJSONTyped; +function NicLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'LinkNic': (0, LinkNicLight_1.LinkNicLightToJSON)(value.linkNic), + 'LinkPublicIp': (0, LinkPublicIpLightForVm_1.LinkPublicIpLightForVmToJSON)(value.linkPublicIp), + 'MacAddress': value.macAddress, + 'NetId': value.netId, + 'NicId': value.nicId, + 'PrivateDnsName': value.privateDnsName, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpLightForVm_1.PrivateIpLightForVmToJSON)), + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupLight_1.SecurityGroupLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + }; +} +exports.NicLightToJSON = NicLightToJSON; diff --git a/dist/cjs/models/OsuApiKey.d.ts b/dist/cjs/models/OsuApiKey.d.ts new file mode 100644 index 00000000..085d9a88 --- /dev/null +++ b/dist/cjs/models/OsuApiKey.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the OOS API key. + * @export + * @interface OsuApiKey + */ +export interface OsuApiKey { + /** + * The API key of the OOS account that enables you to access the bucket. + * @type {string} + * @memberof OsuApiKey + */ + apiKeyId?: string; + /** + * The secret key of the OOS account that enables you to access the bucket. + * @type {string} + * @memberof OsuApiKey + */ + secretKey?: string; +} +export declare function OsuApiKeyFromJSON(json: any): OsuApiKey; +export declare function OsuApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuApiKey; +export declare function OsuApiKeyToJSON(value?: OsuApiKey | null): any; diff --git a/dist/cjs/models/OsuApiKey.js b/dist/cjs/models/OsuApiKey.js new file mode 100644 index 00000000..e70aa052 --- /dev/null +++ b/dist/cjs/models/OsuApiKey.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OsuApiKeyToJSON = exports.OsuApiKeyFromJSONTyped = exports.OsuApiKeyFromJSON = void 0; +const runtime_1 = require("../runtime"); +function OsuApiKeyFromJSON(json) { + return OsuApiKeyFromJSONTyped(json, false); +} +exports.OsuApiKeyFromJSON = OsuApiKeyFromJSON; +function OsuApiKeyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiKeyId': !(0, runtime_1.exists)(json, 'ApiKeyId') ? undefined : json['ApiKeyId'], + 'secretKey': !(0, runtime_1.exists)(json, 'SecretKey') ? undefined : json['SecretKey'], + }; +} +exports.OsuApiKeyFromJSONTyped = OsuApiKeyFromJSONTyped; +function OsuApiKeyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiKeyId': value.apiKeyId, + 'SecretKey': value.secretKey, + }; +} +exports.OsuApiKeyToJSON = OsuApiKeyToJSON; diff --git a/dist/cjs/models/OsuExportImageExportTask.d.ts b/dist/cjs/models/OsuExportImageExportTask.d.ts new file mode 100644 index 00000000..72709068 --- /dev/null +++ b/dist/cjs/models/OsuExportImageExportTask.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the OMI export task. + * @export + * @interface OsuExportImageExportTask + */ +export interface OsuExportImageExportTask { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportImageExportTask + */ + diskImageFormat: string; + /** + * The name of the OOS bucket the OMI is exported to. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuBucket: string; + /** + * The URL of the manifest file. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuManifestUrl?: string; + /** + * The prefix for the key of the OOS object corresponding to the image. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuPrefix?: string; +} +export declare function OsuExportImageExportTaskFromJSON(json: any): OsuExportImageExportTask; +export declare function OsuExportImageExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportImageExportTask; +export declare function OsuExportImageExportTaskToJSON(value?: OsuExportImageExportTask | null): any; diff --git a/dist/cjs/models/OsuExportImageExportTask.js b/dist/cjs/models/OsuExportImageExportTask.js new file mode 100644 index 00000000..cae155ee --- /dev/null +++ b/dist/cjs/models/OsuExportImageExportTask.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OsuExportImageExportTaskToJSON = exports.OsuExportImageExportTaskFromJSONTyped = exports.OsuExportImageExportTaskFromJSON = void 0; +const runtime_1 = require("../runtime"); +function OsuExportImageExportTaskFromJSON(json) { + return OsuExportImageExportTaskFromJSONTyped(json, false); +} +exports.OsuExportImageExportTaskFromJSON = OsuExportImageExportTaskFromJSON; +function OsuExportImageExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'diskImageFormat': json['DiskImageFormat'], + 'osuBucket': json['OsuBucket'], + 'osuManifestUrl': !(0, runtime_1.exists)(json, 'OsuManifestUrl') ? undefined : json['OsuManifestUrl'], + 'osuPrefix': !(0, runtime_1.exists)(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} +exports.OsuExportImageExportTaskFromJSONTyped = OsuExportImageExportTaskFromJSONTyped; +function OsuExportImageExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DiskImageFormat': value.diskImageFormat, + 'OsuBucket': value.osuBucket, + 'OsuManifestUrl': value.osuManifestUrl, + 'OsuPrefix': value.osuPrefix, + }; +} +exports.OsuExportImageExportTaskToJSON = OsuExportImageExportTaskToJSON; diff --git a/dist/cjs/models/OsuExportSnapshotExportTask.d.ts b/dist/cjs/models/OsuExportSnapshotExportTask.d.ts new file mode 100644 index 00000000..0b13fe92 --- /dev/null +++ b/dist/cjs/models/OsuExportSnapshotExportTask.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the snapshot export task. + * @export + * @interface OsuExportSnapshotExportTask + */ +export interface OsuExportSnapshotExportTask { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + diskImageFormat: string; + /** + * The name of the OOS bucket the snapshot is exported to. + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + osuBucket: string; + /** + * The prefix for the key of the OOS object corresponding to the snapshot. + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + osuPrefix?: string; +} +export declare function OsuExportSnapshotExportTaskFromJSON(json: any): OsuExportSnapshotExportTask; +export declare function OsuExportSnapshotExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportSnapshotExportTask; +export declare function OsuExportSnapshotExportTaskToJSON(value?: OsuExportSnapshotExportTask | null): any; diff --git a/dist/cjs/models/OsuExportSnapshotExportTask.js b/dist/cjs/models/OsuExportSnapshotExportTask.js new file mode 100644 index 00000000..9865fc7d --- /dev/null +++ b/dist/cjs/models/OsuExportSnapshotExportTask.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OsuExportSnapshotExportTaskToJSON = exports.OsuExportSnapshotExportTaskFromJSONTyped = exports.OsuExportSnapshotExportTaskFromJSON = void 0; +const runtime_1 = require("../runtime"); +function OsuExportSnapshotExportTaskFromJSON(json) { + return OsuExportSnapshotExportTaskFromJSONTyped(json, false); +} +exports.OsuExportSnapshotExportTaskFromJSON = OsuExportSnapshotExportTaskFromJSON; +function OsuExportSnapshotExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'diskImageFormat': json['DiskImageFormat'], + 'osuBucket': json['OsuBucket'], + 'osuPrefix': !(0, runtime_1.exists)(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} +exports.OsuExportSnapshotExportTaskFromJSONTyped = OsuExportSnapshotExportTaskFromJSONTyped; +function OsuExportSnapshotExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DiskImageFormat': value.diskImageFormat, + 'OsuBucket': value.osuBucket, + 'OsuPrefix': value.osuPrefix, + }; +} +exports.OsuExportSnapshotExportTaskToJSON = OsuExportSnapshotExportTaskToJSON; diff --git a/dist/cjs/models/OsuExportToCreate.d.ts b/dist/cjs/models/OsuExportToCreate.d.ts new file mode 100644 index 00000000..2f143152 --- /dev/null +++ b/dist/cjs/models/OsuExportToCreate.d.ts @@ -0,0 +1,52 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuApiKey } from './OsuApiKey'; +/** + * Information about the OOS export task to create. + * @export + * @interface OsuExportToCreate + */ +export interface OsuExportToCreate { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportToCreate + */ + diskImageFormat: string; + /** + * + * @type {OsuApiKey} + * @memberof OsuExportToCreate + */ + osuApiKey?: OsuApiKey; + /** + * The name of the OOS bucket where you want to export the object. + * @type {string} + * @memberof OsuExportToCreate + */ + osuBucket: string; + /** + * The URL of the manifest file. + * @type {string} + * @memberof OsuExportToCreate + */ + osuManifestUrl?: string; + /** + * The prefix for the key of the OOS object. + * @type {string} + * @memberof OsuExportToCreate + */ + osuPrefix?: string; +} +export declare function OsuExportToCreateFromJSON(json: any): OsuExportToCreate; +export declare function OsuExportToCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportToCreate; +export declare function OsuExportToCreateToJSON(value?: OsuExportToCreate | null): any; diff --git a/dist/cjs/models/OsuExportToCreate.js b/dist/cjs/models/OsuExportToCreate.js new file mode 100644 index 00000000..ec2c83ab --- /dev/null +++ b/dist/cjs/models/OsuExportToCreate.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OsuExportToCreateToJSON = exports.OsuExportToCreateFromJSONTyped = exports.OsuExportToCreateFromJSON = void 0; +const runtime_1 = require("../runtime"); +const OsuApiKey_1 = require("./OsuApiKey"); +function OsuExportToCreateFromJSON(json) { + return OsuExportToCreateFromJSONTyped(json, false); +} +exports.OsuExportToCreateFromJSON = OsuExportToCreateFromJSON; +function OsuExportToCreateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'diskImageFormat': json['DiskImageFormat'], + 'osuApiKey': !(0, runtime_1.exists)(json, 'OsuApiKey') ? undefined : (0, OsuApiKey_1.OsuApiKeyFromJSON)(json['OsuApiKey']), + 'osuBucket': json['OsuBucket'], + 'osuManifestUrl': !(0, runtime_1.exists)(json, 'OsuManifestUrl') ? undefined : json['OsuManifestUrl'], + 'osuPrefix': !(0, runtime_1.exists)(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} +exports.OsuExportToCreateFromJSONTyped = OsuExportToCreateFromJSONTyped; +function OsuExportToCreateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DiskImageFormat': value.diskImageFormat, + 'OsuApiKey': (0, OsuApiKey_1.OsuApiKeyToJSON)(value.osuApiKey), + 'OsuBucket': value.osuBucket, + 'OsuManifestUrl': value.osuManifestUrl, + 'OsuPrefix': value.osuPrefix, + }; +} +exports.OsuExportToCreateToJSON = OsuExportToCreateToJSON; diff --git a/dist/cjs/models/PermissionsOnResource.d.ts b/dist/cjs/models/PermissionsOnResource.d.ts new file mode 100644 index 00000000..21880b08 --- /dev/null +++ b/dist/cjs/models/PermissionsOnResource.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the users who have permissions for the resource. + * @export + * @interface PermissionsOnResource + */ +export interface PermissionsOnResource { + /** + * The account ID of one or more users who have permissions for the resource. + * @type {Array} + * @memberof PermissionsOnResource + */ + accountIds?: Array; + /** + * If true, the resource is public. If false, the resource is private. + * @type {boolean} + * @memberof PermissionsOnResource + */ + globalPermission?: boolean; +} +export declare function PermissionsOnResourceFromJSON(json: any): PermissionsOnResource; +export declare function PermissionsOnResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionsOnResource; +export declare function PermissionsOnResourceToJSON(value?: PermissionsOnResource | null): any; diff --git a/dist/cjs/models/PermissionsOnResource.js b/dist/cjs/models/PermissionsOnResource.js new file mode 100644 index 00000000..6bcfbcbe --- /dev/null +++ b/dist/cjs/models/PermissionsOnResource.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermissionsOnResourceToJSON = exports.PermissionsOnResourceFromJSONTyped = exports.PermissionsOnResourceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function PermissionsOnResourceFromJSON(json) { + return PermissionsOnResourceFromJSONTyped(json, false); +} +exports.PermissionsOnResourceFromJSON = PermissionsOnResourceFromJSON; +function PermissionsOnResourceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountIds': !(0, runtime_1.exists)(json, 'AccountIds') ? undefined : json['AccountIds'], + 'globalPermission': !(0, runtime_1.exists)(json, 'GlobalPermission') ? undefined : json['GlobalPermission'], + }; +} +exports.PermissionsOnResourceFromJSONTyped = PermissionsOnResourceFromJSONTyped; +function PermissionsOnResourceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountIds': value.accountIds, + 'GlobalPermission': value.globalPermission, + }; +} +exports.PermissionsOnResourceToJSON = PermissionsOnResourceToJSON; diff --git a/dist/cjs/models/PermissionsOnResourceCreation.d.ts b/dist/cjs/models/PermissionsOnResourceCreation.d.ts new file mode 100644 index 00000000..405a0e9b --- /dev/null +++ b/dist/cjs/models/PermissionsOnResourceCreation.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResource } from './PermissionsOnResource'; +/** + * Information about the permissions for the resource. + * @export + * @interface PermissionsOnResourceCreation + */ +export interface PermissionsOnResourceCreation { + /** + * + * @type {PermissionsOnResource} + * @memberof PermissionsOnResourceCreation + */ + additions?: PermissionsOnResource; + /** + * + * @type {PermissionsOnResource} + * @memberof PermissionsOnResourceCreation + */ + removals?: PermissionsOnResource; +} +export declare function PermissionsOnResourceCreationFromJSON(json: any): PermissionsOnResourceCreation; +export declare function PermissionsOnResourceCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionsOnResourceCreation; +export declare function PermissionsOnResourceCreationToJSON(value?: PermissionsOnResourceCreation | null): any; diff --git a/dist/cjs/models/PermissionsOnResourceCreation.js b/dist/cjs/models/PermissionsOnResourceCreation.js new file mode 100644 index 00000000..ab17ed22 --- /dev/null +++ b/dist/cjs/models/PermissionsOnResourceCreation.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermissionsOnResourceCreationToJSON = exports.PermissionsOnResourceCreationFromJSONTyped = exports.PermissionsOnResourceCreationFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PermissionsOnResource_1 = require("./PermissionsOnResource"); +function PermissionsOnResourceCreationFromJSON(json) { + return PermissionsOnResourceCreationFromJSONTyped(json, false); +} +exports.PermissionsOnResourceCreationFromJSON = PermissionsOnResourceCreationFromJSON; +function PermissionsOnResourceCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'additions': !(0, runtime_1.exists)(json, 'Additions') ? undefined : (0, PermissionsOnResource_1.PermissionsOnResourceFromJSON)(json['Additions']), + 'removals': !(0, runtime_1.exists)(json, 'Removals') ? undefined : (0, PermissionsOnResource_1.PermissionsOnResourceFromJSON)(json['Removals']), + }; +} +exports.PermissionsOnResourceCreationFromJSONTyped = PermissionsOnResourceCreationFromJSONTyped; +function PermissionsOnResourceCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Additions': (0, PermissionsOnResource_1.PermissionsOnResourceToJSON)(value.additions), + 'Removals': (0, PermissionsOnResource_1.PermissionsOnResourceToJSON)(value.removals), + }; +} +exports.PermissionsOnResourceCreationToJSON = PermissionsOnResourceCreationToJSON; diff --git a/dist/cjs/models/Phase1Options.d.ts b/dist/cjs/models/Phase1Options.d.ts new file mode 100644 index 00000000..e69c9c27 --- /dev/null +++ b/dist/cjs/models/Phase1Options.d.ts @@ -0,0 +1,75 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about Phase 1 of the Internet Key Exchange (IKE) negotiation. When Phase 1 finishes successfully, peers proceed to Phase 2 negotiations. + * @export + * @interface Phase1Options + */ +export interface Phase1Options { + /** + * The action to carry out after a Dead Peer Detection (DPD) timeout occurs. + * @type {string} + * @memberof Phase1Options + */ + dpdTimeoutAction?: string; + /** + * The maximum waiting time for a Dead Peer Detection (DPD) response before considering the peer as dead, in seconds. + * @type {number} + * @memberof Phase1Options + */ + dpdTimeoutSeconds?: number; + /** + * The Internet Key Exchange (IKE) versions allowed for the VPN tunnel. + * @type {Array} + * @memberof Phase1Options + */ + ikeVersions?: Array; + /** + * The Diffie-Hellman (DH) group numbers allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1DhGroupNumbers?: Array; + /** + * The encryption algorithms allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1EncryptionAlgorithms?: Array; + /** + * The integrity algorithms allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1IntegrityAlgorithms?: Array; + /** + * The lifetime for phase 1 of the IKE negotiation process, in seconds. + * @type {number} + * @memberof Phase1Options + */ + phase1LifetimeSeconds?: number; + /** + * The number of packets in an IKE replay window. + * @type {number} + * @memberof Phase1Options + */ + replayWindowSize?: number; + /** + * The action to carry out when establishing tunnels for a VPN connection. + * @type {string} + * @memberof Phase1Options + */ + startupAction?: string; +} +export declare function Phase1OptionsFromJSON(json: any): Phase1Options; +export declare function Phase1OptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phase1Options; +export declare function Phase1OptionsToJSON(value?: Phase1Options | null): any; diff --git a/dist/cjs/models/Phase1Options.js b/dist/cjs/models/Phase1Options.js new file mode 100644 index 00000000..8e751bde --- /dev/null +++ b/dist/cjs/models/Phase1Options.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Phase1OptionsToJSON = exports.Phase1OptionsFromJSONTyped = exports.Phase1OptionsFromJSON = void 0; +const runtime_1 = require("../runtime"); +function Phase1OptionsFromJSON(json) { + return Phase1OptionsFromJSONTyped(json, false); +} +exports.Phase1OptionsFromJSON = Phase1OptionsFromJSON; +function Phase1OptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dpdTimeoutAction': !(0, runtime_1.exists)(json, 'DpdTimeoutAction') ? undefined : json['DpdTimeoutAction'], + 'dpdTimeoutSeconds': !(0, runtime_1.exists)(json, 'DpdTimeoutSeconds') ? undefined : json['DpdTimeoutSeconds'], + 'ikeVersions': !(0, runtime_1.exists)(json, 'IkeVersions') ? undefined : json['IkeVersions'], + 'phase1DhGroupNumbers': !(0, runtime_1.exists)(json, 'Phase1DhGroupNumbers') ? undefined : json['Phase1DhGroupNumbers'], + 'phase1EncryptionAlgorithms': !(0, runtime_1.exists)(json, 'Phase1EncryptionAlgorithms') ? undefined : json['Phase1EncryptionAlgorithms'], + 'phase1IntegrityAlgorithms': !(0, runtime_1.exists)(json, 'Phase1IntegrityAlgorithms') ? undefined : json['Phase1IntegrityAlgorithms'], + 'phase1LifetimeSeconds': !(0, runtime_1.exists)(json, 'Phase1LifetimeSeconds') ? undefined : json['Phase1LifetimeSeconds'], + 'replayWindowSize': !(0, runtime_1.exists)(json, 'ReplayWindowSize') ? undefined : json['ReplayWindowSize'], + 'startupAction': !(0, runtime_1.exists)(json, 'StartupAction') ? undefined : json['StartupAction'], + }; +} +exports.Phase1OptionsFromJSONTyped = Phase1OptionsFromJSONTyped; +function Phase1OptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DpdTimeoutAction': value.dpdTimeoutAction, + 'DpdTimeoutSeconds': value.dpdTimeoutSeconds, + 'IkeVersions': value.ikeVersions, + 'Phase1DhGroupNumbers': value.phase1DhGroupNumbers, + 'Phase1EncryptionAlgorithms': value.phase1EncryptionAlgorithms, + 'Phase1IntegrityAlgorithms': value.phase1IntegrityAlgorithms, + 'Phase1LifetimeSeconds': value.phase1LifetimeSeconds, + 'ReplayWindowSize': value.replayWindowSize, + 'StartupAction': value.startupAction, + }; +} +exports.Phase1OptionsToJSON = Phase1OptionsToJSON; diff --git a/dist/cjs/models/Phase2Options.d.ts b/dist/cjs/models/Phase2Options.d.ts new file mode 100644 index 00000000..2b4ca333 --- /dev/null +++ b/dist/cjs/models/Phase2Options.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about Phase 2 of the Internet Key Exchange (IKE) negotiation. + * @export + * @interface Phase2Options + */ +export interface Phase2Options { + /** + * The Diffie-Hellman (DH) group numbers allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2DhGroupNumbers?: Array; + /** + * The encryption algorithms allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2EncryptionAlgorithms?: Array; + /** + * The integrity algorithms allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2IntegrityAlgorithms?: Array; + /** + * The lifetime for phase 2 of the Internet Key Exchange (IKE) negociation process, in seconds. + * @type {number} + * @memberof Phase2Options + */ + phase2LifetimeSeconds?: number; + /** + * The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes ("). + * @type {string} + * @memberof Phase2Options + */ + preSharedKey?: string; +} +export declare function Phase2OptionsFromJSON(json: any): Phase2Options; +export declare function Phase2OptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phase2Options; +export declare function Phase2OptionsToJSON(value?: Phase2Options | null): any; diff --git a/dist/cjs/models/Phase2Options.js b/dist/cjs/models/Phase2Options.js new file mode 100644 index 00000000..87fb32bc --- /dev/null +++ b/dist/cjs/models/Phase2Options.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Phase2OptionsToJSON = exports.Phase2OptionsFromJSONTyped = exports.Phase2OptionsFromJSON = void 0; +const runtime_1 = require("../runtime"); +function Phase2OptionsFromJSON(json) { + return Phase2OptionsFromJSONTyped(json, false); +} +exports.Phase2OptionsFromJSON = Phase2OptionsFromJSON; +function Phase2OptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'phase2DhGroupNumbers': !(0, runtime_1.exists)(json, 'Phase2DhGroupNumbers') ? undefined : json['Phase2DhGroupNumbers'], + 'phase2EncryptionAlgorithms': !(0, runtime_1.exists)(json, 'Phase2EncryptionAlgorithms') ? undefined : json['Phase2EncryptionAlgorithms'], + 'phase2IntegrityAlgorithms': !(0, runtime_1.exists)(json, 'Phase2IntegrityAlgorithms') ? undefined : json['Phase2IntegrityAlgorithms'], + 'phase2LifetimeSeconds': !(0, runtime_1.exists)(json, 'Phase2LifetimeSeconds') ? undefined : json['Phase2LifetimeSeconds'], + 'preSharedKey': !(0, runtime_1.exists)(json, 'PreSharedKey') ? undefined : json['PreSharedKey'], + }; +} +exports.Phase2OptionsFromJSONTyped = Phase2OptionsFromJSONTyped; +function Phase2OptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Phase2DhGroupNumbers': value.phase2DhGroupNumbers, + 'Phase2EncryptionAlgorithms': value.phase2EncryptionAlgorithms, + 'Phase2IntegrityAlgorithms': value.phase2IntegrityAlgorithms, + 'Phase2LifetimeSeconds': value.phase2LifetimeSeconds, + 'PreSharedKey': value.preSharedKey, + }; +} +exports.Phase2OptionsToJSON = Phase2OptionsToJSON; diff --git a/dist/cjs/models/Placement.d.ts b/dist/cjs/models/Placement.d.ts new file mode 100644 index 00000000..0b3f8e2e --- /dev/null +++ b/dist/cjs/models/Placement.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the placement of the VM. + * @export + * @interface Placement + */ +export interface Placement { + /** + * The name of the Subregion. If you specify this parameter, you must not specify the `Nics` parameter. + * @type {string} + * @memberof Placement + */ + subregionName?: string; + /** + * The tenancy of the VM (`default` \| `dedicated`). + * @type {string} + * @memberof Placement + */ + tenancy?: string; +} +export declare function PlacementFromJSON(json: any): Placement; +export declare function PlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Placement; +export declare function PlacementToJSON(value?: Placement | null): any; diff --git a/dist/cjs/models/Placement.js b/dist/cjs/models/Placement.js new file mode 100644 index 00000000..1452dce5 --- /dev/null +++ b/dist/cjs/models/Placement.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PlacementToJSON = exports.PlacementFromJSONTyped = exports.PlacementFromJSON = void 0; +const runtime_1 = require("../runtime"); +function PlacementFromJSON(json) { + return PlacementFromJSONTyped(json, false); +} +exports.PlacementFromJSON = PlacementFromJSON; +function PlacementFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tenancy': !(0, runtime_1.exists)(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} +exports.PlacementFromJSONTyped = PlacementFromJSONTyped; +function PlacementToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SubregionName': value.subregionName, + 'Tenancy': value.tenancy, + }; +} +exports.PlacementToJSON = PlacementToJSON; diff --git a/dist/cjs/models/PrivateIp.d.ts b/dist/cjs/models/PrivateIp.d.ts new file mode 100644 index 00000000..273480ca --- /dev/null +++ b/dist/cjs/models/PrivateIp.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkPublicIp } from './LinkPublicIp'; +/** + * Information about the private IP. + * @export + * @interface PrivateIp + */ +export interface PrivateIp { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIp + */ + isPrimary?: boolean; + /** + * + * @type {LinkPublicIp} + * @memberof PrivateIp + */ + linkPublicIp?: LinkPublicIp; + /** + * The name of the private DNS. + * @type {string} + * @memberof PrivateIp + */ + privateDnsName?: string; + /** + * The private IP of the NIC. + * @type {string} + * @memberof PrivateIp + */ + privateIp?: string; +} +export declare function PrivateIpFromJSON(json: any): PrivateIp; +export declare function PrivateIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIp; +export declare function PrivateIpToJSON(value?: PrivateIp | null): any; diff --git a/dist/cjs/models/PrivateIp.js b/dist/cjs/models/PrivateIp.js new file mode 100644 index 00000000..7dd8a880 --- /dev/null +++ b/dist/cjs/models/PrivateIp.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PrivateIpToJSON = exports.PrivateIpFromJSONTyped = exports.PrivateIpFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkPublicIp_1 = require("./LinkPublicIp"); +function PrivateIpFromJSON(json) { + return PrivateIpFromJSONTyped(json, false); +} +exports.PrivateIpFromJSON = PrivateIpFromJSON; +function PrivateIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isPrimary': !(0, runtime_1.exists)(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'linkPublicIp': !(0, runtime_1.exists)(json, 'LinkPublicIp') ? undefined : (0, LinkPublicIp_1.LinkPublicIpFromJSON)(json['LinkPublicIp']), + 'privateDnsName': !(0, runtime_1.exists)(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !(0, runtime_1.exists)(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} +exports.PrivateIpFromJSONTyped = PrivateIpFromJSONTyped; +function PrivateIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsPrimary': value.isPrimary, + 'LinkPublicIp': (0, LinkPublicIp_1.LinkPublicIpToJSON)(value.linkPublicIp), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + }; +} +exports.PrivateIpToJSON = PrivateIpToJSON; diff --git a/dist/cjs/models/PrivateIpLight.d.ts b/dist/cjs/models/PrivateIpLight.d.ts new file mode 100644 index 00000000..73d2efa1 --- /dev/null +++ b/dist/cjs/models/PrivateIpLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the private IP. + * @export + * @interface PrivateIpLight + */ +export interface PrivateIpLight { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIpLight + */ + isPrimary?: boolean; + /** + * The private IP of the NIC. + * @type {string} + * @memberof PrivateIpLight + */ + privateIp?: string; +} +export declare function PrivateIpLightFromJSON(json: any): PrivateIpLight; +export declare function PrivateIpLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIpLight; +export declare function PrivateIpLightToJSON(value?: PrivateIpLight | null): any; diff --git a/dist/cjs/models/PrivateIpLight.js b/dist/cjs/models/PrivateIpLight.js new file mode 100644 index 00000000..7ea24bb8 --- /dev/null +++ b/dist/cjs/models/PrivateIpLight.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PrivateIpLightToJSON = exports.PrivateIpLightFromJSONTyped = exports.PrivateIpLightFromJSON = void 0; +const runtime_1 = require("../runtime"); +function PrivateIpLightFromJSON(json) { + return PrivateIpLightFromJSONTyped(json, false); +} +exports.PrivateIpLightFromJSON = PrivateIpLightFromJSON; +function PrivateIpLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isPrimary': !(0, runtime_1.exists)(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'privateIp': !(0, runtime_1.exists)(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} +exports.PrivateIpLightFromJSONTyped = PrivateIpLightFromJSONTyped; +function PrivateIpLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsPrimary': value.isPrimary, + 'PrivateIp': value.privateIp, + }; +} +exports.PrivateIpLightToJSON = PrivateIpLightToJSON; diff --git a/dist/cjs/models/PrivateIpLightForVm.d.ts b/dist/cjs/models/PrivateIpLightForVm.d.ts new file mode 100644 index 00000000..fbc931a6 --- /dev/null +++ b/dist/cjs/models/PrivateIpLightForVm.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkPublicIpLightForVm } from './LinkPublicIpLightForVm'; +/** + * Information about the private IP of the NIC. + * @export + * @interface PrivateIpLightForVm + */ +export interface PrivateIpLightForVm { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIpLightForVm + */ + isPrimary?: boolean; + /** + * + * @type {LinkPublicIpLightForVm} + * @memberof PrivateIpLightForVm + */ + linkPublicIp?: LinkPublicIpLightForVm; + /** + * The name of the private DNS. + * @type {string} + * @memberof PrivateIpLightForVm + */ + privateDnsName?: string; + /** + * The private IP. + * @type {string} + * @memberof PrivateIpLightForVm + */ + privateIp?: string; +} +export declare function PrivateIpLightForVmFromJSON(json: any): PrivateIpLightForVm; +export declare function PrivateIpLightForVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIpLightForVm; +export declare function PrivateIpLightForVmToJSON(value?: PrivateIpLightForVm | null): any; diff --git a/dist/cjs/models/PrivateIpLightForVm.js b/dist/cjs/models/PrivateIpLightForVm.js new file mode 100644 index 00000000..36a51de0 --- /dev/null +++ b/dist/cjs/models/PrivateIpLightForVm.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PrivateIpLightForVmToJSON = exports.PrivateIpLightForVmFromJSONTyped = exports.PrivateIpLightForVmFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkPublicIpLightForVm_1 = require("./LinkPublicIpLightForVm"); +function PrivateIpLightForVmFromJSON(json) { + return PrivateIpLightForVmFromJSONTyped(json, false); +} +exports.PrivateIpLightForVmFromJSON = PrivateIpLightForVmFromJSON; +function PrivateIpLightForVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isPrimary': !(0, runtime_1.exists)(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'linkPublicIp': !(0, runtime_1.exists)(json, 'LinkPublicIp') ? undefined : (0, LinkPublicIpLightForVm_1.LinkPublicIpLightForVmFromJSON)(json['LinkPublicIp']), + 'privateDnsName': !(0, runtime_1.exists)(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !(0, runtime_1.exists)(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} +exports.PrivateIpLightForVmFromJSONTyped = PrivateIpLightForVmFromJSONTyped; +function PrivateIpLightForVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsPrimary': value.isPrimary, + 'LinkPublicIp': (0, LinkPublicIpLightForVm_1.LinkPublicIpLightForVmToJSON)(value.linkPublicIp), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + }; +} +exports.PrivateIpLightForVmToJSON = PrivateIpLightForVmToJSON; diff --git a/dist/cjs/models/ProductType.d.ts b/dist/cjs/models/ProductType.d.ts new file mode 100644 index 00000000..9caacb36 --- /dev/null +++ b/dist/cjs/models/ProductType.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the product type. + * @export + * @interface ProductType + */ +export interface ProductType { + /** + * The description of the product type. + * @type {string} + * @memberof ProductType + */ + description?: string; + /** + * The ID of the product type. + * @type {string} + * @memberof ProductType + */ + productTypeId?: string; + /** + * The vendor of the product type. + * @type {string} + * @memberof ProductType + */ + vendor?: string; +} +export declare function ProductTypeFromJSON(json: any): ProductType; +export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType; +export declare function ProductTypeToJSON(value?: ProductType | null): any; diff --git a/dist/cjs/models/ProductType.js b/dist/cjs/models/ProductType.js new file mode 100644 index 00000000..92d274c7 --- /dev/null +++ b/dist/cjs/models/ProductType.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ProductTypeFromJSON(json) { + return ProductTypeFromJSONTyped(json, false); +} +exports.ProductTypeFromJSON = ProductTypeFromJSON; +function ProductTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'productTypeId': !(0, runtime_1.exists)(json, 'ProductTypeId') ? undefined : json['ProductTypeId'], + 'vendor': !(0, runtime_1.exists)(json, 'Vendor') ? undefined : json['Vendor'], + }; +} +exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped; +function ProductTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'ProductTypeId': value.productTypeId, + 'Vendor': value.vendor, + }; +} +exports.ProductTypeToJSON = ProductTypeToJSON; diff --git a/dist/cjs/models/PublicIp.d.ts b/dist/cjs/models/PublicIp.d.ts new file mode 100644 index 00000000..8529ab5d --- /dev/null +++ b/dist/cjs/models/PublicIp.d.ts @@ -0,0 +1,70 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the public IP. + * @export + * @interface PublicIp + */ +export interface PublicIp { + /** + * (Required in a Net) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof PublicIp + */ + linkPublicIpId?: string; + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof PublicIp + */ + nicAccountId?: string; + /** + * The ID of the NIC the public IP is associated with (if any). + * @type {string} + * @memberof PublicIp + */ + nicId?: string; + /** + * The private IP associated with the public IP. + * @type {string} + * @memberof PublicIp + */ + privateIp?: string; + /** + * The public IP. + * @type {string} + * @memberof PublicIp + */ + publicIp?: string; + /** + * The allocation ID of the public IP. + * @type {string} + * @memberof PublicIp + */ + publicIpId?: string; + /** + * One or more tags associated with the public IP. + * @type {Array} + * @memberof PublicIp + */ + tags?: Array; + /** + * The ID of the VM the public IP is associated with (if any). + * @type {string} + * @memberof PublicIp + */ + vmId?: string; +} +export declare function PublicIpFromJSON(json: any): PublicIp; +export declare function PublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicIp; +export declare function PublicIpToJSON(value?: PublicIp | null): any; diff --git a/dist/cjs/models/PublicIp.js b/dist/cjs/models/PublicIp.js new file mode 100644 index 00000000..6bb49316 --- /dev/null +++ b/dist/cjs/models/PublicIp.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PublicIpToJSON = exports.PublicIpFromJSONTyped = exports.PublicIpFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function PublicIpFromJSON(json) { + return PublicIpFromJSONTyped(json, false); +} +exports.PublicIpFromJSON = PublicIpFromJSON; +function PublicIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpId': !(0, runtime_1.exists)(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'nicAccountId': !(0, runtime_1.exists)(json, 'NicAccountId') ? undefined : json['NicAccountId'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'privateIp': !(0, runtime_1.exists)(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !(0, runtime_1.exists)(json, 'PublicIpId') ? undefined : json['PublicIpId'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.PublicIpFromJSONTyped = PublicIpFromJSONTyped; +function PublicIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpId': value.linkPublicIpId, + 'NicAccountId': value.nicAccountId, + 'NicId': value.nicId, + 'PrivateIp': value.privateIp, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'VmId': value.vmId, + }; +} +exports.PublicIpToJSON = PublicIpToJSON; diff --git a/dist/cjs/models/PublicIpLight.d.ts b/dist/cjs/models/PublicIpLight.d.ts new file mode 100644 index 00000000..9177acf9 --- /dev/null +++ b/dist/cjs/models/PublicIpLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the public IP. + * @export + * @interface PublicIpLight + */ +export interface PublicIpLight { + /** + * The public IP associated with the NAT service. + * @type {string} + * @memberof PublicIpLight + */ + publicIp?: string; + /** + * The allocation ID of the public IP associated with the NAT service. + * @type {string} + * @memberof PublicIpLight + */ + publicIpId?: string; +} +export declare function PublicIpLightFromJSON(json: any): PublicIpLight; +export declare function PublicIpLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicIpLight; +export declare function PublicIpLightToJSON(value?: PublicIpLight | null): any; diff --git a/dist/cjs/models/PublicIpLight.js b/dist/cjs/models/PublicIpLight.js new file mode 100644 index 00000000..645d2dbc --- /dev/null +++ b/dist/cjs/models/PublicIpLight.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PublicIpLightToJSON = exports.PublicIpLightFromJSONTyped = exports.PublicIpLightFromJSON = void 0; +const runtime_1 = require("../runtime"); +function PublicIpLightFromJSON(json) { + return PublicIpLightFromJSONTyped(json, false); +} +exports.PublicIpLightFromJSON = PublicIpLightFromJSON; +function PublicIpLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !(0, runtime_1.exists)(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} +exports.PublicIpLightFromJSONTyped = PublicIpLightFromJSONTyped; +function PublicIpLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + }; +} +exports.PublicIpLightToJSON = PublicIpLightToJSON; diff --git a/dist/cjs/models/Quota.d.ts b/dist/cjs/models/Quota.d.ts new file mode 100644 index 00000000..7b58f310 --- /dev/null +++ b/dist/cjs/models/Quota.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the quota. + * @export + * @interface Quota + */ +export interface Quota { + /** + * The account ID of the owner of the quotas. + * @type {string} + * @memberof Quota + */ + accountId?: string; + /** + * The description of the quota. + * @type {string} + * @memberof Quota + */ + description?: string; + /** + * The maximum value of the quota for the OUTSCALE user account (if there is no limit, `0`). + * @type {number} + * @memberof Quota + */ + maxValue?: number; + /** + * The unique name of the quota. + * @type {string} + * @memberof Quota + */ + name?: string; + /** + * The group name of the quota. + * @type {string} + * @memberof Quota + */ + quotaCollection?: string; + /** + * The description of the quota. + * @type {string} + * @memberof Quota + */ + shortDescription?: string; + /** + * The limit value currently used by the OUTSCALE user account. + * @type {number} + * @memberof Quota + */ + usedValue?: number; +} +export declare function QuotaFromJSON(json: any): Quota; +export declare function QuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Quota; +export declare function QuotaToJSON(value?: Quota | null): any; diff --git a/dist/cjs/models/Quota.js b/dist/cjs/models/Quota.js new file mode 100644 index 00000000..590a51c5 --- /dev/null +++ b/dist/cjs/models/Quota.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuotaToJSON = exports.QuotaFromJSONTyped = exports.QuotaFromJSON = void 0; +const runtime_1 = require("../runtime"); +function QuotaFromJSON(json) { + return QuotaFromJSONTyped(json, false); +} +exports.QuotaFromJSON = QuotaFromJSON; +function QuotaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'maxValue': !(0, runtime_1.exists)(json, 'MaxValue') ? undefined : json['MaxValue'], + 'name': !(0, runtime_1.exists)(json, 'Name') ? undefined : json['Name'], + 'quotaCollection': !(0, runtime_1.exists)(json, 'QuotaCollection') ? undefined : json['QuotaCollection'], + 'shortDescription': !(0, runtime_1.exists)(json, 'ShortDescription') ? undefined : json['ShortDescription'], + 'usedValue': !(0, runtime_1.exists)(json, 'UsedValue') ? undefined : json['UsedValue'], + }; +} +exports.QuotaFromJSONTyped = QuotaFromJSONTyped; +function QuotaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'MaxValue': value.maxValue, + 'Name': value.name, + 'QuotaCollection': value.quotaCollection, + 'ShortDescription': value.shortDescription, + 'UsedValue': value.usedValue, + }; +} +exports.QuotaToJSON = QuotaToJSON; diff --git a/dist/cjs/models/QuotaTypes.d.ts b/dist/cjs/models/QuotaTypes.d.ts new file mode 100644 index 00000000..6e352afd --- /dev/null +++ b/dist/cjs/models/QuotaTypes.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Quota } from './Quota'; +/** + * One or more quotas. + * @export + * @interface QuotaTypes + */ +export interface QuotaTypes { + /** + * The resource ID if it is a resource-specific quota, `global` if it is not. + * @type {string} + * @memberof QuotaTypes + */ + quotaType?: string; + /** + * One or more quotas associated with the user. + * @type {Array} + * @memberof QuotaTypes + */ + quotas?: Array; +} +export declare function QuotaTypesFromJSON(json: any): QuotaTypes; +export declare function QuotaTypesFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaTypes; +export declare function QuotaTypesToJSON(value?: QuotaTypes | null): any; diff --git a/dist/cjs/models/QuotaTypes.js b/dist/cjs/models/QuotaTypes.js new file mode 100644 index 00000000..b001bde2 --- /dev/null +++ b/dist/cjs/models/QuotaTypes.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuotaTypesToJSON = exports.QuotaTypesFromJSONTyped = exports.QuotaTypesFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Quota_1 = require("./Quota"); +function QuotaTypesFromJSON(json) { + return QuotaTypesFromJSONTyped(json, false); +} +exports.QuotaTypesFromJSON = QuotaTypesFromJSON; +function QuotaTypesFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'quotaType': !(0, runtime_1.exists)(json, 'QuotaType') ? undefined : json['QuotaType'], + 'quotas': !(0, runtime_1.exists)(json, 'Quotas') ? undefined : (json['Quotas'].map(Quota_1.QuotaFromJSON)), + }; +} +exports.QuotaTypesFromJSONTyped = QuotaTypesFromJSONTyped; +function QuotaTypesToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'QuotaType': value.quotaType, + 'Quotas': value.quotas === undefined ? undefined : (value.quotas.map(Quota_1.QuotaToJSON)), + }; +} +exports.QuotaTypesToJSON = QuotaTypesToJSON; diff --git a/dist/cjs/models/ReadAccessKeysRequest.d.ts b/dist/cjs/models/ReadAccessKeysRequest.d.ts new file mode 100644 index 00000000..835697d3 --- /dev/null +++ b/dist/cjs/models/ReadAccessKeysRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersAccessKeys } from './FiltersAccessKeys'; +/** + * + * @export + * @interface ReadAccessKeysRequest + */ +export interface ReadAccessKeysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAccessKeysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersAccessKeys} + * @memberof ReadAccessKeysRequest + */ + filters?: FiltersAccessKeys; +} +export declare function ReadAccessKeysRequestFromJSON(json: any): ReadAccessKeysRequest; +export declare function ReadAccessKeysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccessKeysRequest; +export declare function ReadAccessKeysRequestToJSON(value?: ReadAccessKeysRequest | null): any; diff --git a/dist/cjs/models/ReadAccessKeysRequest.js b/dist/cjs/models/ReadAccessKeysRequest.js new file mode 100644 index 00000000..ceb2e69b --- /dev/null +++ b/dist/cjs/models/ReadAccessKeysRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadAccessKeysRequestToJSON = exports.ReadAccessKeysRequestFromJSONTyped = exports.ReadAccessKeysRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersAccessKeys_1 = require("./FiltersAccessKeys"); +function ReadAccessKeysRequestFromJSON(json) { + return ReadAccessKeysRequestFromJSONTyped(json, false); +} +exports.ReadAccessKeysRequestFromJSON = ReadAccessKeysRequestFromJSON; +function ReadAccessKeysRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersAccessKeys_1.FiltersAccessKeysFromJSON)(json['Filters']), + }; +} +exports.ReadAccessKeysRequestFromJSONTyped = ReadAccessKeysRequestFromJSONTyped; +function ReadAccessKeysRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersAccessKeys_1.FiltersAccessKeysToJSON)(value.filters), + }; +} +exports.ReadAccessKeysRequestToJSON = ReadAccessKeysRequestToJSON; diff --git a/dist/cjs/models/ReadAccessKeysResponse.d.ts b/dist/cjs/models/ReadAccessKeysResponse.d.ts new file mode 100644 index 00000000..77f6ed0e --- /dev/null +++ b/dist/cjs/models/ReadAccessKeysResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKey } from './AccessKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadAccessKeysResponse + */ +export interface ReadAccessKeysResponse { + /** + * A list of access keys. + * @type {Array} + * @memberof ReadAccessKeysResponse + */ + accessKeys?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAccessKeysResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadAccessKeysResponseFromJSON(json: any): ReadAccessKeysResponse; +export declare function ReadAccessKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccessKeysResponse; +export declare function ReadAccessKeysResponseToJSON(value?: ReadAccessKeysResponse | null): any; diff --git a/dist/cjs/models/ReadAccessKeysResponse.js b/dist/cjs/models/ReadAccessKeysResponse.js new file mode 100644 index 00000000..5b3a2d15 --- /dev/null +++ b/dist/cjs/models/ReadAccessKeysResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadAccessKeysResponseToJSON = exports.ReadAccessKeysResponseFromJSONTyped = exports.ReadAccessKeysResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccessKey_1 = require("./AccessKey"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadAccessKeysResponseFromJSON(json) { + return ReadAccessKeysResponseFromJSONTyped(json, false); +} +exports.ReadAccessKeysResponseFromJSON = ReadAccessKeysResponseFromJSON; +function ReadAccessKeysResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeys': !(0, runtime_1.exists)(json, 'AccessKeys') ? undefined : (json['AccessKeys'].map(AccessKey_1.AccessKeyFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadAccessKeysResponseFromJSONTyped = ReadAccessKeysResponseFromJSONTyped; +function ReadAccessKeysResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeys': value.accessKeys === undefined ? undefined : (value.accessKeys.map(AccessKey_1.AccessKeyToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadAccessKeysResponseToJSON = ReadAccessKeysResponseToJSON; diff --git a/dist/cjs/models/ReadAccountsRequest.d.ts b/dist/cjs/models/ReadAccountsRequest.d.ts new file mode 100644 index 00000000..5e34f8bf --- /dev/null +++ b/dist/cjs/models/ReadAccountsRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadAccountsRequest + */ +export interface ReadAccountsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAccountsRequest + */ + dryRun?: boolean; +} +export declare function ReadAccountsRequestFromJSON(json: any): ReadAccountsRequest; +export declare function ReadAccountsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccountsRequest; +export declare function ReadAccountsRequestToJSON(value?: ReadAccountsRequest | null): any; diff --git a/dist/cjs/models/ReadAccountsRequest.js b/dist/cjs/models/ReadAccountsRequest.js new file mode 100644 index 00000000..5873c5be --- /dev/null +++ b/dist/cjs/models/ReadAccountsRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadAccountsRequestToJSON = exports.ReadAccountsRequestFromJSONTyped = exports.ReadAccountsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadAccountsRequestFromJSON(json) { + return ReadAccountsRequestFromJSONTyped(json, false); +} +exports.ReadAccountsRequestFromJSON = ReadAccountsRequestFromJSON; +function ReadAccountsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadAccountsRequestFromJSONTyped = ReadAccountsRequestFromJSONTyped; +function ReadAccountsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadAccountsRequestToJSON = ReadAccountsRequestToJSON; diff --git a/dist/cjs/models/ReadAccountsResponse.d.ts b/dist/cjs/models/ReadAccountsResponse.d.ts new file mode 100644 index 00000000..07dd492e --- /dev/null +++ b/dist/cjs/models/ReadAccountsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Account } from './Account'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadAccountsResponse + */ +export interface ReadAccountsResponse { + /** + * The list of the accounts. + * @type {Array} + * @memberof ReadAccountsResponse + */ + accounts?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAccountsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadAccountsResponseFromJSON(json: any): ReadAccountsResponse; +export declare function ReadAccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccountsResponse; +export declare function ReadAccountsResponseToJSON(value?: ReadAccountsResponse | null): any; diff --git a/dist/cjs/models/ReadAccountsResponse.js b/dist/cjs/models/ReadAccountsResponse.js new file mode 100644 index 00000000..0ccd8a0f --- /dev/null +++ b/dist/cjs/models/ReadAccountsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadAccountsResponseToJSON = exports.ReadAccountsResponseFromJSONTyped = exports.ReadAccountsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Account_1 = require("./Account"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadAccountsResponseFromJSON(json) { + return ReadAccountsResponseFromJSONTyped(json, false); +} +exports.ReadAccountsResponseFromJSON = ReadAccountsResponseFromJSON; +function ReadAccountsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accounts': !(0, runtime_1.exists)(json, 'Accounts') ? undefined : (json['Accounts'].map(Account_1.AccountFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadAccountsResponseFromJSONTyped = ReadAccountsResponseFromJSONTyped; +function ReadAccountsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Accounts': value.accounts === undefined ? undefined : (value.accounts.map(Account_1.AccountToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadAccountsResponseToJSON = ReadAccountsResponseToJSON; diff --git a/dist/cjs/models/ReadAdminPasswordRequest.d.ts b/dist/cjs/models/ReadAdminPasswordRequest.d.ts new file mode 100644 index 00000000..ce361068 --- /dev/null +++ b/dist/cjs/models/ReadAdminPasswordRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadAdminPasswordRequest + */ +export interface ReadAdminPasswordRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAdminPasswordRequest + */ + dryRun?: boolean; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadAdminPasswordRequest + */ + vmId: string; +} +export declare function ReadAdminPasswordRequestFromJSON(json: any): ReadAdminPasswordRequest; +export declare function ReadAdminPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAdminPasswordRequest; +export declare function ReadAdminPasswordRequestToJSON(value?: ReadAdminPasswordRequest | null): any; diff --git a/dist/cjs/models/ReadAdminPasswordRequest.js b/dist/cjs/models/ReadAdminPasswordRequest.js new file mode 100644 index 00000000..f0b451b1 --- /dev/null +++ b/dist/cjs/models/ReadAdminPasswordRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadAdminPasswordRequestToJSON = exports.ReadAdminPasswordRequestFromJSONTyped = exports.ReadAdminPasswordRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadAdminPasswordRequestFromJSON(json) { + return ReadAdminPasswordRequestFromJSONTyped(json, false); +} +exports.ReadAdminPasswordRequestFromJSON = ReadAdminPasswordRequestFromJSON; +function ReadAdminPasswordRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + }; +} +exports.ReadAdminPasswordRequestFromJSONTyped = ReadAdminPasswordRequestFromJSONTyped; +function ReadAdminPasswordRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmId': value.vmId, + }; +} +exports.ReadAdminPasswordRequestToJSON = ReadAdminPasswordRequestToJSON; diff --git a/dist/cjs/models/ReadAdminPasswordResponse.d.ts b/dist/cjs/models/ReadAdminPasswordResponse.d.ts new file mode 100644 index 00000000..e95814bc --- /dev/null +++ b/dist/cjs/models/ReadAdminPasswordResponse.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadAdminPasswordResponse + */ +export interface ReadAdminPasswordResponse { + /** + * The password of the VM. After the first boot, returns an empty string. + * @type {string} + * @memberof ReadAdminPasswordResponse + */ + adminPassword?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAdminPasswordResponse + */ + responseContext?: ModelResponseContext; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadAdminPasswordResponse + */ + vmId?: string; +} +export declare function ReadAdminPasswordResponseFromJSON(json: any): ReadAdminPasswordResponse; +export declare function ReadAdminPasswordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAdminPasswordResponse; +export declare function ReadAdminPasswordResponseToJSON(value?: ReadAdminPasswordResponse | null): any; diff --git a/dist/cjs/models/ReadAdminPasswordResponse.js b/dist/cjs/models/ReadAdminPasswordResponse.js new file mode 100644 index 00000000..1b21fdc2 --- /dev/null +++ b/dist/cjs/models/ReadAdminPasswordResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadAdminPasswordResponseToJSON = exports.ReadAdminPasswordResponseFromJSONTyped = exports.ReadAdminPasswordResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadAdminPasswordResponseFromJSON(json) { + return ReadAdminPasswordResponseFromJSONTyped(json, false); +} +exports.ReadAdminPasswordResponseFromJSON = ReadAdminPasswordResponseFromJSON; +function ReadAdminPasswordResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'adminPassword': !(0, runtime_1.exists)(json, 'AdminPassword') ? undefined : json['AdminPassword'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.ReadAdminPasswordResponseFromJSONTyped = ReadAdminPasswordResponseFromJSONTyped; +function ReadAdminPasswordResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AdminPassword': value.adminPassword, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VmId': value.vmId, + }; +} +exports.ReadAdminPasswordResponseToJSON = ReadAdminPasswordResponseToJSON; diff --git a/dist/cjs/models/ReadApiAccessPolicyRequest.d.ts b/dist/cjs/models/ReadApiAccessPolicyRequest.d.ts new file mode 100644 index 00000000..629a5d23 --- /dev/null +++ b/dist/cjs/models/ReadApiAccessPolicyRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadApiAccessPolicyRequest + */ +export interface ReadApiAccessPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiAccessPolicyRequest + */ + dryRun?: boolean; +} +export declare function ReadApiAccessPolicyRequestFromJSON(json: any): ReadApiAccessPolicyRequest; +export declare function ReadApiAccessPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessPolicyRequest; +export declare function ReadApiAccessPolicyRequestToJSON(value?: ReadApiAccessPolicyRequest | null): any; diff --git a/dist/cjs/models/ReadApiAccessPolicyRequest.js b/dist/cjs/models/ReadApiAccessPolicyRequest.js new file mode 100644 index 00000000..137f66f6 --- /dev/null +++ b/dist/cjs/models/ReadApiAccessPolicyRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadApiAccessPolicyRequestToJSON = exports.ReadApiAccessPolicyRequestFromJSONTyped = exports.ReadApiAccessPolicyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadApiAccessPolicyRequestFromJSON(json) { + return ReadApiAccessPolicyRequestFromJSONTyped(json, false); +} +exports.ReadApiAccessPolicyRequestFromJSON = ReadApiAccessPolicyRequestFromJSON; +function ReadApiAccessPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadApiAccessPolicyRequestFromJSONTyped = ReadApiAccessPolicyRequestFromJSONTyped; +function ReadApiAccessPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadApiAccessPolicyRequestToJSON = ReadApiAccessPolicyRequestToJSON; diff --git a/dist/cjs/models/ReadApiAccessPolicyResponse.d.ts b/dist/cjs/models/ReadApiAccessPolicyResponse.d.ts new file mode 100644 index 00000000..ca5e1320 --- /dev/null +++ b/dist/cjs/models/ReadApiAccessPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessPolicy } from './ApiAccessPolicy'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadApiAccessPolicyResponse + */ +export interface ReadApiAccessPolicyResponse { + /** + * + * @type {ApiAccessPolicy} + * @memberof ReadApiAccessPolicyResponse + */ + apiAccessPolicy?: ApiAccessPolicy; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiAccessPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadApiAccessPolicyResponseFromJSON(json: any): ReadApiAccessPolicyResponse; +export declare function ReadApiAccessPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessPolicyResponse; +export declare function ReadApiAccessPolicyResponseToJSON(value?: ReadApiAccessPolicyResponse | null): any; diff --git a/dist/cjs/models/ReadApiAccessPolicyResponse.js b/dist/cjs/models/ReadApiAccessPolicyResponse.js new file mode 100644 index 00000000..47ab7717 --- /dev/null +++ b/dist/cjs/models/ReadApiAccessPolicyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadApiAccessPolicyResponseToJSON = exports.ReadApiAccessPolicyResponseFromJSONTyped = exports.ReadApiAccessPolicyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ApiAccessPolicy_1 = require("./ApiAccessPolicy"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadApiAccessPolicyResponseFromJSON(json) { + return ReadApiAccessPolicyResponseFromJSONTyped(json, false); +} +exports.ReadApiAccessPolicyResponseFromJSON = ReadApiAccessPolicyResponseFromJSON; +function ReadApiAccessPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessPolicy': !(0, runtime_1.exists)(json, 'ApiAccessPolicy') ? undefined : (0, ApiAccessPolicy_1.ApiAccessPolicyFromJSON)(json['ApiAccessPolicy']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadApiAccessPolicyResponseFromJSONTyped = ReadApiAccessPolicyResponseFromJSONTyped; +function ReadApiAccessPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessPolicy': (0, ApiAccessPolicy_1.ApiAccessPolicyToJSON)(value.apiAccessPolicy), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadApiAccessPolicyResponseToJSON = ReadApiAccessPolicyResponseToJSON; diff --git a/dist/cjs/models/ReadApiAccessRulesRequest.d.ts b/dist/cjs/models/ReadApiAccessRulesRequest.d.ts new file mode 100644 index 00000000..dee2218a --- /dev/null +++ b/dist/cjs/models/ReadApiAccessRulesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersApiAccessRule } from './FiltersApiAccessRule'; +/** + * + * @export + * @interface ReadApiAccessRulesRequest + */ +export interface ReadApiAccessRulesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiAccessRulesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersApiAccessRule} + * @memberof ReadApiAccessRulesRequest + */ + filters?: FiltersApiAccessRule; +} +export declare function ReadApiAccessRulesRequestFromJSON(json: any): ReadApiAccessRulesRequest; +export declare function ReadApiAccessRulesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessRulesRequest; +export declare function ReadApiAccessRulesRequestToJSON(value?: ReadApiAccessRulesRequest | null): any; diff --git a/dist/cjs/models/ReadApiAccessRulesRequest.js b/dist/cjs/models/ReadApiAccessRulesRequest.js new file mode 100644 index 00000000..199ad9ef --- /dev/null +++ b/dist/cjs/models/ReadApiAccessRulesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadApiAccessRulesRequestToJSON = exports.ReadApiAccessRulesRequestFromJSONTyped = exports.ReadApiAccessRulesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersApiAccessRule_1 = require("./FiltersApiAccessRule"); +function ReadApiAccessRulesRequestFromJSON(json) { + return ReadApiAccessRulesRequestFromJSONTyped(json, false); +} +exports.ReadApiAccessRulesRequestFromJSON = ReadApiAccessRulesRequestFromJSON; +function ReadApiAccessRulesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersApiAccessRule_1.FiltersApiAccessRuleFromJSON)(json['Filters']), + }; +} +exports.ReadApiAccessRulesRequestFromJSONTyped = ReadApiAccessRulesRequestFromJSONTyped; +function ReadApiAccessRulesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersApiAccessRule_1.FiltersApiAccessRuleToJSON)(value.filters), + }; +} +exports.ReadApiAccessRulesRequestToJSON = ReadApiAccessRulesRequestToJSON; diff --git a/dist/cjs/models/ReadApiAccessRulesResponse.d.ts b/dist/cjs/models/ReadApiAccessRulesResponse.d.ts new file mode 100644 index 00000000..bfb595c2 --- /dev/null +++ b/dist/cjs/models/ReadApiAccessRulesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessRule } from './ApiAccessRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadApiAccessRulesResponse + */ +export interface ReadApiAccessRulesResponse { + /** + * A list of API access rules. + * @type {Array} + * @memberof ReadApiAccessRulesResponse + */ + apiAccessRules?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiAccessRulesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadApiAccessRulesResponseFromJSON(json: any): ReadApiAccessRulesResponse; +export declare function ReadApiAccessRulesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessRulesResponse; +export declare function ReadApiAccessRulesResponseToJSON(value?: ReadApiAccessRulesResponse | null): any; diff --git a/dist/cjs/models/ReadApiAccessRulesResponse.js b/dist/cjs/models/ReadApiAccessRulesResponse.js new file mode 100644 index 00000000..1c1be095 --- /dev/null +++ b/dist/cjs/models/ReadApiAccessRulesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadApiAccessRulesResponseToJSON = exports.ReadApiAccessRulesResponseFromJSONTyped = exports.ReadApiAccessRulesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ApiAccessRule_1 = require("./ApiAccessRule"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadApiAccessRulesResponseFromJSON(json) { + return ReadApiAccessRulesResponseFromJSONTyped(json, false); +} +exports.ReadApiAccessRulesResponseFromJSON = ReadApiAccessRulesResponseFromJSON; +function ReadApiAccessRulesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRules': !(0, runtime_1.exists)(json, 'ApiAccessRules') ? undefined : (json['ApiAccessRules'].map(ApiAccessRule_1.ApiAccessRuleFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadApiAccessRulesResponseFromJSONTyped = ReadApiAccessRulesResponseFromJSONTyped; +function ReadApiAccessRulesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRules': value.apiAccessRules === undefined ? undefined : (value.apiAccessRules.map(ApiAccessRule_1.ApiAccessRuleToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadApiAccessRulesResponseToJSON = ReadApiAccessRulesResponseToJSON; diff --git a/dist/cjs/models/ReadApiLogsRequest.d.ts b/dist/cjs/models/ReadApiLogsRequest.d.ts new file mode 100644 index 00000000..0e5e9d23 --- /dev/null +++ b/dist/cjs/models/ReadApiLogsRequest.d.ts @@ -0,0 +1,53 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersApiLog } from './FiltersApiLog'; +import { With } from './With'; +/** + * + * @export + * @interface ReadApiLogsRequest + */ +export interface ReadApiLogsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiLogsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersApiLog} + * @memberof ReadApiLogsRequest + */ + filters?: FiltersApiLog; + /** + * The token to request the next page of results. + * @type {string} + * @memberof ReadApiLogsRequest + */ + nextPageToken?: string; + /** + * The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`. + * @type {number} + * @memberof ReadApiLogsRequest + */ + resultsPerPage?: number; + /** + * + * @type {With} + * @memberof ReadApiLogsRequest + */ + _with?: With; +} +export declare function ReadApiLogsRequestFromJSON(json: any): ReadApiLogsRequest; +export declare function ReadApiLogsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiLogsRequest; +export declare function ReadApiLogsRequestToJSON(value?: ReadApiLogsRequest | null): any; diff --git a/dist/cjs/models/ReadApiLogsRequest.js b/dist/cjs/models/ReadApiLogsRequest.js new file mode 100644 index 00000000..d9756b97 --- /dev/null +++ b/dist/cjs/models/ReadApiLogsRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadApiLogsRequestToJSON = exports.ReadApiLogsRequestFromJSONTyped = exports.ReadApiLogsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersApiLog_1 = require("./FiltersApiLog"); +const With_1 = require("./With"); +function ReadApiLogsRequestFromJSON(json) { + return ReadApiLogsRequestFromJSONTyped(json, false); +} +exports.ReadApiLogsRequestFromJSON = ReadApiLogsRequestFromJSON; +function ReadApiLogsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersApiLog_1.FiltersApiLogFromJSON)(json['Filters']), + 'nextPageToken': !(0, runtime_1.exists)(json, 'NextPageToken') ? undefined : json['NextPageToken'], + 'resultsPerPage': !(0, runtime_1.exists)(json, 'ResultsPerPage') ? undefined : json['ResultsPerPage'], + '_with': !(0, runtime_1.exists)(json, 'With') ? undefined : (0, With_1.WithFromJSON)(json['With']), + }; +} +exports.ReadApiLogsRequestFromJSONTyped = ReadApiLogsRequestFromJSONTyped; +function ReadApiLogsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersApiLog_1.FiltersApiLogToJSON)(value.filters), + 'NextPageToken': value.nextPageToken, + 'ResultsPerPage': value.resultsPerPage, + 'With': (0, With_1.WithToJSON)(value._with), + }; +} +exports.ReadApiLogsRequestToJSON = ReadApiLogsRequestToJSON; diff --git a/dist/cjs/models/ReadApiLogsResponse.d.ts b/dist/cjs/models/ReadApiLogsResponse.d.ts new file mode 100644 index 00000000..ed36c068 --- /dev/null +++ b/dist/cjs/models/ReadApiLogsResponse.d.ts @@ -0,0 +1,41 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Log } from './Log'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadApiLogsResponse + */ +export interface ReadApiLogsResponse { + /** + * Information about one or more logs. + * @type {Array} + * @memberof ReadApiLogsResponse + */ + logs?: Array; + /** + * The token to request the next page of results. + * @type {string} + * @memberof ReadApiLogsResponse + */ + nextPageToken?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiLogsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadApiLogsResponseFromJSON(json: any): ReadApiLogsResponse; +export declare function ReadApiLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiLogsResponse; +export declare function ReadApiLogsResponseToJSON(value?: ReadApiLogsResponse | null): any; diff --git a/dist/cjs/models/ReadApiLogsResponse.js b/dist/cjs/models/ReadApiLogsResponse.js new file mode 100644 index 00000000..0b193d6b --- /dev/null +++ b/dist/cjs/models/ReadApiLogsResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadApiLogsResponseToJSON = exports.ReadApiLogsResponseFromJSONTyped = exports.ReadApiLogsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Log_1 = require("./Log"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadApiLogsResponseFromJSON(json) { + return ReadApiLogsResponseFromJSONTyped(json, false); +} +exports.ReadApiLogsResponseFromJSON = ReadApiLogsResponseFromJSON; +function ReadApiLogsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'logs': !(0, runtime_1.exists)(json, 'Logs') ? undefined : (json['Logs'].map(Log_1.LogFromJSON)), + 'nextPageToken': !(0, runtime_1.exists)(json, 'NextPageToken') ? undefined : json['NextPageToken'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadApiLogsResponseFromJSONTyped = ReadApiLogsResponseFromJSONTyped; +function ReadApiLogsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Logs': value.logs === undefined ? undefined : (value.logs.map(Log_1.LogToJSON)), + 'NextPageToken': value.nextPageToken, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadApiLogsResponseToJSON = ReadApiLogsResponseToJSON; diff --git a/dist/cjs/models/ReadCasRequest.d.ts b/dist/cjs/models/ReadCasRequest.d.ts new file mode 100644 index 00000000..fafe42c6 --- /dev/null +++ b/dist/cjs/models/ReadCasRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersCa } from './FiltersCa'; +/** + * + * @export + * @interface ReadCasRequest + */ +export interface ReadCasRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadCasRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersCa} + * @memberof ReadCasRequest + */ + filters?: FiltersCa; +} +export declare function ReadCasRequestFromJSON(json: any): ReadCasRequest; +export declare function ReadCasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCasRequest; +export declare function ReadCasRequestToJSON(value?: ReadCasRequest | null): any; diff --git a/dist/cjs/models/ReadCasRequest.js b/dist/cjs/models/ReadCasRequest.js new file mode 100644 index 00000000..2a8cd04d --- /dev/null +++ b/dist/cjs/models/ReadCasRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadCasRequestToJSON = exports.ReadCasRequestFromJSONTyped = exports.ReadCasRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersCa_1 = require("./FiltersCa"); +function ReadCasRequestFromJSON(json) { + return ReadCasRequestFromJSONTyped(json, false); +} +exports.ReadCasRequestFromJSON = ReadCasRequestFromJSON; +function ReadCasRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersCa_1.FiltersCaFromJSON)(json['Filters']), + }; +} +exports.ReadCasRequestFromJSONTyped = ReadCasRequestFromJSONTyped; +function ReadCasRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersCa_1.FiltersCaToJSON)(value.filters), + }; +} +exports.ReadCasRequestToJSON = ReadCasRequestToJSON; diff --git a/dist/cjs/models/ReadCasResponse.d.ts b/dist/cjs/models/ReadCasResponse.d.ts new file mode 100644 index 00000000..c7d7f98f --- /dev/null +++ b/dist/cjs/models/ReadCasResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Ca } from './Ca'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadCasResponse + */ +export interface ReadCasResponse { + /** + * Information about one or more CAs. + * @type {Array} + * @memberof ReadCasResponse + */ + cas?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadCasResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadCasResponseFromJSON(json: any): ReadCasResponse; +export declare function ReadCasResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCasResponse; +export declare function ReadCasResponseToJSON(value?: ReadCasResponse | null): any; diff --git a/dist/cjs/models/ReadCasResponse.js b/dist/cjs/models/ReadCasResponse.js new file mode 100644 index 00000000..ae5e9b62 --- /dev/null +++ b/dist/cjs/models/ReadCasResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadCasResponseToJSON = exports.ReadCasResponseFromJSONTyped = exports.ReadCasResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Ca_1 = require("./Ca"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadCasResponseFromJSON(json) { + return ReadCasResponseFromJSONTyped(json, false); +} +exports.ReadCasResponseFromJSON = ReadCasResponseFromJSON; +function ReadCasResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cas': !(0, runtime_1.exists)(json, 'Cas') ? undefined : (json['Cas'].map(Ca_1.CaFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadCasResponseFromJSONTyped = ReadCasResponseFromJSONTyped; +function ReadCasResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Cas': value.cas === undefined ? undefined : (value.cas.map(Ca_1.CaToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadCasResponseToJSON = ReadCasResponseToJSON; diff --git a/dist/cjs/models/ReadCatalogRequest.d.ts b/dist/cjs/models/ReadCatalogRequest.d.ts new file mode 100644 index 00000000..8ffa10fc --- /dev/null +++ b/dist/cjs/models/ReadCatalogRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadCatalogRequest + */ +export interface ReadCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadCatalogRequest + */ + dryRun?: boolean; +} +export declare function ReadCatalogRequestFromJSON(json: any): ReadCatalogRequest; +export declare function ReadCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCatalogRequest; +export declare function ReadCatalogRequestToJSON(value?: ReadCatalogRequest | null): any; diff --git a/dist/cjs/models/ReadCatalogRequest.js b/dist/cjs/models/ReadCatalogRequest.js new file mode 100644 index 00000000..895f4745 --- /dev/null +++ b/dist/cjs/models/ReadCatalogRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadCatalogRequestToJSON = exports.ReadCatalogRequestFromJSONTyped = exports.ReadCatalogRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadCatalogRequestFromJSON(json) { + return ReadCatalogRequestFromJSONTyped(json, false); +} +exports.ReadCatalogRequestFromJSON = ReadCatalogRequestFromJSON; +function ReadCatalogRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadCatalogRequestFromJSONTyped = ReadCatalogRequestFromJSONTyped; +function ReadCatalogRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadCatalogRequestToJSON = ReadCatalogRequestToJSON; diff --git a/dist/cjs/models/ReadCatalogResponse.d.ts b/dist/cjs/models/ReadCatalogResponse.d.ts new file mode 100644 index 00000000..5649ef23 --- /dev/null +++ b/dist/cjs/models/ReadCatalogResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Catalog } from './Catalog'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadCatalogResponse + */ +export interface ReadCatalogResponse { + /** + * + * @type {Catalog} + * @memberof ReadCatalogResponse + */ + catalog?: Catalog; + /** + * + * @type {ModelResponseContext} + * @memberof ReadCatalogResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadCatalogResponseFromJSON(json: any): ReadCatalogResponse; +export declare function ReadCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCatalogResponse; +export declare function ReadCatalogResponseToJSON(value?: ReadCatalogResponse | null): any; diff --git a/dist/cjs/models/ReadCatalogResponse.js b/dist/cjs/models/ReadCatalogResponse.js new file mode 100644 index 00000000..86a9d7c9 --- /dev/null +++ b/dist/cjs/models/ReadCatalogResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadCatalogResponseToJSON = exports.ReadCatalogResponseFromJSONTyped = exports.ReadCatalogResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Catalog_1 = require("./Catalog"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadCatalogResponseFromJSON(json) { + return ReadCatalogResponseFromJSONTyped(json, false); +} +exports.ReadCatalogResponseFromJSON = ReadCatalogResponseFromJSON; +function ReadCatalogResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'catalog': !(0, runtime_1.exists)(json, 'Catalog') ? undefined : (0, Catalog_1.CatalogFromJSON)(json['Catalog']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadCatalogResponseFromJSONTyped = ReadCatalogResponseFromJSONTyped; +function ReadCatalogResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Catalog': (0, Catalog_1.CatalogToJSON)(value.catalog), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadCatalogResponseToJSON = ReadCatalogResponseToJSON; diff --git a/dist/cjs/models/ReadClientGatewaysRequest.d.ts b/dist/cjs/models/ReadClientGatewaysRequest.d.ts new file mode 100644 index 00000000..edce5f36 --- /dev/null +++ b/dist/cjs/models/ReadClientGatewaysRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersClientGateway } from './FiltersClientGateway'; +/** + * + * @export + * @interface ReadClientGatewaysRequest + */ +export interface ReadClientGatewaysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadClientGatewaysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersClientGateway} + * @memberof ReadClientGatewaysRequest + */ + filters?: FiltersClientGateway; +} +export declare function ReadClientGatewaysRequestFromJSON(json: any): ReadClientGatewaysRequest; +export declare function ReadClientGatewaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadClientGatewaysRequest; +export declare function ReadClientGatewaysRequestToJSON(value?: ReadClientGatewaysRequest | null): any; diff --git a/dist/cjs/models/ReadClientGatewaysRequest.js b/dist/cjs/models/ReadClientGatewaysRequest.js new file mode 100644 index 00000000..070bfa02 --- /dev/null +++ b/dist/cjs/models/ReadClientGatewaysRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadClientGatewaysRequestToJSON = exports.ReadClientGatewaysRequestFromJSONTyped = exports.ReadClientGatewaysRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersClientGateway_1 = require("./FiltersClientGateway"); +function ReadClientGatewaysRequestFromJSON(json) { + return ReadClientGatewaysRequestFromJSONTyped(json, false); +} +exports.ReadClientGatewaysRequestFromJSON = ReadClientGatewaysRequestFromJSON; +function ReadClientGatewaysRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersClientGateway_1.FiltersClientGatewayFromJSON)(json['Filters']), + }; +} +exports.ReadClientGatewaysRequestFromJSONTyped = ReadClientGatewaysRequestFromJSONTyped; +function ReadClientGatewaysRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersClientGateway_1.FiltersClientGatewayToJSON)(value.filters), + }; +} +exports.ReadClientGatewaysRequestToJSON = ReadClientGatewaysRequestToJSON; diff --git a/dist/cjs/models/ReadClientGatewaysResponse.d.ts b/dist/cjs/models/ReadClientGatewaysResponse.d.ts new file mode 100644 index 00000000..3a23561b --- /dev/null +++ b/dist/cjs/models/ReadClientGatewaysResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ClientGateway } from './ClientGateway'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadClientGatewaysResponse + */ +export interface ReadClientGatewaysResponse { + /** + * Information about one or more client gateways. + * @type {Array} + * @memberof ReadClientGatewaysResponse + */ + clientGateways?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadClientGatewaysResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadClientGatewaysResponseFromJSON(json: any): ReadClientGatewaysResponse; +export declare function ReadClientGatewaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadClientGatewaysResponse; +export declare function ReadClientGatewaysResponseToJSON(value?: ReadClientGatewaysResponse | null): any; diff --git a/dist/cjs/models/ReadClientGatewaysResponse.js b/dist/cjs/models/ReadClientGatewaysResponse.js new file mode 100644 index 00000000..b54f528d --- /dev/null +++ b/dist/cjs/models/ReadClientGatewaysResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadClientGatewaysResponseToJSON = exports.ReadClientGatewaysResponseFromJSONTyped = exports.ReadClientGatewaysResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ClientGateway_1 = require("./ClientGateway"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadClientGatewaysResponseFromJSON(json) { + return ReadClientGatewaysResponseFromJSONTyped(json, false); +} +exports.ReadClientGatewaysResponseFromJSON = ReadClientGatewaysResponseFromJSON; +function ReadClientGatewaysResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGateways': !(0, runtime_1.exists)(json, 'ClientGateways') ? undefined : (json['ClientGateways'].map(ClientGateway_1.ClientGatewayFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadClientGatewaysResponseFromJSONTyped = ReadClientGatewaysResponseFromJSONTyped; +function ReadClientGatewaysResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGateways': value.clientGateways === undefined ? undefined : (value.clientGateways.map(ClientGateway_1.ClientGatewayToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadClientGatewaysResponseToJSON = ReadClientGatewaysResponseToJSON; diff --git a/dist/cjs/models/ReadConsoleOutputRequest.d.ts b/dist/cjs/models/ReadConsoleOutputRequest.d.ts new file mode 100644 index 00000000..9fe10b78 --- /dev/null +++ b/dist/cjs/models/ReadConsoleOutputRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadConsoleOutputRequest + */ +export interface ReadConsoleOutputRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadConsoleOutputRequest + */ + dryRun?: boolean; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadConsoleOutputRequest + */ + vmId: string; +} +export declare function ReadConsoleOutputRequestFromJSON(json: any): ReadConsoleOutputRequest; +export declare function ReadConsoleOutputRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsoleOutputRequest; +export declare function ReadConsoleOutputRequestToJSON(value?: ReadConsoleOutputRequest | null): any; diff --git a/dist/cjs/models/ReadConsoleOutputRequest.js b/dist/cjs/models/ReadConsoleOutputRequest.js new file mode 100644 index 00000000..ea90fb12 --- /dev/null +++ b/dist/cjs/models/ReadConsoleOutputRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadConsoleOutputRequestToJSON = exports.ReadConsoleOutputRequestFromJSONTyped = exports.ReadConsoleOutputRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadConsoleOutputRequestFromJSON(json) { + return ReadConsoleOutputRequestFromJSONTyped(json, false); +} +exports.ReadConsoleOutputRequestFromJSON = ReadConsoleOutputRequestFromJSON; +function ReadConsoleOutputRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + }; +} +exports.ReadConsoleOutputRequestFromJSONTyped = ReadConsoleOutputRequestFromJSONTyped; +function ReadConsoleOutputRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmId': value.vmId, + }; +} +exports.ReadConsoleOutputRequestToJSON = ReadConsoleOutputRequestToJSON; diff --git a/dist/cjs/models/ReadConsoleOutputResponse.d.ts b/dist/cjs/models/ReadConsoleOutputResponse.d.ts new file mode 100644 index 00000000..6b11e1b4 --- /dev/null +++ b/dist/cjs/models/ReadConsoleOutputResponse.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadConsoleOutputResponse + */ +export interface ReadConsoleOutputResponse { + /** + * The Base64-encoded output of the console. If a command line tool is used, the output is decoded by the tool. + * @type {string} + * @memberof ReadConsoleOutputResponse + */ + consoleOutput?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadConsoleOutputResponse + */ + responseContext?: ModelResponseContext; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadConsoleOutputResponse + */ + vmId?: string; +} +export declare function ReadConsoleOutputResponseFromJSON(json: any): ReadConsoleOutputResponse; +export declare function ReadConsoleOutputResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsoleOutputResponse; +export declare function ReadConsoleOutputResponseToJSON(value?: ReadConsoleOutputResponse | null): any; diff --git a/dist/cjs/models/ReadConsoleOutputResponse.js b/dist/cjs/models/ReadConsoleOutputResponse.js new file mode 100644 index 00000000..48e137db --- /dev/null +++ b/dist/cjs/models/ReadConsoleOutputResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadConsoleOutputResponseToJSON = exports.ReadConsoleOutputResponseFromJSONTyped = exports.ReadConsoleOutputResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadConsoleOutputResponseFromJSON(json) { + return ReadConsoleOutputResponseFromJSONTyped(json, false); +} +exports.ReadConsoleOutputResponseFromJSON = ReadConsoleOutputResponseFromJSON; +function ReadConsoleOutputResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'consoleOutput': !(0, runtime_1.exists)(json, 'ConsoleOutput') ? undefined : json['ConsoleOutput'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.ReadConsoleOutputResponseFromJSONTyped = ReadConsoleOutputResponseFromJSONTyped; +function ReadConsoleOutputResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConsoleOutput': value.consoleOutput, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VmId': value.vmId, + }; +} +exports.ReadConsoleOutputResponseToJSON = ReadConsoleOutputResponseToJSON; diff --git a/dist/cjs/models/ReadConsumptionAccountRequest.d.ts b/dist/cjs/models/ReadConsumptionAccountRequest.d.ts new file mode 100644 index 00000000..5e447f56 --- /dev/null +++ b/dist/cjs/models/ReadConsumptionAccountRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadConsumptionAccountRequest + */ +export interface ReadConsumptionAccountRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadConsumptionAccountRequest + */ + dryRun?: boolean; + /** + * The beginning of the time period, in ISO 8601 date-time format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). + * @type {string} + * @memberof ReadConsumptionAccountRequest + */ + fromDate: string; + /** + * The end of the time period, in ISO 8601 date-time format (for example, `2017-06-30` or `2017-06-30T00:00:00Z`). + * @type {string} + * @memberof ReadConsumptionAccountRequest + */ + toDate: string; +} +export declare function ReadConsumptionAccountRequestFromJSON(json: any): ReadConsumptionAccountRequest; +export declare function ReadConsumptionAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsumptionAccountRequest; +export declare function ReadConsumptionAccountRequestToJSON(value?: ReadConsumptionAccountRequest | null): any; diff --git a/dist/cjs/models/ReadConsumptionAccountRequest.js b/dist/cjs/models/ReadConsumptionAccountRequest.js new file mode 100644 index 00000000..eb544653 --- /dev/null +++ b/dist/cjs/models/ReadConsumptionAccountRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadConsumptionAccountRequestToJSON = exports.ReadConsumptionAccountRequestFromJSONTyped = exports.ReadConsumptionAccountRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadConsumptionAccountRequestFromJSON(json) { + return ReadConsumptionAccountRequestFromJSONTyped(json, false); +} +exports.ReadConsumptionAccountRequestFromJSON = ReadConsumptionAccountRequestFromJSON; +function ReadConsumptionAccountRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'fromDate': json['FromDate'], + 'toDate': json['ToDate'], + }; +} +exports.ReadConsumptionAccountRequestFromJSONTyped = ReadConsumptionAccountRequestFromJSONTyped; +function ReadConsumptionAccountRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FromDate': value.fromDate, + 'ToDate': value.toDate, + }; +} +exports.ReadConsumptionAccountRequestToJSON = ReadConsumptionAccountRequestToJSON; diff --git a/dist/cjs/models/ReadConsumptionAccountResponse.d.ts b/dist/cjs/models/ReadConsumptionAccountResponse.d.ts new file mode 100644 index 00000000..9ec38ee6 --- /dev/null +++ b/dist/cjs/models/ReadConsumptionAccountResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ConsumptionEntry } from './ConsumptionEntry'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadConsumptionAccountResponse + */ +export interface ReadConsumptionAccountResponse { + /** + * Information about the resources consumed during the specified time period. + * @type {Array} + * @memberof ReadConsumptionAccountResponse + */ + consumptionEntries?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadConsumptionAccountResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadConsumptionAccountResponseFromJSON(json: any): ReadConsumptionAccountResponse; +export declare function ReadConsumptionAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsumptionAccountResponse; +export declare function ReadConsumptionAccountResponseToJSON(value?: ReadConsumptionAccountResponse | null): any; diff --git a/dist/cjs/models/ReadConsumptionAccountResponse.js b/dist/cjs/models/ReadConsumptionAccountResponse.js new file mode 100644 index 00000000..cc2169b5 --- /dev/null +++ b/dist/cjs/models/ReadConsumptionAccountResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadConsumptionAccountResponseToJSON = exports.ReadConsumptionAccountResponseFromJSONTyped = exports.ReadConsumptionAccountResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ConsumptionEntry_1 = require("./ConsumptionEntry"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadConsumptionAccountResponseFromJSON(json) { + return ReadConsumptionAccountResponseFromJSONTyped(json, false); +} +exports.ReadConsumptionAccountResponseFromJSON = ReadConsumptionAccountResponseFromJSON; +function ReadConsumptionAccountResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'consumptionEntries': !(0, runtime_1.exists)(json, 'ConsumptionEntries') ? undefined : (json['ConsumptionEntries'].map(ConsumptionEntry_1.ConsumptionEntryFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadConsumptionAccountResponseFromJSONTyped = ReadConsumptionAccountResponseFromJSONTyped; +function ReadConsumptionAccountResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConsumptionEntries': value.consumptionEntries === undefined ? undefined : (value.consumptionEntries.map(ConsumptionEntry_1.ConsumptionEntryToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadConsumptionAccountResponseToJSON = ReadConsumptionAccountResponseToJSON; diff --git a/dist/cjs/models/ReadDhcpOptionsRequest.d.ts b/dist/cjs/models/ReadDhcpOptionsRequest.d.ts new file mode 100644 index 00000000..14ceb1f2 --- /dev/null +++ b/dist/cjs/models/ReadDhcpOptionsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersDhcpOptions } from './FiltersDhcpOptions'; +/** + * + * @export + * @interface ReadDhcpOptionsRequest + */ +export interface ReadDhcpOptionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDhcpOptionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDhcpOptions} + * @memberof ReadDhcpOptionsRequest + */ + filters?: FiltersDhcpOptions; +} +export declare function ReadDhcpOptionsRequestFromJSON(json: any): ReadDhcpOptionsRequest; +export declare function ReadDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDhcpOptionsRequest; +export declare function ReadDhcpOptionsRequestToJSON(value?: ReadDhcpOptionsRequest | null): any; diff --git a/dist/cjs/models/ReadDhcpOptionsRequest.js b/dist/cjs/models/ReadDhcpOptionsRequest.js new file mode 100644 index 00000000..6e592314 --- /dev/null +++ b/dist/cjs/models/ReadDhcpOptionsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadDhcpOptionsRequestToJSON = exports.ReadDhcpOptionsRequestFromJSONTyped = exports.ReadDhcpOptionsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersDhcpOptions_1 = require("./FiltersDhcpOptions"); +function ReadDhcpOptionsRequestFromJSON(json) { + return ReadDhcpOptionsRequestFromJSONTyped(json, false); +} +exports.ReadDhcpOptionsRequestFromJSON = ReadDhcpOptionsRequestFromJSON; +function ReadDhcpOptionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersDhcpOptions_1.FiltersDhcpOptionsFromJSON)(json['Filters']), + }; +} +exports.ReadDhcpOptionsRequestFromJSONTyped = ReadDhcpOptionsRequestFromJSONTyped; +function ReadDhcpOptionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersDhcpOptions_1.FiltersDhcpOptionsToJSON)(value.filters), + }; +} +exports.ReadDhcpOptionsRequestToJSON = ReadDhcpOptionsRequestToJSON; diff --git a/dist/cjs/models/ReadDhcpOptionsResponse.d.ts b/dist/cjs/models/ReadDhcpOptionsResponse.d.ts new file mode 100644 index 00000000..e6f6de18 --- /dev/null +++ b/dist/cjs/models/ReadDhcpOptionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DhcpOptionsSet } from './DhcpOptionsSet'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadDhcpOptionsResponse + */ +export interface ReadDhcpOptionsResponse { + /** + * Information about one or more DHCP options sets. + * @type {Array} + * @memberof ReadDhcpOptionsResponse + */ + dhcpOptionsSets?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadDhcpOptionsResponseFromJSON(json: any): ReadDhcpOptionsResponse; +export declare function ReadDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDhcpOptionsResponse; +export declare function ReadDhcpOptionsResponseToJSON(value?: ReadDhcpOptionsResponse | null): any; diff --git a/dist/cjs/models/ReadDhcpOptionsResponse.js b/dist/cjs/models/ReadDhcpOptionsResponse.js new file mode 100644 index 00000000..ba720391 --- /dev/null +++ b/dist/cjs/models/ReadDhcpOptionsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadDhcpOptionsResponseToJSON = exports.ReadDhcpOptionsResponseFromJSONTyped = exports.ReadDhcpOptionsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DhcpOptionsSet_1 = require("./DhcpOptionsSet"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadDhcpOptionsResponseFromJSON(json) { + return ReadDhcpOptionsResponseFromJSONTyped(json, false); +} +exports.ReadDhcpOptionsResponseFromJSON = ReadDhcpOptionsResponseFromJSON; +function ReadDhcpOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSets': !(0, runtime_1.exists)(json, 'DhcpOptionsSets') ? undefined : (json['DhcpOptionsSets'].map(DhcpOptionsSet_1.DhcpOptionsSetFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadDhcpOptionsResponseFromJSONTyped = ReadDhcpOptionsResponseFromJSONTyped; +function ReadDhcpOptionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSets': value.dhcpOptionsSets === undefined ? undefined : (value.dhcpOptionsSets.map(DhcpOptionsSet_1.DhcpOptionsSetToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadDhcpOptionsResponseToJSON = ReadDhcpOptionsResponseToJSON; diff --git a/dist/cjs/models/ReadDirectLinkInterfacesRequest.d.ts b/dist/cjs/models/ReadDirectLinkInterfacesRequest.d.ts new file mode 100644 index 00000000..9a303f57 --- /dev/null +++ b/dist/cjs/models/ReadDirectLinkInterfacesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersDirectLinkInterface } from './FiltersDirectLinkInterface'; +/** + * + * @export + * @interface ReadDirectLinkInterfacesRequest + */ +export interface ReadDirectLinkInterfacesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDirectLinkInterfacesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDirectLinkInterface} + * @memberof ReadDirectLinkInterfacesRequest + */ + filters?: FiltersDirectLinkInterface; +} +export declare function ReadDirectLinkInterfacesRequestFromJSON(json: any): ReadDirectLinkInterfacesRequest; +export declare function ReadDirectLinkInterfacesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinkInterfacesRequest; +export declare function ReadDirectLinkInterfacesRequestToJSON(value?: ReadDirectLinkInterfacesRequest | null): any; diff --git a/dist/cjs/models/ReadDirectLinkInterfacesRequest.js b/dist/cjs/models/ReadDirectLinkInterfacesRequest.js new file mode 100644 index 00000000..97ff19ef --- /dev/null +++ b/dist/cjs/models/ReadDirectLinkInterfacesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadDirectLinkInterfacesRequestToJSON = exports.ReadDirectLinkInterfacesRequestFromJSONTyped = exports.ReadDirectLinkInterfacesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersDirectLinkInterface_1 = require("./FiltersDirectLinkInterface"); +function ReadDirectLinkInterfacesRequestFromJSON(json) { + return ReadDirectLinkInterfacesRequestFromJSONTyped(json, false); +} +exports.ReadDirectLinkInterfacesRequestFromJSON = ReadDirectLinkInterfacesRequestFromJSON; +function ReadDirectLinkInterfacesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersDirectLinkInterface_1.FiltersDirectLinkInterfaceFromJSON)(json['Filters']), + }; +} +exports.ReadDirectLinkInterfacesRequestFromJSONTyped = ReadDirectLinkInterfacesRequestFromJSONTyped; +function ReadDirectLinkInterfacesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersDirectLinkInterface_1.FiltersDirectLinkInterfaceToJSON)(value.filters), + }; +} +exports.ReadDirectLinkInterfacesRequestToJSON = ReadDirectLinkInterfacesRequestToJSON; diff --git a/dist/cjs/models/ReadDirectLinkInterfacesResponse.d.ts b/dist/cjs/models/ReadDirectLinkInterfacesResponse.d.ts new file mode 100644 index 00000000..82126023 --- /dev/null +++ b/dist/cjs/models/ReadDirectLinkInterfacesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLinkInterfaces } from './DirectLinkInterfaces'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadDirectLinkInterfacesResponse + */ +export interface ReadDirectLinkInterfacesResponse { + /** + * Information about one or more DirectLink interfaces. + * @type {Array} + * @memberof ReadDirectLinkInterfacesResponse + */ + directLinkInterfaces?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDirectLinkInterfacesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadDirectLinkInterfacesResponseFromJSON(json: any): ReadDirectLinkInterfacesResponse; +export declare function ReadDirectLinkInterfacesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinkInterfacesResponse; +export declare function ReadDirectLinkInterfacesResponseToJSON(value?: ReadDirectLinkInterfacesResponse | null): any; diff --git a/dist/cjs/models/ReadDirectLinkInterfacesResponse.js b/dist/cjs/models/ReadDirectLinkInterfacesResponse.js new file mode 100644 index 00000000..3f2b7014 --- /dev/null +++ b/dist/cjs/models/ReadDirectLinkInterfacesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadDirectLinkInterfacesResponseToJSON = exports.ReadDirectLinkInterfacesResponseFromJSONTyped = exports.ReadDirectLinkInterfacesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DirectLinkInterfaces_1 = require("./DirectLinkInterfaces"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadDirectLinkInterfacesResponseFromJSON(json) { + return ReadDirectLinkInterfacesResponseFromJSONTyped(json, false); +} +exports.ReadDirectLinkInterfacesResponseFromJSON = ReadDirectLinkInterfacesResponseFromJSON; +function ReadDirectLinkInterfacesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkInterfaces': !(0, runtime_1.exists)(json, 'DirectLinkInterfaces') ? undefined : (json['DirectLinkInterfaces'].map(DirectLinkInterfaces_1.DirectLinkInterfacesFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadDirectLinkInterfacesResponseFromJSONTyped = ReadDirectLinkInterfacesResponseFromJSONTyped; +function ReadDirectLinkInterfacesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkInterfaces': value.directLinkInterfaces === undefined ? undefined : (value.directLinkInterfaces.map(DirectLinkInterfaces_1.DirectLinkInterfacesToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadDirectLinkInterfacesResponseToJSON = ReadDirectLinkInterfacesResponseToJSON; diff --git a/dist/cjs/models/ReadDirectLinksRequest.d.ts b/dist/cjs/models/ReadDirectLinksRequest.d.ts new file mode 100644 index 00000000..0d7b78ef --- /dev/null +++ b/dist/cjs/models/ReadDirectLinksRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersDirectLink } from './FiltersDirectLink'; +/** + * + * @export + * @interface ReadDirectLinksRequest + */ +export interface ReadDirectLinksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDirectLinksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDirectLink} + * @memberof ReadDirectLinksRequest + */ + filters?: FiltersDirectLink; +} +export declare function ReadDirectLinksRequestFromJSON(json: any): ReadDirectLinksRequest; +export declare function ReadDirectLinksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinksRequest; +export declare function ReadDirectLinksRequestToJSON(value?: ReadDirectLinksRequest | null): any; diff --git a/dist/cjs/models/ReadDirectLinksRequest.js b/dist/cjs/models/ReadDirectLinksRequest.js new file mode 100644 index 00000000..ea7348f3 --- /dev/null +++ b/dist/cjs/models/ReadDirectLinksRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadDirectLinksRequestToJSON = exports.ReadDirectLinksRequestFromJSONTyped = exports.ReadDirectLinksRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersDirectLink_1 = require("./FiltersDirectLink"); +function ReadDirectLinksRequestFromJSON(json) { + return ReadDirectLinksRequestFromJSONTyped(json, false); +} +exports.ReadDirectLinksRequestFromJSON = ReadDirectLinksRequestFromJSON; +function ReadDirectLinksRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersDirectLink_1.FiltersDirectLinkFromJSON)(json['Filters']), + }; +} +exports.ReadDirectLinksRequestFromJSONTyped = ReadDirectLinksRequestFromJSONTyped; +function ReadDirectLinksRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersDirectLink_1.FiltersDirectLinkToJSON)(value.filters), + }; +} +exports.ReadDirectLinksRequestToJSON = ReadDirectLinksRequestToJSON; diff --git a/dist/cjs/models/ReadDirectLinksResponse.d.ts b/dist/cjs/models/ReadDirectLinksResponse.d.ts new file mode 100644 index 00000000..7a271163 --- /dev/null +++ b/dist/cjs/models/ReadDirectLinksResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLink } from './DirectLink'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadDirectLinksResponse + */ +export interface ReadDirectLinksResponse { + /** + * Information about one or more DirectLinks. + * @type {Array} + * @memberof ReadDirectLinksResponse + */ + directLinks?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDirectLinksResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadDirectLinksResponseFromJSON(json: any): ReadDirectLinksResponse; +export declare function ReadDirectLinksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinksResponse; +export declare function ReadDirectLinksResponseToJSON(value?: ReadDirectLinksResponse | null): any; diff --git a/dist/cjs/models/ReadDirectLinksResponse.js b/dist/cjs/models/ReadDirectLinksResponse.js new file mode 100644 index 00000000..31be3df0 --- /dev/null +++ b/dist/cjs/models/ReadDirectLinksResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadDirectLinksResponseToJSON = exports.ReadDirectLinksResponseFromJSONTyped = exports.ReadDirectLinksResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const DirectLink_1 = require("./DirectLink"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadDirectLinksResponseFromJSON(json) { + return ReadDirectLinksResponseFromJSONTyped(json, false); +} +exports.ReadDirectLinksResponseFromJSON = ReadDirectLinksResponseFromJSON; +function ReadDirectLinksResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinks': !(0, runtime_1.exists)(json, 'DirectLinks') ? undefined : (json['DirectLinks'].map(DirectLink_1.DirectLinkFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadDirectLinksResponseFromJSONTyped = ReadDirectLinksResponseFromJSONTyped; +function ReadDirectLinksResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinks': value.directLinks === undefined ? undefined : (value.directLinks.map(DirectLink_1.DirectLinkToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadDirectLinksResponseToJSON = ReadDirectLinksResponseToJSON; diff --git a/dist/cjs/models/ReadFlexibleGpuCatalogRequest.d.ts b/dist/cjs/models/ReadFlexibleGpuCatalogRequest.d.ts new file mode 100644 index 00000000..7986d990 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpuCatalogRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadFlexibleGpuCatalogRequest + */ +export interface ReadFlexibleGpuCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadFlexibleGpuCatalogRequest + */ + dryRun?: boolean; +} +export declare function ReadFlexibleGpuCatalogRequestFromJSON(json: any): ReadFlexibleGpuCatalogRequest; +export declare function ReadFlexibleGpuCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpuCatalogRequest; +export declare function ReadFlexibleGpuCatalogRequestToJSON(value?: ReadFlexibleGpuCatalogRequest | null): any; diff --git a/dist/cjs/models/ReadFlexibleGpuCatalogRequest.js b/dist/cjs/models/ReadFlexibleGpuCatalogRequest.js new file mode 100644 index 00000000..979f50a7 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpuCatalogRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadFlexibleGpuCatalogRequestToJSON = exports.ReadFlexibleGpuCatalogRequestFromJSONTyped = exports.ReadFlexibleGpuCatalogRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadFlexibleGpuCatalogRequestFromJSON(json) { + return ReadFlexibleGpuCatalogRequestFromJSONTyped(json, false); +} +exports.ReadFlexibleGpuCatalogRequestFromJSON = ReadFlexibleGpuCatalogRequestFromJSON; +function ReadFlexibleGpuCatalogRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadFlexibleGpuCatalogRequestFromJSONTyped = ReadFlexibleGpuCatalogRequestFromJSONTyped; +function ReadFlexibleGpuCatalogRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadFlexibleGpuCatalogRequestToJSON = ReadFlexibleGpuCatalogRequestToJSON; diff --git a/dist/cjs/models/ReadFlexibleGpuCatalogResponse.d.ts b/dist/cjs/models/ReadFlexibleGpuCatalogResponse.d.ts new file mode 100644 index 00000000..a89c1101 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpuCatalogResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpuCatalog } from './FlexibleGpuCatalog'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadFlexibleGpuCatalogResponse + */ +export interface ReadFlexibleGpuCatalogResponse { + /** + * Information about one or more fGPUs available in the public catalog. + * @type {Array} + * @memberof ReadFlexibleGpuCatalogResponse + */ + flexibleGpuCatalog?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadFlexibleGpuCatalogResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadFlexibleGpuCatalogResponseFromJSON(json: any): ReadFlexibleGpuCatalogResponse; +export declare function ReadFlexibleGpuCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpuCatalogResponse; +export declare function ReadFlexibleGpuCatalogResponseToJSON(value?: ReadFlexibleGpuCatalogResponse | null): any; diff --git a/dist/cjs/models/ReadFlexibleGpuCatalogResponse.js b/dist/cjs/models/ReadFlexibleGpuCatalogResponse.js new file mode 100644 index 00000000..e3007b77 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpuCatalogResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadFlexibleGpuCatalogResponseToJSON = exports.ReadFlexibleGpuCatalogResponseFromJSONTyped = exports.ReadFlexibleGpuCatalogResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FlexibleGpuCatalog_1 = require("./FlexibleGpuCatalog"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadFlexibleGpuCatalogResponseFromJSON(json) { + return ReadFlexibleGpuCatalogResponseFromJSONTyped(json, false); +} +exports.ReadFlexibleGpuCatalogResponseFromJSON = ReadFlexibleGpuCatalogResponseFromJSON; +function ReadFlexibleGpuCatalogResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpuCatalog': !(0, runtime_1.exists)(json, 'FlexibleGpuCatalog') ? undefined : (json['FlexibleGpuCatalog'].map(FlexibleGpuCatalog_1.FlexibleGpuCatalogFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadFlexibleGpuCatalogResponseFromJSONTyped = ReadFlexibleGpuCatalogResponseFromJSONTyped; +function ReadFlexibleGpuCatalogResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpuCatalog': value.flexibleGpuCatalog === undefined ? undefined : (value.flexibleGpuCatalog.map(FlexibleGpuCatalog_1.FlexibleGpuCatalogToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadFlexibleGpuCatalogResponseToJSON = ReadFlexibleGpuCatalogResponseToJSON; diff --git a/dist/cjs/models/ReadFlexibleGpusRequest.d.ts b/dist/cjs/models/ReadFlexibleGpusRequest.d.ts new file mode 100644 index 00000000..ff9f66e0 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpusRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersFlexibleGpu } from './FiltersFlexibleGpu'; +/** + * + * @export + * @interface ReadFlexibleGpusRequest + */ +export interface ReadFlexibleGpusRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadFlexibleGpusRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersFlexibleGpu} + * @memberof ReadFlexibleGpusRequest + */ + filters?: FiltersFlexibleGpu; +} +export declare function ReadFlexibleGpusRequestFromJSON(json: any): ReadFlexibleGpusRequest; +export declare function ReadFlexibleGpusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpusRequest; +export declare function ReadFlexibleGpusRequestToJSON(value?: ReadFlexibleGpusRequest | null): any; diff --git a/dist/cjs/models/ReadFlexibleGpusRequest.js b/dist/cjs/models/ReadFlexibleGpusRequest.js new file mode 100644 index 00000000..96a4a055 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpusRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadFlexibleGpusRequestToJSON = exports.ReadFlexibleGpusRequestFromJSONTyped = exports.ReadFlexibleGpusRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersFlexibleGpu_1 = require("./FiltersFlexibleGpu"); +function ReadFlexibleGpusRequestFromJSON(json) { + return ReadFlexibleGpusRequestFromJSONTyped(json, false); +} +exports.ReadFlexibleGpusRequestFromJSON = ReadFlexibleGpusRequestFromJSON; +function ReadFlexibleGpusRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersFlexibleGpu_1.FiltersFlexibleGpuFromJSON)(json['Filters']), + }; +} +exports.ReadFlexibleGpusRequestFromJSONTyped = ReadFlexibleGpusRequestFromJSONTyped; +function ReadFlexibleGpusRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersFlexibleGpu_1.FiltersFlexibleGpuToJSON)(value.filters), + }; +} +exports.ReadFlexibleGpusRequestToJSON = ReadFlexibleGpusRequestToJSON; diff --git a/dist/cjs/models/ReadFlexibleGpusResponse.d.ts b/dist/cjs/models/ReadFlexibleGpusResponse.d.ts new file mode 100644 index 00000000..e7ce5661 --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpusResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpu } from './FlexibleGpu'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadFlexibleGpusResponse + */ +export interface ReadFlexibleGpusResponse { + /** + * Information about one or more fGPUs. + * @type {Array} + * @memberof ReadFlexibleGpusResponse + */ + flexibleGpus?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadFlexibleGpusResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadFlexibleGpusResponseFromJSON(json: any): ReadFlexibleGpusResponse; +export declare function ReadFlexibleGpusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpusResponse; +export declare function ReadFlexibleGpusResponseToJSON(value?: ReadFlexibleGpusResponse | null): any; diff --git a/dist/cjs/models/ReadFlexibleGpusResponse.js b/dist/cjs/models/ReadFlexibleGpusResponse.js new file mode 100644 index 00000000..389f4d1f --- /dev/null +++ b/dist/cjs/models/ReadFlexibleGpusResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadFlexibleGpusResponseToJSON = exports.ReadFlexibleGpusResponseFromJSONTyped = exports.ReadFlexibleGpusResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FlexibleGpu_1 = require("./FlexibleGpu"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadFlexibleGpusResponseFromJSON(json) { + return ReadFlexibleGpusResponseFromJSONTyped(json, false); +} +exports.ReadFlexibleGpusResponseFromJSON = ReadFlexibleGpusResponseFromJSON; +function ReadFlexibleGpusResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpus': !(0, runtime_1.exists)(json, 'FlexibleGpus') ? undefined : (json['FlexibleGpus'].map(FlexibleGpu_1.FlexibleGpuFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadFlexibleGpusResponseFromJSONTyped = ReadFlexibleGpusResponseFromJSONTyped; +function ReadFlexibleGpusResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpus': value.flexibleGpus === undefined ? undefined : (value.flexibleGpus.map(FlexibleGpu_1.FlexibleGpuToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadFlexibleGpusResponseToJSON = ReadFlexibleGpusResponseToJSON; diff --git a/dist/cjs/models/ReadImageExportTasksRequest.d.ts b/dist/cjs/models/ReadImageExportTasksRequest.d.ts new file mode 100644 index 00000000..3f3a127d --- /dev/null +++ b/dist/cjs/models/ReadImageExportTasksRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersExportTask } from './FiltersExportTask'; +/** + * + * @export + * @interface ReadImageExportTasksRequest + */ +export interface ReadImageExportTasksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadImageExportTasksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersExportTask} + * @memberof ReadImageExportTasksRequest + */ + filters?: FiltersExportTask; +} +export declare function ReadImageExportTasksRequestFromJSON(json: any): ReadImageExportTasksRequest; +export declare function ReadImageExportTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImageExportTasksRequest; +export declare function ReadImageExportTasksRequestToJSON(value?: ReadImageExportTasksRequest | null): any; diff --git a/dist/cjs/models/ReadImageExportTasksRequest.js b/dist/cjs/models/ReadImageExportTasksRequest.js new file mode 100644 index 00000000..86b87bbf --- /dev/null +++ b/dist/cjs/models/ReadImageExportTasksRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadImageExportTasksRequestToJSON = exports.ReadImageExportTasksRequestFromJSONTyped = exports.ReadImageExportTasksRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersExportTask_1 = require("./FiltersExportTask"); +function ReadImageExportTasksRequestFromJSON(json) { + return ReadImageExportTasksRequestFromJSONTyped(json, false); +} +exports.ReadImageExportTasksRequestFromJSON = ReadImageExportTasksRequestFromJSON; +function ReadImageExportTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersExportTask_1.FiltersExportTaskFromJSON)(json['Filters']), + }; +} +exports.ReadImageExportTasksRequestFromJSONTyped = ReadImageExportTasksRequestFromJSONTyped; +function ReadImageExportTasksRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersExportTask_1.FiltersExportTaskToJSON)(value.filters), + }; +} +exports.ReadImageExportTasksRequestToJSON = ReadImageExportTasksRequestToJSON; diff --git a/dist/cjs/models/ReadImageExportTasksResponse.d.ts b/dist/cjs/models/ReadImageExportTasksResponse.d.ts new file mode 100644 index 00000000..ccf9ccdf --- /dev/null +++ b/dist/cjs/models/ReadImageExportTasksResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ImageExportTask } from './ImageExportTask'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadImageExportTasksResponse + */ +export interface ReadImageExportTasksResponse { + /** + * Information about one or more image export tasks. + * @type {Array} + * @memberof ReadImageExportTasksResponse + */ + imageExportTasks?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadImageExportTasksResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadImageExportTasksResponseFromJSON(json: any): ReadImageExportTasksResponse; +export declare function ReadImageExportTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImageExportTasksResponse; +export declare function ReadImageExportTasksResponseToJSON(value?: ReadImageExportTasksResponse | null): any; diff --git a/dist/cjs/models/ReadImageExportTasksResponse.js b/dist/cjs/models/ReadImageExportTasksResponse.js new file mode 100644 index 00000000..5c0d66ba --- /dev/null +++ b/dist/cjs/models/ReadImageExportTasksResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadImageExportTasksResponseToJSON = exports.ReadImageExportTasksResponseFromJSONTyped = exports.ReadImageExportTasksResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ImageExportTask_1 = require("./ImageExportTask"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadImageExportTasksResponseFromJSON(json) { + return ReadImageExportTasksResponseFromJSONTyped(json, false); +} +exports.ReadImageExportTasksResponseFromJSON = ReadImageExportTasksResponseFromJSON; +function ReadImageExportTasksResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'imageExportTasks': !(0, runtime_1.exists)(json, 'ImageExportTasks') ? undefined : (json['ImageExportTasks'].map(ImageExportTask_1.ImageExportTaskFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadImageExportTasksResponseFromJSONTyped = ReadImageExportTasksResponseFromJSONTyped; +function ReadImageExportTasksResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ImageExportTasks': value.imageExportTasks === undefined ? undefined : (value.imageExportTasks.map(ImageExportTask_1.ImageExportTaskToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadImageExportTasksResponseToJSON = ReadImageExportTasksResponseToJSON; diff --git a/dist/cjs/models/ReadImagesRequest.d.ts b/dist/cjs/models/ReadImagesRequest.d.ts new file mode 100644 index 00000000..82e6882b --- /dev/null +++ b/dist/cjs/models/ReadImagesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersImage } from './FiltersImage'; +/** + * + * @export + * @interface ReadImagesRequest + */ +export interface ReadImagesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadImagesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersImage} + * @memberof ReadImagesRequest + */ + filters?: FiltersImage; +} +export declare function ReadImagesRequestFromJSON(json: any): ReadImagesRequest; +export declare function ReadImagesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImagesRequest; +export declare function ReadImagesRequestToJSON(value?: ReadImagesRequest | null): any; diff --git a/dist/cjs/models/ReadImagesRequest.js b/dist/cjs/models/ReadImagesRequest.js new file mode 100644 index 00000000..2a761fec --- /dev/null +++ b/dist/cjs/models/ReadImagesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadImagesRequestToJSON = exports.ReadImagesRequestFromJSONTyped = exports.ReadImagesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersImage_1 = require("./FiltersImage"); +function ReadImagesRequestFromJSON(json) { + return ReadImagesRequestFromJSONTyped(json, false); +} +exports.ReadImagesRequestFromJSON = ReadImagesRequestFromJSON; +function ReadImagesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersImage_1.FiltersImageFromJSON)(json['Filters']), + }; +} +exports.ReadImagesRequestFromJSONTyped = ReadImagesRequestFromJSONTyped; +function ReadImagesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersImage_1.FiltersImageToJSON)(value.filters), + }; +} +exports.ReadImagesRequestToJSON = ReadImagesRequestToJSON; diff --git a/dist/cjs/models/ReadImagesResponse.d.ts b/dist/cjs/models/ReadImagesResponse.d.ts new file mode 100644 index 00000000..aa7cb758 --- /dev/null +++ b/dist/cjs/models/ReadImagesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Image } from './Image'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadImagesResponse + */ +export interface ReadImagesResponse { + /** + * Information about one or more OMIs. + * @type {Array} + * @memberof ReadImagesResponse + */ + images?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadImagesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadImagesResponseFromJSON(json: any): ReadImagesResponse; +export declare function ReadImagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImagesResponse; +export declare function ReadImagesResponseToJSON(value?: ReadImagesResponse | null): any; diff --git a/dist/cjs/models/ReadImagesResponse.js b/dist/cjs/models/ReadImagesResponse.js new file mode 100644 index 00000000..50112214 --- /dev/null +++ b/dist/cjs/models/ReadImagesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadImagesResponseToJSON = exports.ReadImagesResponseFromJSONTyped = exports.ReadImagesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Image_1 = require("./Image"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadImagesResponseFromJSON(json) { + return ReadImagesResponseFromJSONTyped(json, false); +} +exports.ReadImagesResponseFromJSON = ReadImagesResponseFromJSON; +function ReadImagesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'images': !(0, runtime_1.exists)(json, 'Images') ? undefined : (json['Images'].map(Image_1.ImageFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadImagesResponseFromJSONTyped = ReadImagesResponseFromJSONTyped; +function ReadImagesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Images': value.images === undefined ? undefined : (value.images.map(Image_1.ImageToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadImagesResponseToJSON = ReadImagesResponseToJSON; diff --git a/dist/cjs/models/ReadInternetServicesRequest.d.ts b/dist/cjs/models/ReadInternetServicesRequest.d.ts new file mode 100644 index 00000000..ce802cf2 --- /dev/null +++ b/dist/cjs/models/ReadInternetServicesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersInternetService } from './FiltersInternetService'; +/** + * + * @export + * @interface ReadInternetServicesRequest + */ +export interface ReadInternetServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadInternetServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersInternetService} + * @memberof ReadInternetServicesRequest + */ + filters?: FiltersInternetService; +} +export declare function ReadInternetServicesRequestFromJSON(json: any): ReadInternetServicesRequest; +export declare function ReadInternetServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadInternetServicesRequest; +export declare function ReadInternetServicesRequestToJSON(value?: ReadInternetServicesRequest | null): any; diff --git a/dist/cjs/models/ReadInternetServicesRequest.js b/dist/cjs/models/ReadInternetServicesRequest.js new file mode 100644 index 00000000..e0d87e5d --- /dev/null +++ b/dist/cjs/models/ReadInternetServicesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadInternetServicesRequestToJSON = exports.ReadInternetServicesRequestFromJSONTyped = exports.ReadInternetServicesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersInternetService_1 = require("./FiltersInternetService"); +function ReadInternetServicesRequestFromJSON(json) { + return ReadInternetServicesRequestFromJSONTyped(json, false); +} +exports.ReadInternetServicesRequestFromJSON = ReadInternetServicesRequestFromJSON; +function ReadInternetServicesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersInternetService_1.FiltersInternetServiceFromJSON)(json['Filters']), + }; +} +exports.ReadInternetServicesRequestFromJSONTyped = ReadInternetServicesRequestFromJSONTyped; +function ReadInternetServicesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersInternetService_1.FiltersInternetServiceToJSON)(value.filters), + }; +} +exports.ReadInternetServicesRequestToJSON = ReadInternetServicesRequestToJSON; diff --git a/dist/cjs/models/ReadInternetServicesResponse.d.ts b/dist/cjs/models/ReadInternetServicesResponse.d.ts new file mode 100644 index 00000000..c75c4a18 --- /dev/null +++ b/dist/cjs/models/ReadInternetServicesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { InternetService } from './InternetService'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadInternetServicesResponse + */ +export interface ReadInternetServicesResponse { + /** + * Information about one or more Internet services. + * @type {Array} + * @memberof ReadInternetServicesResponse + */ + internetServices?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadInternetServicesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadInternetServicesResponseFromJSON(json: any): ReadInternetServicesResponse; +export declare function ReadInternetServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadInternetServicesResponse; +export declare function ReadInternetServicesResponseToJSON(value?: ReadInternetServicesResponse | null): any; diff --git a/dist/cjs/models/ReadInternetServicesResponse.js b/dist/cjs/models/ReadInternetServicesResponse.js new file mode 100644 index 00000000..61de0c8d --- /dev/null +++ b/dist/cjs/models/ReadInternetServicesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadInternetServicesResponseToJSON = exports.ReadInternetServicesResponseFromJSONTyped = exports.ReadInternetServicesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const InternetService_1 = require("./InternetService"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadInternetServicesResponseFromJSON(json) { + return ReadInternetServicesResponseFromJSONTyped(json, false); +} +exports.ReadInternetServicesResponseFromJSON = ReadInternetServicesResponseFromJSON; +function ReadInternetServicesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetServices': !(0, runtime_1.exists)(json, 'InternetServices') ? undefined : (json['InternetServices'].map(InternetService_1.InternetServiceFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadInternetServicesResponseFromJSONTyped = ReadInternetServicesResponseFromJSONTyped; +function ReadInternetServicesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetServices': value.internetServices === undefined ? undefined : (value.internetServices.map(InternetService_1.InternetServiceToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadInternetServicesResponseToJSON = ReadInternetServicesResponseToJSON; diff --git a/dist/cjs/models/ReadKeypairsRequest.d.ts b/dist/cjs/models/ReadKeypairsRequest.d.ts new file mode 100644 index 00000000..135cdbaf --- /dev/null +++ b/dist/cjs/models/ReadKeypairsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersKeypair } from './FiltersKeypair'; +/** + * + * @export + * @interface ReadKeypairsRequest + */ +export interface ReadKeypairsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadKeypairsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersKeypair} + * @memberof ReadKeypairsRequest + */ + filters?: FiltersKeypair; +} +export declare function ReadKeypairsRequestFromJSON(json: any): ReadKeypairsRequest; +export declare function ReadKeypairsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadKeypairsRequest; +export declare function ReadKeypairsRequestToJSON(value?: ReadKeypairsRequest | null): any; diff --git a/dist/cjs/models/ReadKeypairsRequest.js b/dist/cjs/models/ReadKeypairsRequest.js new file mode 100644 index 00000000..d104e8f2 --- /dev/null +++ b/dist/cjs/models/ReadKeypairsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadKeypairsRequestToJSON = exports.ReadKeypairsRequestFromJSONTyped = exports.ReadKeypairsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersKeypair_1 = require("./FiltersKeypair"); +function ReadKeypairsRequestFromJSON(json) { + return ReadKeypairsRequestFromJSONTyped(json, false); +} +exports.ReadKeypairsRequestFromJSON = ReadKeypairsRequestFromJSON; +function ReadKeypairsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersKeypair_1.FiltersKeypairFromJSON)(json['Filters']), + }; +} +exports.ReadKeypairsRequestFromJSONTyped = ReadKeypairsRequestFromJSONTyped; +function ReadKeypairsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersKeypair_1.FiltersKeypairToJSON)(value.filters), + }; +} +exports.ReadKeypairsRequestToJSON = ReadKeypairsRequestToJSON; diff --git a/dist/cjs/models/ReadKeypairsResponse.d.ts b/dist/cjs/models/ReadKeypairsResponse.d.ts new file mode 100644 index 00000000..8a7e27df --- /dev/null +++ b/dist/cjs/models/ReadKeypairsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Keypair } from './Keypair'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadKeypairsResponse + */ +export interface ReadKeypairsResponse { + /** + * Information about one or more keypairs. + * @type {Array} + * @memberof ReadKeypairsResponse + */ + keypairs?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadKeypairsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadKeypairsResponseFromJSON(json: any): ReadKeypairsResponse; +export declare function ReadKeypairsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadKeypairsResponse; +export declare function ReadKeypairsResponseToJSON(value?: ReadKeypairsResponse | null): any; diff --git a/dist/cjs/models/ReadKeypairsResponse.js b/dist/cjs/models/ReadKeypairsResponse.js new file mode 100644 index 00000000..e3953884 --- /dev/null +++ b/dist/cjs/models/ReadKeypairsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadKeypairsResponseToJSON = exports.ReadKeypairsResponseFromJSONTyped = exports.ReadKeypairsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Keypair_1 = require("./Keypair"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadKeypairsResponseFromJSON(json) { + return ReadKeypairsResponseFromJSONTyped(json, false); +} +exports.ReadKeypairsResponseFromJSON = ReadKeypairsResponseFromJSON; +function ReadKeypairsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairs': !(0, runtime_1.exists)(json, 'Keypairs') ? undefined : (json['Keypairs'].map(Keypair_1.KeypairFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadKeypairsResponseFromJSONTyped = ReadKeypairsResponseFromJSONTyped; +function ReadKeypairsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Keypairs': value.keypairs === undefined ? undefined : (value.keypairs.map(Keypair_1.KeypairToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadKeypairsResponseToJSON = ReadKeypairsResponseToJSON; diff --git a/dist/cjs/models/ReadListenerRulesRequest.d.ts b/dist/cjs/models/ReadListenerRulesRequest.d.ts new file mode 100644 index 00000000..291b239c --- /dev/null +++ b/dist/cjs/models/ReadListenerRulesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersListenerRule } from './FiltersListenerRule'; +/** + * + * @export + * @interface ReadListenerRulesRequest + */ +export interface ReadListenerRulesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadListenerRulesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersListenerRule} + * @memberof ReadListenerRulesRequest + */ + filters?: FiltersListenerRule; +} +export declare function ReadListenerRulesRequestFromJSON(json: any): ReadListenerRulesRequest; +export declare function ReadListenerRulesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadListenerRulesRequest; +export declare function ReadListenerRulesRequestToJSON(value?: ReadListenerRulesRequest | null): any; diff --git a/dist/cjs/models/ReadListenerRulesRequest.js b/dist/cjs/models/ReadListenerRulesRequest.js new file mode 100644 index 00000000..d0a0c805 --- /dev/null +++ b/dist/cjs/models/ReadListenerRulesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadListenerRulesRequestToJSON = exports.ReadListenerRulesRequestFromJSONTyped = exports.ReadListenerRulesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersListenerRule_1 = require("./FiltersListenerRule"); +function ReadListenerRulesRequestFromJSON(json) { + return ReadListenerRulesRequestFromJSONTyped(json, false); +} +exports.ReadListenerRulesRequestFromJSON = ReadListenerRulesRequestFromJSON; +function ReadListenerRulesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersListenerRule_1.FiltersListenerRuleFromJSON)(json['Filters']), + }; +} +exports.ReadListenerRulesRequestFromJSONTyped = ReadListenerRulesRequestFromJSONTyped; +function ReadListenerRulesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersListenerRule_1.FiltersListenerRuleToJSON)(value.filters), + }; +} +exports.ReadListenerRulesRequestToJSON = ReadListenerRulesRequestToJSON; diff --git a/dist/cjs/models/ReadListenerRulesResponse.d.ts b/dist/cjs/models/ReadListenerRulesResponse.d.ts new file mode 100644 index 00000000..7de9b6af --- /dev/null +++ b/dist/cjs/models/ReadListenerRulesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRule } from './ListenerRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadListenerRulesResponse + */ +export interface ReadListenerRulesResponse { + /** + * The list of the rules to describe. + * @type {Array} + * @memberof ReadListenerRulesResponse + */ + listenerRules?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadListenerRulesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadListenerRulesResponseFromJSON(json: any): ReadListenerRulesResponse; +export declare function ReadListenerRulesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadListenerRulesResponse; +export declare function ReadListenerRulesResponseToJSON(value?: ReadListenerRulesResponse | null): any; diff --git a/dist/cjs/models/ReadListenerRulesResponse.js b/dist/cjs/models/ReadListenerRulesResponse.js new file mode 100644 index 00000000..e10dcce1 --- /dev/null +++ b/dist/cjs/models/ReadListenerRulesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadListenerRulesResponseToJSON = exports.ReadListenerRulesResponseFromJSONTyped = exports.ReadListenerRulesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ListenerRule_1 = require("./ListenerRule"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadListenerRulesResponseFromJSON(json) { + return ReadListenerRulesResponseFromJSONTyped(json, false); +} +exports.ReadListenerRulesResponseFromJSON = ReadListenerRulesResponseFromJSON; +function ReadListenerRulesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRules': !(0, runtime_1.exists)(json, 'ListenerRules') ? undefined : (json['ListenerRules'].map(ListenerRule_1.ListenerRuleFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadListenerRulesResponseFromJSONTyped = ReadListenerRulesResponseFromJSONTyped; +function ReadListenerRulesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRules': value.listenerRules === undefined ? undefined : (value.listenerRules.map(ListenerRule_1.ListenerRuleToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadListenerRulesResponseToJSON = ReadListenerRulesResponseToJSON; diff --git a/dist/cjs/models/ReadLoadBalancerTagsRequest.d.ts b/dist/cjs/models/ReadLoadBalancerTagsRequest.d.ts new file mode 100644 index 00000000..50a38167 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancerTagsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadLoadBalancerTagsRequest + */ +export interface ReadLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof ReadLoadBalancerTagsRequest + */ + loadBalancerNames: Array; +} +export declare function ReadLoadBalancerTagsRequestFromJSON(json: any): ReadLoadBalancerTagsRequest; +export declare function ReadLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancerTagsRequest; +export declare function ReadLoadBalancerTagsRequestToJSON(value?: ReadLoadBalancerTagsRequest | null): any; diff --git a/dist/cjs/models/ReadLoadBalancerTagsRequest.js b/dist/cjs/models/ReadLoadBalancerTagsRequest.js new file mode 100644 index 00000000..9e82a3e4 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancerTagsRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadLoadBalancerTagsRequestToJSON = exports.ReadLoadBalancerTagsRequestFromJSONTyped = exports.ReadLoadBalancerTagsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadLoadBalancerTagsRequestFromJSON(json) { + return ReadLoadBalancerTagsRequestFromJSONTyped(json, false); +} +exports.ReadLoadBalancerTagsRequestFromJSON = ReadLoadBalancerTagsRequestFromJSON; +function ReadLoadBalancerTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + }; +} +exports.ReadLoadBalancerTagsRequestFromJSONTyped = ReadLoadBalancerTagsRequestFromJSONTyped; +function ReadLoadBalancerTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + }; +} +exports.ReadLoadBalancerTagsRequestToJSON = ReadLoadBalancerTagsRequestToJSON; diff --git a/dist/cjs/models/ReadLoadBalancerTagsResponse.d.ts b/dist/cjs/models/ReadLoadBalancerTagsResponse.d.ts new file mode 100644 index 00000000..7fd8af78 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancerTagsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancerTag } from './LoadBalancerTag'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadLoadBalancerTagsResponse + */ +export interface ReadLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more load balancer tags. + * @type {Array} + * @memberof ReadLoadBalancerTagsResponse + */ + tags?: Array; +} +export declare function ReadLoadBalancerTagsResponseFromJSON(json: any): ReadLoadBalancerTagsResponse; +export declare function ReadLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancerTagsResponse; +export declare function ReadLoadBalancerTagsResponseToJSON(value?: ReadLoadBalancerTagsResponse | null): any; diff --git a/dist/cjs/models/ReadLoadBalancerTagsResponse.js b/dist/cjs/models/ReadLoadBalancerTagsResponse.js new file mode 100644 index 00000000..ec262232 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancerTagsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadLoadBalancerTagsResponseToJSON = exports.ReadLoadBalancerTagsResponseFromJSONTyped = exports.ReadLoadBalancerTagsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancerTag_1 = require("./LoadBalancerTag"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadLoadBalancerTagsResponseFromJSON(json) { + return ReadLoadBalancerTagsResponseFromJSONTyped(json, false); +} +exports.ReadLoadBalancerTagsResponseFromJSON = ReadLoadBalancerTagsResponseFromJSON; +function ReadLoadBalancerTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(LoadBalancerTag_1.LoadBalancerTagFromJSON)), + }; +} +exports.ReadLoadBalancerTagsResponseFromJSONTyped = ReadLoadBalancerTagsResponseFromJSONTyped; +function ReadLoadBalancerTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(LoadBalancerTag_1.LoadBalancerTagToJSON)), + }; +} +exports.ReadLoadBalancerTagsResponseToJSON = ReadLoadBalancerTagsResponseToJSON; diff --git a/dist/cjs/models/ReadLoadBalancersRequest.d.ts b/dist/cjs/models/ReadLoadBalancersRequest.d.ts new file mode 100644 index 00000000..61d40146 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancersRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersLoadBalancer } from './FiltersLoadBalancer'; +/** + * + * @export + * @interface ReadLoadBalancersRequest + */ +export interface ReadLoadBalancersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLoadBalancersRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersLoadBalancer} + * @memberof ReadLoadBalancersRequest + */ + filters?: FiltersLoadBalancer; +} +export declare function ReadLoadBalancersRequestFromJSON(json: any): ReadLoadBalancersRequest; +export declare function ReadLoadBalancersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancersRequest; +export declare function ReadLoadBalancersRequestToJSON(value?: ReadLoadBalancersRequest | null): any; diff --git a/dist/cjs/models/ReadLoadBalancersRequest.js b/dist/cjs/models/ReadLoadBalancersRequest.js new file mode 100644 index 00000000..d4a767db --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancersRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadLoadBalancersRequestToJSON = exports.ReadLoadBalancersRequestFromJSONTyped = exports.ReadLoadBalancersRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersLoadBalancer_1 = require("./FiltersLoadBalancer"); +function ReadLoadBalancersRequestFromJSON(json) { + return ReadLoadBalancersRequestFromJSONTyped(json, false); +} +exports.ReadLoadBalancersRequestFromJSON = ReadLoadBalancersRequestFromJSON; +function ReadLoadBalancersRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersLoadBalancer_1.FiltersLoadBalancerFromJSON)(json['Filters']), + }; +} +exports.ReadLoadBalancersRequestFromJSONTyped = ReadLoadBalancersRequestFromJSONTyped; +function ReadLoadBalancersRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersLoadBalancer_1.FiltersLoadBalancerToJSON)(value.filters), + }; +} +exports.ReadLoadBalancersRequestToJSON = ReadLoadBalancersRequestToJSON; diff --git a/dist/cjs/models/ReadLoadBalancersResponse.d.ts b/dist/cjs/models/ReadLoadBalancersResponse.d.ts new file mode 100644 index 00000000..e6058695 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancersResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadLoadBalancersResponse + */ +export interface ReadLoadBalancersResponse { + /** + * Information about one or more load balancers. + * @type {Array} + * @memberof ReadLoadBalancersResponse + */ + loadBalancers?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadLoadBalancersResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadLoadBalancersResponseFromJSON(json: any): ReadLoadBalancersResponse; +export declare function ReadLoadBalancersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancersResponse; +export declare function ReadLoadBalancersResponseToJSON(value?: ReadLoadBalancersResponse | null): any; diff --git a/dist/cjs/models/ReadLoadBalancersResponse.js b/dist/cjs/models/ReadLoadBalancersResponse.js new file mode 100644 index 00000000..81e58c41 --- /dev/null +++ b/dist/cjs/models/ReadLoadBalancersResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadLoadBalancersResponseToJSON = exports.ReadLoadBalancersResponseFromJSONTyped = exports.ReadLoadBalancersResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadLoadBalancersResponseFromJSON(json) { + return ReadLoadBalancersResponseFromJSONTyped(json, false); +} +exports.ReadLoadBalancersResponseFromJSON = ReadLoadBalancersResponseFromJSON; +function ReadLoadBalancersResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancers': !(0, runtime_1.exists)(json, 'LoadBalancers') ? undefined : (json['LoadBalancers'].map(LoadBalancer_1.LoadBalancerFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadLoadBalancersResponseFromJSONTyped = ReadLoadBalancersResponseFromJSONTyped; +function ReadLoadBalancersResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancers': value.loadBalancers === undefined ? undefined : (value.loadBalancers.map(LoadBalancer_1.LoadBalancerToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadLoadBalancersResponseToJSON = ReadLoadBalancersResponseToJSON; diff --git a/dist/cjs/models/ReadLocationsRequest.d.ts b/dist/cjs/models/ReadLocationsRequest.d.ts new file mode 100644 index 00000000..30fba37a --- /dev/null +++ b/dist/cjs/models/ReadLocationsRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadLocationsRequest + */ +export interface ReadLocationsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLocationsRequest + */ + dryRun?: boolean; +} +export declare function ReadLocationsRequestFromJSON(json: any): ReadLocationsRequest; +export declare function ReadLocationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLocationsRequest; +export declare function ReadLocationsRequestToJSON(value?: ReadLocationsRequest | null): any; diff --git a/dist/cjs/models/ReadLocationsRequest.js b/dist/cjs/models/ReadLocationsRequest.js new file mode 100644 index 00000000..3cca7356 --- /dev/null +++ b/dist/cjs/models/ReadLocationsRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadLocationsRequestToJSON = exports.ReadLocationsRequestFromJSONTyped = exports.ReadLocationsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadLocationsRequestFromJSON(json) { + return ReadLocationsRequestFromJSONTyped(json, false); +} +exports.ReadLocationsRequestFromJSON = ReadLocationsRequestFromJSON; +function ReadLocationsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadLocationsRequestFromJSONTyped = ReadLocationsRequestFromJSONTyped; +function ReadLocationsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadLocationsRequestToJSON = ReadLocationsRequestToJSON; diff --git a/dist/cjs/models/ReadLocationsResponse.d.ts b/dist/cjs/models/ReadLocationsResponse.d.ts new file mode 100644 index 00000000..474b37b2 --- /dev/null +++ b/dist/cjs/models/ReadLocationsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Location } from './Location'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadLocationsResponse + */ +export interface ReadLocationsResponse { + /** + * Information about one or more locations. + * @type {Array} + * @memberof ReadLocationsResponse + */ + locations?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadLocationsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadLocationsResponseFromJSON(json: any): ReadLocationsResponse; +export declare function ReadLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLocationsResponse; +export declare function ReadLocationsResponseToJSON(value?: ReadLocationsResponse | null): any; diff --git a/dist/cjs/models/ReadLocationsResponse.js b/dist/cjs/models/ReadLocationsResponse.js new file mode 100644 index 00000000..b33bdd1b --- /dev/null +++ b/dist/cjs/models/ReadLocationsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadLocationsResponseToJSON = exports.ReadLocationsResponseFromJSONTyped = exports.ReadLocationsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Location_1 = require("./Location"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadLocationsResponseFromJSON(json) { + return ReadLocationsResponseFromJSONTyped(json, false); +} +exports.ReadLocationsResponseFromJSON = ReadLocationsResponseFromJSON; +function ReadLocationsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'locations': !(0, runtime_1.exists)(json, 'Locations') ? undefined : (json['Locations'].map(Location_1.LocationFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadLocationsResponseFromJSONTyped = ReadLocationsResponseFromJSONTyped; +function ReadLocationsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Locations': value.locations === undefined ? undefined : (value.locations.map(Location_1.LocationToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadLocationsResponseToJSON = ReadLocationsResponseToJSON; diff --git a/dist/cjs/models/ReadNatServicesRequest.d.ts b/dist/cjs/models/ReadNatServicesRequest.d.ts new file mode 100644 index 00000000..ae4180ad --- /dev/null +++ b/dist/cjs/models/ReadNatServicesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNatService } from './FiltersNatService'; +/** + * + * @export + * @interface ReadNatServicesRequest + */ +export interface ReadNatServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNatServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNatService} + * @memberof ReadNatServicesRequest + */ + filters?: FiltersNatService; +} +export declare function ReadNatServicesRequestFromJSON(json: any): ReadNatServicesRequest; +export declare function ReadNatServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNatServicesRequest; +export declare function ReadNatServicesRequestToJSON(value?: ReadNatServicesRequest | null): any; diff --git a/dist/cjs/models/ReadNatServicesRequest.js b/dist/cjs/models/ReadNatServicesRequest.js new file mode 100644 index 00000000..ee066a2b --- /dev/null +++ b/dist/cjs/models/ReadNatServicesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNatServicesRequestToJSON = exports.ReadNatServicesRequestFromJSONTyped = exports.ReadNatServicesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersNatService_1 = require("./FiltersNatService"); +function ReadNatServicesRequestFromJSON(json) { + return ReadNatServicesRequestFromJSONTyped(json, false); +} +exports.ReadNatServicesRequestFromJSON = ReadNatServicesRequestFromJSON; +function ReadNatServicesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersNatService_1.FiltersNatServiceFromJSON)(json['Filters']), + }; +} +exports.ReadNatServicesRequestFromJSONTyped = ReadNatServicesRequestFromJSONTyped; +function ReadNatServicesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersNatService_1.FiltersNatServiceToJSON)(value.filters), + }; +} +exports.ReadNatServicesRequestToJSON = ReadNatServicesRequestToJSON; diff --git a/dist/cjs/models/ReadNatServicesResponse.d.ts b/dist/cjs/models/ReadNatServicesResponse.d.ts new file mode 100644 index 00000000..17cc1288 --- /dev/null +++ b/dist/cjs/models/ReadNatServicesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NatService } from './NatService'; +/** + * + * @export + * @interface ReadNatServicesResponse + */ +export interface ReadNatServicesResponse { + /** + * Information about one or more NAT services. + * @type {Array} + * @memberof ReadNatServicesResponse + */ + natServices?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNatServicesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNatServicesResponseFromJSON(json: any): ReadNatServicesResponse; +export declare function ReadNatServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNatServicesResponse; +export declare function ReadNatServicesResponseToJSON(value?: ReadNatServicesResponse | null): any; diff --git a/dist/cjs/models/ReadNatServicesResponse.js b/dist/cjs/models/ReadNatServicesResponse.js new file mode 100644 index 00000000..1827292c --- /dev/null +++ b/dist/cjs/models/ReadNatServicesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNatServicesResponseToJSON = exports.ReadNatServicesResponseFromJSONTyped = exports.ReadNatServicesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NatService_1 = require("./NatService"); +function ReadNatServicesResponseFromJSON(json) { + return ReadNatServicesResponseFromJSONTyped(json, false); +} +exports.ReadNatServicesResponseFromJSON = ReadNatServicesResponseFromJSON; +function ReadNatServicesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natServices': !(0, runtime_1.exists)(json, 'NatServices') ? undefined : (json['NatServices'].map(NatService_1.NatServiceFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadNatServicesResponseFromJSONTyped = ReadNatServicesResponseFromJSONTyped; +function ReadNatServicesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatServices': value.natServices === undefined ? undefined : (value.natServices.map(NatService_1.NatServiceToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadNatServicesResponseToJSON = ReadNatServicesResponseToJSON; diff --git a/dist/cjs/models/ReadNetAccessPointServicesRequest.d.ts b/dist/cjs/models/ReadNetAccessPointServicesRequest.d.ts new file mode 100644 index 00000000..d81ff6b3 --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointServicesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersService } from './FiltersService'; +/** + * + * @export + * @interface ReadNetAccessPointServicesRequest + */ +export interface ReadNetAccessPointServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetAccessPointServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersService} + * @memberof ReadNetAccessPointServicesRequest + */ + filters?: FiltersService; +} +export declare function ReadNetAccessPointServicesRequestFromJSON(json: any): ReadNetAccessPointServicesRequest; +export declare function ReadNetAccessPointServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointServicesRequest; +export declare function ReadNetAccessPointServicesRequestToJSON(value?: ReadNetAccessPointServicesRequest | null): any; diff --git a/dist/cjs/models/ReadNetAccessPointServicesRequest.js b/dist/cjs/models/ReadNetAccessPointServicesRequest.js new file mode 100644 index 00000000..cdb0694d --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointServicesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetAccessPointServicesRequestToJSON = exports.ReadNetAccessPointServicesRequestFromJSONTyped = exports.ReadNetAccessPointServicesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersService_1 = require("./FiltersService"); +function ReadNetAccessPointServicesRequestFromJSON(json) { + return ReadNetAccessPointServicesRequestFromJSONTyped(json, false); +} +exports.ReadNetAccessPointServicesRequestFromJSON = ReadNetAccessPointServicesRequestFromJSON; +function ReadNetAccessPointServicesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersService_1.FiltersServiceFromJSON)(json['Filters']), + }; +} +exports.ReadNetAccessPointServicesRequestFromJSONTyped = ReadNetAccessPointServicesRequestFromJSONTyped; +function ReadNetAccessPointServicesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersService_1.FiltersServiceToJSON)(value.filters), + }; +} +exports.ReadNetAccessPointServicesRequestToJSON = ReadNetAccessPointServicesRequestToJSON; diff --git a/dist/cjs/models/ReadNetAccessPointServicesResponse.d.ts b/dist/cjs/models/ReadNetAccessPointServicesResponse.d.ts new file mode 100644 index 00000000..35217ac6 --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointServicesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Service } from './Service'; +/** + * + * @export + * @interface ReadNetAccessPointServicesResponse + */ +export interface ReadNetAccessPointServicesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetAccessPointServicesResponse + */ + responseContext?: ModelResponseContext; + /** + * The names of the services you can use for Net access points. + * @type {Array} + * @memberof ReadNetAccessPointServicesResponse + */ + services?: Array; +} +export declare function ReadNetAccessPointServicesResponseFromJSON(json: any): ReadNetAccessPointServicesResponse; +export declare function ReadNetAccessPointServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointServicesResponse; +export declare function ReadNetAccessPointServicesResponseToJSON(value?: ReadNetAccessPointServicesResponse | null): any; diff --git a/dist/cjs/models/ReadNetAccessPointServicesResponse.js b/dist/cjs/models/ReadNetAccessPointServicesResponse.js new file mode 100644 index 00000000..a7e13e6b --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointServicesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetAccessPointServicesResponseToJSON = exports.ReadNetAccessPointServicesResponseFromJSONTyped = exports.ReadNetAccessPointServicesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Service_1 = require("./Service"); +function ReadNetAccessPointServicesResponseFromJSON(json) { + return ReadNetAccessPointServicesResponseFromJSONTyped(json, false); +} +exports.ReadNetAccessPointServicesResponseFromJSON = ReadNetAccessPointServicesResponseFromJSON; +function ReadNetAccessPointServicesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'services': !(0, runtime_1.exists)(json, 'Services') ? undefined : (json['Services'].map(Service_1.ServiceFromJSON)), + }; +} +exports.ReadNetAccessPointServicesResponseFromJSONTyped = ReadNetAccessPointServicesResponseFromJSONTyped; +function ReadNetAccessPointServicesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Services': value.services === undefined ? undefined : (value.services.map(Service_1.ServiceToJSON)), + }; +} +exports.ReadNetAccessPointServicesResponseToJSON = ReadNetAccessPointServicesResponseToJSON; diff --git a/dist/cjs/models/ReadNetAccessPointsRequest.d.ts b/dist/cjs/models/ReadNetAccessPointsRequest.d.ts new file mode 100644 index 00000000..7177c5a9 --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNetAccessPoint } from './FiltersNetAccessPoint'; +/** + * + * @export + * @interface ReadNetAccessPointsRequest + */ +export interface ReadNetAccessPointsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetAccessPointsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNetAccessPoint} + * @memberof ReadNetAccessPointsRequest + */ + filters?: FiltersNetAccessPoint; +} +export declare function ReadNetAccessPointsRequestFromJSON(json: any): ReadNetAccessPointsRequest; +export declare function ReadNetAccessPointsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointsRequest; +export declare function ReadNetAccessPointsRequestToJSON(value?: ReadNetAccessPointsRequest | null): any; diff --git a/dist/cjs/models/ReadNetAccessPointsRequest.js b/dist/cjs/models/ReadNetAccessPointsRequest.js new file mode 100644 index 00000000..5503632c --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetAccessPointsRequestToJSON = exports.ReadNetAccessPointsRequestFromJSONTyped = exports.ReadNetAccessPointsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersNetAccessPoint_1 = require("./FiltersNetAccessPoint"); +function ReadNetAccessPointsRequestFromJSON(json) { + return ReadNetAccessPointsRequestFromJSONTyped(json, false); +} +exports.ReadNetAccessPointsRequestFromJSON = ReadNetAccessPointsRequestFromJSON; +function ReadNetAccessPointsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersNetAccessPoint_1.FiltersNetAccessPointFromJSON)(json['Filters']), + }; +} +exports.ReadNetAccessPointsRequestFromJSONTyped = ReadNetAccessPointsRequestFromJSONTyped; +function ReadNetAccessPointsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersNetAccessPoint_1.FiltersNetAccessPointToJSON)(value.filters), + }; +} +exports.ReadNetAccessPointsRequestToJSON = ReadNetAccessPointsRequestToJSON; diff --git a/dist/cjs/models/ReadNetAccessPointsResponse.d.ts b/dist/cjs/models/ReadNetAccessPointsResponse.d.ts new file mode 100644 index 00000000..6958efce --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetAccessPoint } from './NetAccessPoint'; +/** + * + * @export + * @interface ReadNetAccessPointsResponse + */ +export interface ReadNetAccessPointsResponse { + /** + * One or more Net access points. + * @type {Array} + * @memberof ReadNetAccessPointsResponse + */ + netAccessPoints?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetAccessPointsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNetAccessPointsResponseFromJSON(json: any): ReadNetAccessPointsResponse; +export declare function ReadNetAccessPointsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointsResponse; +export declare function ReadNetAccessPointsResponseToJSON(value?: ReadNetAccessPointsResponse | null): any; diff --git a/dist/cjs/models/ReadNetAccessPointsResponse.js b/dist/cjs/models/ReadNetAccessPointsResponse.js new file mode 100644 index 00000000..500fd185 --- /dev/null +++ b/dist/cjs/models/ReadNetAccessPointsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetAccessPointsResponseToJSON = exports.ReadNetAccessPointsResponseFromJSONTyped = exports.ReadNetAccessPointsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetAccessPoint_1 = require("./NetAccessPoint"); +function ReadNetAccessPointsResponseFromJSON(json) { + return ReadNetAccessPointsResponseFromJSONTyped(json, false); +} +exports.ReadNetAccessPointsResponseFromJSON = ReadNetAccessPointsResponseFromJSON; +function ReadNetAccessPointsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPoints': !(0, runtime_1.exists)(json, 'NetAccessPoints') ? undefined : (json['NetAccessPoints'].map(NetAccessPoint_1.NetAccessPointFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadNetAccessPointsResponseFromJSONTyped = ReadNetAccessPointsResponseFromJSONTyped; +function ReadNetAccessPointsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPoints': value.netAccessPoints === undefined ? undefined : (value.netAccessPoints.map(NetAccessPoint_1.NetAccessPointToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadNetAccessPointsResponseToJSON = ReadNetAccessPointsResponseToJSON; diff --git a/dist/cjs/models/ReadNetPeeringsRequest.d.ts b/dist/cjs/models/ReadNetPeeringsRequest.d.ts new file mode 100644 index 00000000..adab305a --- /dev/null +++ b/dist/cjs/models/ReadNetPeeringsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNetPeering } from './FiltersNetPeering'; +/** + * + * @export + * @interface ReadNetPeeringsRequest + */ +export interface ReadNetPeeringsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetPeeringsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNetPeering} + * @memberof ReadNetPeeringsRequest + */ + filters?: FiltersNetPeering; +} +export declare function ReadNetPeeringsRequestFromJSON(json: any): ReadNetPeeringsRequest; +export declare function ReadNetPeeringsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetPeeringsRequest; +export declare function ReadNetPeeringsRequestToJSON(value?: ReadNetPeeringsRequest | null): any; diff --git a/dist/cjs/models/ReadNetPeeringsRequest.js b/dist/cjs/models/ReadNetPeeringsRequest.js new file mode 100644 index 00000000..19b2ba41 --- /dev/null +++ b/dist/cjs/models/ReadNetPeeringsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetPeeringsRequestToJSON = exports.ReadNetPeeringsRequestFromJSONTyped = exports.ReadNetPeeringsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersNetPeering_1 = require("./FiltersNetPeering"); +function ReadNetPeeringsRequestFromJSON(json) { + return ReadNetPeeringsRequestFromJSONTyped(json, false); +} +exports.ReadNetPeeringsRequestFromJSON = ReadNetPeeringsRequestFromJSON; +function ReadNetPeeringsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersNetPeering_1.FiltersNetPeeringFromJSON)(json['Filters']), + }; +} +exports.ReadNetPeeringsRequestFromJSONTyped = ReadNetPeeringsRequestFromJSONTyped; +function ReadNetPeeringsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersNetPeering_1.FiltersNetPeeringToJSON)(value.filters), + }; +} +exports.ReadNetPeeringsRequestToJSON = ReadNetPeeringsRequestToJSON; diff --git a/dist/cjs/models/ReadNetPeeringsResponse.d.ts b/dist/cjs/models/ReadNetPeeringsResponse.d.ts new file mode 100644 index 00000000..7f988b63 --- /dev/null +++ b/dist/cjs/models/ReadNetPeeringsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetPeering } from './NetPeering'; +/** + * + * @export + * @interface ReadNetPeeringsResponse + */ +export interface ReadNetPeeringsResponse { + /** + * Information about one or more Net peering connections. + * @type {Array} + * @memberof ReadNetPeeringsResponse + */ + netPeerings?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetPeeringsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNetPeeringsResponseFromJSON(json: any): ReadNetPeeringsResponse; +export declare function ReadNetPeeringsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetPeeringsResponse; +export declare function ReadNetPeeringsResponseToJSON(value?: ReadNetPeeringsResponse | null): any; diff --git a/dist/cjs/models/ReadNetPeeringsResponse.js b/dist/cjs/models/ReadNetPeeringsResponse.js new file mode 100644 index 00000000..2637d843 --- /dev/null +++ b/dist/cjs/models/ReadNetPeeringsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetPeeringsResponseToJSON = exports.ReadNetPeeringsResponseFromJSONTyped = exports.ReadNetPeeringsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetPeering_1 = require("./NetPeering"); +function ReadNetPeeringsResponseFromJSON(json) { + return ReadNetPeeringsResponseFromJSONTyped(json, false); +} +exports.ReadNetPeeringsResponseFromJSON = ReadNetPeeringsResponseFromJSON; +function ReadNetPeeringsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netPeerings': !(0, runtime_1.exists)(json, 'NetPeerings') ? undefined : (json['NetPeerings'].map(NetPeering_1.NetPeeringFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadNetPeeringsResponseFromJSONTyped = ReadNetPeeringsResponseFromJSONTyped; +function ReadNetPeeringsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetPeerings': value.netPeerings === undefined ? undefined : (value.netPeerings.map(NetPeering_1.NetPeeringToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadNetPeeringsResponseToJSON = ReadNetPeeringsResponseToJSON; diff --git a/dist/cjs/models/ReadNetsRequest.d.ts b/dist/cjs/models/ReadNetsRequest.d.ts new file mode 100644 index 00000000..48131195 --- /dev/null +++ b/dist/cjs/models/ReadNetsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNet } from './FiltersNet'; +/** + * + * @export + * @interface ReadNetsRequest + */ +export interface ReadNetsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNet} + * @memberof ReadNetsRequest + */ + filters?: FiltersNet; +} +export declare function ReadNetsRequestFromJSON(json: any): ReadNetsRequest; +export declare function ReadNetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetsRequest; +export declare function ReadNetsRequestToJSON(value?: ReadNetsRequest | null): any; diff --git a/dist/cjs/models/ReadNetsRequest.js b/dist/cjs/models/ReadNetsRequest.js new file mode 100644 index 00000000..de9dae08 --- /dev/null +++ b/dist/cjs/models/ReadNetsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetsRequestToJSON = exports.ReadNetsRequestFromJSONTyped = exports.ReadNetsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersNet_1 = require("./FiltersNet"); +function ReadNetsRequestFromJSON(json) { + return ReadNetsRequestFromJSONTyped(json, false); +} +exports.ReadNetsRequestFromJSON = ReadNetsRequestFromJSON; +function ReadNetsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersNet_1.FiltersNetFromJSON)(json['Filters']), + }; +} +exports.ReadNetsRequestFromJSONTyped = ReadNetsRequestFromJSONTyped; +function ReadNetsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersNet_1.FiltersNetToJSON)(value.filters), + }; +} +exports.ReadNetsRequestToJSON = ReadNetsRequestToJSON; diff --git a/dist/cjs/models/ReadNetsResponse.d.ts b/dist/cjs/models/ReadNetsResponse.d.ts new file mode 100644 index 00000000..50c32bab --- /dev/null +++ b/dist/cjs/models/ReadNetsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Net } from './Net'; +/** + * + * @export + * @interface ReadNetsResponse + */ +export interface ReadNetsResponse { + /** + * Information about the described Nets. + * @type {Array} + * @memberof ReadNetsResponse + */ + nets?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNetsResponseFromJSON(json: any): ReadNetsResponse; +export declare function ReadNetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetsResponse; +export declare function ReadNetsResponseToJSON(value?: ReadNetsResponse | null): any; diff --git a/dist/cjs/models/ReadNetsResponse.js b/dist/cjs/models/ReadNetsResponse.js new file mode 100644 index 00000000..d862a3c3 --- /dev/null +++ b/dist/cjs/models/ReadNetsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNetsResponseToJSON = exports.ReadNetsResponseFromJSONTyped = exports.ReadNetsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Net_1 = require("./Net"); +function ReadNetsResponseFromJSON(json) { + return ReadNetsResponseFromJSONTyped(json, false); +} +exports.ReadNetsResponseFromJSON = ReadNetsResponseFromJSON; +function ReadNetsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nets': !(0, runtime_1.exists)(json, 'Nets') ? undefined : (json['Nets'].map(Net_1.NetFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadNetsResponseFromJSONTyped = ReadNetsResponseFromJSONTyped; +function ReadNetsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nets': value.nets === undefined ? undefined : (value.nets.map(Net_1.NetToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadNetsResponseToJSON = ReadNetsResponseToJSON; diff --git a/dist/cjs/models/ReadNicsRequest.d.ts b/dist/cjs/models/ReadNicsRequest.d.ts new file mode 100644 index 00000000..6deba50f --- /dev/null +++ b/dist/cjs/models/ReadNicsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNic } from './FiltersNic'; +/** + * + * @export + * @interface ReadNicsRequest + */ +export interface ReadNicsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNicsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNic} + * @memberof ReadNicsRequest + */ + filters?: FiltersNic; +} +export declare function ReadNicsRequestFromJSON(json: any): ReadNicsRequest; +export declare function ReadNicsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNicsRequest; +export declare function ReadNicsRequestToJSON(value?: ReadNicsRequest | null): any; diff --git a/dist/cjs/models/ReadNicsRequest.js b/dist/cjs/models/ReadNicsRequest.js new file mode 100644 index 00000000..4c494efb --- /dev/null +++ b/dist/cjs/models/ReadNicsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNicsRequestToJSON = exports.ReadNicsRequestFromJSONTyped = exports.ReadNicsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersNic_1 = require("./FiltersNic"); +function ReadNicsRequestFromJSON(json) { + return ReadNicsRequestFromJSONTyped(json, false); +} +exports.ReadNicsRequestFromJSON = ReadNicsRequestFromJSON; +function ReadNicsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersNic_1.FiltersNicFromJSON)(json['Filters']), + }; +} +exports.ReadNicsRequestFromJSONTyped = ReadNicsRequestFromJSONTyped; +function ReadNicsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersNic_1.FiltersNicToJSON)(value.filters), + }; +} +exports.ReadNicsRequestToJSON = ReadNicsRequestToJSON; diff --git a/dist/cjs/models/ReadNicsResponse.d.ts b/dist/cjs/models/ReadNicsResponse.d.ts new file mode 100644 index 00000000..c59c7717 --- /dev/null +++ b/dist/cjs/models/ReadNicsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Nic } from './Nic'; +/** + * + * @export + * @interface ReadNicsResponse + */ +export interface ReadNicsResponse { + /** + * Information about one or more NICs. + * @type {Array} + * @memberof ReadNicsResponse + */ + nics?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNicsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNicsResponseFromJSON(json: any): ReadNicsResponse; +export declare function ReadNicsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNicsResponse; +export declare function ReadNicsResponseToJSON(value?: ReadNicsResponse | null): any; diff --git a/dist/cjs/models/ReadNicsResponse.js b/dist/cjs/models/ReadNicsResponse.js new file mode 100644 index 00000000..eb90c69f --- /dev/null +++ b/dist/cjs/models/ReadNicsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadNicsResponseToJSON = exports.ReadNicsResponseFromJSONTyped = exports.ReadNicsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Nic_1 = require("./Nic"); +function ReadNicsResponseFromJSON(json) { + return ReadNicsResponseFromJSONTyped(json, false); +} +exports.ReadNicsResponseFromJSON = ReadNicsResponseFromJSON; +function ReadNicsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nics': !(0, runtime_1.exists)(json, 'Nics') ? undefined : (json['Nics'].map(Nic_1.NicFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadNicsResponseFromJSONTyped = ReadNicsResponseFromJSONTyped; +function ReadNicsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nics': value.nics === undefined ? undefined : (value.nics.map(Nic_1.NicToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadNicsResponseToJSON = ReadNicsResponseToJSON; diff --git a/dist/cjs/models/ReadProductTypesRequest.d.ts b/dist/cjs/models/ReadProductTypesRequest.d.ts new file mode 100644 index 00000000..0d3f8b58 --- /dev/null +++ b/dist/cjs/models/ReadProductTypesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersProductType } from './FiltersProductType'; +/** + * + * @export + * @interface ReadProductTypesRequest + */ +export interface ReadProductTypesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadProductTypesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersProductType} + * @memberof ReadProductTypesRequest + */ + filters?: FiltersProductType; +} +export declare function ReadProductTypesRequestFromJSON(json: any): ReadProductTypesRequest; +export declare function ReadProductTypesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadProductTypesRequest; +export declare function ReadProductTypesRequestToJSON(value?: ReadProductTypesRequest | null): any; diff --git a/dist/cjs/models/ReadProductTypesRequest.js b/dist/cjs/models/ReadProductTypesRequest.js new file mode 100644 index 00000000..f70062ae --- /dev/null +++ b/dist/cjs/models/ReadProductTypesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadProductTypesRequestToJSON = exports.ReadProductTypesRequestFromJSONTyped = exports.ReadProductTypesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersProductType_1 = require("./FiltersProductType"); +function ReadProductTypesRequestFromJSON(json) { + return ReadProductTypesRequestFromJSONTyped(json, false); +} +exports.ReadProductTypesRequestFromJSON = ReadProductTypesRequestFromJSON; +function ReadProductTypesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersProductType_1.FiltersProductTypeFromJSON)(json['Filters']), + }; +} +exports.ReadProductTypesRequestFromJSONTyped = ReadProductTypesRequestFromJSONTyped; +function ReadProductTypesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersProductType_1.FiltersProductTypeToJSON)(value.filters), + }; +} +exports.ReadProductTypesRequestToJSON = ReadProductTypesRequestToJSON; diff --git a/dist/cjs/models/ReadProductTypesResponse.d.ts b/dist/cjs/models/ReadProductTypesResponse.d.ts new file mode 100644 index 00000000..9573a503 --- /dev/null +++ b/dist/cjs/models/ReadProductTypesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ProductType } from './ProductType'; +/** + * + * @export + * @interface ReadProductTypesResponse + */ +export interface ReadProductTypesResponse { + /** + * Information about one or more product types. + * @type {Array} + * @memberof ReadProductTypesResponse + */ + productTypes?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadProductTypesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadProductTypesResponseFromJSON(json: any): ReadProductTypesResponse; +export declare function ReadProductTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadProductTypesResponse; +export declare function ReadProductTypesResponseToJSON(value?: ReadProductTypesResponse | null): any; diff --git a/dist/cjs/models/ReadProductTypesResponse.js b/dist/cjs/models/ReadProductTypesResponse.js new file mode 100644 index 00000000..3592f3e3 --- /dev/null +++ b/dist/cjs/models/ReadProductTypesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadProductTypesResponseToJSON = exports.ReadProductTypesResponseFromJSONTyped = exports.ReadProductTypesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const ProductType_1 = require("./ProductType"); +function ReadProductTypesResponseFromJSON(json) { + return ReadProductTypesResponseFromJSONTyped(json, false); +} +exports.ReadProductTypesResponseFromJSON = ReadProductTypesResponseFromJSON; +function ReadProductTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'productTypes': !(0, runtime_1.exists)(json, 'ProductTypes') ? undefined : (json['ProductTypes'].map(ProductType_1.ProductTypeFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadProductTypesResponseFromJSONTyped = ReadProductTypesResponseFromJSONTyped; +function ReadProductTypesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ProductTypes': value.productTypes === undefined ? undefined : (value.productTypes.map(ProductType_1.ProductTypeToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadProductTypesResponseToJSON = ReadProductTypesResponseToJSON; diff --git a/dist/cjs/models/ReadPublicCatalogRequest.d.ts b/dist/cjs/models/ReadPublicCatalogRequest.d.ts new file mode 100644 index 00000000..788a25a1 --- /dev/null +++ b/dist/cjs/models/ReadPublicCatalogRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadPublicCatalogRequest + */ +export interface ReadPublicCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicCatalogRequest + */ + dryRun?: boolean; +} +export declare function ReadPublicCatalogRequestFromJSON(json: any): ReadPublicCatalogRequest; +export declare function ReadPublicCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicCatalogRequest; +export declare function ReadPublicCatalogRequestToJSON(value?: ReadPublicCatalogRequest | null): any; diff --git a/dist/cjs/models/ReadPublicCatalogRequest.js b/dist/cjs/models/ReadPublicCatalogRequest.js new file mode 100644 index 00000000..f87ae808 --- /dev/null +++ b/dist/cjs/models/ReadPublicCatalogRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadPublicCatalogRequestToJSON = exports.ReadPublicCatalogRequestFromJSONTyped = exports.ReadPublicCatalogRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadPublicCatalogRequestFromJSON(json) { + return ReadPublicCatalogRequestFromJSONTyped(json, false); +} +exports.ReadPublicCatalogRequestFromJSON = ReadPublicCatalogRequestFromJSON; +function ReadPublicCatalogRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadPublicCatalogRequestFromJSONTyped = ReadPublicCatalogRequestFromJSONTyped; +function ReadPublicCatalogRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadPublicCatalogRequestToJSON = ReadPublicCatalogRequestToJSON; diff --git a/dist/cjs/models/ReadPublicCatalogResponse.d.ts b/dist/cjs/models/ReadPublicCatalogResponse.d.ts new file mode 100644 index 00000000..7f047145 --- /dev/null +++ b/dist/cjs/models/ReadPublicCatalogResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Catalog } from './Catalog'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadPublicCatalogResponse + */ +export interface ReadPublicCatalogResponse { + /** + * + * @type {Catalog} + * @memberof ReadPublicCatalogResponse + */ + catalog?: Catalog; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicCatalogResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadPublicCatalogResponseFromJSON(json: any): ReadPublicCatalogResponse; +export declare function ReadPublicCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicCatalogResponse; +export declare function ReadPublicCatalogResponseToJSON(value?: ReadPublicCatalogResponse | null): any; diff --git a/dist/cjs/models/ReadPublicCatalogResponse.js b/dist/cjs/models/ReadPublicCatalogResponse.js new file mode 100644 index 00000000..a6ad9760 --- /dev/null +++ b/dist/cjs/models/ReadPublicCatalogResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadPublicCatalogResponseToJSON = exports.ReadPublicCatalogResponseFromJSONTyped = exports.ReadPublicCatalogResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Catalog_1 = require("./Catalog"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadPublicCatalogResponseFromJSON(json) { + return ReadPublicCatalogResponseFromJSONTyped(json, false); +} +exports.ReadPublicCatalogResponseFromJSON = ReadPublicCatalogResponseFromJSON; +function ReadPublicCatalogResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'catalog': !(0, runtime_1.exists)(json, 'Catalog') ? undefined : (0, Catalog_1.CatalogFromJSON)(json['Catalog']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadPublicCatalogResponseFromJSONTyped = ReadPublicCatalogResponseFromJSONTyped; +function ReadPublicCatalogResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Catalog': (0, Catalog_1.CatalogToJSON)(value.catalog), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadPublicCatalogResponseToJSON = ReadPublicCatalogResponseToJSON; diff --git a/dist/cjs/models/ReadPublicIpRangesRequest.d.ts b/dist/cjs/models/ReadPublicIpRangesRequest.d.ts new file mode 100644 index 00000000..3f52463b --- /dev/null +++ b/dist/cjs/models/ReadPublicIpRangesRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadPublicIpRangesRequest + */ +export interface ReadPublicIpRangesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicIpRangesRequest + */ + dryRun?: boolean; +} +export declare function ReadPublicIpRangesRequestFromJSON(json: any): ReadPublicIpRangesRequest; +export declare function ReadPublicIpRangesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpRangesRequest; +export declare function ReadPublicIpRangesRequestToJSON(value?: ReadPublicIpRangesRequest | null): any; diff --git a/dist/cjs/models/ReadPublicIpRangesRequest.js b/dist/cjs/models/ReadPublicIpRangesRequest.js new file mode 100644 index 00000000..c6d9382b --- /dev/null +++ b/dist/cjs/models/ReadPublicIpRangesRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadPublicIpRangesRequestToJSON = exports.ReadPublicIpRangesRequestFromJSONTyped = exports.ReadPublicIpRangesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadPublicIpRangesRequestFromJSON(json) { + return ReadPublicIpRangesRequestFromJSONTyped(json, false); +} +exports.ReadPublicIpRangesRequestFromJSON = ReadPublicIpRangesRequestFromJSON; +function ReadPublicIpRangesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadPublicIpRangesRequestFromJSONTyped = ReadPublicIpRangesRequestFromJSONTyped; +function ReadPublicIpRangesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadPublicIpRangesRequestToJSON = ReadPublicIpRangesRequestToJSON; diff --git a/dist/cjs/models/ReadPublicIpRangesResponse.d.ts b/dist/cjs/models/ReadPublicIpRangesResponse.d.ts new file mode 100644 index 00000000..ee43bf3f --- /dev/null +++ b/dist/cjs/models/ReadPublicIpRangesResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadPublicIpRangesResponse + */ +export interface ReadPublicIpRangesResponse { + /** + * The list of public IPv4 addresses used in the Region, in CIDR notation. + * @type {Array} + * @memberof ReadPublicIpRangesResponse + */ + publicIps?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicIpRangesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadPublicIpRangesResponseFromJSON(json: any): ReadPublicIpRangesResponse; +export declare function ReadPublicIpRangesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpRangesResponse; +export declare function ReadPublicIpRangesResponseToJSON(value?: ReadPublicIpRangesResponse | null): any; diff --git a/dist/cjs/models/ReadPublicIpRangesResponse.js b/dist/cjs/models/ReadPublicIpRangesResponse.js new file mode 100644 index 00000000..74e10a67 --- /dev/null +++ b/dist/cjs/models/ReadPublicIpRangesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadPublicIpRangesResponseToJSON = exports.ReadPublicIpRangesResponseFromJSONTyped = exports.ReadPublicIpRangesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadPublicIpRangesResponseFromJSON(json) { + return ReadPublicIpRangesResponseFromJSONTyped(json, false); +} +exports.ReadPublicIpRangesResponseFromJSON = ReadPublicIpRangesResponseFromJSON; +function ReadPublicIpRangesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIps': !(0, runtime_1.exists)(json, 'PublicIps') ? undefined : json['PublicIps'], + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadPublicIpRangesResponseFromJSONTyped = ReadPublicIpRangesResponseFromJSONTyped; +function ReadPublicIpRangesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIps': value.publicIps, + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadPublicIpRangesResponseToJSON = ReadPublicIpRangesResponseToJSON; diff --git a/dist/cjs/models/ReadPublicIpsRequest.d.ts b/dist/cjs/models/ReadPublicIpsRequest.d.ts new file mode 100644 index 00000000..a3fcaa65 --- /dev/null +++ b/dist/cjs/models/ReadPublicIpsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersPublicIp } from './FiltersPublicIp'; +/** + * + * @export + * @interface ReadPublicIpsRequest + */ +export interface ReadPublicIpsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicIpsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersPublicIp} + * @memberof ReadPublicIpsRequest + */ + filters?: FiltersPublicIp; +} +export declare function ReadPublicIpsRequestFromJSON(json: any): ReadPublicIpsRequest; +export declare function ReadPublicIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpsRequest; +export declare function ReadPublicIpsRequestToJSON(value?: ReadPublicIpsRequest | null): any; diff --git a/dist/cjs/models/ReadPublicIpsRequest.js b/dist/cjs/models/ReadPublicIpsRequest.js new file mode 100644 index 00000000..1a8db615 --- /dev/null +++ b/dist/cjs/models/ReadPublicIpsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadPublicIpsRequestToJSON = exports.ReadPublicIpsRequestFromJSONTyped = exports.ReadPublicIpsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersPublicIp_1 = require("./FiltersPublicIp"); +function ReadPublicIpsRequestFromJSON(json) { + return ReadPublicIpsRequestFromJSONTyped(json, false); +} +exports.ReadPublicIpsRequestFromJSON = ReadPublicIpsRequestFromJSON; +function ReadPublicIpsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersPublicIp_1.FiltersPublicIpFromJSON)(json['Filters']), + }; +} +exports.ReadPublicIpsRequestFromJSONTyped = ReadPublicIpsRequestFromJSONTyped; +function ReadPublicIpsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersPublicIp_1.FiltersPublicIpToJSON)(value.filters), + }; +} +exports.ReadPublicIpsRequestToJSON = ReadPublicIpsRequestToJSON; diff --git a/dist/cjs/models/ReadPublicIpsResponse.d.ts b/dist/cjs/models/ReadPublicIpsResponse.d.ts new file mode 100644 index 00000000..359657a6 --- /dev/null +++ b/dist/cjs/models/ReadPublicIpsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { PublicIp } from './PublicIp'; +/** + * + * @export + * @interface ReadPublicIpsResponse + */ +export interface ReadPublicIpsResponse { + /** + * Information about one or more public IPs. + * @type {Array} + * @memberof ReadPublicIpsResponse + */ + publicIps?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicIpsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadPublicIpsResponseFromJSON(json: any): ReadPublicIpsResponse; +export declare function ReadPublicIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpsResponse; +export declare function ReadPublicIpsResponseToJSON(value?: ReadPublicIpsResponse | null): any; diff --git a/dist/cjs/models/ReadPublicIpsResponse.js b/dist/cjs/models/ReadPublicIpsResponse.js new file mode 100644 index 00000000..8eda0c61 --- /dev/null +++ b/dist/cjs/models/ReadPublicIpsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadPublicIpsResponseToJSON = exports.ReadPublicIpsResponseFromJSONTyped = exports.ReadPublicIpsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const PublicIp_1 = require("./PublicIp"); +function ReadPublicIpsResponseFromJSON(json) { + return ReadPublicIpsResponseFromJSONTyped(json, false); +} +exports.ReadPublicIpsResponseFromJSON = ReadPublicIpsResponseFromJSON; +function ReadPublicIpsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIps': !(0, runtime_1.exists)(json, 'PublicIps') ? undefined : (json['PublicIps'].map(PublicIp_1.PublicIpFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadPublicIpsResponseFromJSONTyped = ReadPublicIpsResponseFromJSONTyped; +function ReadPublicIpsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIps': value.publicIps === undefined ? undefined : (value.publicIps.map(PublicIp_1.PublicIpToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadPublicIpsResponseToJSON = ReadPublicIpsResponseToJSON; diff --git a/dist/cjs/models/ReadQuotasRequest.d.ts b/dist/cjs/models/ReadQuotasRequest.d.ts new file mode 100644 index 00000000..e988063d --- /dev/null +++ b/dist/cjs/models/ReadQuotasRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersQuota } from './FiltersQuota'; +/** + * + * @export + * @interface ReadQuotasRequest + */ +export interface ReadQuotasRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadQuotasRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersQuota} + * @memberof ReadQuotasRequest + */ + filters?: FiltersQuota; +} +export declare function ReadQuotasRequestFromJSON(json: any): ReadQuotasRequest; +export declare function ReadQuotasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadQuotasRequest; +export declare function ReadQuotasRequestToJSON(value?: ReadQuotasRequest | null): any; diff --git a/dist/cjs/models/ReadQuotasRequest.js b/dist/cjs/models/ReadQuotasRequest.js new file mode 100644 index 00000000..cb1fd8e0 --- /dev/null +++ b/dist/cjs/models/ReadQuotasRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadQuotasRequestToJSON = exports.ReadQuotasRequestFromJSONTyped = exports.ReadQuotasRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersQuota_1 = require("./FiltersQuota"); +function ReadQuotasRequestFromJSON(json) { + return ReadQuotasRequestFromJSONTyped(json, false); +} +exports.ReadQuotasRequestFromJSON = ReadQuotasRequestFromJSON; +function ReadQuotasRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersQuota_1.FiltersQuotaFromJSON)(json['Filters']), + }; +} +exports.ReadQuotasRequestFromJSONTyped = ReadQuotasRequestFromJSONTyped; +function ReadQuotasRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersQuota_1.FiltersQuotaToJSON)(value.filters), + }; +} +exports.ReadQuotasRequestToJSON = ReadQuotasRequestToJSON; diff --git a/dist/cjs/models/ReadQuotasResponse.d.ts b/dist/cjs/models/ReadQuotasResponse.d.ts new file mode 100644 index 00000000..1ec20235 --- /dev/null +++ b/dist/cjs/models/ReadQuotasResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { QuotaTypes } from './QuotaTypes'; +/** + * + * @export + * @interface ReadQuotasResponse + */ +export interface ReadQuotasResponse { + /** + * Information about one or more quotas. + * @type {Array} + * @memberof ReadQuotasResponse + */ + quotaTypes?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadQuotasResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadQuotasResponseFromJSON(json: any): ReadQuotasResponse; +export declare function ReadQuotasResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadQuotasResponse; +export declare function ReadQuotasResponseToJSON(value?: ReadQuotasResponse | null): any; diff --git a/dist/cjs/models/ReadQuotasResponse.js b/dist/cjs/models/ReadQuotasResponse.js new file mode 100644 index 00000000..dd156c81 --- /dev/null +++ b/dist/cjs/models/ReadQuotasResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadQuotasResponseToJSON = exports.ReadQuotasResponseFromJSONTyped = exports.ReadQuotasResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const QuotaTypes_1 = require("./QuotaTypes"); +function ReadQuotasResponseFromJSON(json) { + return ReadQuotasResponseFromJSONTyped(json, false); +} +exports.ReadQuotasResponseFromJSON = ReadQuotasResponseFromJSON; +function ReadQuotasResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'quotaTypes': !(0, runtime_1.exists)(json, 'QuotaTypes') ? undefined : (json['QuotaTypes'].map(QuotaTypes_1.QuotaTypesFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadQuotasResponseFromJSONTyped = ReadQuotasResponseFromJSONTyped; +function ReadQuotasResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'QuotaTypes': value.quotaTypes === undefined ? undefined : (value.quotaTypes.map(QuotaTypes_1.QuotaTypesToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadQuotasResponseToJSON = ReadQuotasResponseToJSON; diff --git a/dist/cjs/models/ReadRegionsRequest.d.ts b/dist/cjs/models/ReadRegionsRequest.d.ts new file mode 100644 index 00000000..afd052c8 --- /dev/null +++ b/dist/cjs/models/ReadRegionsRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadRegionsRequest + */ +export interface ReadRegionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadRegionsRequest + */ + dryRun?: boolean; +} +export declare function ReadRegionsRequestFromJSON(json: any): ReadRegionsRequest; +export declare function ReadRegionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRegionsRequest; +export declare function ReadRegionsRequestToJSON(value?: ReadRegionsRequest | null): any; diff --git a/dist/cjs/models/ReadRegionsRequest.js b/dist/cjs/models/ReadRegionsRequest.js new file mode 100644 index 00000000..cb5b220a --- /dev/null +++ b/dist/cjs/models/ReadRegionsRequest.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadRegionsRequestToJSON = exports.ReadRegionsRequestFromJSONTyped = exports.ReadRegionsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadRegionsRequestFromJSON(json) { + return ReadRegionsRequestFromJSONTyped(json, false); +} +exports.ReadRegionsRequestFromJSON = ReadRegionsRequestFromJSON; +function ReadRegionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadRegionsRequestFromJSONTyped = ReadRegionsRequestFromJSONTyped; +function ReadRegionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} +exports.ReadRegionsRequestToJSON = ReadRegionsRequestToJSON; diff --git a/dist/cjs/models/ReadRegionsResponse.d.ts b/dist/cjs/models/ReadRegionsResponse.d.ts new file mode 100644 index 00000000..7d10808b --- /dev/null +++ b/dist/cjs/models/ReadRegionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Region } from './Region'; +/** + * + * @export + * @interface ReadRegionsResponse + */ +export interface ReadRegionsResponse { + /** + * Information about one or more Regions. + * @type {Array} + * @memberof ReadRegionsResponse + */ + regions?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadRegionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadRegionsResponseFromJSON(json: any): ReadRegionsResponse; +export declare function ReadRegionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRegionsResponse; +export declare function ReadRegionsResponseToJSON(value?: ReadRegionsResponse | null): any; diff --git a/dist/cjs/models/ReadRegionsResponse.js b/dist/cjs/models/ReadRegionsResponse.js new file mode 100644 index 00000000..dd54a65f --- /dev/null +++ b/dist/cjs/models/ReadRegionsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadRegionsResponseToJSON = exports.ReadRegionsResponseFromJSONTyped = exports.ReadRegionsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Region_1 = require("./Region"); +function ReadRegionsResponseFromJSON(json) { + return ReadRegionsResponseFromJSONTyped(json, false); +} +exports.ReadRegionsResponseFromJSON = ReadRegionsResponseFromJSON; +function ReadRegionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'regions': !(0, runtime_1.exists)(json, 'Regions') ? undefined : (json['Regions'].map(Region_1.RegionFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadRegionsResponseFromJSONTyped = ReadRegionsResponseFromJSONTyped; +function ReadRegionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Regions': value.regions === undefined ? undefined : (value.regions.map(Region_1.RegionToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadRegionsResponseToJSON = ReadRegionsResponseToJSON; diff --git a/dist/cjs/models/ReadRouteTablesRequest.d.ts b/dist/cjs/models/ReadRouteTablesRequest.d.ts new file mode 100644 index 00000000..bc47ae47 --- /dev/null +++ b/dist/cjs/models/ReadRouteTablesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersRouteTable } from './FiltersRouteTable'; +/** + * + * @export + * @interface ReadRouteTablesRequest + */ +export interface ReadRouteTablesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadRouteTablesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersRouteTable} + * @memberof ReadRouteTablesRequest + */ + filters?: FiltersRouteTable; +} +export declare function ReadRouteTablesRequestFromJSON(json: any): ReadRouteTablesRequest; +export declare function ReadRouteTablesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRouteTablesRequest; +export declare function ReadRouteTablesRequestToJSON(value?: ReadRouteTablesRequest | null): any; diff --git a/dist/cjs/models/ReadRouteTablesRequest.js b/dist/cjs/models/ReadRouteTablesRequest.js new file mode 100644 index 00000000..2c532cec --- /dev/null +++ b/dist/cjs/models/ReadRouteTablesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadRouteTablesRequestToJSON = exports.ReadRouteTablesRequestFromJSONTyped = exports.ReadRouteTablesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersRouteTable_1 = require("./FiltersRouteTable"); +function ReadRouteTablesRequestFromJSON(json) { + return ReadRouteTablesRequestFromJSONTyped(json, false); +} +exports.ReadRouteTablesRequestFromJSON = ReadRouteTablesRequestFromJSON; +function ReadRouteTablesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersRouteTable_1.FiltersRouteTableFromJSON)(json['Filters']), + }; +} +exports.ReadRouteTablesRequestFromJSONTyped = ReadRouteTablesRequestFromJSONTyped; +function ReadRouteTablesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersRouteTable_1.FiltersRouteTableToJSON)(value.filters), + }; +} +exports.ReadRouteTablesRequestToJSON = ReadRouteTablesRequestToJSON; diff --git a/dist/cjs/models/ReadRouteTablesResponse.d.ts b/dist/cjs/models/ReadRouteTablesResponse.d.ts new file mode 100644 index 00000000..1e24180d --- /dev/null +++ b/dist/cjs/models/ReadRouteTablesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface ReadRouteTablesResponse + */ +export interface ReadRouteTablesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadRouteTablesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more route tables. + * @type {Array} + * @memberof ReadRouteTablesResponse + */ + routeTables?: Array; +} +export declare function ReadRouteTablesResponseFromJSON(json: any): ReadRouteTablesResponse; +export declare function ReadRouteTablesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRouteTablesResponse; +export declare function ReadRouteTablesResponseToJSON(value?: ReadRouteTablesResponse | null): any; diff --git a/dist/cjs/models/ReadRouteTablesResponse.js b/dist/cjs/models/ReadRouteTablesResponse.js new file mode 100644 index 00000000..ae300e1e --- /dev/null +++ b/dist/cjs/models/ReadRouteTablesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadRouteTablesResponseToJSON = exports.ReadRouteTablesResponseFromJSONTyped = exports.ReadRouteTablesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const RouteTable_1 = require("./RouteTable"); +function ReadRouteTablesResponseFromJSON(json) { + return ReadRouteTablesResponseFromJSONTyped(json, false); +} +exports.ReadRouteTablesResponseFromJSON = ReadRouteTablesResponseFromJSON; +function ReadRouteTablesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'routeTables': !(0, runtime_1.exists)(json, 'RouteTables') ? undefined : (json['RouteTables'].map(RouteTable_1.RouteTableFromJSON)), + }; +} +exports.ReadRouteTablesResponseFromJSONTyped = ReadRouteTablesResponseFromJSONTyped; +function ReadRouteTablesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'RouteTables': value.routeTables === undefined ? undefined : (value.routeTables.map(RouteTable_1.RouteTableToJSON)), + }; +} +exports.ReadRouteTablesResponseToJSON = ReadRouteTablesResponseToJSON; diff --git a/dist/cjs/models/ReadSecretAccessKeyRequest.d.ts b/dist/cjs/models/ReadSecretAccessKeyRequest.d.ts new file mode 100644 index 00000000..5c2a42f0 --- /dev/null +++ b/dist/cjs/models/ReadSecretAccessKeyRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadSecretAccessKeyRequest + */ +export interface ReadSecretAccessKeyRequest { + /** + * The ID of the access key. + * @type {string} + * @memberof ReadSecretAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSecretAccessKeyRequest + */ + dryRun?: boolean; +} +export declare function ReadSecretAccessKeyRequestFromJSON(json: any): ReadSecretAccessKeyRequest; +export declare function ReadSecretAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecretAccessKeyRequest; +export declare function ReadSecretAccessKeyRequestToJSON(value?: ReadSecretAccessKeyRequest | null): any; diff --git a/dist/cjs/models/ReadSecretAccessKeyRequest.js b/dist/cjs/models/ReadSecretAccessKeyRequest.js new file mode 100644 index 00000000..3f3fca73 --- /dev/null +++ b/dist/cjs/models/ReadSecretAccessKeyRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSecretAccessKeyRequestToJSON = exports.ReadSecretAccessKeyRequestFromJSONTyped = exports.ReadSecretAccessKeyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadSecretAccessKeyRequestFromJSON(json) { + return ReadSecretAccessKeyRequestFromJSONTyped(json, false); +} +exports.ReadSecretAccessKeyRequestFromJSON = ReadSecretAccessKeyRequestFromJSON; +function ReadSecretAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.ReadSecretAccessKeyRequestFromJSONTyped = ReadSecretAccessKeyRequestFromJSONTyped; +function ReadSecretAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + }; +} +exports.ReadSecretAccessKeyRequestToJSON = ReadSecretAccessKeyRequestToJSON; diff --git a/dist/cjs/models/ReadSecretAccessKeyResponse.d.ts b/dist/cjs/models/ReadSecretAccessKeyResponse.d.ts new file mode 100644 index 00000000..d2fcd8d9 --- /dev/null +++ b/dist/cjs/models/ReadSecretAccessKeyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKeySecretKey } from './AccessKeySecretKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadSecretAccessKeyResponse + */ +export interface ReadSecretAccessKeyResponse { + /** + * + * @type {AccessKeySecretKey} + * @memberof ReadSecretAccessKeyResponse + */ + accessKey?: AccessKeySecretKey; + /** + * + * @type {ModelResponseContext} + * @memberof ReadSecretAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadSecretAccessKeyResponseFromJSON(json: any): ReadSecretAccessKeyResponse; +export declare function ReadSecretAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecretAccessKeyResponse; +export declare function ReadSecretAccessKeyResponseToJSON(value?: ReadSecretAccessKeyResponse | null): any; diff --git a/dist/cjs/models/ReadSecretAccessKeyResponse.js b/dist/cjs/models/ReadSecretAccessKeyResponse.js new file mode 100644 index 00000000..86bce919 --- /dev/null +++ b/dist/cjs/models/ReadSecretAccessKeyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSecretAccessKeyResponseToJSON = exports.ReadSecretAccessKeyResponseFromJSONTyped = exports.ReadSecretAccessKeyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccessKeySecretKey_1 = require("./AccessKeySecretKey"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadSecretAccessKeyResponseFromJSON(json) { + return ReadSecretAccessKeyResponseFromJSONTyped(json, false); +} +exports.ReadSecretAccessKeyResponseFromJSON = ReadSecretAccessKeyResponseFromJSON; +function ReadSecretAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKey': !(0, runtime_1.exists)(json, 'AccessKey') ? undefined : (0, AccessKeySecretKey_1.AccessKeySecretKeyFromJSON)(json['AccessKey']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadSecretAccessKeyResponseFromJSONTyped = ReadSecretAccessKeyResponseFromJSONTyped; +function ReadSecretAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKey': (0, AccessKeySecretKey_1.AccessKeySecretKeyToJSON)(value.accessKey), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadSecretAccessKeyResponseToJSON = ReadSecretAccessKeyResponseToJSON; diff --git a/dist/cjs/models/ReadSecurityGroupsRequest.d.ts b/dist/cjs/models/ReadSecurityGroupsRequest.d.ts new file mode 100644 index 00000000..d742a9af --- /dev/null +++ b/dist/cjs/models/ReadSecurityGroupsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSecurityGroup } from './FiltersSecurityGroup'; +/** + * + * @export + * @interface ReadSecurityGroupsRequest + */ +export interface ReadSecurityGroupsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSecurityGroupsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSecurityGroup} + * @memberof ReadSecurityGroupsRequest + */ + filters?: FiltersSecurityGroup; +} +export declare function ReadSecurityGroupsRequestFromJSON(json: any): ReadSecurityGroupsRequest; +export declare function ReadSecurityGroupsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecurityGroupsRequest; +export declare function ReadSecurityGroupsRequestToJSON(value?: ReadSecurityGroupsRequest | null): any; diff --git a/dist/cjs/models/ReadSecurityGroupsRequest.js b/dist/cjs/models/ReadSecurityGroupsRequest.js new file mode 100644 index 00000000..f7bf05eb --- /dev/null +++ b/dist/cjs/models/ReadSecurityGroupsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSecurityGroupsRequestToJSON = exports.ReadSecurityGroupsRequestFromJSONTyped = exports.ReadSecurityGroupsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersSecurityGroup_1 = require("./FiltersSecurityGroup"); +function ReadSecurityGroupsRequestFromJSON(json) { + return ReadSecurityGroupsRequestFromJSONTyped(json, false); +} +exports.ReadSecurityGroupsRequestFromJSON = ReadSecurityGroupsRequestFromJSON; +function ReadSecurityGroupsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersSecurityGroup_1.FiltersSecurityGroupFromJSON)(json['Filters']), + }; +} +exports.ReadSecurityGroupsRequestFromJSONTyped = ReadSecurityGroupsRequestFromJSONTyped; +function ReadSecurityGroupsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersSecurityGroup_1.FiltersSecurityGroupToJSON)(value.filters), + }; +} +exports.ReadSecurityGroupsRequestToJSON = ReadSecurityGroupsRequestToJSON; diff --git a/dist/cjs/models/ReadSecurityGroupsResponse.d.ts b/dist/cjs/models/ReadSecurityGroupsResponse.d.ts new file mode 100644 index 00000000..0dfe5814 --- /dev/null +++ b/dist/cjs/models/ReadSecurityGroupsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface ReadSecurityGroupsResponse + */ +export interface ReadSecurityGroupsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSecurityGroupsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more security groups. + * @type {Array} + * @memberof ReadSecurityGroupsResponse + */ + securityGroups?: Array; +} +export declare function ReadSecurityGroupsResponseFromJSON(json: any): ReadSecurityGroupsResponse; +export declare function ReadSecurityGroupsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecurityGroupsResponse; +export declare function ReadSecurityGroupsResponseToJSON(value?: ReadSecurityGroupsResponse | null): any; diff --git a/dist/cjs/models/ReadSecurityGroupsResponse.js b/dist/cjs/models/ReadSecurityGroupsResponse.js new file mode 100644 index 00000000..81808226 --- /dev/null +++ b/dist/cjs/models/ReadSecurityGroupsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSecurityGroupsResponseToJSON = exports.ReadSecurityGroupsResponseFromJSONTyped = exports.ReadSecurityGroupsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const SecurityGroup_1 = require("./SecurityGroup"); +function ReadSecurityGroupsResponseFromJSON(json) { + return ReadSecurityGroupsResponseFromJSONTyped(json, false); +} +exports.ReadSecurityGroupsResponseFromJSON = ReadSecurityGroupsResponseFromJSON; +function ReadSecurityGroupsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroup_1.SecurityGroupFromJSON)), + }; +} +exports.ReadSecurityGroupsResponseFromJSONTyped = ReadSecurityGroupsResponseFromJSONTyped; +function ReadSecurityGroupsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroup_1.SecurityGroupToJSON)), + }; +} +exports.ReadSecurityGroupsResponseToJSON = ReadSecurityGroupsResponseToJSON; diff --git a/dist/cjs/models/ReadServerCertificatesRequest.d.ts b/dist/cjs/models/ReadServerCertificatesRequest.d.ts new file mode 100644 index 00000000..3f911710 --- /dev/null +++ b/dist/cjs/models/ReadServerCertificatesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersServerCertificate } from './FiltersServerCertificate'; +/** + * + * @export + * @interface ReadServerCertificatesRequest + */ +export interface ReadServerCertificatesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadServerCertificatesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersServerCertificate} + * @memberof ReadServerCertificatesRequest + */ + filters?: FiltersServerCertificate; +} +export declare function ReadServerCertificatesRequestFromJSON(json: any): ReadServerCertificatesRequest; +export declare function ReadServerCertificatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadServerCertificatesRequest; +export declare function ReadServerCertificatesRequestToJSON(value?: ReadServerCertificatesRequest | null): any; diff --git a/dist/cjs/models/ReadServerCertificatesRequest.js b/dist/cjs/models/ReadServerCertificatesRequest.js new file mode 100644 index 00000000..13d85544 --- /dev/null +++ b/dist/cjs/models/ReadServerCertificatesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadServerCertificatesRequestToJSON = exports.ReadServerCertificatesRequestFromJSONTyped = exports.ReadServerCertificatesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersServerCertificate_1 = require("./FiltersServerCertificate"); +function ReadServerCertificatesRequestFromJSON(json) { + return ReadServerCertificatesRequestFromJSONTyped(json, false); +} +exports.ReadServerCertificatesRequestFromJSON = ReadServerCertificatesRequestFromJSON; +function ReadServerCertificatesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersServerCertificate_1.FiltersServerCertificateFromJSON)(json['Filters']), + }; +} +exports.ReadServerCertificatesRequestFromJSONTyped = ReadServerCertificatesRequestFromJSONTyped; +function ReadServerCertificatesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersServerCertificate_1.FiltersServerCertificateToJSON)(value.filters), + }; +} +exports.ReadServerCertificatesRequestToJSON = ReadServerCertificatesRequestToJSON; diff --git a/dist/cjs/models/ReadServerCertificatesResponse.d.ts b/dist/cjs/models/ReadServerCertificatesResponse.d.ts new file mode 100644 index 00000000..36982853 --- /dev/null +++ b/dist/cjs/models/ReadServerCertificatesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ServerCertificate } from './ServerCertificate'; +/** + * + * @export + * @interface ReadServerCertificatesResponse + */ +export interface ReadServerCertificatesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadServerCertificatesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more server certificates. + * @type {Array} + * @memberof ReadServerCertificatesResponse + */ + serverCertificates?: Array; +} +export declare function ReadServerCertificatesResponseFromJSON(json: any): ReadServerCertificatesResponse; +export declare function ReadServerCertificatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadServerCertificatesResponse; +export declare function ReadServerCertificatesResponseToJSON(value?: ReadServerCertificatesResponse | null): any; diff --git a/dist/cjs/models/ReadServerCertificatesResponse.js b/dist/cjs/models/ReadServerCertificatesResponse.js new file mode 100644 index 00000000..4def6dc3 --- /dev/null +++ b/dist/cjs/models/ReadServerCertificatesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadServerCertificatesResponseToJSON = exports.ReadServerCertificatesResponseFromJSONTyped = exports.ReadServerCertificatesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const ServerCertificate_1 = require("./ServerCertificate"); +function ReadServerCertificatesResponseFromJSON(json) { + return ReadServerCertificatesResponseFromJSONTyped(json, false); +} +exports.ReadServerCertificatesResponseFromJSON = ReadServerCertificatesResponseFromJSON; +function ReadServerCertificatesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'serverCertificates': !(0, runtime_1.exists)(json, 'ServerCertificates') ? undefined : (json['ServerCertificates'].map(ServerCertificate_1.ServerCertificateFromJSON)), + }; +} +exports.ReadServerCertificatesResponseFromJSONTyped = ReadServerCertificatesResponseFromJSONTyped; +function ReadServerCertificatesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'ServerCertificates': value.serverCertificates === undefined ? undefined : (value.serverCertificates.map(ServerCertificate_1.ServerCertificateToJSON)), + }; +} +exports.ReadServerCertificatesResponseToJSON = ReadServerCertificatesResponseToJSON; diff --git a/dist/cjs/models/ReadSnapshotExportTasksRequest.d.ts b/dist/cjs/models/ReadSnapshotExportTasksRequest.d.ts new file mode 100644 index 00000000..a49a2d36 --- /dev/null +++ b/dist/cjs/models/ReadSnapshotExportTasksRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersExportTask } from './FiltersExportTask'; +/** + * + * @export + * @interface ReadSnapshotExportTasksRequest + */ +export interface ReadSnapshotExportTasksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSnapshotExportTasksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersExportTask} + * @memberof ReadSnapshotExportTasksRequest + */ + filters?: FiltersExportTask; +} +export declare function ReadSnapshotExportTasksRequestFromJSON(json: any): ReadSnapshotExportTasksRequest; +export declare function ReadSnapshotExportTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotExportTasksRequest; +export declare function ReadSnapshotExportTasksRequestToJSON(value?: ReadSnapshotExportTasksRequest | null): any; diff --git a/dist/cjs/models/ReadSnapshotExportTasksRequest.js b/dist/cjs/models/ReadSnapshotExportTasksRequest.js new file mode 100644 index 00000000..df6614b1 --- /dev/null +++ b/dist/cjs/models/ReadSnapshotExportTasksRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSnapshotExportTasksRequestToJSON = exports.ReadSnapshotExportTasksRequestFromJSONTyped = exports.ReadSnapshotExportTasksRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersExportTask_1 = require("./FiltersExportTask"); +function ReadSnapshotExportTasksRequestFromJSON(json) { + return ReadSnapshotExportTasksRequestFromJSONTyped(json, false); +} +exports.ReadSnapshotExportTasksRequestFromJSON = ReadSnapshotExportTasksRequestFromJSON; +function ReadSnapshotExportTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersExportTask_1.FiltersExportTaskFromJSON)(json['Filters']), + }; +} +exports.ReadSnapshotExportTasksRequestFromJSONTyped = ReadSnapshotExportTasksRequestFromJSONTyped; +function ReadSnapshotExportTasksRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersExportTask_1.FiltersExportTaskToJSON)(value.filters), + }; +} +exports.ReadSnapshotExportTasksRequestToJSON = ReadSnapshotExportTasksRequestToJSON; diff --git a/dist/cjs/models/ReadSnapshotExportTasksResponse.d.ts b/dist/cjs/models/ReadSnapshotExportTasksResponse.d.ts new file mode 100644 index 00000000..6e3865b3 --- /dev/null +++ b/dist/cjs/models/ReadSnapshotExportTasksResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SnapshotExportTask } from './SnapshotExportTask'; +/** + * + * @export + * @interface ReadSnapshotExportTasksResponse + */ +export interface ReadSnapshotExportTasksResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSnapshotExportTasksResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more snapshot export tasks. + * @type {Array} + * @memberof ReadSnapshotExportTasksResponse + */ + snapshotExportTasks?: Array; +} +export declare function ReadSnapshotExportTasksResponseFromJSON(json: any): ReadSnapshotExportTasksResponse; +export declare function ReadSnapshotExportTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotExportTasksResponse; +export declare function ReadSnapshotExportTasksResponseToJSON(value?: ReadSnapshotExportTasksResponse | null): any; diff --git a/dist/cjs/models/ReadSnapshotExportTasksResponse.js b/dist/cjs/models/ReadSnapshotExportTasksResponse.js new file mode 100644 index 00000000..48b5356a --- /dev/null +++ b/dist/cjs/models/ReadSnapshotExportTasksResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSnapshotExportTasksResponseToJSON = exports.ReadSnapshotExportTasksResponseFromJSONTyped = exports.ReadSnapshotExportTasksResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const SnapshotExportTask_1 = require("./SnapshotExportTask"); +function ReadSnapshotExportTasksResponseFromJSON(json) { + return ReadSnapshotExportTasksResponseFromJSONTyped(json, false); +} +exports.ReadSnapshotExportTasksResponseFromJSON = ReadSnapshotExportTasksResponseFromJSON; +function ReadSnapshotExportTasksResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'snapshotExportTasks': !(0, runtime_1.exists)(json, 'SnapshotExportTasks') ? undefined : (json['SnapshotExportTasks'].map(SnapshotExportTask_1.SnapshotExportTaskFromJSON)), + }; +} +exports.ReadSnapshotExportTasksResponseFromJSONTyped = ReadSnapshotExportTasksResponseFromJSONTyped; +function ReadSnapshotExportTasksResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'SnapshotExportTasks': value.snapshotExportTasks === undefined ? undefined : (value.snapshotExportTasks.map(SnapshotExportTask_1.SnapshotExportTaskToJSON)), + }; +} +exports.ReadSnapshotExportTasksResponseToJSON = ReadSnapshotExportTasksResponseToJSON; diff --git a/dist/cjs/models/ReadSnapshotsRequest.d.ts b/dist/cjs/models/ReadSnapshotsRequest.d.ts new file mode 100644 index 00000000..dcac53bc --- /dev/null +++ b/dist/cjs/models/ReadSnapshotsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSnapshot } from './FiltersSnapshot'; +/** + * + * @export + * @interface ReadSnapshotsRequest + */ +export interface ReadSnapshotsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSnapshotsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSnapshot} + * @memberof ReadSnapshotsRequest + */ + filters?: FiltersSnapshot; +} +export declare function ReadSnapshotsRequestFromJSON(json: any): ReadSnapshotsRequest; +export declare function ReadSnapshotsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotsRequest; +export declare function ReadSnapshotsRequestToJSON(value?: ReadSnapshotsRequest | null): any; diff --git a/dist/cjs/models/ReadSnapshotsRequest.js b/dist/cjs/models/ReadSnapshotsRequest.js new file mode 100644 index 00000000..a715c6e7 --- /dev/null +++ b/dist/cjs/models/ReadSnapshotsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSnapshotsRequestToJSON = exports.ReadSnapshotsRequestFromJSONTyped = exports.ReadSnapshotsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersSnapshot_1 = require("./FiltersSnapshot"); +function ReadSnapshotsRequestFromJSON(json) { + return ReadSnapshotsRequestFromJSONTyped(json, false); +} +exports.ReadSnapshotsRequestFromJSON = ReadSnapshotsRequestFromJSON; +function ReadSnapshotsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersSnapshot_1.FiltersSnapshotFromJSON)(json['Filters']), + }; +} +exports.ReadSnapshotsRequestFromJSONTyped = ReadSnapshotsRequestFromJSONTyped; +function ReadSnapshotsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersSnapshot_1.FiltersSnapshotToJSON)(value.filters), + }; +} +exports.ReadSnapshotsRequestToJSON = ReadSnapshotsRequestToJSON; diff --git a/dist/cjs/models/ReadSnapshotsResponse.d.ts b/dist/cjs/models/ReadSnapshotsResponse.d.ts new file mode 100644 index 00000000..677065d8 --- /dev/null +++ b/dist/cjs/models/ReadSnapshotsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Snapshot } from './Snapshot'; +/** + * + * @export + * @interface ReadSnapshotsResponse + */ +export interface ReadSnapshotsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSnapshotsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more snapshots and their permissions. + * @type {Array} + * @memberof ReadSnapshotsResponse + */ + snapshots?: Array; +} +export declare function ReadSnapshotsResponseFromJSON(json: any): ReadSnapshotsResponse; +export declare function ReadSnapshotsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotsResponse; +export declare function ReadSnapshotsResponseToJSON(value?: ReadSnapshotsResponse | null): any; diff --git a/dist/cjs/models/ReadSnapshotsResponse.js b/dist/cjs/models/ReadSnapshotsResponse.js new file mode 100644 index 00000000..6072f957 --- /dev/null +++ b/dist/cjs/models/ReadSnapshotsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSnapshotsResponseToJSON = exports.ReadSnapshotsResponseFromJSONTyped = exports.ReadSnapshotsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Snapshot_1 = require("./Snapshot"); +function ReadSnapshotsResponseFromJSON(json) { + return ReadSnapshotsResponseFromJSONTyped(json, false); +} +exports.ReadSnapshotsResponseFromJSON = ReadSnapshotsResponseFromJSON; +function ReadSnapshotsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'snapshots': !(0, runtime_1.exists)(json, 'Snapshots') ? undefined : (json['Snapshots'].map(Snapshot_1.SnapshotFromJSON)), + }; +} +exports.ReadSnapshotsResponseFromJSONTyped = ReadSnapshotsResponseFromJSONTyped; +function ReadSnapshotsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Snapshots': value.snapshots === undefined ? undefined : (value.snapshots.map(Snapshot_1.SnapshotToJSON)), + }; +} +exports.ReadSnapshotsResponseToJSON = ReadSnapshotsResponseToJSON; diff --git a/dist/cjs/models/ReadSubnetsRequest.d.ts b/dist/cjs/models/ReadSubnetsRequest.d.ts new file mode 100644 index 00000000..ed839c91 --- /dev/null +++ b/dist/cjs/models/ReadSubnetsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSubnet } from './FiltersSubnet'; +/** + * + * @export + * @interface ReadSubnetsRequest + */ +export interface ReadSubnetsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSubnetsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSubnet} + * @memberof ReadSubnetsRequest + */ + filters?: FiltersSubnet; +} +export declare function ReadSubnetsRequestFromJSON(json: any): ReadSubnetsRequest; +export declare function ReadSubnetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubnetsRequest; +export declare function ReadSubnetsRequestToJSON(value?: ReadSubnetsRequest | null): any; diff --git a/dist/cjs/models/ReadSubnetsRequest.js b/dist/cjs/models/ReadSubnetsRequest.js new file mode 100644 index 00000000..0600b5ec --- /dev/null +++ b/dist/cjs/models/ReadSubnetsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSubnetsRequestToJSON = exports.ReadSubnetsRequestFromJSONTyped = exports.ReadSubnetsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersSubnet_1 = require("./FiltersSubnet"); +function ReadSubnetsRequestFromJSON(json) { + return ReadSubnetsRequestFromJSONTyped(json, false); +} +exports.ReadSubnetsRequestFromJSON = ReadSubnetsRequestFromJSON; +function ReadSubnetsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersSubnet_1.FiltersSubnetFromJSON)(json['Filters']), + }; +} +exports.ReadSubnetsRequestFromJSONTyped = ReadSubnetsRequestFromJSONTyped; +function ReadSubnetsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersSubnet_1.FiltersSubnetToJSON)(value.filters), + }; +} +exports.ReadSubnetsRequestToJSON = ReadSubnetsRequestToJSON; diff --git a/dist/cjs/models/ReadSubnetsResponse.d.ts b/dist/cjs/models/ReadSubnetsResponse.d.ts new file mode 100644 index 00000000..55a5bf72 --- /dev/null +++ b/dist/cjs/models/ReadSubnetsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subnet } from './Subnet'; +/** + * + * @export + * @interface ReadSubnetsResponse + */ +export interface ReadSubnetsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSubnetsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more Subnets. + * @type {Array} + * @memberof ReadSubnetsResponse + */ + subnets?: Array; +} +export declare function ReadSubnetsResponseFromJSON(json: any): ReadSubnetsResponse; +export declare function ReadSubnetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubnetsResponse; +export declare function ReadSubnetsResponseToJSON(value?: ReadSubnetsResponse | null): any; diff --git a/dist/cjs/models/ReadSubnetsResponse.js b/dist/cjs/models/ReadSubnetsResponse.js new file mode 100644 index 00000000..71ef773f --- /dev/null +++ b/dist/cjs/models/ReadSubnetsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSubnetsResponseToJSON = exports.ReadSubnetsResponseFromJSONTyped = exports.ReadSubnetsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Subnet_1 = require("./Subnet"); +function ReadSubnetsResponseFromJSON(json) { + return ReadSubnetsResponseFromJSONTyped(json, false); +} +exports.ReadSubnetsResponseFromJSON = ReadSubnetsResponseFromJSON; +function ReadSubnetsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'subnets': !(0, runtime_1.exists)(json, 'Subnets') ? undefined : (json['Subnets'].map(Subnet_1.SubnetFromJSON)), + }; +} +exports.ReadSubnetsResponseFromJSONTyped = ReadSubnetsResponseFromJSONTyped; +function ReadSubnetsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Subnets': value.subnets === undefined ? undefined : (value.subnets.map(Subnet_1.SubnetToJSON)), + }; +} +exports.ReadSubnetsResponseToJSON = ReadSubnetsResponseToJSON; diff --git a/dist/cjs/models/ReadSubregionsRequest.d.ts b/dist/cjs/models/ReadSubregionsRequest.d.ts new file mode 100644 index 00000000..2f1ecc35 --- /dev/null +++ b/dist/cjs/models/ReadSubregionsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSubregion } from './FiltersSubregion'; +/** + * + * @export + * @interface ReadSubregionsRequest + */ +export interface ReadSubregionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSubregionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSubregion} + * @memberof ReadSubregionsRequest + */ + filters?: FiltersSubregion; +} +export declare function ReadSubregionsRequestFromJSON(json: any): ReadSubregionsRequest; +export declare function ReadSubregionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubregionsRequest; +export declare function ReadSubregionsRequestToJSON(value?: ReadSubregionsRequest | null): any; diff --git a/dist/cjs/models/ReadSubregionsRequest.js b/dist/cjs/models/ReadSubregionsRequest.js new file mode 100644 index 00000000..3452512a --- /dev/null +++ b/dist/cjs/models/ReadSubregionsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSubregionsRequestToJSON = exports.ReadSubregionsRequestFromJSONTyped = exports.ReadSubregionsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersSubregion_1 = require("./FiltersSubregion"); +function ReadSubregionsRequestFromJSON(json) { + return ReadSubregionsRequestFromJSONTyped(json, false); +} +exports.ReadSubregionsRequestFromJSON = ReadSubregionsRequestFromJSON; +function ReadSubregionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersSubregion_1.FiltersSubregionFromJSON)(json['Filters']), + }; +} +exports.ReadSubregionsRequestFromJSONTyped = ReadSubregionsRequestFromJSONTyped; +function ReadSubregionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersSubregion_1.FiltersSubregionToJSON)(value.filters), + }; +} +exports.ReadSubregionsRequestToJSON = ReadSubregionsRequestToJSON; diff --git a/dist/cjs/models/ReadSubregionsResponse.d.ts b/dist/cjs/models/ReadSubregionsResponse.d.ts new file mode 100644 index 00000000..0fda14a3 --- /dev/null +++ b/dist/cjs/models/ReadSubregionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subregion } from './Subregion'; +/** + * + * @export + * @interface ReadSubregionsResponse + */ +export interface ReadSubregionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSubregionsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more Subregions. + * @type {Array} + * @memberof ReadSubregionsResponse + */ + subregions?: Array; +} +export declare function ReadSubregionsResponseFromJSON(json: any): ReadSubregionsResponse; +export declare function ReadSubregionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubregionsResponse; +export declare function ReadSubregionsResponseToJSON(value?: ReadSubregionsResponse | null): any; diff --git a/dist/cjs/models/ReadSubregionsResponse.js b/dist/cjs/models/ReadSubregionsResponse.js new file mode 100644 index 00000000..e753381d --- /dev/null +++ b/dist/cjs/models/ReadSubregionsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadSubregionsResponseToJSON = exports.ReadSubregionsResponseFromJSONTyped = exports.ReadSubregionsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Subregion_1 = require("./Subregion"); +function ReadSubregionsResponseFromJSON(json) { + return ReadSubregionsResponseFromJSONTyped(json, false); +} +exports.ReadSubregionsResponseFromJSON = ReadSubregionsResponseFromJSON; +function ReadSubregionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'subregions': !(0, runtime_1.exists)(json, 'Subregions') ? undefined : (json['Subregions'].map(Subregion_1.SubregionFromJSON)), + }; +} +exports.ReadSubregionsResponseFromJSONTyped = ReadSubregionsResponseFromJSONTyped; +function ReadSubregionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Subregions': value.subregions === undefined ? undefined : (value.subregions.map(Subregion_1.SubregionToJSON)), + }; +} +exports.ReadSubregionsResponseToJSON = ReadSubregionsResponseToJSON; diff --git a/dist/cjs/models/ReadTagsRequest.d.ts b/dist/cjs/models/ReadTagsRequest.d.ts new file mode 100644 index 00000000..f2cc5403 --- /dev/null +++ b/dist/cjs/models/ReadTagsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersTag } from './FiltersTag'; +/** + * + * @export + * @interface ReadTagsRequest + */ +export interface ReadTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadTagsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersTag} + * @memberof ReadTagsRequest + */ + filters?: FiltersTag; +} +export declare function ReadTagsRequestFromJSON(json: any): ReadTagsRequest; +export declare function ReadTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadTagsRequest; +export declare function ReadTagsRequestToJSON(value?: ReadTagsRequest | null): any; diff --git a/dist/cjs/models/ReadTagsRequest.js b/dist/cjs/models/ReadTagsRequest.js new file mode 100644 index 00000000..053d5c30 --- /dev/null +++ b/dist/cjs/models/ReadTagsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadTagsRequestToJSON = exports.ReadTagsRequestFromJSONTyped = exports.ReadTagsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersTag_1 = require("./FiltersTag"); +function ReadTagsRequestFromJSON(json) { + return ReadTagsRequestFromJSONTyped(json, false); +} +exports.ReadTagsRequestFromJSON = ReadTagsRequestFromJSON; +function ReadTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersTag_1.FiltersTagFromJSON)(json['Filters']), + }; +} +exports.ReadTagsRequestFromJSONTyped = ReadTagsRequestFromJSONTyped; +function ReadTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersTag_1.FiltersTagToJSON)(value.filters), + }; +} +exports.ReadTagsRequestToJSON = ReadTagsRequestToJSON; diff --git a/dist/cjs/models/ReadTagsResponse.d.ts b/dist/cjs/models/ReadTagsResponse.d.ts new file mode 100644 index 00000000..9e730ab2 --- /dev/null +++ b/dist/cjs/models/ReadTagsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Tag } from './Tag'; +/** + * + * @export + * @interface ReadTagsResponse + */ +export interface ReadTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadTagsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more tags. + * @type {Array} + * @memberof ReadTagsResponse + */ + tags?: Array; +} +export declare function ReadTagsResponseFromJSON(json: any): ReadTagsResponse; +export declare function ReadTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadTagsResponse; +export declare function ReadTagsResponseToJSON(value?: ReadTagsResponse | null): any; diff --git a/dist/cjs/models/ReadTagsResponse.js b/dist/cjs/models/ReadTagsResponse.js new file mode 100644 index 00000000..71f03246 --- /dev/null +++ b/dist/cjs/models/ReadTagsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadTagsResponseToJSON = exports.ReadTagsResponseFromJSONTyped = exports.ReadTagsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Tag_1 = require("./Tag"); +function ReadTagsResponseFromJSON(json) { + return ReadTagsResponseFromJSONTyped(json, false); +} +exports.ReadTagsResponseFromJSON = ReadTagsResponseFromJSON; +function ReadTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(Tag_1.TagFromJSON)), + }; +} +exports.ReadTagsResponseFromJSONTyped = ReadTagsResponseFromJSONTyped; +function ReadTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(Tag_1.TagToJSON)), + }; +} +exports.ReadTagsResponseToJSON = ReadTagsResponseToJSON; diff --git a/dist/cjs/models/ReadVirtualGatewaysRequest.d.ts b/dist/cjs/models/ReadVirtualGatewaysRequest.d.ts new file mode 100644 index 00000000..867d5abe --- /dev/null +++ b/dist/cjs/models/ReadVirtualGatewaysRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVirtualGateway } from './FiltersVirtualGateway'; +/** + * + * @export + * @interface ReadVirtualGatewaysRequest + */ +export interface ReadVirtualGatewaysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVirtualGatewaysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVirtualGateway} + * @memberof ReadVirtualGatewaysRequest + */ + filters?: FiltersVirtualGateway; +} +export declare function ReadVirtualGatewaysRequestFromJSON(json: any): ReadVirtualGatewaysRequest; +export declare function ReadVirtualGatewaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVirtualGatewaysRequest; +export declare function ReadVirtualGatewaysRequestToJSON(value?: ReadVirtualGatewaysRequest | null): any; diff --git a/dist/cjs/models/ReadVirtualGatewaysRequest.js b/dist/cjs/models/ReadVirtualGatewaysRequest.js new file mode 100644 index 00000000..738d9956 --- /dev/null +++ b/dist/cjs/models/ReadVirtualGatewaysRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVirtualGatewaysRequestToJSON = exports.ReadVirtualGatewaysRequestFromJSONTyped = exports.ReadVirtualGatewaysRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersVirtualGateway_1 = require("./FiltersVirtualGateway"); +function ReadVirtualGatewaysRequestFromJSON(json) { + return ReadVirtualGatewaysRequestFromJSONTyped(json, false); +} +exports.ReadVirtualGatewaysRequestFromJSON = ReadVirtualGatewaysRequestFromJSON; +function ReadVirtualGatewaysRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersVirtualGateway_1.FiltersVirtualGatewayFromJSON)(json['Filters']), + }; +} +exports.ReadVirtualGatewaysRequestFromJSONTyped = ReadVirtualGatewaysRequestFromJSONTyped; +function ReadVirtualGatewaysRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersVirtualGateway_1.FiltersVirtualGatewayToJSON)(value.filters), + }; +} +exports.ReadVirtualGatewaysRequestToJSON = ReadVirtualGatewaysRequestToJSON; diff --git a/dist/cjs/models/ReadVirtualGatewaysResponse.d.ts b/dist/cjs/models/ReadVirtualGatewaysResponse.d.ts new file mode 100644 index 00000000..06cdcc34 --- /dev/null +++ b/dist/cjs/models/ReadVirtualGatewaysResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VirtualGateway } from './VirtualGateway'; +/** + * + * @export + * @interface ReadVirtualGatewaysResponse + */ +export interface ReadVirtualGatewaysResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVirtualGatewaysResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more virtual gateways. + * @type {Array} + * @memberof ReadVirtualGatewaysResponse + */ + virtualGateways?: Array; +} +export declare function ReadVirtualGatewaysResponseFromJSON(json: any): ReadVirtualGatewaysResponse; +export declare function ReadVirtualGatewaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVirtualGatewaysResponse; +export declare function ReadVirtualGatewaysResponseToJSON(value?: ReadVirtualGatewaysResponse | null): any; diff --git a/dist/cjs/models/ReadVirtualGatewaysResponse.js b/dist/cjs/models/ReadVirtualGatewaysResponse.js new file mode 100644 index 00000000..c8fb8862 --- /dev/null +++ b/dist/cjs/models/ReadVirtualGatewaysResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVirtualGatewaysResponseToJSON = exports.ReadVirtualGatewaysResponseFromJSONTyped = exports.ReadVirtualGatewaysResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VirtualGateway_1 = require("./VirtualGateway"); +function ReadVirtualGatewaysResponseFromJSON(json) { + return ReadVirtualGatewaysResponseFromJSONTyped(json, false); +} +exports.ReadVirtualGatewaysResponseFromJSON = ReadVirtualGatewaysResponseFromJSON; +function ReadVirtualGatewaysResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'virtualGateways': !(0, runtime_1.exists)(json, 'VirtualGateways') ? undefined : (json['VirtualGateways'].map(VirtualGateway_1.VirtualGatewayFromJSON)), + }; +} +exports.ReadVirtualGatewaysResponseFromJSONTyped = ReadVirtualGatewaysResponseFromJSONTyped; +function ReadVirtualGatewaysResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VirtualGateways': value.virtualGateways === undefined ? undefined : (value.virtualGateways.map(VirtualGateway_1.VirtualGatewayToJSON)), + }; +} +exports.ReadVirtualGatewaysResponseToJSON = ReadVirtualGatewaysResponseToJSON; diff --git a/dist/cjs/models/ReadVmTypesRequest.d.ts b/dist/cjs/models/ReadVmTypesRequest.d.ts new file mode 100644 index 00000000..f5cda9f9 --- /dev/null +++ b/dist/cjs/models/ReadVmTypesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVmType } from './FiltersVmType'; +/** + * + * @export + * @interface ReadVmTypesRequest + */ +export interface ReadVmTypesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmTypesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVmType} + * @memberof ReadVmTypesRequest + */ + filters?: FiltersVmType; +} +export declare function ReadVmTypesRequestFromJSON(json: any): ReadVmTypesRequest; +export declare function ReadVmTypesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmTypesRequest; +export declare function ReadVmTypesRequestToJSON(value?: ReadVmTypesRequest | null): any; diff --git a/dist/cjs/models/ReadVmTypesRequest.js b/dist/cjs/models/ReadVmTypesRequest.js new file mode 100644 index 00000000..788d1f6b --- /dev/null +++ b/dist/cjs/models/ReadVmTypesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmTypesRequestToJSON = exports.ReadVmTypesRequestFromJSONTyped = exports.ReadVmTypesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersVmType_1 = require("./FiltersVmType"); +function ReadVmTypesRequestFromJSON(json) { + return ReadVmTypesRequestFromJSONTyped(json, false); +} +exports.ReadVmTypesRequestFromJSON = ReadVmTypesRequestFromJSON; +function ReadVmTypesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersVmType_1.FiltersVmTypeFromJSON)(json['Filters']), + }; +} +exports.ReadVmTypesRequestFromJSONTyped = ReadVmTypesRequestFromJSONTyped; +function ReadVmTypesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersVmType_1.FiltersVmTypeToJSON)(value.filters), + }; +} +exports.ReadVmTypesRequestToJSON = ReadVmTypesRequestToJSON; diff --git a/dist/cjs/models/ReadVmTypesResponse.d.ts b/dist/cjs/models/ReadVmTypesResponse.d.ts new file mode 100644 index 00000000..ff6b77a3 --- /dev/null +++ b/dist/cjs/models/ReadVmTypesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmType } from './VmType'; +/** + * + * @export + * @interface ReadVmTypesResponse + */ +export interface ReadVmTypesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmTypesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VM types. + * @type {Array} + * @memberof ReadVmTypesResponse + */ + vmTypes?: Array; +} +export declare function ReadVmTypesResponseFromJSON(json: any): ReadVmTypesResponse; +export declare function ReadVmTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmTypesResponse; +export declare function ReadVmTypesResponseToJSON(value?: ReadVmTypesResponse | null): any; diff --git a/dist/cjs/models/ReadVmTypesResponse.js b/dist/cjs/models/ReadVmTypesResponse.js new file mode 100644 index 00000000..078f1b80 --- /dev/null +++ b/dist/cjs/models/ReadVmTypesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmTypesResponseToJSON = exports.ReadVmTypesResponseFromJSONTyped = exports.ReadVmTypesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VmType_1 = require("./VmType"); +function ReadVmTypesResponseFromJSON(json) { + return ReadVmTypesResponseFromJSONTyped(json, false); +} +exports.ReadVmTypesResponseFromJSON = ReadVmTypesResponseFromJSON; +function ReadVmTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vmTypes': !(0, runtime_1.exists)(json, 'VmTypes') ? undefined : (json['VmTypes'].map(VmType_1.VmTypeFromJSON)), + }; +} +exports.ReadVmTypesResponseFromJSONTyped = ReadVmTypesResponseFromJSONTyped; +function ReadVmTypesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VmTypes': value.vmTypes === undefined ? undefined : (value.vmTypes.map(VmType_1.VmTypeToJSON)), + }; +} +exports.ReadVmTypesResponseToJSON = ReadVmTypesResponseToJSON; diff --git a/dist/cjs/models/ReadVmsHealthRequest.d.ts b/dist/cjs/models/ReadVmsHealthRequest.d.ts new file mode 100644 index 00000000..7051ed7d --- /dev/null +++ b/dist/cjs/models/ReadVmsHealthRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadVmsHealthRequest + */ +export interface ReadVmsHealthRequest { + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof ReadVmsHealthRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsHealthRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof ReadVmsHealthRequest + */ + loadBalancerName: string; +} +export declare function ReadVmsHealthRequestFromJSON(json: any): ReadVmsHealthRequest; +export declare function ReadVmsHealthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsHealthRequest; +export declare function ReadVmsHealthRequestToJSON(value?: ReadVmsHealthRequest | null): any; diff --git a/dist/cjs/models/ReadVmsHealthRequest.js b/dist/cjs/models/ReadVmsHealthRequest.js new file mode 100644 index 00000000..683cd83d --- /dev/null +++ b/dist/cjs/models/ReadVmsHealthRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmsHealthRequestToJSON = exports.ReadVmsHealthRequestFromJSONTyped = exports.ReadVmsHealthRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ReadVmsHealthRequestFromJSON(json) { + return ReadVmsHealthRequestFromJSONTyped(json, false); +} +exports.ReadVmsHealthRequestFromJSON = ReadVmsHealthRequestFromJSON; +function ReadVmsHealthRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmIds': !(0, runtime_1.exists)(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.ReadVmsHealthRequestFromJSONTyped = ReadVmsHealthRequestFromJSONTyped; +function ReadVmsHealthRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.ReadVmsHealthRequestToJSON = ReadVmsHealthRequestToJSON; diff --git a/dist/cjs/models/ReadVmsHealthResponse.d.ts b/dist/cjs/models/ReadVmsHealthResponse.d.ts new file mode 100644 index 00000000..e0fd9b50 --- /dev/null +++ b/dist/cjs/models/ReadVmsHealthResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BackendVmHealth } from './BackendVmHealth'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadVmsHealthResponse + */ +export interface ReadVmsHealthResponse { + /** + * Information about the health of one or more back-end VMs. + * @type {Array} + * @memberof ReadVmsHealthResponse + */ + backendVmHealth?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsHealthResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadVmsHealthResponseFromJSON(json: any): ReadVmsHealthResponse; +export declare function ReadVmsHealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsHealthResponse; +export declare function ReadVmsHealthResponseToJSON(value?: ReadVmsHealthResponse | null): any; diff --git a/dist/cjs/models/ReadVmsHealthResponse.js b/dist/cjs/models/ReadVmsHealthResponse.js new file mode 100644 index 00000000..632ef194 --- /dev/null +++ b/dist/cjs/models/ReadVmsHealthResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmsHealthResponseToJSON = exports.ReadVmsHealthResponseFromJSONTyped = exports.ReadVmsHealthResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BackendVmHealth_1 = require("./BackendVmHealth"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ReadVmsHealthResponseFromJSON(json) { + return ReadVmsHealthResponseFromJSONTyped(json, false); +} +exports.ReadVmsHealthResponseFromJSON = ReadVmsHealthResponseFromJSON; +function ReadVmsHealthResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmHealth': !(0, runtime_1.exists)(json, 'BackendVmHealth') ? undefined : (json['BackendVmHealth'].map(BackendVmHealth_1.BackendVmHealthFromJSON)), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ReadVmsHealthResponseFromJSONTyped = ReadVmsHealthResponseFromJSONTyped; +function ReadVmsHealthResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmHealth': value.backendVmHealth === undefined ? undefined : (value.backendVmHealth.map(BackendVmHealth_1.BackendVmHealthToJSON)), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ReadVmsHealthResponseToJSON = ReadVmsHealthResponseToJSON; diff --git a/dist/cjs/models/ReadVmsRequest.d.ts b/dist/cjs/models/ReadVmsRequest.d.ts new file mode 100644 index 00000000..5122b80c --- /dev/null +++ b/dist/cjs/models/ReadVmsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVm } from './FiltersVm'; +/** + * + * @export + * @interface ReadVmsRequest + */ +export interface ReadVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVm} + * @memberof ReadVmsRequest + */ + filters?: FiltersVm; +} +export declare function ReadVmsRequestFromJSON(json: any): ReadVmsRequest; +export declare function ReadVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsRequest; +export declare function ReadVmsRequestToJSON(value?: ReadVmsRequest | null): any; diff --git a/dist/cjs/models/ReadVmsRequest.js b/dist/cjs/models/ReadVmsRequest.js new file mode 100644 index 00000000..b7696740 --- /dev/null +++ b/dist/cjs/models/ReadVmsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmsRequestToJSON = exports.ReadVmsRequestFromJSONTyped = exports.ReadVmsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersVm_1 = require("./FiltersVm"); +function ReadVmsRequestFromJSON(json) { + return ReadVmsRequestFromJSONTyped(json, false); +} +exports.ReadVmsRequestFromJSON = ReadVmsRequestFromJSON; +function ReadVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersVm_1.FiltersVmFromJSON)(json['Filters']), + }; +} +exports.ReadVmsRequestFromJSONTyped = ReadVmsRequestFromJSONTyped; +function ReadVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersVm_1.FiltersVmToJSON)(value.filters), + }; +} +exports.ReadVmsRequestToJSON = ReadVmsRequestToJSON; diff --git a/dist/cjs/models/ReadVmsResponse.d.ts b/dist/cjs/models/ReadVmsResponse.d.ts new file mode 100644 index 00000000..7ef513bd --- /dev/null +++ b/dist/cjs/models/ReadVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Vm } from './Vm'; +/** + * + * @export + * @interface ReadVmsResponse + */ +export interface ReadVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VMs. + * @type {Array} + * @memberof ReadVmsResponse + */ + vms?: Array; +} +export declare function ReadVmsResponseFromJSON(json: any): ReadVmsResponse; +export declare function ReadVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsResponse; +export declare function ReadVmsResponseToJSON(value?: ReadVmsResponse | null): any; diff --git a/dist/cjs/models/ReadVmsResponse.js b/dist/cjs/models/ReadVmsResponse.js new file mode 100644 index 00000000..e361d840 --- /dev/null +++ b/dist/cjs/models/ReadVmsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmsResponseToJSON = exports.ReadVmsResponseFromJSONTyped = exports.ReadVmsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Vm_1 = require("./Vm"); +function ReadVmsResponseFromJSON(json) { + return ReadVmsResponseFromJSONTyped(json, false); +} +exports.ReadVmsResponseFromJSON = ReadVmsResponseFromJSON; +function ReadVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vms': !(0, runtime_1.exists)(json, 'Vms') ? undefined : (json['Vms'].map(Vm_1.VmFromJSON)), + }; +} +exports.ReadVmsResponseFromJSONTyped = ReadVmsResponseFromJSONTyped; +function ReadVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(Vm_1.VmToJSON)), + }; +} +exports.ReadVmsResponseToJSON = ReadVmsResponseToJSON; diff --git a/dist/cjs/models/ReadVmsStateRequest.d.ts b/dist/cjs/models/ReadVmsStateRequest.d.ts new file mode 100644 index 00000000..c5eae100 --- /dev/null +++ b/dist/cjs/models/ReadVmsStateRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVmsState } from './FiltersVmsState'; +/** + * + * @export + * @interface ReadVmsStateRequest + */ +export interface ReadVmsStateRequest { + /** + * If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs. + * @type {boolean} + * @memberof ReadVmsStateRequest + */ + allVms?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsStateRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVmsState} + * @memberof ReadVmsStateRequest + */ + filters?: FiltersVmsState; +} +export declare function ReadVmsStateRequestFromJSON(json: any): ReadVmsStateRequest; +export declare function ReadVmsStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsStateRequest; +export declare function ReadVmsStateRequestToJSON(value?: ReadVmsStateRequest | null): any; diff --git a/dist/cjs/models/ReadVmsStateRequest.js b/dist/cjs/models/ReadVmsStateRequest.js new file mode 100644 index 00000000..88a13a04 --- /dev/null +++ b/dist/cjs/models/ReadVmsStateRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmsStateRequestToJSON = exports.ReadVmsStateRequestFromJSONTyped = exports.ReadVmsStateRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersVmsState_1 = require("./FiltersVmsState"); +function ReadVmsStateRequestFromJSON(json) { + return ReadVmsStateRequestFromJSONTyped(json, false); +} +exports.ReadVmsStateRequestFromJSON = ReadVmsStateRequestFromJSON; +function ReadVmsStateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'allVms': !(0, runtime_1.exists)(json, 'AllVms') ? undefined : json['AllVms'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersVmsState_1.FiltersVmsStateFromJSON)(json['Filters']), + }; +} +exports.ReadVmsStateRequestFromJSONTyped = ReadVmsStateRequestFromJSONTyped; +function ReadVmsStateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AllVms': value.allVms, + 'DryRun': value.dryRun, + 'Filters': (0, FiltersVmsState_1.FiltersVmsStateToJSON)(value.filters), + }; +} +exports.ReadVmsStateRequestToJSON = ReadVmsStateRequestToJSON; diff --git a/dist/cjs/models/ReadVmsStateResponse.d.ts b/dist/cjs/models/ReadVmsStateResponse.d.ts new file mode 100644 index 00000000..ba0ce17d --- /dev/null +++ b/dist/cjs/models/ReadVmsStateResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmStates } from './VmStates'; +/** + * + * @export + * @interface ReadVmsStateResponse + */ +export interface ReadVmsStateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsStateResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VM states. + * @type {Array} + * @memberof ReadVmsStateResponse + */ + vmStates?: Array; +} +export declare function ReadVmsStateResponseFromJSON(json: any): ReadVmsStateResponse; +export declare function ReadVmsStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsStateResponse; +export declare function ReadVmsStateResponseToJSON(value?: ReadVmsStateResponse | null): any; diff --git a/dist/cjs/models/ReadVmsStateResponse.js b/dist/cjs/models/ReadVmsStateResponse.js new file mode 100644 index 00000000..b8ec43a4 --- /dev/null +++ b/dist/cjs/models/ReadVmsStateResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVmsStateResponseToJSON = exports.ReadVmsStateResponseFromJSONTyped = exports.ReadVmsStateResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VmStates_1 = require("./VmStates"); +function ReadVmsStateResponseFromJSON(json) { + return ReadVmsStateResponseFromJSONTyped(json, false); +} +exports.ReadVmsStateResponseFromJSON = ReadVmsStateResponseFromJSON; +function ReadVmsStateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vmStates': !(0, runtime_1.exists)(json, 'VmStates') ? undefined : (json['VmStates'].map(VmStates_1.VmStatesFromJSON)), + }; +} +exports.ReadVmsStateResponseFromJSONTyped = ReadVmsStateResponseFromJSONTyped; +function ReadVmsStateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VmStates': value.vmStates === undefined ? undefined : (value.vmStates.map(VmStates_1.VmStatesToJSON)), + }; +} +exports.ReadVmsStateResponseToJSON = ReadVmsStateResponseToJSON; diff --git a/dist/cjs/models/ReadVolumesRequest.d.ts b/dist/cjs/models/ReadVolumesRequest.d.ts new file mode 100644 index 00000000..9bf5abc2 --- /dev/null +++ b/dist/cjs/models/ReadVolumesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVolume } from './FiltersVolume'; +/** + * + * @export + * @interface ReadVolumesRequest + */ +export interface ReadVolumesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVolumesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVolume} + * @memberof ReadVolumesRequest + */ + filters?: FiltersVolume; +} +export declare function ReadVolumesRequestFromJSON(json: any): ReadVolumesRequest; +export declare function ReadVolumesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVolumesRequest; +export declare function ReadVolumesRequestToJSON(value?: ReadVolumesRequest | null): any; diff --git a/dist/cjs/models/ReadVolumesRequest.js b/dist/cjs/models/ReadVolumesRequest.js new file mode 100644 index 00000000..530efa1a --- /dev/null +++ b/dist/cjs/models/ReadVolumesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVolumesRequestToJSON = exports.ReadVolumesRequestFromJSONTyped = exports.ReadVolumesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersVolume_1 = require("./FiltersVolume"); +function ReadVolumesRequestFromJSON(json) { + return ReadVolumesRequestFromJSONTyped(json, false); +} +exports.ReadVolumesRequestFromJSON = ReadVolumesRequestFromJSON; +function ReadVolumesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersVolume_1.FiltersVolumeFromJSON)(json['Filters']), + }; +} +exports.ReadVolumesRequestFromJSONTyped = ReadVolumesRequestFromJSONTyped; +function ReadVolumesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersVolume_1.FiltersVolumeToJSON)(value.filters), + }; +} +exports.ReadVolumesRequestToJSON = ReadVolumesRequestToJSON; diff --git a/dist/cjs/models/ReadVolumesResponse.d.ts b/dist/cjs/models/ReadVolumesResponse.d.ts new file mode 100644 index 00000000..64f18baa --- /dev/null +++ b/dist/cjs/models/ReadVolumesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Volume } from './Volume'; +/** + * + * @export + * @interface ReadVolumesResponse + */ +export interface ReadVolumesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVolumesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more volumes. + * @type {Array} + * @memberof ReadVolumesResponse + */ + volumes?: Array; +} +export declare function ReadVolumesResponseFromJSON(json: any): ReadVolumesResponse; +export declare function ReadVolumesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVolumesResponse; +export declare function ReadVolumesResponseToJSON(value?: ReadVolumesResponse | null): any; diff --git a/dist/cjs/models/ReadVolumesResponse.js b/dist/cjs/models/ReadVolumesResponse.js new file mode 100644 index 00000000..9304f2b7 --- /dev/null +++ b/dist/cjs/models/ReadVolumesResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVolumesResponseToJSON = exports.ReadVolumesResponseFromJSONTyped = exports.ReadVolumesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Volume_1 = require("./Volume"); +function ReadVolumesResponseFromJSON(json) { + return ReadVolumesResponseFromJSONTyped(json, false); +} +exports.ReadVolumesResponseFromJSON = ReadVolumesResponseFromJSON; +function ReadVolumesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'volumes': !(0, runtime_1.exists)(json, 'Volumes') ? undefined : (json['Volumes'].map(Volume_1.VolumeFromJSON)), + }; +} +exports.ReadVolumesResponseFromJSONTyped = ReadVolumesResponseFromJSONTyped; +function ReadVolumesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Volumes': value.volumes === undefined ? undefined : (value.volumes.map(Volume_1.VolumeToJSON)), + }; +} +exports.ReadVolumesResponseToJSON = ReadVolumesResponseToJSON; diff --git a/dist/cjs/models/ReadVpnConnectionsRequest.d.ts b/dist/cjs/models/ReadVpnConnectionsRequest.d.ts new file mode 100644 index 00000000..4a0305e1 --- /dev/null +++ b/dist/cjs/models/ReadVpnConnectionsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVpnConnection } from './FiltersVpnConnection'; +/** + * + * @export + * @interface ReadVpnConnectionsRequest + */ +export interface ReadVpnConnectionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVpnConnectionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVpnConnection} + * @memberof ReadVpnConnectionsRequest + */ + filters?: FiltersVpnConnection; +} +export declare function ReadVpnConnectionsRequestFromJSON(json: any): ReadVpnConnectionsRequest; +export declare function ReadVpnConnectionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVpnConnectionsRequest; +export declare function ReadVpnConnectionsRequestToJSON(value?: ReadVpnConnectionsRequest | null): any; diff --git a/dist/cjs/models/ReadVpnConnectionsRequest.js b/dist/cjs/models/ReadVpnConnectionsRequest.js new file mode 100644 index 00000000..7d7e2b4a --- /dev/null +++ b/dist/cjs/models/ReadVpnConnectionsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVpnConnectionsRequestToJSON = exports.ReadVpnConnectionsRequestFromJSONTyped = exports.ReadVpnConnectionsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FiltersVpnConnection_1 = require("./FiltersVpnConnection"); +function ReadVpnConnectionsRequestFromJSON(json) { + return ReadVpnConnectionsRequestFromJSONTyped(json, false); +} +exports.ReadVpnConnectionsRequestFromJSON = ReadVpnConnectionsRequestFromJSON; +function ReadVpnConnectionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !(0, runtime_1.exists)(json, 'Filters') ? undefined : (0, FiltersVpnConnection_1.FiltersVpnConnectionFromJSON)(json['Filters']), + }; +} +exports.ReadVpnConnectionsRequestFromJSONTyped = ReadVpnConnectionsRequestFromJSONTyped; +function ReadVpnConnectionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': (0, FiltersVpnConnection_1.FiltersVpnConnectionToJSON)(value.filters), + }; +} +exports.ReadVpnConnectionsRequestToJSON = ReadVpnConnectionsRequestToJSON; diff --git a/dist/cjs/models/ReadVpnConnectionsResponse.d.ts b/dist/cjs/models/ReadVpnConnectionsResponse.d.ts new file mode 100644 index 00000000..2fba1076 --- /dev/null +++ b/dist/cjs/models/ReadVpnConnectionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VpnConnection } from './VpnConnection'; +/** + * + * @export + * @interface ReadVpnConnectionsResponse + */ +export interface ReadVpnConnectionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVpnConnectionsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VPN connections. + * @type {Array} + * @memberof ReadVpnConnectionsResponse + */ + vpnConnections?: Array; +} +export declare function ReadVpnConnectionsResponseFromJSON(json: any): ReadVpnConnectionsResponse; +export declare function ReadVpnConnectionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVpnConnectionsResponse; +export declare function ReadVpnConnectionsResponseToJSON(value?: ReadVpnConnectionsResponse | null): any; diff --git a/dist/cjs/models/ReadVpnConnectionsResponse.js b/dist/cjs/models/ReadVpnConnectionsResponse.js new file mode 100644 index 00000000..18bb619a --- /dev/null +++ b/dist/cjs/models/ReadVpnConnectionsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadVpnConnectionsResponseToJSON = exports.ReadVpnConnectionsResponseFromJSONTyped = exports.ReadVpnConnectionsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VpnConnection_1 = require("./VpnConnection"); +function ReadVpnConnectionsResponseFromJSON(json) { + return ReadVpnConnectionsResponseFromJSONTyped(json, false); +} +exports.ReadVpnConnectionsResponseFromJSON = ReadVpnConnectionsResponseFromJSON; +function ReadVpnConnectionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vpnConnections': !(0, runtime_1.exists)(json, 'VpnConnections') ? undefined : (json['VpnConnections'].map(VpnConnection_1.VpnConnectionFromJSON)), + }; +} +exports.ReadVpnConnectionsResponseFromJSONTyped = ReadVpnConnectionsResponseFromJSONTyped; +function ReadVpnConnectionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VpnConnections': value.vpnConnections === undefined ? undefined : (value.vpnConnections.map(VpnConnection_1.VpnConnectionToJSON)), + }; +} +exports.ReadVpnConnectionsResponseToJSON = ReadVpnConnectionsResponseToJSON; diff --git a/dist/cjs/models/RebootVmsRequest.d.ts b/dist/cjs/models/RebootVmsRequest.d.ts new file mode 100644 index 00000000..c70c0b15 --- /dev/null +++ b/dist/cjs/models/RebootVmsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RebootVmsRequest + */ +export interface RebootVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RebootVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of the VMs you want to reboot. + * @type {Array} + * @memberof RebootVmsRequest + */ + vmIds: Array; +} +export declare function RebootVmsRequestFromJSON(json: any): RebootVmsRequest; +export declare function RebootVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebootVmsRequest; +export declare function RebootVmsRequestToJSON(value?: RebootVmsRequest | null): any; diff --git a/dist/cjs/models/RebootVmsRequest.js b/dist/cjs/models/RebootVmsRequest.js new file mode 100644 index 00000000..eb3322f0 --- /dev/null +++ b/dist/cjs/models/RebootVmsRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RebootVmsRequestToJSON = exports.RebootVmsRequestFromJSONTyped = exports.RebootVmsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RebootVmsRequestFromJSON(json) { + return RebootVmsRequestFromJSONTyped(json, false); +} +exports.RebootVmsRequestFromJSON = RebootVmsRequestFromJSON; +function RebootVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} +exports.RebootVmsRequestFromJSONTyped = RebootVmsRequestFromJSONTyped; +function RebootVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} +exports.RebootVmsRequestToJSON = RebootVmsRequestToJSON; diff --git a/dist/cjs/models/RebootVmsResponse.d.ts b/dist/cjs/models/RebootVmsResponse.d.ts new file mode 100644 index 00000000..e76d7575 --- /dev/null +++ b/dist/cjs/models/RebootVmsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface RebootVmsResponse + */ +export interface RebootVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RebootVmsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function RebootVmsResponseFromJSON(json: any): RebootVmsResponse; +export declare function RebootVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebootVmsResponse; +export declare function RebootVmsResponseToJSON(value?: RebootVmsResponse | null): any; diff --git a/dist/cjs/models/RebootVmsResponse.js b/dist/cjs/models/RebootVmsResponse.js new file mode 100644 index 00000000..c6484b96 --- /dev/null +++ b/dist/cjs/models/RebootVmsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RebootVmsResponseToJSON = exports.RebootVmsResponseFromJSONTyped = exports.RebootVmsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function RebootVmsResponseFromJSON(json) { + return RebootVmsResponseFromJSONTyped(json, false); +} +exports.RebootVmsResponseFromJSON = RebootVmsResponseFromJSON; +function RebootVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.RebootVmsResponseFromJSONTyped = RebootVmsResponseFromJSONTyped; +function RebootVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.RebootVmsResponseToJSON = RebootVmsResponseToJSON; diff --git a/dist/cjs/models/Region.d.ts b/dist/cjs/models/Region.d.ts new file mode 100644 index 00000000..21419675 --- /dev/null +++ b/dist/cjs/models/Region.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the Region. + * @export + * @interface Region + */ +export interface Region { + /** + * The hostname of the gateway to access the Region. + * @type {string} + * @memberof Region + */ + endpoint?: string; + /** + * The administrative name of the Region. + * @type {string} + * @memberof Region + */ + regionName?: string; +} +export declare function RegionFromJSON(json: any): Region; +export declare function RegionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Region; +export declare function RegionToJSON(value?: Region | null): any; diff --git a/dist/cjs/models/Region.js b/dist/cjs/models/Region.js new file mode 100644 index 00000000..47c8d259 --- /dev/null +++ b/dist/cjs/models/Region.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RegionToJSON = exports.RegionFromJSONTyped = exports.RegionFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RegionFromJSON(json) { + return RegionFromJSONTyped(json, false); +} +exports.RegionFromJSON = RegionFromJSON; +function RegionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'endpoint': !(0, runtime_1.exists)(json, 'Endpoint') ? undefined : json['Endpoint'], + 'regionName': !(0, runtime_1.exists)(json, 'RegionName') ? undefined : json['RegionName'], + }; +} +exports.RegionFromJSONTyped = RegionFromJSONTyped; +function RegionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Endpoint': value.endpoint, + 'RegionName': value.regionName, + }; +} +exports.RegionToJSON = RegionToJSON; diff --git a/dist/cjs/models/RegisterVmsInLoadBalancerRequest.d.ts b/dist/cjs/models/RegisterVmsInLoadBalancerRequest.d.ts new file mode 100644 index 00000000..96ec5399 --- /dev/null +++ b/dist/cjs/models/RegisterVmsInLoadBalancerRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RegisterVmsInLoadBalancerRequest + */ +export interface RegisterVmsInLoadBalancerRequest { + /** + * One or more IDs of back-end VMs.
+ * Specifying the same ID several times has no effect as each back-end VM has equal weight. + * @type {Array} + * @memberof RegisterVmsInLoadBalancerRequest + */ + backendVmIds: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RegisterVmsInLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof RegisterVmsInLoadBalancerRequest + */ + loadBalancerName: string; +} +export declare function RegisterVmsInLoadBalancerRequestFromJSON(json: any): RegisterVmsInLoadBalancerRequest; +export declare function RegisterVmsInLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterVmsInLoadBalancerRequest; +export declare function RegisterVmsInLoadBalancerRequestToJSON(value?: RegisterVmsInLoadBalancerRequest | null): any; diff --git a/dist/cjs/models/RegisterVmsInLoadBalancerRequest.js b/dist/cjs/models/RegisterVmsInLoadBalancerRequest.js new file mode 100644 index 00000000..fa9030cc --- /dev/null +++ b/dist/cjs/models/RegisterVmsInLoadBalancerRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RegisterVmsInLoadBalancerRequestToJSON = exports.RegisterVmsInLoadBalancerRequestFromJSONTyped = exports.RegisterVmsInLoadBalancerRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RegisterVmsInLoadBalancerRequestFromJSON(json) { + return RegisterVmsInLoadBalancerRequestFromJSONTyped(json, false); +} +exports.RegisterVmsInLoadBalancerRequestFromJSON = RegisterVmsInLoadBalancerRequestFromJSON; +function RegisterVmsInLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmIds': json['BackendVmIds'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.RegisterVmsInLoadBalancerRequestFromJSONTyped = RegisterVmsInLoadBalancerRequestFromJSONTyped; +function RegisterVmsInLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.RegisterVmsInLoadBalancerRequestToJSON = RegisterVmsInLoadBalancerRequestToJSON; diff --git a/dist/cjs/models/RegisterVmsInLoadBalancerResponse.d.ts b/dist/cjs/models/RegisterVmsInLoadBalancerResponse.d.ts new file mode 100644 index 00000000..80090f6a --- /dev/null +++ b/dist/cjs/models/RegisterVmsInLoadBalancerResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface RegisterVmsInLoadBalancerResponse + */ +export interface RegisterVmsInLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RegisterVmsInLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function RegisterVmsInLoadBalancerResponseFromJSON(json: any): RegisterVmsInLoadBalancerResponse; +export declare function RegisterVmsInLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterVmsInLoadBalancerResponse; +export declare function RegisterVmsInLoadBalancerResponseToJSON(value?: RegisterVmsInLoadBalancerResponse | null): any; diff --git a/dist/cjs/models/RegisterVmsInLoadBalancerResponse.js b/dist/cjs/models/RegisterVmsInLoadBalancerResponse.js new file mode 100644 index 00000000..11f524dc --- /dev/null +++ b/dist/cjs/models/RegisterVmsInLoadBalancerResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RegisterVmsInLoadBalancerResponseToJSON = exports.RegisterVmsInLoadBalancerResponseFromJSONTyped = exports.RegisterVmsInLoadBalancerResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function RegisterVmsInLoadBalancerResponseFromJSON(json) { + return RegisterVmsInLoadBalancerResponseFromJSONTyped(json, false); +} +exports.RegisterVmsInLoadBalancerResponseFromJSON = RegisterVmsInLoadBalancerResponseFromJSON; +function RegisterVmsInLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.RegisterVmsInLoadBalancerResponseFromJSONTyped = RegisterVmsInLoadBalancerResponseFromJSONTyped; +function RegisterVmsInLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.RegisterVmsInLoadBalancerResponseToJSON = RegisterVmsInLoadBalancerResponseToJSON; diff --git a/dist/cjs/models/RejectNetPeeringRequest.d.ts b/dist/cjs/models/RejectNetPeeringRequest.d.ts new file mode 100644 index 00000000..249fcf2d --- /dev/null +++ b/dist/cjs/models/RejectNetPeeringRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RejectNetPeeringRequest + */ +export interface RejectNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RejectNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to reject. + * @type {string} + * @memberof RejectNetPeeringRequest + */ + netPeeringId: string; +} +export declare function RejectNetPeeringRequestFromJSON(json: any): RejectNetPeeringRequest; +export declare function RejectNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectNetPeeringRequest; +export declare function RejectNetPeeringRequestToJSON(value?: RejectNetPeeringRequest | null): any; diff --git a/dist/cjs/models/RejectNetPeeringRequest.js b/dist/cjs/models/RejectNetPeeringRequest.js new file mode 100644 index 00000000..617672ef --- /dev/null +++ b/dist/cjs/models/RejectNetPeeringRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RejectNetPeeringRequestToJSON = exports.RejectNetPeeringRequestFromJSONTyped = exports.RejectNetPeeringRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RejectNetPeeringRequestFromJSON(json) { + return RejectNetPeeringRequestFromJSONTyped(json, false); +} +exports.RejectNetPeeringRequestFromJSON = RejectNetPeeringRequestFromJSON; +function RejectNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} +exports.RejectNetPeeringRequestFromJSONTyped = RejectNetPeeringRequestFromJSONTyped; +function RejectNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} +exports.RejectNetPeeringRequestToJSON = RejectNetPeeringRequestToJSON; diff --git a/dist/cjs/models/RejectNetPeeringResponse.d.ts b/dist/cjs/models/RejectNetPeeringResponse.d.ts new file mode 100644 index 00000000..560c0efc --- /dev/null +++ b/dist/cjs/models/RejectNetPeeringResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface RejectNetPeeringResponse + */ +export interface RejectNetPeeringResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RejectNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function RejectNetPeeringResponseFromJSON(json: any): RejectNetPeeringResponse; +export declare function RejectNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectNetPeeringResponse; +export declare function RejectNetPeeringResponseToJSON(value?: RejectNetPeeringResponse | null): any; diff --git a/dist/cjs/models/RejectNetPeeringResponse.js b/dist/cjs/models/RejectNetPeeringResponse.js new file mode 100644 index 00000000..4ab839f8 --- /dev/null +++ b/dist/cjs/models/RejectNetPeeringResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RejectNetPeeringResponseToJSON = exports.RejectNetPeeringResponseFromJSONTyped = exports.RejectNetPeeringResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function RejectNetPeeringResponseFromJSON(json) { + return RejectNetPeeringResponseFromJSONTyped(json, false); +} +exports.RejectNetPeeringResponseFromJSON = RejectNetPeeringResponseFromJSON; +function RejectNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.RejectNetPeeringResponseFromJSONTyped = RejectNetPeeringResponseFromJSONTyped; +function RejectNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.RejectNetPeeringResponseToJSON = RejectNetPeeringResponseToJSON; diff --git a/dist/cjs/models/ResetAccountPasswordRequest.d.ts b/dist/cjs/models/ResetAccountPasswordRequest.d.ts new file mode 100644 index 00000000..6874706f --- /dev/null +++ b/dist/cjs/models/ResetAccountPasswordRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ResetAccountPasswordRequest + */ +export interface ResetAccountPasswordRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ResetAccountPasswordRequest + */ + dryRun?: boolean; + /** + * The new password for the account. + * @type {string} + * @memberof ResetAccountPasswordRequest + */ + password: string; + /** + * The token you received at the email address provided for the account. + * @type {string} + * @memberof ResetAccountPasswordRequest + */ + token: string; +} +export declare function ResetAccountPasswordRequestFromJSON(json: any): ResetAccountPasswordRequest; +export declare function ResetAccountPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetAccountPasswordRequest; +export declare function ResetAccountPasswordRequestToJSON(value?: ResetAccountPasswordRequest | null): any; diff --git a/dist/cjs/models/ResetAccountPasswordRequest.js b/dist/cjs/models/ResetAccountPasswordRequest.js new file mode 100644 index 00000000..4a168777 --- /dev/null +++ b/dist/cjs/models/ResetAccountPasswordRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResetAccountPasswordRequestToJSON = exports.ResetAccountPasswordRequestFromJSONTyped = exports.ResetAccountPasswordRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ResetAccountPasswordRequestFromJSON(json) { + return ResetAccountPasswordRequestFromJSONTyped(json, false); +} +exports.ResetAccountPasswordRequestFromJSON = ResetAccountPasswordRequestFromJSON; +function ResetAccountPasswordRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'password': json['Password'], + 'token': json['Token'], + }; +} +exports.ResetAccountPasswordRequestFromJSONTyped = ResetAccountPasswordRequestFromJSONTyped; +function ResetAccountPasswordRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Password': value.password, + 'Token': value.token, + }; +} +exports.ResetAccountPasswordRequestToJSON = ResetAccountPasswordRequestToJSON; diff --git a/dist/cjs/models/ResetAccountPasswordResponse.d.ts b/dist/cjs/models/ResetAccountPasswordResponse.d.ts new file mode 100644 index 00000000..9ad4d6e3 --- /dev/null +++ b/dist/cjs/models/ResetAccountPasswordResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ResetAccountPasswordResponse + */ +export interface ResetAccountPasswordResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ResetAccountPasswordResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ResetAccountPasswordResponseFromJSON(json: any): ResetAccountPasswordResponse; +export declare function ResetAccountPasswordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetAccountPasswordResponse; +export declare function ResetAccountPasswordResponseToJSON(value?: ResetAccountPasswordResponse | null): any; diff --git a/dist/cjs/models/ResetAccountPasswordResponse.js b/dist/cjs/models/ResetAccountPasswordResponse.js new file mode 100644 index 00000000..9bc88ff4 --- /dev/null +++ b/dist/cjs/models/ResetAccountPasswordResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResetAccountPasswordResponseToJSON = exports.ResetAccountPasswordResponseFromJSONTyped = exports.ResetAccountPasswordResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function ResetAccountPasswordResponseFromJSON(json) { + return ResetAccountPasswordResponseFromJSONTyped(json, false); +} +exports.ResetAccountPasswordResponseFromJSON = ResetAccountPasswordResponseFromJSON; +function ResetAccountPasswordResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.ResetAccountPasswordResponseFromJSONTyped = ResetAccountPasswordResponseFromJSONTyped; +function ResetAccountPasswordResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.ResetAccountPasswordResponseToJSON = ResetAccountPasswordResponseToJSON; diff --git a/dist/cjs/models/ResourceLoadBalancerTag.d.ts b/dist/cjs/models/ResourceLoadBalancerTag.d.ts new file mode 100644 index 00000000..1122b74c --- /dev/null +++ b/dist/cjs/models/ResourceLoadBalancerTag.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the tag. + * @export + * @interface ResourceLoadBalancerTag + */ +export interface ResourceLoadBalancerTag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof ResourceLoadBalancerTag + */ + key?: string; +} +export declare function ResourceLoadBalancerTagFromJSON(json: any): ResourceLoadBalancerTag; +export declare function ResourceLoadBalancerTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceLoadBalancerTag; +export declare function ResourceLoadBalancerTagToJSON(value?: ResourceLoadBalancerTag | null): any; diff --git a/dist/cjs/models/ResourceLoadBalancerTag.js b/dist/cjs/models/ResourceLoadBalancerTag.js new file mode 100644 index 00000000..bc8d630f --- /dev/null +++ b/dist/cjs/models/ResourceLoadBalancerTag.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResourceLoadBalancerTagToJSON = exports.ResourceLoadBalancerTagFromJSONTyped = exports.ResourceLoadBalancerTagFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ResourceLoadBalancerTagFromJSON(json) { + return ResourceLoadBalancerTagFromJSONTyped(json, false); +} +exports.ResourceLoadBalancerTagFromJSON = ResourceLoadBalancerTagFromJSON; +function ResourceLoadBalancerTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': !(0, runtime_1.exists)(json, 'Key') ? undefined : json['Key'], + }; +} +exports.ResourceLoadBalancerTagFromJSONTyped = ResourceLoadBalancerTagFromJSONTyped; +function ResourceLoadBalancerTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + }; +} +exports.ResourceLoadBalancerTagToJSON = ResourceLoadBalancerTagToJSON; diff --git a/dist/cjs/models/ResourceTag.d.ts b/dist/cjs/models/ResourceTag.d.ts new file mode 100644 index 00000000..a3099641 --- /dev/null +++ b/dist/cjs/models/ResourceTag.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the tag. + * @export + * @interface ResourceTag + */ +export interface ResourceTag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof ResourceTag + */ + key: string; + /** + * The value of the tag, between 0 and 255 characters. + * @type {string} + * @memberof ResourceTag + */ + value: string; +} +export declare function ResourceTagFromJSON(json: any): ResourceTag; +export declare function ResourceTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTag; +export declare function ResourceTagToJSON(value?: ResourceTag | null): any; diff --git a/dist/cjs/models/ResourceTag.js b/dist/cjs/models/ResourceTag.js new file mode 100644 index 00000000..c329ebe7 --- /dev/null +++ b/dist/cjs/models/ResourceTag.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResourceTagToJSON = exports.ResourceTagFromJSONTyped = exports.ResourceTagFromJSON = void 0; +function ResourceTagFromJSON(json) { + return ResourceTagFromJSONTyped(json, false); +} +exports.ResourceTagFromJSON = ResourceTagFromJSON; +function ResourceTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': json['Key'], + 'value': json['Value'], + }; +} +exports.ResourceTagFromJSONTyped = ResourceTagFromJSONTyped; +function ResourceTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + 'Value': value.value, + }; +} +exports.ResourceTagToJSON = ResourceTagToJSON; diff --git a/dist/cjs/models/Route.d.ts b/dist/cjs/models/Route.d.ts new file mode 100644 index 00000000..3c4708d9 --- /dev/null +++ b/dist/cjs/models/Route.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the route. + * @export + * @interface Route + */ +export interface Route { + /** + * The method used to create the route. + * @type {string} + * @memberof Route + */ + creationMethod?: string; + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof Route + */ + destinationIpRange?: string; + /** + * The ID of the OUTSCALE service. + * @type {string} + * @memberof Route + */ + destinationServiceId?: string; + /** + * The ID of the Internet service or virtual gateway attached to the Net. + * @type {string} + * @memberof Route + */ + gatewayId?: string; + /** + * The ID of a NAT service attached to the Net. + * @type {string} + * @memberof Route + */ + natServiceId?: string; + /** + * The ID of the Net access point. + * @type {string} + * @memberof Route + */ + netAccessPointId?: string; + /** + * The ID of the Net peering connection. + * @type {string} + * @memberof Route + */ + netPeeringId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof Route + */ + nicId?: string; + /** + * The state of a route in the route table (`active` \| `blackhole`). The `blackhole` state indicates that the target of the route is not available. + * @type {string} + * @memberof Route + */ + state?: string; + /** + * The account ID of the owner of the VM. + * @type {string} + * @memberof Route + */ + vmAccountId?: string; + /** + * The ID of a VM specified in a route in the table. + * @type {string} + * @memberof Route + */ + vmId?: string; +} +export declare function RouteFromJSON(json: any): Route; +export declare function RouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Route; +export declare function RouteToJSON(value?: Route | null): any; diff --git a/dist/cjs/models/Route.js b/dist/cjs/models/Route.js new file mode 100644 index 00000000..83f43a5d --- /dev/null +++ b/dist/cjs/models/Route.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RouteToJSON = exports.RouteFromJSONTyped = exports.RouteFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RouteFromJSON(json) { + return RouteFromJSONTyped(json, false); +} +exports.RouteFromJSON = RouteFromJSON; +function RouteFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'creationMethod': !(0, runtime_1.exists)(json, 'CreationMethod') ? undefined : json['CreationMethod'], + 'destinationIpRange': !(0, runtime_1.exists)(json, 'DestinationIpRange') ? undefined : json['DestinationIpRange'], + 'destinationServiceId': !(0, runtime_1.exists)(json, 'DestinationServiceId') ? undefined : json['DestinationServiceId'], + 'gatewayId': !(0, runtime_1.exists)(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !(0, runtime_1.exists)(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netAccessPointId': !(0, runtime_1.exists)(json, 'NetAccessPointId') ? undefined : json['NetAccessPointId'], + 'netPeeringId': !(0, runtime_1.exists)(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'vmAccountId': !(0, runtime_1.exists)(json, 'VmAccountId') ? undefined : json['VmAccountId'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.RouteFromJSONTyped = RouteFromJSONTyped; +function RouteToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CreationMethod': value.creationMethod, + 'DestinationIpRange': value.destinationIpRange, + 'DestinationServiceId': value.destinationServiceId, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetAccessPointId': value.netAccessPointId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'State': value.state, + 'VmAccountId': value.vmAccountId, + 'VmId': value.vmId, + }; +} +exports.RouteToJSON = RouteToJSON; diff --git a/dist/cjs/models/RouteLight.d.ts b/dist/cjs/models/RouteLight.d.ts new file mode 100644 index 00000000..7a9ffdf4 --- /dev/null +++ b/dist/cjs/models/RouteLight.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the route. + * @export + * @interface RouteLight + */ +export interface RouteLight { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof RouteLight + */ + destinationIpRange?: string; + /** + * The type of route (always `static`). + * @type {string} + * @memberof RouteLight + */ + routeType?: string; + /** + * The current state of the static route (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof RouteLight + */ + state?: string; +} +export declare function RouteLightFromJSON(json: any): RouteLight; +export declare function RouteLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteLight; +export declare function RouteLightToJSON(value?: RouteLight | null): any; diff --git a/dist/cjs/models/RouteLight.js b/dist/cjs/models/RouteLight.js new file mode 100644 index 00000000..0aab556c --- /dev/null +++ b/dist/cjs/models/RouteLight.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RouteLightToJSON = exports.RouteLightFromJSONTyped = exports.RouteLightFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RouteLightFromJSON(json) { + return RouteLightFromJSONTyped(json, false); +} +exports.RouteLightFromJSON = RouteLightFromJSON; +function RouteLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': !(0, runtime_1.exists)(json, 'DestinationIpRange') ? undefined : json['DestinationIpRange'], + 'routeType': !(0, runtime_1.exists)(json, 'RouteType') ? undefined : json['RouteType'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + }; +} +exports.RouteLightFromJSONTyped = RouteLightFromJSONTyped; +function RouteLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'RouteType': value.routeType, + 'State': value.state, + }; +} +exports.RouteLightToJSON = RouteLightToJSON; diff --git a/dist/cjs/models/RoutePropagatingVirtualGateway.d.ts b/dist/cjs/models/RoutePropagatingVirtualGateway.d.ts new file mode 100644 index 00000000..9309bc7d --- /dev/null +++ b/dist/cjs/models/RoutePropagatingVirtualGateway.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the route propagating virtual gateway. + * @export + * @interface RoutePropagatingVirtualGateway + */ +export interface RoutePropagatingVirtualGateway { + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof RoutePropagatingVirtualGateway + */ + virtualGatewayId?: string; +} +export declare function RoutePropagatingVirtualGatewayFromJSON(json: any): RoutePropagatingVirtualGateway; +export declare function RoutePropagatingVirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoutePropagatingVirtualGateway; +export declare function RoutePropagatingVirtualGatewayToJSON(value?: RoutePropagatingVirtualGateway | null): any; diff --git a/dist/cjs/models/RoutePropagatingVirtualGateway.js b/dist/cjs/models/RoutePropagatingVirtualGateway.js new file mode 100644 index 00000000..02283210 --- /dev/null +++ b/dist/cjs/models/RoutePropagatingVirtualGateway.js @@ -0,0 +1,42 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RoutePropagatingVirtualGatewayToJSON = exports.RoutePropagatingVirtualGatewayFromJSONTyped = exports.RoutePropagatingVirtualGatewayFromJSON = void 0; +const runtime_1 = require("../runtime"); +function RoutePropagatingVirtualGatewayFromJSON(json) { + return RoutePropagatingVirtualGatewayFromJSONTyped(json, false); +} +exports.RoutePropagatingVirtualGatewayFromJSON = RoutePropagatingVirtualGatewayFromJSON; +function RoutePropagatingVirtualGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'virtualGatewayId': !(0, runtime_1.exists)(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + }; +} +exports.RoutePropagatingVirtualGatewayFromJSONTyped = RoutePropagatingVirtualGatewayFromJSONTyped; +function RoutePropagatingVirtualGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.RoutePropagatingVirtualGatewayToJSON = RoutePropagatingVirtualGatewayToJSON; diff --git a/dist/cjs/models/RouteTable.d.ts b/dist/cjs/models/RouteTable.d.ts new file mode 100644 index 00000000..bca2e51a --- /dev/null +++ b/dist/cjs/models/RouteTable.d.ts @@ -0,0 +1,61 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkRouteTable } from './LinkRouteTable'; +import { ResourceTag } from './ResourceTag'; +import { Route } from './Route'; +import { RoutePropagatingVirtualGateway } from './RoutePropagatingVirtualGateway'; +/** + * Information about the route table. + * @export + * @interface RouteTable + */ +export interface RouteTable { + /** + * One or more associations between the route table and Subnets. + * @type {Array} + * @memberof RouteTable + */ + linkRouteTables?: Array; + /** + * The ID of the Net for the route table. + * @type {string} + * @memberof RouteTable + */ + netId?: string; + /** + * Information about virtual gateways propagating routes. + * @type {Array} + * @memberof RouteTable + */ + routePropagatingVirtualGateways?: Array; + /** + * The ID of the route table. + * @type {string} + * @memberof RouteTable + */ + routeTableId?: string; + /** + * One or more routes in the route table. + * @type {Array} + * @memberof RouteTable + */ + routes?: Array; + /** + * One or more tags associated with the route table. + * @type {Array} + * @memberof RouteTable + */ + tags?: Array; +} +export declare function RouteTableFromJSON(json: any): RouteTable; +export declare function RouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteTable; +export declare function RouteTableToJSON(value?: RouteTable | null): any; diff --git a/dist/cjs/models/RouteTable.js b/dist/cjs/models/RouteTable.js new file mode 100644 index 00000000..dc9e86b2 --- /dev/null +++ b/dist/cjs/models/RouteTable.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RouteTableToJSON = exports.RouteTableFromJSONTyped = exports.RouteTableFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkRouteTable_1 = require("./LinkRouteTable"); +const ResourceTag_1 = require("./ResourceTag"); +const Route_1 = require("./Route"); +const RoutePropagatingVirtualGateway_1 = require("./RoutePropagatingVirtualGateway"); +function RouteTableFromJSON(json) { + return RouteTableFromJSONTyped(json, false); +} +exports.RouteTableFromJSON = RouteTableFromJSON; +function RouteTableFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTables': !(0, runtime_1.exists)(json, 'LinkRouteTables') ? undefined : (json['LinkRouteTables'].map(LinkRouteTable_1.LinkRouteTableFromJSON)), + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'routePropagatingVirtualGateways': !(0, runtime_1.exists)(json, 'RoutePropagatingVirtualGateways') ? undefined : (json['RoutePropagatingVirtualGateways'].map(RoutePropagatingVirtualGateway_1.RoutePropagatingVirtualGatewayFromJSON)), + 'routeTableId': !(0, runtime_1.exists)(json, 'RouteTableId') ? undefined : json['RouteTableId'], + 'routes': !(0, runtime_1.exists)(json, 'Routes') ? undefined : (json['Routes'].map(Route_1.RouteFromJSON)), + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.RouteTableFromJSONTyped = RouteTableFromJSONTyped; +function RouteTableToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTables': value.linkRouteTables === undefined ? undefined : (value.linkRouteTables.map(LinkRouteTable_1.LinkRouteTableToJSON)), + 'NetId': value.netId, + 'RoutePropagatingVirtualGateways': value.routePropagatingVirtualGateways === undefined ? undefined : (value.routePropagatingVirtualGateways.map(RoutePropagatingVirtualGateway_1.RoutePropagatingVirtualGatewayToJSON)), + 'RouteTableId': value.routeTableId, + 'Routes': value.routes === undefined ? undefined : (value.routes.map(Route_1.RouteToJSON)), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.RouteTableToJSON = RouteTableToJSON; diff --git a/dist/cjs/models/SecurityGroup.d.ts b/dist/cjs/models/SecurityGroup.d.ts new file mode 100644 index 00000000..52954c0d --- /dev/null +++ b/dist/cjs/models/SecurityGroup.d.ts @@ -0,0 +1,71 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +import { SecurityGroupRule } from './SecurityGroupRule'; +/** + * Information about the security group. + * @export + * @interface SecurityGroup + */ +export interface SecurityGroup { + /** + * The account ID of a user that has been granted permission. + * @type {string} + * @memberof SecurityGroup + */ + accountId?: string; + /** + * The description of the security group. + * @type {string} + * @memberof SecurityGroup + */ + description?: string; + /** + * The inbound rules associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + inboundRules?: Array; + /** + * The ID of the Net for the security group. + * @type {string} + * @memberof SecurityGroup + */ + netId?: string; + /** + * The outbound rules associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + outboundRules?: Array; + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroup + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroup + */ + securityGroupName?: string; + /** + * One or more tags associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + tags?: Array; +} +export declare function SecurityGroupFromJSON(json: any): SecurityGroup; +export declare function SecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroup; +export declare function SecurityGroupToJSON(value?: SecurityGroup | null): any; diff --git a/dist/cjs/models/SecurityGroup.js b/dist/cjs/models/SecurityGroup.js new file mode 100644 index 00000000..22cb5030 --- /dev/null +++ b/dist/cjs/models/SecurityGroup.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityGroupToJSON = exports.SecurityGroupFromJSONTyped = exports.SecurityGroupFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +const SecurityGroupRule_1 = require("./SecurityGroupRule"); +function SecurityGroupFromJSON(json) { + return SecurityGroupFromJSONTyped(json, false); +} +exports.SecurityGroupFromJSON = SecurityGroupFromJSON; +function SecurityGroupFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'inboundRules': !(0, runtime_1.exists)(json, 'InboundRules') ? undefined : (json['InboundRules'].map(SecurityGroupRule_1.SecurityGroupRuleFromJSON)), + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'outboundRules': !(0, runtime_1.exists)(json, 'OutboundRules') ? undefined : (json['OutboundRules'].map(SecurityGroupRule_1.SecurityGroupRuleFromJSON)), + 'securityGroupId': !(0, runtime_1.exists)(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !(0, runtime_1.exists)(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.SecurityGroupFromJSONTyped = SecurityGroupFromJSONTyped; +function SecurityGroupToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'InboundRules': value.inboundRules === undefined ? undefined : (value.inboundRules.map(SecurityGroupRule_1.SecurityGroupRuleToJSON)), + 'NetId': value.netId, + 'OutboundRules': value.outboundRules === undefined ? undefined : (value.outboundRules.map(SecurityGroupRule_1.SecurityGroupRuleToJSON)), + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.SecurityGroupToJSON = SecurityGroupToJSON; diff --git a/dist/cjs/models/SecurityGroupLight.d.ts b/dist/cjs/models/SecurityGroupLight.d.ts new file mode 100644 index 00000000..68ab233b --- /dev/null +++ b/dist/cjs/models/SecurityGroupLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the security group. + * @export + * @interface SecurityGroupLight + */ +export interface SecurityGroupLight { + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroupLight + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroupLight + */ + securityGroupName?: string; +} +export declare function SecurityGroupLightFromJSON(json: any): SecurityGroupLight; +export declare function SecurityGroupLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupLight; +export declare function SecurityGroupLightToJSON(value?: SecurityGroupLight | null): any; diff --git a/dist/cjs/models/SecurityGroupLight.js b/dist/cjs/models/SecurityGroupLight.js new file mode 100644 index 00000000..22a0582b --- /dev/null +++ b/dist/cjs/models/SecurityGroupLight.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityGroupLightToJSON = exports.SecurityGroupLightFromJSONTyped = exports.SecurityGroupLightFromJSON = void 0; +const runtime_1 = require("../runtime"); +function SecurityGroupLightFromJSON(json) { + return SecurityGroupLightFromJSONTyped(json, false); +} +exports.SecurityGroupLightFromJSON = SecurityGroupLightFromJSON; +function SecurityGroupLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'securityGroupId': !(0, runtime_1.exists)(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !(0, runtime_1.exists)(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +exports.SecurityGroupLightFromJSONTyped = SecurityGroupLightFromJSONTyped; +function SecurityGroupLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} +exports.SecurityGroupLightToJSON = SecurityGroupLightToJSON; diff --git a/dist/cjs/models/SecurityGroupRule.d.ts b/dist/cjs/models/SecurityGroupRule.d.ts new file mode 100644 index 00000000..a1d6d7fb --- /dev/null +++ b/dist/cjs/models/SecurityGroupRule.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SecurityGroupsMember } from './SecurityGroupsMember'; +/** + * Information about the security group rule. + * @export + * @interface SecurityGroupRule + */ +export interface SecurityGroupRule { + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof SecurityGroupRule + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + * @type {string} + * @memberof SecurityGroupRule + */ + ipProtocol?: string; + /** + * One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof SecurityGroupRule + */ + ipRanges?: Array; + /** + * Information about one or more members of a security group. + * @type {Array} + * @memberof SecurityGroupRule + */ + securityGroupsMembers?: Array; + /** + * One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). + * @type {Array} + * @memberof SecurityGroupRule + */ + serviceIds?: Array; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof SecurityGroupRule + */ + toPortRange?: number; +} +export declare function SecurityGroupRuleFromJSON(json: any): SecurityGroupRule; +export declare function SecurityGroupRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupRule; +export declare function SecurityGroupRuleToJSON(value?: SecurityGroupRule | null): any; diff --git a/dist/cjs/models/SecurityGroupRule.js b/dist/cjs/models/SecurityGroupRule.js new file mode 100644 index 00000000..ce4ec9ea --- /dev/null +++ b/dist/cjs/models/SecurityGroupRule.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityGroupRuleToJSON = exports.SecurityGroupRuleFromJSONTyped = exports.SecurityGroupRuleFromJSON = void 0; +const runtime_1 = require("../runtime"); +const SecurityGroupsMember_1 = require("./SecurityGroupsMember"); +function SecurityGroupRuleFromJSON(json) { + return SecurityGroupRuleFromJSONTyped(json, false); +} +exports.SecurityGroupRuleFromJSON = SecurityGroupRuleFromJSON; +function SecurityGroupRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'fromPortRange': !(0, runtime_1.exists)(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !(0, runtime_1.exists)(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + 'securityGroupsMembers': !(0, runtime_1.exists)(json, 'SecurityGroupsMembers') ? undefined : (json['SecurityGroupsMembers'].map(SecurityGroupsMember_1.SecurityGroupsMemberFromJSON)), + 'serviceIds': !(0, runtime_1.exists)(json, 'ServiceIds') ? undefined : json['ServiceIds'], + 'toPortRange': !(0, runtime_1.exists)(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} +exports.SecurityGroupRuleFromJSONTyped = SecurityGroupRuleFromJSONTyped; +function SecurityGroupRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRanges': value.ipRanges, + 'SecurityGroupsMembers': value.securityGroupsMembers === undefined ? undefined : (value.securityGroupsMembers.map(SecurityGroupsMember_1.SecurityGroupsMemberToJSON)), + 'ServiceIds': value.serviceIds, + 'ToPortRange': value.toPortRange, + }; +} +exports.SecurityGroupRuleToJSON = SecurityGroupRuleToJSON; diff --git a/dist/cjs/models/SecurityGroupsMember.d.ts b/dist/cjs/models/SecurityGroupsMember.d.ts new file mode 100644 index 00000000..378482f2 --- /dev/null +++ b/dist/cjs/models/SecurityGroupsMember.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the member of a security group. + * @export + * @interface SecurityGroupsMember + */ +export interface SecurityGroupsMember { + /** + * The account ID of a user. + * @type {string} + * @memberof SecurityGroupsMember + */ + accountId?: string; + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroupsMember + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroupsMember + */ + securityGroupName?: string; +} +export declare function SecurityGroupsMemberFromJSON(json: any): SecurityGroupsMember; +export declare function SecurityGroupsMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupsMember; +export declare function SecurityGroupsMemberToJSON(value?: SecurityGroupsMember | null): any; diff --git a/dist/cjs/models/SecurityGroupsMember.js b/dist/cjs/models/SecurityGroupsMember.js new file mode 100644 index 00000000..dd15c8b0 --- /dev/null +++ b/dist/cjs/models/SecurityGroupsMember.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityGroupsMemberToJSON = exports.SecurityGroupsMemberFromJSONTyped = exports.SecurityGroupsMemberFromJSON = void 0; +const runtime_1 = require("../runtime"); +function SecurityGroupsMemberFromJSON(json) { + return SecurityGroupsMemberFromJSONTyped(json, false); +} +exports.SecurityGroupsMemberFromJSON = SecurityGroupsMemberFromJSON; +function SecurityGroupsMemberFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'securityGroupId': !(0, runtime_1.exists)(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !(0, runtime_1.exists)(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +exports.SecurityGroupsMemberFromJSONTyped = SecurityGroupsMemberFromJSONTyped; +function SecurityGroupsMemberToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} +exports.SecurityGroupsMemberToJSON = SecurityGroupsMemberToJSON; diff --git a/dist/cjs/models/SendResetPasswordEmailRequest.d.ts b/dist/cjs/models/SendResetPasswordEmailRequest.d.ts new file mode 100644 index 00000000..794ba599 --- /dev/null +++ b/dist/cjs/models/SendResetPasswordEmailRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SendResetPasswordEmailRequest + */ +export interface SendResetPasswordEmailRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof SendResetPasswordEmailRequest + */ + dryRun?: boolean; + /** + * The email address provided for the account. + * @type {string} + * @memberof SendResetPasswordEmailRequest + */ + email: string; +} +export declare function SendResetPasswordEmailRequestFromJSON(json: any): SendResetPasswordEmailRequest; +export declare function SendResetPasswordEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendResetPasswordEmailRequest; +export declare function SendResetPasswordEmailRequestToJSON(value?: SendResetPasswordEmailRequest | null): any; diff --git a/dist/cjs/models/SendResetPasswordEmailRequest.js b/dist/cjs/models/SendResetPasswordEmailRequest.js new file mode 100644 index 00000000..3654412d --- /dev/null +++ b/dist/cjs/models/SendResetPasswordEmailRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SendResetPasswordEmailRequestToJSON = exports.SendResetPasswordEmailRequestFromJSONTyped = exports.SendResetPasswordEmailRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function SendResetPasswordEmailRequestFromJSON(json) { + return SendResetPasswordEmailRequestFromJSONTyped(json, false); +} +exports.SendResetPasswordEmailRequestFromJSON = SendResetPasswordEmailRequestFromJSON; +function SendResetPasswordEmailRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'email': json['Email'], + }; +} +exports.SendResetPasswordEmailRequestFromJSONTyped = SendResetPasswordEmailRequestFromJSONTyped; +function SendResetPasswordEmailRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Email': value.email, + }; +} +exports.SendResetPasswordEmailRequestToJSON = SendResetPasswordEmailRequestToJSON; diff --git a/dist/cjs/models/SendResetPasswordEmailResponse.d.ts b/dist/cjs/models/SendResetPasswordEmailResponse.d.ts new file mode 100644 index 00000000..4e48b144 --- /dev/null +++ b/dist/cjs/models/SendResetPasswordEmailResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface SendResetPasswordEmailResponse + */ +export interface SendResetPasswordEmailResponse { + /** + * + * @type {ModelResponseContext} + * @memberof SendResetPasswordEmailResponse + */ + responseContext?: ModelResponseContext; +} +export declare function SendResetPasswordEmailResponseFromJSON(json: any): SendResetPasswordEmailResponse; +export declare function SendResetPasswordEmailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendResetPasswordEmailResponse; +export declare function SendResetPasswordEmailResponseToJSON(value?: SendResetPasswordEmailResponse | null): any; diff --git a/dist/cjs/models/SendResetPasswordEmailResponse.js b/dist/cjs/models/SendResetPasswordEmailResponse.js new file mode 100644 index 00000000..b95e7bd8 --- /dev/null +++ b/dist/cjs/models/SendResetPasswordEmailResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SendResetPasswordEmailResponseToJSON = exports.SendResetPasswordEmailResponseFromJSONTyped = exports.SendResetPasswordEmailResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function SendResetPasswordEmailResponseFromJSON(json) { + return SendResetPasswordEmailResponseFromJSONTyped(json, false); +} +exports.SendResetPasswordEmailResponseFromJSON = SendResetPasswordEmailResponseFromJSON; +function SendResetPasswordEmailResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.SendResetPasswordEmailResponseFromJSONTyped = SendResetPasswordEmailResponseFromJSONTyped; +function SendResetPasswordEmailResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.SendResetPasswordEmailResponseToJSON = SendResetPasswordEmailResponseToJSON; diff --git a/dist/cjs/models/ServerCertificate.d.ts b/dist/cjs/models/ServerCertificate.d.ts new file mode 100644 index 00000000..31aed8bc --- /dev/null +++ b/dist/cjs/models/ServerCertificate.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the server certificate. + * @export + * @interface ServerCertificate + */ +export interface ServerCertificate { + /** + * The date at which the server certificate expires. + * @type {Date} + * @memberof ServerCertificate + */ + expirationDate?: Date; + /** + * The ID of the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + id?: string; + /** + * The name of the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + name?: string; + /** + * The path to the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + path?: string; + /** + * The date at which the server certificate has been uploaded. + * @type {Date} + * @memberof ServerCertificate + */ + uploadDate?: Date; +} +export declare function ServerCertificateFromJSON(json: any): ServerCertificate; +export declare function ServerCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerCertificate; +export declare function ServerCertificateToJSON(value?: ServerCertificate | null): any; diff --git a/dist/cjs/models/ServerCertificate.js b/dist/cjs/models/ServerCertificate.js new file mode 100644 index 00000000..bcff69da --- /dev/null +++ b/dist/cjs/models/ServerCertificate.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServerCertificateToJSON = exports.ServerCertificateFromJSONTyped = exports.ServerCertificateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ServerCertificateFromJSON(json) { + return ServerCertificateFromJSONTyped(json, false); +} +exports.ServerCertificateFromJSON = ServerCertificateFromJSON; +function ServerCertificateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'expirationDate': !(0, runtime_1.exists)(json, 'ExpirationDate') ? undefined : (new Date(json['ExpirationDate'])), + 'id': !(0, runtime_1.exists)(json, 'Id') ? undefined : json['Id'], + 'name': !(0, runtime_1.exists)(json, 'Name') ? undefined : json['Name'], + 'path': !(0, runtime_1.exists)(json, 'Path') ? undefined : json['Path'], + 'uploadDate': !(0, runtime_1.exists)(json, 'UploadDate') ? undefined : (new Date(json['UploadDate'])), + }; +} +exports.ServerCertificateFromJSONTyped = ServerCertificateFromJSONTyped; +function ServerCertificateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ExpirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate.toISOString().substr(0, 10)), + 'Id': value.id, + 'Name': value.name, + 'Path': value.path, + 'UploadDate': value.uploadDate === undefined ? undefined : (value.uploadDate.toISOString().substr(0, 10)), + }; +} +exports.ServerCertificateToJSON = ServerCertificateToJSON; diff --git a/dist/cjs/models/Service.d.ts b/dist/cjs/models/Service.d.ts new file mode 100644 index 00000000..ee4592a4 --- /dev/null +++ b/dist/cjs/models/Service.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the service. + * @export + * @interface Service + */ +export interface Service { + /** + * The list of network prefixes used by the service, in CIDR notation. + * @type {Array} + * @memberof Service + */ + ipRanges?: Array; + /** + * The ID of the service. + * @type {string} + * @memberof Service + */ + serviceId?: string; + /** + * The name of the service. + * @type {string} + * @memberof Service + */ + serviceName?: string; +} +export declare function ServiceFromJSON(json: any): Service; +export declare function ServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Service; +export declare function ServiceToJSON(value?: Service | null): any; diff --git a/dist/cjs/models/Service.js b/dist/cjs/models/Service.js new file mode 100644 index 00000000..8efcb6aa --- /dev/null +++ b/dist/cjs/models/Service.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServiceToJSON = exports.ServiceFromJSONTyped = exports.ServiceFromJSON = void 0; +const runtime_1 = require("../runtime"); +function ServiceFromJSON(json) { + return ServiceFromJSONTyped(json, false); +} +exports.ServiceFromJSON = ServiceFromJSON; +function ServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + 'serviceId': !(0, runtime_1.exists)(json, 'ServiceId') ? undefined : json['ServiceId'], + 'serviceName': !(0, runtime_1.exists)(json, 'ServiceName') ? undefined : json['ServiceName'], + }; +} +exports.ServiceFromJSONTyped = ServiceFromJSONTyped; +function ServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IpRanges': value.ipRanges, + 'ServiceId': value.serviceId, + 'ServiceName': value.serviceName, + }; +} +exports.ServiceToJSON = ServiceToJSON; diff --git a/dist/cjs/models/Snapshot.d.ts b/dist/cjs/models/Snapshot.d.ts new file mode 100644 index 00000000..ef9e6bf9 --- /dev/null +++ b/dist/cjs/models/Snapshot.d.ts @@ -0,0 +1,89 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResource } from './PermissionsOnResource'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the snapshot. + * @export + * @interface Snapshot + */ +export interface Snapshot { + /** + * The account alias of the owner of the snapshot. + * @type {string} + * @memberof Snapshot + */ + accountAlias?: string; + /** + * The account ID of the owner of the snapshot. + * @type {string} + * @memberof Snapshot + */ + accountId?: string; + /** + * The date and time of creation of the snapshot. + * @type {string} + * @memberof Snapshot + */ + creationDate?: string; + /** + * The description of the snapshot. + * @type {string} + * @memberof Snapshot + */ + description?: string; + /** + * + * @type {PermissionsOnResource} + * @memberof Snapshot + */ + permissionsToCreateVolume?: PermissionsOnResource; + /** + * The progress of the snapshot, as a percentage. + * @type {number} + * @memberof Snapshot + */ + progress?: number; + /** + * The ID of the snapshot. + * @type {string} + * @memberof Snapshot + */ + snapshotId?: string; + /** + * The state of the snapshot (`in-queue` \| `completed` \| `error`). + * @type {string} + * @memberof Snapshot + */ + state?: string; + /** + * One or more tags associated with the snapshot. + * @type {Array} + * @memberof Snapshot + */ + tags?: Array; + /** + * The ID of the volume used to create the snapshot. + * @type {string} + * @memberof Snapshot + */ + volumeId?: string; + /** + * The size of the volume used to create the snapshot, in gibibytes (GiB). + * @type {number} + * @memberof Snapshot + */ + volumeSize?: number; +} +export declare function SnapshotFromJSON(json: any): Snapshot; +export declare function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Snapshot; +export declare function SnapshotToJSON(value?: Snapshot | null): any; diff --git a/dist/cjs/models/Snapshot.js b/dist/cjs/models/Snapshot.js new file mode 100644 index 00000000..ed286810 --- /dev/null +++ b/dist/cjs/models/Snapshot.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SnapshotToJSON = exports.SnapshotFromJSONTyped = exports.SnapshotFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PermissionsOnResource_1 = require("./PermissionsOnResource"); +const ResourceTag_1 = require("./ResourceTag"); +function SnapshotFromJSON(json) { + return SnapshotFromJSONTyped(json, false); +} +exports.SnapshotFromJSON = SnapshotFromJSON; +function SnapshotFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAlias': !(0, runtime_1.exists)(json, 'AccountAlias') ? undefined : json['AccountAlias'], + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'creationDate': !(0, runtime_1.exists)(json, 'CreationDate') ? undefined : json['CreationDate'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'permissionsToCreateVolume': !(0, runtime_1.exists)(json, 'PermissionsToCreateVolume') ? undefined : (0, PermissionsOnResource_1.PermissionsOnResourceFromJSON)(json['PermissionsToCreateVolume']), + 'progress': !(0, runtime_1.exists)(json, 'Progress') ? undefined : json['Progress'], + 'snapshotId': !(0, runtime_1.exists)(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'volumeId': !(0, runtime_1.exists)(json, 'VolumeId') ? undefined : json['VolumeId'], + 'volumeSize': !(0, runtime_1.exists)(json, 'VolumeSize') ? undefined : json['VolumeSize'], + }; +} +exports.SnapshotFromJSONTyped = SnapshotFromJSONTyped; +function SnapshotToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAlias': value.accountAlias, + 'AccountId': value.accountId, + 'CreationDate': value.creationDate, + 'Description': value.description, + 'PermissionsToCreateVolume': (0, PermissionsOnResource_1.PermissionsOnResourceToJSON)(value.permissionsToCreateVolume), + 'Progress': value.progress, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'VolumeId': value.volumeId, + 'VolumeSize': value.volumeSize, + }; +} +exports.SnapshotToJSON = SnapshotToJSON; diff --git a/dist/cjs/models/SnapshotExportTask.d.ts b/dist/cjs/models/SnapshotExportTask.d.ts new file mode 100644 index 00000000..95e382fa --- /dev/null +++ b/dist/cjs/models/SnapshotExportTask.d.ts @@ -0,0 +1,65 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportSnapshotExportTask } from './OsuExportSnapshotExportTask'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the snapshot export task. + * @export + * @interface SnapshotExportTask + */ +export interface SnapshotExportTask { + /** + * If the snapshot export task fails, an error message appears. + * @type {string} + * @memberof SnapshotExportTask + */ + comment?: string; + /** + * + * @type {OsuExportSnapshotExportTask} + * @memberof SnapshotExportTask + */ + osuExport?: OsuExportSnapshotExportTask; + /** + * The progress of the snapshot export task, as a percentage. + * @type {number} + * @memberof SnapshotExportTask + */ + progress?: number; + /** + * The ID of the snapshot to be exported. + * @type {string} + * @memberof SnapshotExportTask + */ + snapshotId?: string; + /** + * The state of the snapshot export task (`pending` \| `active` \| `completed` \| `failed`). + * @type {string} + * @memberof SnapshotExportTask + */ + state?: string; + /** + * One or more tags associated with the snapshot export task. + * @type {Array} + * @memberof SnapshotExportTask + */ + tags?: Array; + /** + * The ID of the snapshot export task. + * @type {string} + * @memberof SnapshotExportTask + */ + taskId?: string; +} +export declare function SnapshotExportTaskFromJSON(json: any): SnapshotExportTask; +export declare function SnapshotExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotExportTask; +export declare function SnapshotExportTaskToJSON(value?: SnapshotExportTask | null): any; diff --git a/dist/cjs/models/SnapshotExportTask.js b/dist/cjs/models/SnapshotExportTask.js new file mode 100644 index 00000000..490e46c9 --- /dev/null +++ b/dist/cjs/models/SnapshotExportTask.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SnapshotExportTaskToJSON = exports.SnapshotExportTaskFromJSONTyped = exports.SnapshotExportTaskFromJSON = void 0; +const runtime_1 = require("../runtime"); +const OsuExportSnapshotExportTask_1 = require("./OsuExportSnapshotExportTask"); +const ResourceTag_1 = require("./ResourceTag"); +function SnapshotExportTaskFromJSON(json) { + return SnapshotExportTaskFromJSONTyped(json, false); +} +exports.SnapshotExportTaskFromJSON = SnapshotExportTaskFromJSON; +function SnapshotExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'comment': !(0, runtime_1.exists)(json, 'Comment') ? undefined : json['Comment'], + 'osuExport': !(0, runtime_1.exists)(json, 'OsuExport') ? undefined : (0, OsuExportSnapshotExportTask_1.OsuExportSnapshotExportTaskFromJSON)(json['OsuExport']), + 'progress': !(0, runtime_1.exists)(json, 'Progress') ? undefined : json['Progress'], + 'snapshotId': !(0, runtime_1.exists)(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'taskId': !(0, runtime_1.exists)(json, 'TaskId') ? undefined : json['TaskId'], + }; +} +exports.SnapshotExportTaskFromJSONTyped = SnapshotExportTaskFromJSONTyped; +function SnapshotExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Comment': value.comment, + 'OsuExport': (0, OsuExportSnapshotExportTask_1.OsuExportSnapshotExportTaskToJSON)(value.osuExport), + 'Progress': value.progress, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'TaskId': value.taskId, + }; +} +exports.SnapshotExportTaskToJSON = SnapshotExportTaskToJSON; diff --git a/dist/cjs/models/SourceNet.d.ts b/dist/cjs/models/SourceNet.d.ts new file mode 100644 index 00000000..9034a551 --- /dev/null +++ b/dist/cjs/models/SourceNet.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the source Net. + * @export + * @interface SourceNet + */ +export interface SourceNet { + /** + * The account ID of the owner of the source Net. + * @type {string} + * @memberof SourceNet + */ + accountId?: string; + /** + * The IP range for the source Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof SourceNet + */ + ipRange?: string; + /** + * The ID of the source Net. + * @type {string} + * @memberof SourceNet + */ + netId?: string; +} +export declare function SourceNetFromJSON(json: any): SourceNet; +export declare function SourceNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceNet; +export declare function SourceNetToJSON(value?: SourceNet | null): any; diff --git a/dist/cjs/models/SourceNet.js b/dist/cjs/models/SourceNet.js new file mode 100644 index 00000000..7976b59a --- /dev/null +++ b/dist/cjs/models/SourceNet.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SourceNetToJSON = exports.SourceNetFromJSONTyped = exports.SourceNetFromJSON = void 0; +const runtime_1 = require("../runtime"); +function SourceNetFromJSON(json) { + return SourceNetFromJSONTyped(json, false); +} +exports.SourceNetFromJSON = SourceNetFromJSON; +function SourceNetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'ipRange': !(0, runtime_1.exists)(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + }; +} +exports.SourceNetFromJSONTyped = SourceNetFromJSONTyped; +function SourceNetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + }; +} +exports.SourceNetToJSON = SourceNetToJSON; diff --git a/dist/cjs/models/SourceSecurityGroup.d.ts b/dist/cjs/models/SourceSecurityGroup.d.ts new file mode 100644 index 00000000..7b290358 --- /dev/null +++ b/dist/cjs/models/SourceSecurityGroup.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
+ * To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source. + * @export + * @interface SourceSecurityGroup + */ +export interface SourceSecurityGroup { + /** + * The account ID of the owner of the security group. + * @type {string} + * @memberof SourceSecurityGroup + */ + securityGroupAccountId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SourceSecurityGroup + */ + securityGroupName?: string; +} +export declare function SourceSecurityGroupFromJSON(json: any): SourceSecurityGroup; +export declare function SourceSecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSecurityGroup; +export declare function SourceSecurityGroupToJSON(value?: SourceSecurityGroup | null): any; diff --git a/dist/cjs/models/SourceSecurityGroup.js b/dist/cjs/models/SourceSecurityGroup.js new file mode 100644 index 00000000..f471e023 --- /dev/null +++ b/dist/cjs/models/SourceSecurityGroup.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SourceSecurityGroupToJSON = exports.SourceSecurityGroupFromJSONTyped = exports.SourceSecurityGroupFromJSON = void 0; +const runtime_1 = require("../runtime"); +function SourceSecurityGroupFromJSON(json) { + return SourceSecurityGroupFromJSONTyped(json, false); +} +exports.SourceSecurityGroupFromJSON = SourceSecurityGroupFromJSON; +function SourceSecurityGroupFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'securityGroupAccountId': !(0, runtime_1.exists)(json, 'SecurityGroupAccountId') ? undefined : json['SecurityGroupAccountId'], + 'securityGroupName': !(0, runtime_1.exists)(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +exports.SourceSecurityGroupFromJSONTyped = SourceSecurityGroupFromJSONTyped; +function SourceSecurityGroupToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SecurityGroupAccountId': value.securityGroupAccountId, + 'SecurityGroupName': value.securityGroupName, + }; +} +exports.SourceSecurityGroupToJSON = SourceSecurityGroupToJSON; diff --git a/dist/cjs/models/StartVmsRequest.d.ts b/dist/cjs/models/StartVmsRequest.d.ts new file mode 100644 index 00000000..02be3bcc --- /dev/null +++ b/dist/cjs/models/StartVmsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StartVmsRequest + */ +export interface StartVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof StartVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof StartVmsRequest + */ + vmIds: Array; +} +export declare function StartVmsRequestFromJSON(json: any): StartVmsRequest; +export declare function StartVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartVmsRequest; +export declare function StartVmsRequestToJSON(value?: StartVmsRequest | null): any; diff --git a/dist/cjs/models/StartVmsRequest.js b/dist/cjs/models/StartVmsRequest.js new file mode 100644 index 00000000..0ff26553 --- /dev/null +++ b/dist/cjs/models/StartVmsRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StartVmsRequestToJSON = exports.StartVmsRequestFromJSONTyped = exports.StartVmsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function StartVmsRequestFromJSON(json) { + return StartVmsRequestFromJSONTyped(json, false); +} +exports.StartVmsRequestFromJSON = StartVmsRequestFromJSON; +function StartVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} +exports.StartVmsRequestFromJSONTyped = StartVmsRequestFromJSONTyped; +function StartVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} +exports.StartVmsRequestToJSON = StartVmsRequestToJSON; diff --git a/dist/cjs/models/StartVmsResponse.d.ts b/dist/cjs/models/StartVmsResponse.d.ts new file mode 100644 index 00000000..04a074b8 --- /dev/null +++ b/dist/cjs/models/StartVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmState } from './VmState'; +/** + * + * @export + * @interface StartVmsResponse + */ +export interface StartVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof StartVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more started VMs. + * @type {Array} + * @memberof StartVmsResponse + */ + vms?: Array; +} +export declare function StartVmsResponseFromJSON(json: any): StartVmsResponse; +export declare function StartVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartVmsResponse; +export declare function StartVmsResponseToJSON(value?: StartVmsResponse | null): any; diff --git a/dist/cjs/models/StartVmsResponse.js b/dist/cjs/models/StartVmsResponse.js new file mode 100644 index 00000000..6ddc8857 --- /dev/null +++ b/dist/cjs/models/StartVmsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StartVmsResponseToJSON = exports.StartVmsResponseFromJSONTyped = exports.StartVmsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VmState_1 = require("./VmState"); +function StartVmsResponseFromJSON(json) { + return StartVmsResponseFromJSONTyped(json, false); +} +exports.StartVmsResponseFromJSON = StartVmsResponseFromJSON; +function StartVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vms': !(0, runtime_1.exists)(json, 'Vms') ? undefined : (json['Vms'].map(VmState_1.VmStateFromJSON)), + }; +} +exports.StartVmsResponseFromJSONTyped = StartVmsResponseFromJSONTyped; +function StartVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmState_1.VmStateToJSON)), + }; +} +exports.StartVmsResponseToJSON = StartVmsResponseToJSON; diff --git a/dist/cjs/models/StateComment.d.ts b/dist/cjs/models/StateComment.d.ts new file mode 100644 index 00000000..27cc3dc5 --- /dev/null +++ b/dist/cjs/models/StateComment.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the change of state. + * @export + * @interface StateComment + */ +export interface StateComment { + /** + * The code of the change of state. + * @type {string} + * @memberof StateComment + */ + stateCode?: string; + /** + * A message explaining the change of state. + * @type {string} + * @memberof StateComment + */ + stateMessage?: string; +} +export declare function StateCommentFromJSON(json: any): StateComment; +export declare function StateCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateComment; +export declare function StateCommentToJSON(value?: StateComment | null): any; diff --git a/dist/cjs/models/StateComment.js b/dist/cjs/models/StateComment.js new file mode 100644 index 00000000..f1c11cbc --- /dev/null +++ b/dist/cjs/models/StateComment.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StateCommentToJSON = exports.StateCommentFromJSONTyped = exports.StateCommentFromJSON = void 0; +const runtime_1 = require("../runtime"); +function StateCommentFromJSON(json) { + return StateCommentFromJSONTyped(json, false); +} +exports.StateCommentFromJSON = StateCommentFromJSON; +function StateCommentFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'stateCode': !(0, runtime_1.exists)(json, 'StateCode') ? undefined : json['StateCode'], + 'stateMessage': !(0, runtime_1.exists)(json, 'StateMessage') ? undefined : json['StateMessage'], + }; +} +exports.StateCommentFromJSONTyped = StateCommentFromJSONTyped; +function StateCommentToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'StateCode': value.stateCode, + 'StateMessage': value.stateMessage, + }; +} +exports.StateCommentToJSON = StateCommentToJSON; diff --git a/dist/cjs/models/StopVmsRequest.d.ts b/dist/cjs/models/StopVmsRequest.d.ts new file mode 100644 index 00000000..a77bef12 --- /dev/null +++ b/dist/cjs/models/StopVmsRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StopVmsRequest + */ +export interface StopVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof StopVmsRequest + */ + dryRun?: boolean; + /** + * Forces the VM to stop. + * @type {boolean} + * @memberof StopVmsRequest + */ + forceStop?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof StopVmsRequest + */ + vmIds: Array; +} +export declare function StopVmsRequestFromJSON(json: any): StopVmsRequest; +export declare function StopVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopVmsRequest; +export declare function StopVmsRequestToJSON(value?: StopVmsRequest | null): any; diff --git a/dist/cjs/models/StopVmsRequest.js b/dist/cjs/models/StopVmsRequest.js new file mode 100644 index 00000000..0a0a32e2 --- /dev/null +++ b/dist/cjs/models/StopVmsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StopVmsRequestToJSON = exports.StopVmsRequestFromJSONTyped = exports.StopVmsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function StopVmsRequestFromJSON(json) { + return StopVmsRequestFromJSONTyped(json, false); +} +exports.StopVmsRequestFromJSON = StopVmsRequestFromJSON; +function StopVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'forceStop': !(0, runtime_1.exists)(json, 'ForceStop') ? undefined : json['ForceStop'], + 'vmIds': json['VmIds'], + }; +} +exports.StopVmsRequestFromJSONTyped = StopVmsRequestFromJSONTyped; +function StopVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ForceStop': value.forceStop, + 'VmIds': value.vmIds, + }; +} +exports.StopVmsRequestToJSON = StopVmsRequestToJSON; diff --git a/dist/cjs/models/StopVmsResponse.d.ts b/dist/cjs/models/StopVmsResponse.d.ts new file mode 100644 index 00000000..6c5cba1e --- /dev/null +++ b/dist/cjs/models/StopVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmState } from './VmState'; +/** + * + * @export + * @interface StopVmsResponse + */ +export interface StopVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof StopVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more stopped VMs. + * @type {Array} + * @memberof StopVmsResponse + */ + vms?: Array; +} +export declare function StopVmsResponseFromJSON(json: any): StopVmsResponse; +export declare function StopVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopVmsResponse; +export declare function StopVmsResponseToJSON(value?: StopVmsResponse | null): any; diff --git a/dist/cjs/models/StopVmsResponse.js b/dist/cjs/models/StopVmsResponse.js new file mode 100644 index 00000000..d0f25534 --- /dev/null +++ b/dist/cjs/models/StopVmsResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StopVmsResponseToJSON = exports.StopVmsResponseFromJSONTyped = exports.StopVmsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VmState_1 = require("./VmState"); +function StopVmsResponseFromJSON(json) { + return StopVmsResponseFromJSONTyped(json, false); +} +exports.StopVmsResponseFromJSON = StopVmsResponseFromJSON; +function StopVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vms': !(0, runtime_1.exists)(json, 'Vms') ? undefined : (json['Vms'].map(VmState_1.VmStateFromJSON)), + }; +} +exports.StopVmsResponseFromJSONTyped = StopVmsResponseFromJSONTyped; +function StopVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmState_1.VmStateToJSON)), + }; +} +exports.StopVmsResponseToJSON = StopVmsResponseToJSON; diff --git a/dist/cjs/models/Subnet.d.ts b/dist/cjs/models/Subnet.d.ts new file mode 100644 index 00000000..9460165d --- /dev/null +++ b/dist/cjs/models/Subnet.d.ts @@ -0,0 +1,70 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Subnet. + * @export + * @interface Subnet + */ +export interface Subnet { + /** + * The number of available IPs in the Subnets. + * @type {number} + * @memberof Subnet + */ + availableIpsCount?: number; + /** + * The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof Subnet + */ + ipRange?: string; + /** + * If true, a public IP is assigned to the network interface cards (NICs) created in the specified Subnet. + * @type {boolean} + * @memberof Subnet + */ + mapPublicIpOnLaunch?: boolean; + /** + * The ID of the Net in which the Subnet is. + * @type {string} + * @memberof Subnet + */ + netId?: string; + /** + * The state of the Subnet (`pending` \| `available`). + * @type {string} + * @memberof Subnet + */ + state?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof Subnet + */ + subnetId?: string; + /** + * The name of the Subregion in which the Subnet is located. + * @type {string} + * @memberof Subnet + */ + subregionName?: string; + /** + * One or more tags associated with the Subnet. + * @type {Array} + * @memberof Subnet + */ + tags?: Array; +} +export declare function SubnetFromJSON(json: any): Subnet; +export declare function SubnetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subnet; +export declare function SubnetToJSON(value?: Subnet | null): any; diff --git a/dist/cjs/models/Subnet.js b/dist/cjs/models/Subnet.js new file mode 100644 index 00000000..f7d3dbc7 --- /dev/null +++ b/dist/cjs/models/Subnet.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SubnetToJSON = exports.SubnetFromJSONTyped = exports.SubnetFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +function SubnetFromJSON(json) { + return SubnetFromJSONTyped(json, false); +} +exports.SubnetFromJSON = SubnetFromJSON; +function SubnetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'availableIpsCount': !(0, runtime_1.exists)(json, 'AvailableIpsCount') ? undefined : json['AvailableIpsCount'], + 'ipRange': !(0, runtime_1.exists)(json, 'IpRange') ? undefined : json['IpRange'], + 'mapPublicIpOnLaunch': !(0, runtime_1.exists)(json, 'MapPublicIpOnLaunch') ? undefined : json['MapPublicIpOnLaunch'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + }; +} +exports.SubnetFromJSONTyped = SubnetFromJSONTyped; +function SubnetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AvailableIpsCount': value.availableIpsCount, + 'IpRange': value.ipRange, + 'MapPublicIpOnLaunch': value.mapPublicIpOnLaunch, + 'NetId': value.netId, + 'State': value.state, + 'SubnetId': value.subnetId, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + }; +} +exports.SubnetToJSON = SubnetToJSON; diff --git a/dist/cjs/models/Subregion.d.ts b/dist/cjs/models/Subregion.d.ts new file mode 100644 index 00000000..02ec91ad --- /dev/null +++ b/dist/cjs/models/Subregion.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the Subregion. + * @export + * @interface Subregion + */ +export interface Subregion { + /** + * The name of the Region containing the Subregion. + * @type {string} + * @memberof Subregion + */ + regionName?: string; + /** + * The state of the Subregion (`available` \| `information` \| `impaired` \| `unavailable`). + * @type {string} + * @memberof Subregion + */ + state?: string; + /** + * The name of the Subregion. + * @type {string} + * @memberof Subregion + */ + subregionName?: string; +} +export declare function SubregionFromJSON(json: any): Subregion; +export declare function SubregionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subregion; +export declare function SubregionToJSON(value?: Subregion | null): any; diff --git a/dist/cjs/models/Subregion.js b/dist/cjs/models/Subregion.js new file mode 100644 index 00000000..0c6d6bb3 --- /dev/null +++ b/dist/cjs/models/Subregion.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SubregionToJSON = exports.SubregionFromJSONTyped = exports.SubregionFromJSON = void 0; +const runtime_1 = require("../runtime"); +function SubregionFromJSON(json) { + return SubregionFromJSONTyped(json, false); +} +exports.SubregionFromJSON = SubregionFromJSON; +function SubregionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'regionName': !(0, runtime_1.exists)(json, 'RegionName') ? undefined : json['RegionName'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + }; +} +exports.SubregionFromJSONTyped = SubregionFromJSONTyped; +function SubregionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'RegionName': value.regionName, + 'State': value.state, + 'SubregionName': value.subregionName, + }; +} +exports.SubregionToJSON = SubregionToJSON; diff --git a/dist/cjs/models/Tag.d.ts b/dist/cjs/models/Tag.d.ts new file mode 100644 index 00000000..40ecedba --- /dev/null +++ b/dist/cjs/models/Tag.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the tag. + * @export + * @interface Tag + */ +export interface Tag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof Tag + */ + key?: string; + /** + * The ID of the resource. + * @type {string} + * @memberof Tag + */ + resourceId?: string; + /** + * The type of the resource. + * @type {string} + * @memberof Tag + */ + resourceType?: string; + /** + * The value of the tag, between 0 and 255 characters. + * @type {string} + * @memberof Tag + */ + value?: string; +} +export declare function TagFromJSON(json: any): Tag; +export declare function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag; +export declare function TagToJSON(value?: Tag | null): any; diff --git a/dist/cjs/models/Tag.js b/dist/cjs/models/Tag.js new file mode 100644 index 00000000..3c52ccd7 --- /dev/null +++ b/dist/cjs/models/Tag.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TagToJSON = exports.TagFromJSONTyped = exports.TagFromJSON = void 0; +const runtime_1 = require("../runtime"); +function TagFromJSON(json) { + return TagFromJSONTyped(json, false); +} +exports.TagFromJSON = TagFromJSON; +function TagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': !(0, runtime_1.exists)(json, 'Key') ? undefined : json['Key'], + 'resourceId': !(0, runtime_1.exists)(json, 'ResourceId') ? undefined : json['ResourceId'], + 'resourceType': !(0, runtime_1.exists)(json, 'ResourceType') ? undefined : json['ResourceType'], + 'value': !(0, runtime_1.exists)(json, 'Value') ? undefined : json['Value'], + }; +} +exports.TagFromJSONTyped = TagFromJSONTyped; +function TagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + 'ResourceId': value.resourceId, + 'ResourceType': value.resourceType, + 'Value': value.value, + }; +} +exports.TagToJSON = TagToJSON; diff --git a/dist/cjs/models/UnlinkFlexibleGpuRequest.d.ts b/dist/cjs/models/UnlinkFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..8bb37460 --- /dev/null +++ b/dist/cjs/models/UnlinkFlexibleGpuRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkFlexibleGpuRequest + */ +export interface UnlinkFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to detach from your VM. + * @type {string} + * @memberof UnlinkFlexibleGpuRequest + */ + flexibleGpuId: string; +} +export declare function UnlinkFlexibleGpuRequestFromJSON(json: any): UnlinkFlexibleGpuRequest; +export declare function UnlinkFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkFlexibleGpuRequest; +export declare function UnlinkFlexibleGpuRequestToJSON(value?: UnlinkFlexibleGpuRequest | null): any; diff --git a/dist/cjs/models/UnlinkFlexibleGpuRequest.js b/dist/cjs/models/UnlinkFlexibleGpuRequest.js new file mode 100644 index 00000000..4aa3b7c9 --- /dev/null +++ b/dist/cjs/models/UnlinkFlexibleGpuRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkFlexibleGpuRequestToJSON = exports.UnlinkFlexibleGpuRequestFromJSONTyped = exports.UnlinkFlexibleGpuRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkFlexibleGpuRequestFromJSON(json) { + return UnlinkFlexibleGpuRequestFromJSONTyped(json, false); +} +exports.UnlinkFlexibleGpuRequestFromJSON = UnlinkFlexibleGpuRequestFromJSON; +function UnlinkFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} +exports.UnlinkFlexibleGpuRequestFromJSONTyped = UnlinkFlexibleGpuRequestFromJSONTyped; +function UnlinkFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} +exports.UnlinkFlexibleGpuRequestToJSON = UnlinkFlexibleGpuRequestToJSON; diff --git a/dist/cjs/models/UnlinkFlexibleGpuResponse.d.ts b/dist/cjs/models/UnlinkFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..e0f3ae61 --- /dev/null +++ b/dist/cjs/models/UnlinkFlexibleGpuResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkFlexibleGpuResponse + */ +export interface UnlinkFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkFlexibleGpuResponseFromJSON(json: any): UnlinkFlexibleGpuResponse; +export declare function UnlinkFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkFlexibleGpuResponse; +export declare function UnlinkFlexibleGpuResponseToJSON(value?: UnlinkFlexibleGpuResponse | null): any; diff --git a/dist/cjs/models/UnlinkFlexibleGpuResponse.js b/dist/cjs/models/UnlinkFlexibleGpuResponse.js new file mode 100644 index 00000000..58601394 --- /dev/null +++ b/dist/cjs/models/UnlinkFlexibleGpuResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkFlexibleGpuResponseToJSON = exports.UnlinkFlexibleGpuResponseFromJSONTyped = exports.UnlinkFlexibleGpuResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkFlexibleGpuResponseFromJSON(json) { + return UnlinkFlexibleGpuResponseFromJSONTyped(json, false); +} +exports.UnlinkFlexibleGpuResponseFromJSON = UnlinkFlexibleGpuResponseFromJSON; +function UnlinkFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkFlexibleGpuResponseFromJSONTyped = UnlinkFlexibleGpuResponseFromJSONTyped; +function UnlinkFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkFlexibleGpuResponseToJSON = UnlinkFlexibleGpuResponseToJSON; diff --git a/dist/cjs/models/UnlinkInternetServiceRequest.d.ts b/dist/cjs/models/UnlinkInternetServiceRequest.d.ts new file mode 100644 index 00000000..ad0191e5 --- /dev/null +++ b/dist/cjs/models/UnlinkInternetServiceRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkInternetServiceRequest + */ +export interface UnlinkInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to detach. + * @type {string} + * @memberof UnlinkInternetServiceRequest + */ + internetServiceId: string; + /** + * The ID of the Net from which you want to detach the Internet service. + * @type {string} + * @memberof UnlinkInternetServiceRequest + */ + netId: string; +} +export declare function UnlinkInternetServiceRequestFromJSON(json: any): UnlinkInternetServiceRequest; +export declare function UnlinkInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkInternetServiceRequest; +export declare function UnlinkInternetServiceRequestToJSON(value?: UnlinkInternetServiceRequest | null): any; diff --git a/dist/cjs/models/UnlinkInternetServiceRequest.js b/dist/cjs/models/UnlinkInternetServiceRequest.js new file mode 100644 index 00000000..980056df --- /dev/null +++ b/dist/cjs/models/UnlinkInternetServiceRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkInternetServiceRequestToJSON = exports.UnlinkInternetServiceRequestFromJSONTyped = exports.UnlinkInternetServiceRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkInternetServiceRequestFromJSON(json) { + return UnlinkInternetServiceRequestFromJSONTyped(json, false); +} +exports.UnlinkInternetServiceRequestFromJSON = UnlinkInternetServiceRequestFromJSON; +function UnlinkInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + 'netId': json['NetId'], + }; +} +exports.UnlinkInternetServiceRequestFromJSONTyped = UnlinkInternetServiceRequestFromJSONTyped; +function UnlinkInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + }; +} +exports.UnlinkInternetServiceRequestToJSON = UnlinkInternetServiceRequestToJSON; diff --git a/dist/cjs/models/UnlinkInternetServiceResponse.d.ts b/dist/cjs/models/UnlinkInternetServiceResponse.d.ts new file mode 100644 index 00000000..6c617fd1 --- /dev/null +++ b/dist/cjs/models/UnlinkInternetServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkInternetServiceResponse + */ +export interface UnlinkInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkInternetServiceResponseFromJSON(json: any): UnlinkInternetServiceResponse; +export declare function UnlinkInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkInternetServiceResponse; +export declare function UnlinkInternetServiceResponseToJSON(value?: UnlinkInternetServiceResponse | null): any; diff --git a/dist/cjs/models/UnlinkInternetServiceResponse.js b/dist/cjs/models/UnlinkInternetServiceResponse.js new file mode 100644 index 00000000..db70e06b --- /dev/null +++ b/dist/cjs/models/UnlinkInternetServiceResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkInternetServiceResponseToJSON = exports.UnlinkInternetServiceResponseFromJSONTyped = exports.UnlinkInternetServiceResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkInternetServiceResponseFromJSON(json) { + return UnlinkInternetServiceResponseFromJSONTyped(json, false); +} +exports.UnlinkInternetServiceResponseFromJSON = UnlinkInternetServiceResponseFromJSON; +function UnlinkInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkInternetServiceResponseFromJSONTyped = UnlinkInternetServiceResponseFromJSONTyped; +function UnlinkInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkInternetServiceResponseToJSON = UnlinkInternetServiceResponseToJSON; diff --git a/dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts new file mode 100644 index 00000000..c3d8df97 --- /dev/null +++ b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkLoadBalancerBackendMachinesRequest + */ +export interface UnlinkLoadBalancerBackendMachinesRequest { + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + loadBalancerName: string; +} +export declare function UnlinkLoadBalancerBackendMachinesRequestFromJSON(json: any): UnlinkLoadBalancerBackendMachinesRequest; +export declare function UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkLoadBalancerBackendMachinesRequest; +export declare function UnlinkLoadBalancerBackendMachinesRequestToJSON(value?: UnlinkLoadBalancerBackendMachinesRequest | null): any; diff --git a/dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.js b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.js new file mode 100644 index 00000000..4f77d314 --- /dev/null +++ b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkLoadBalancerBackendMachinesRequestToJSON = exports.UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped = exports.UnlinkLoadBalancerBackendMachinesRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkLoadBalancerBackendMachinesRequestFromJSON(json) { + return UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, false); +} +exports.UnlinkLoadBalancerBackendMachinesRequestFromJSON = UnlinkLoadBalancerBackendMachinesRequestFromJSON; +function UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendIps': !(0, runtime_1.exists)(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !(0, runtime_1.exists)(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +exports.UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped = UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped; +function UnlinkLoadBalancerBackendMachinesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} +exports.UnlinkLoadBalancerBackendMachinesRequestToJSON = UnlinkLoadBalancerBackendMachinesRequestToJSON; diff --git a/dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts new file mode 100644 index 00000000..142258e7 --- /dev/null +++ b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkLoadBalancerBackendMachinesResponse + */ +export interface UnlinkLoadBalancerBackendMachinesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkLoadBalancerBackendMachinesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkLoadBalancerBackendMachinesResponseFromJSON(json: any): UnlinkLoadBalancerBackendMachinesResponse; +export declare function UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkLoadBalancerBackendMachinesResponse; +export declare function UnlinkLoadBalancerBackendMachinesResponseToJSON(value?: UnlinkLoadBalancerBackendMachinesResponse | null): any; diff --git a/dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.js b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.js new file mode 100644 index 00000000..207e903c --- /dev/null +++ b/dist/cjs/models/UnlinkLoadBalancerBackendMachinesResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkLoadBalancerBackendMachinesResponseToJSON = exports.UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped = exports.UnlinkLoadBalancerBackendMachinesResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkLoadBalancerBackendMachinesResponseFromJSON(json) { + return UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, false); +} +exports.UnlinkLoadBalancerBackendMachinesResponseFromJSON = UnlinkLoadBalancerBackendMachinesResponseFromJSON; +function UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped = UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped; +function UnlinkLoadBalancerBackendMachinesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkLoadBalancerBackendMachinesResponseToJSON = UnlinkLoadBalancerBackendMachinesResponseToJSON; diff --git a/dist/cjs/models/UnlinkNicRequest.d.ts b/dist/cjs/models/UnlinkNicRequest.d.ts new file mode 100644 index 00000000..a4ca96b6 --- /dev/null +++ b/dist/cjs/models/UnlinkNicRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkNicRequest + */ +export interface UnlinkNicRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkNicRequest + */ + dryRun?: boolean; + /** + * The ID of the attachment operation. + * @type {string} + * @memberof UnlinkNicRequest + */ + linkNicId: string; +} +export declare function UnlinkNicRequestFromJSON(json: any): UnlinkNicRequest; +export declare function UnlinkNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkNicRequest; +export declare function UnlinkNicRequestToJSON(value?: UnlinkNicRequest | null): any; diff --git a/dist/cjs/models/UnlinkNicRequest.js b/dist/cjs/models/UnlinkNicRequest.js new file mode 100644 index 00000000..8520d41c --- /dev/null +++ b/dist/cjs/models/UnlinkNicRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkNicRequestToJSON = exports.UnlinkNicRequestFromJSONTyped = exports.UnlinkNicRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkNicRequestFromJSON(json) { + return UnlinkNicRequestFromJSONTyped(json, false); +} +exports.UnlinkNicRequestFromJSON = UnlinkNicRequestFromJSON; +function UnlinkNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'linkNicId': json['LinkNicId'], + }; +} +exports.UnlinkNicRequestFromJSONTyped = UnlinkNicRequestFromJSONTyped; +function UnlinkNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LinkNicId': value.linkNicId, + }; +} +exports.UnlinkNicRequestToJSON = UnlinkNicRequestToJSON; diff --git a/dist/cjs/models/UnlinkNicResponse.d.ts b/dist/cjs/models/UnlinkNicResponse.d.ts new file mode 100644 index 00000000..42b023c0 --- /dev/null +++ b/dist/cjs/models/UnlinkNicResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkNicResponse + */ +export interface UnlinkNicResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkNicResponseFromJSON(json: any): UnlinkNicResponse; +export declare function UnlinkNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkNicResponse; +export declare function UnlinkNicResponseToJSON(value?: UnlinkNicResponse | null): any; diff --git a/dist/cjs/models/UnlinkNicResponse.js b/dist/cjs/models/UnlinkNicResponse.js new file mode 100644 index 00000000..f9ef4c89 --- /dev/null +++ b/dist/cjs/models/UnlinkNicResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkNicResponseToJSON = exports.UnlinkNicResponseFromJSONTyped = exports.UnlinkNicResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkNicResponseFromJSON(json) { + return UnlinkNicResponseFromJSONTyped(json, false); +} +exports.UnlinkNicResponseFromJSON = UnlinkNicResponseFromJSON; +function UnlinkNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkNicResponseFromJSONTyped = UnlinkNicResponseFromJSONTyped; +function UnlinkNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkNicResponseToJSON = UnlinkNicResponseToJSON; diff --git a/dist/cjs/models/UnlinkPrivateIpsRequest.d.ts b/dist/cjs/models/UnlinkPrivateIpsRequest.d.ts new file mode 100644 index 00000000..82bdddec --- /dev/null +++ b/dist/cjs/models/UnlinkPrivateIpsRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkPrivateIpsRequest + */ +export interface UnlinkPrivateIpsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkPrivateIpsRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC. + * @type {string} + * @memberof UnlinkPrivateIpsRequest + */ + nicId: string; + /** + * One or more secondary private IPs you want to unassign from the NIC. + * @type {Array} + * @memberof UnlinkPrivateIpsRequest + */ + privateIps: Array; +} +export declare function UnlinkPrivateIpsRequestFromJSON(json: any): UnlinkPrivateIpsRequest; +export declare function UnlinkPrivateIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPrivateIpsRequest; +export declare function UnlinkPrivateIpsRequestToJSON(value?: UnlinkPrivateIpsRequest | null): any; diff --git a/dist/cjs/models/UnlinkPrivateIpsRequest.js b/dist/cjs/models/UnlinkPrivateIpsRequest.js new file mode 100644 index 00000000..88106228 --- /dev/null +++ b/dist/cjs/models/UnlinkPrivateIpsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkPrivateIpsRequestToJSON = exports.UnlinkPrivateIpsRequestFromJSONTyped = exports.UnlinkPrivateIpsRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkPrivateIpsRequestFromJSON(json) { + return UnlinkPrivateIpsRequestFromJSONTyped(json, false); +} +exports.UnlinkPrivateIpsRequestFromJSON = UnlinkPrivateIpsRequestFromJSON; +function UnlinkPrivateIpsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'privateIps': json['PrivateIps'], + }; +} +exports.UnlinkPrivateIpsRequestFromJSONTyped = UnlinkPrivateIpsRequestFromJSONTyped; +function UnlinkPrivateIpsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps, + }; +} +exports.UnlinkPrivateIpsRequestToJSON = UnlinkPrivateIpsRequestToJSON; diff --git a/dist/cjs/models/UnlinkPrivateIpsResponse.d.ts b/dist/cjs/models/UnlinkPrivateIpsResponse.d.ts new file mode 100644 index 00000000..1344e32f --- /dev/null +++ b/dist/cjs/models/UnlinkPrivateIpsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkPrivateIpsResponse + */ +export interface UnlinkPrivateIpsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkPrivateIpsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkPrivateIpsResponseFromJSON(json: any): UnlinkPrivateIpsResponse; +export declare function UnlinkPrivateIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPrivateIpsResponse; +export declare function UnlinkPrivateIpsResponseToJSON(value?: UnlinkPrivateIpsResponse | null): any; diff --git a/dist/cjs/models/UnlinkPrivateIpsResponse.js b/dist/cjs/models/UnlinkPrivateIpsResponse.js new file mode 100644 index 00000000..b96bf7f9 --- /dev/null +++ b/dist/cjs/models/UnlinkPrivateIpsResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkPrivateIpsResponseToJSON = exports.UnlinkPrivateIpsResponseFromJSONTyped = exports.UnlinkPrivateIpsResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkPrivateIpsResponseFromJSON(json) { + return UnlinkPrivateIpsResponseFromJSONTyped(json, false); +} +exports.UnlinkPrivateIpsResponseFromJSON = UnlinkPrivateIpsResponseFromJSON; +function UnlinkPrivateIpsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkPrivateIpsResponseFromJSONTyped = UnlinkPrivateIpsResponseFromJSONTyped; +function UnlinkPrivateIpsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkPrivateIpsResponseToJSON = UnlinkPrivateIpsResponseToJSON; diff --git a/dist/cjs/models/UnlinkPublicIpRequest.d.ts b/dist/cjs/models/UnlinkPublicIpRequest.d.ts new file mode 100644 index 00000000..40376be5 --- /dev/null +++ b/dist/cjs/models/UnlinkPublicIpRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkPublicIpRequest + */ +export interface UnlinkPublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkPublicIpRequest + */ + dryRun?: boolean; + /** + * The ID representing the association of the public IP with the VM or the NIC. This parameter is required unless you use the `PublicIp` parameter. + * @type {string} + * @memberof UnlinkPublicIpRequest + */ + linkPublicIpId?: string; + /** + * The public IP. This parameter is required unless you use the `LinkPublicIpId` parameter. + * @type {string} + * @memberof UnlinkPublicIpRequest + */ + publicIp?: string; +} +export declare function UnlinkPublicIpRequestFromJSON(json: any): UnlinkPublicIpRequest; +export declare function UnlinkPublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPublicIpRequest; +export declare function UnlinkPublicIpRequestToJSON(value?: UnlinkPublicIpRequest | null): any; diff --git a/dist/cjs/models/UnlinkPublicIpRequest.js b/dist/cjs/models/UnlinkPublicIpRequest.js new file mode 100644 index 00000000..3aa170a2 --- /dev/null +++ b/dist/cjs/models/UnlinkPublicIpRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkPublicIpRequestToJSON = exports.UnlinkPublicIpRequestFromJSONTyped = exports.UnlinkPublicIpRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkPublicIpRequestFromJSON(json) { + return UnlinkPublicIpRequestFromJSONTyped(json, false); +} +exports.UnlinkPublicIpRequestFromJSON = UnlinkPublicIpRequestFromJSON; +function UnlinkPublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'linkPublicIpId': !(0, runtime_1.exists)(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + }; +} +exports.UnlinkPublicIpRequestFromJSONTyped = UnlinkPublicIpRequestFromJSONTyped; +function UnlinkPublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LinkPublicIpId': value.linkPublicIpId, + 'PublicIp': value.publicIp, + }; +} +exports.UnlinkPublicIpRequestToJSON = UnlinkPublicIpRequestToJSON; diff --git a/dist/cjs/models/UnlinkPublicIpResponse.d.ts b/dist/cjs/models/UnlinkPublicIpResponse.d.ts new file mode 100644 index 00000000..085f07fa --- /dev/null +++ b/dist/cjs/models/UnlinkPublicIpResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkPublicIpResponse + */ +export interface UnlinkPublicIpResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkPublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkPublicIpResponseFromJSON(json: any): UnlinkPublicIpResponse; +export declare function UnlinkPublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPublicIpResponse; +export declare function UnlinkPublicIpResponseToJSON(value?: UnlinkPublicIpResponse | null): any; diff --git a/dist/cjs/models/UnlinkPublicIpResponse.js b/dist/cjs/models/UnlinkPublicIpResponse.js new file mode 100644 index 00000000..5ad11f9a --- /dev/null +++ b/dist/cjs/models/UnlinkPublicIpResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkPublicIpResponseToJSON = exports.UnlinkPublicIpResponseFromJSONTyped = exports.UnlinkPublicIpResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkPublicIpResponseFromJSON(json) { + return UnlinkPublicIpResponseFromJSONTyped(json, false); +} +exports.UnlinkPublicIpResponseFromJSON = UnlinkPublicIpResponseFromJSON; +function UnlinkPublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkPublicIpResponseFromJSONTyped = UnlinkPublicIpResponseFromJSONTyped; +function UnlinkPublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkPublicIpResponseToJSON = UnlinkPublicIpResponseToJSON; diff --git a/dist/cjs/models/UnlinkRouteTableRequest.d.ts b/dist/cjs/models/UnlinkRouteTableRequest.d.ts new file mode 100644 index 00000000..9801936c --- /dev/null +++ b/dist/cjs/models/UnlinkRouteTableRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkRouteTableRequest + */ +export interface UnlinkRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof UnlinkRouteTableRequest + */ + linkRouteTableId: string; +} +export declare function UnlinkRouteTableRequestFromJSON(json: any): UnlinkRouteTableRequest; +export declare function UnlinkRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkRouteTableRequest; +export declare function UnlinkRouteTableRequestToJSON(value?: UnlinkRouteTableRequest | null): any; diff --git a/dist/cjs/models/UnlinkRouteTableRequest.js b/dist/cjs/models/UnlinkRouteTableRequest.js new file mode 100644 index 00000000..77850f97 --- /dev/null +++ b/dist/cjs/models/UnlinkRouteTableRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkRouteTableRequestToJSON = exports.UnlinkRouteTableRequestFromJSONTyped = exports.UnlinkRouteTableRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkRouteTableRequestFromJSON(json) { + return UnlinkRouteTableRequestFromJSONTyped(json, false); +} +exports.UnlinkRouteTableRequestFromJSON = UnlinkRouteTableRequestFromJSON; +function UnlinkRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'linkRouteTableId': json['LinkRouteTableId'], + }; +} +exports.UnlinkRouteTableRequestFromJSONTyped = UnlinkRouteTableRequestFromJSONTyped; +function UnlinkRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LinkRouteTableId': value.linkRouteTableId, + }; +} +exports.UnlinkRouteTableRequestToJSON = UnlinkRouteTableRequestToJSON; diff --git a/dist/cjs/models/UnlinkRouteTableResponse.d.ts b/dist/cjs/models/UnlinkRouteTableResponse.d.ts new file mode 100644 index 00000000..94d79b2b --- /dev/null +++ b/dist/cjs/models/UnlinkRouteTableResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkRouteTableResponse + */ +export interface UnlinkRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkRouteTableResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkRouteTableResponseFromJSON(json: any): UnlinkRouteTableResponse; +export declare function UnlinkRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkRouteTableResponse; +export declare function UnlinkRouteTableResponseToJSON(value?: UnlinkRouteTableResponse | null): any; diff --git a/dist/cjs/models/UnlinkRouteTableResponse.js b/dist/cjs/models/UnlinkRouteTableResponse.js new file mode 100644 index 00000000..b487019a --- /dev/null +++ b/dist/cjs/models/UnlinkRouteTableResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkRouteTableResponseToJSON = exports.UnlinkRouteTableResponseFromJSONTyped = exports.UnlinkRouteTableResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkRouteTableResponseFromJSON(json) { + return UnlinkRouteTableResponseFromJSONTyped(json, false); +} +exports.UnlinkRouteTableResponseFromJSON = UnlinkRouteTableResponseFromJSON; +function UnlinkRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkRouteTableResponseFromJSONTyped = UnlinkRouteTableResponseFromJSONTyped; +function UnlinkRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkRouteTableResponseToJSON = UnlinkRouteTableResponseToJSON; diff --git a/dist/cjs/models/UnlinkVirtualGatewayRequest.d.ts b/dist/cjs/models/UnlinkVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..14099551 --- /dev/null +++ b/dist/cjs/models/UnlinkVirtualGatewayRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkVirtualGatewayRequest + */ +export interface UnlinkVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the Net from which you want to detach the virtual gateway. + * @type {string} + * @memberof UnlinkVirtualGatewayRequest + */ + netId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UnlinkVirtualGatewayRequest + */ + virtualGatewayId: string; +} +export declare function UnlinkVirtualGatewayRequestFromJSON(json: any): UnlinkVirtualGatewayRequest; +export declare function UnlinkVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVirtualGatewayRequest; +export declare function UnlinkVirtualGatewayRequestToJSON(value?: UnlinkVirtualGatewayRequest | null): any; diff --git a/dist/cjs/models/UnlinkVirtualGatewayRequest.js b/dist/cjs/models/UnlinkVirtualGatewayRequest.js new file mode 100644 index 00000000..7cc40015 --- /dev/null +++ b/dist/cjs/models/UnlinkVirtualGatewayRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkVirtualGatewayRequestToJSON = exports.UnlinkVirtualGatewayRequestFromJSONTyped = exports.UnlinkVirtualGatewayRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkVirtualGatewayRequestFromJSON(json) { + return UnlinkVirtualGatewayRequestFromJSONTyped(json, false); +} +exports.UnlinkVirtualGatewayRequestFromJSON = UnlinkVirtualGatewayRequestFromJSON; +function UnlinkVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +exports.UnlinkVirtualGatewayRequestFromJSONTyped = UnlinkVirtualGatewayRequestFromJSONTyped; +function UnlinkVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.UnlinkVirtualGatewayRequestToJSON = UnlinkVirtualGatewayRequestToJSON; diff --git a/dist/cjs/models/UnlinkVirtualGatewayResponse.d.ts b/dist/cjs/models/UnlinkVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..1c6ca234 --- /dev/null +++ b/dist/cjs/models/UnlinkVirtualGatewayResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkVirtualGatewayResponse + */ +export interface UnlinkVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkVirtualGatewayResponseFromJSON(json: any): UnlinkVirtualGatewayResponse; +export declare function UnlinkVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVirtualGatewayResponse; +export declare function UnlinkVirtualGatewayResponseToJSON(value?: UnlinkVirtualGatewayResponse | null): any; diff --git a/dist/cjs/models/UnlinkVirtualGatewayResponse.js b/dist/cjs/models/UnlinkVirtualGatewayResponse.js new file mode 100644 index 00000000..57d99f16 --- /dev/null +++ b/dist/cjs/models/UnlinkVirtualGatewayResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkVirtualGatewayResponseToJSON = exports.UnlinkVirtualGatewayResponseFromJSONTyped = exports.UnlinkVirtualGatewayResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkVirtualGatewayResponseFromJSON(json) { + return UnlinkVirtualGatewayResponseFromJSONTyped(json, false); +} +exports.UnlinkVirtualGatewayResponseFromJSON = UnlinkVirtualGatewayResponseFromJSON; +function UnlinkVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkVirtualGatewayResponseFromJSONTyped = UnlinkVirtualGatewayResponseFromJSONTyped; +function UnlinkVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkVirtualGatewayResponseToJSON = UnlinkVirtualGatewayResponseToJSON; diff --git a/dist/cjs/models/UnlinkVolumeRequest.d.ts b/dist/cjs/models/UnlinkVolumeRequest.d.ts new file mode 100644 index 00000000..81889b0d --- /dev/null +++ b/dist/cjs/models/UnlinkVolumeRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkVolumeRequest + */ +export interface UnlinkVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkVolumeRequest + */ + dryRun?: boolean; + /** + * Forces the detachment of the volume in case of previous failure. Important: This action may damage your data or file systems. + * @type {boolean} + * @memberof UnlinkVolumeRequest + */ + forceUnlink?: boolean; + /** + * The ID of the volume you want to detach. + * @type {string} + * @memberof UnlinkVolumeRequest + */ + volumeId: string; +} +export declare function UnlinkVolumeRequestFromJSON(json: any): UnlinkVolumeRequest; +export declare function UnlinkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVolumeRequest; +export declare function UnlinkVolumeRequestToJSON(value?: UnlinkVolumeRequest | null): any; diff --git a/dist/cjs/models/UnlinkVolumeRequest.js b/dist/cjs/models/UnlinkVolumeRequest.js new file mode 100644 index 00000000..cf045773 --- /dev/null +++ b/dist/cjs/models/UnlinkVolumeRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkVolumeRequestToJSON = exports.UnlinkVolumeRequestFromJSONTyped = exports.UnlinkVolumeRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UnlinkVolumeRequestFromJSON(json) { + return UnlinkVolumeRequestFromJSONTyped(json, false); +} +exports.UnlinkVolumeRequestFromJSON = UnlinkVolumeRequestFromJSON; +function UnlinkVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'forceUnlink': !(0, runtime_1.exists)(json, 'ForceUnlink') ? undefined : json['ForceUnlink'], + 'volumeId': json['VolumeId'], + }; +} +exports.UnlinkVolumeRequestFromJSONTyped = UnlinkVolumeRequestFromJSONTyped; +function UnlinkVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ForceUnlink': value.forceUnlink, + 'VolumeId': value.volumeId, + }; +} +exports.UnlinkVolumeRequestToJSON = UnlinkVolumeRequestToJSON; diff --git a/dist/cjs/models/UnlinkVolumeResponse.d.ts b/dist/cjs/models/UnlinkVolumeResponse.d.ts new file mode 100644 index 00000000..2682a9df --- /dev/null +++ b/dist/cjs/models/UnlinkVolumeResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkVolumeResponse + */ +export interface UnlinkVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkVolumeResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkVolumeResponseFromJSON(json: any): UnlinkVolumeResponse; +export declare function UnlinkVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVolumeResponse; +export declare function UnlinkVolumeResponseToJSON(value?: UnlinkVolumeResponse | null): any; diff --git a/dist/cjs/models/UnlinkVolumeResponse.js b/dist/cjs/models/UnlinkVolumeResponse.js new file mode 100644 index 00000000..e73b36fe --- /dev/null +++ b/dist/cjs/models/UnlinkVolumeResponse.js @@ -0,0 +1,43 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnlinkVolumeResponseToJSON = exports.UnlinkVolumeResponseFromJSONTyped = exports.UnlinkVolumeResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UnlinkVolumeResponseFromJSON(json) { + return UnlinkVolumeResponseFromJSONTyped(json, false); +} +exports.UnlinkVolumeResponseFromJSON = UnlinkVolumeResponseFromJSON; +function UnlinkVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UnlinkVolumeResponseFromJSONTyped = UnlinkVolumeResponseFromJSONTyped; +function UnlinkVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UnlinkVolumeResponseToJSON = UnlinkVolumeResponseToJSON; diff --git a/dist/cjs/models/UpdateAccessKeyRequest.d.ts b/dist/cjs/models/UpdateAccessKeyRequest.d.ts new file mode 100644 index 00000000..3dad66df --- /dev/null +++ b/dist/cjs/models/UpdateAccessKeyRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateAccessKeyRequest + */ +export interface UpdateAccessKeyRequest { + /** + * The ID of the access key. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateAccessKeyRequest + */ + dryRun?: boolean; + /** + * The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). If not specified, the access key is set to not expire. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + expirationDate?: string; + /** + * The new state for the access key (`ACTIVE` \| `INACTIVE`). When set to `ACTIVE`, the access key is enabled and can be used to send requests. When set to `INACTIVE`, the access key is disabled. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + state: string; +} +export declare function UpdateAccessKeyRequestFromJSON(json: any): UpdateAccessKeyRequest; +export declare function UpdateAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccessKeyRequest; +export declare function UpdateAccessKeyRequestToJSON(value?: UpdateAccessKeyRequest | null): any; diff --git a/dist/cjs/models/UpdateAccessKeyRequest.js b/dist/cjs/models/UpdateAccessKeyRequest.js new file mode 100644 index 00000000..9e46ef2d --- /dev/null +++ b/dist/cjs/models/UpdateAccessKeyRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateAccessKeyRequestToJSON = exports.UpdateAccessKeyRequestFromJSONTyped = exports.UpdateAccessKeyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateAccessKeyRequestFromJSON(json) { + return UpdateAccessKeyRequestFromJSONTyped(json, false); +} +exports.UpdateAccessKeyRequestFromJSON = UpdateAccessKeyRequestFromJSON; +function UpdateAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'expirationDate': !(0, runtime_1.exists)(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'state': json['State'], + }; +} +exports.UpdateAccessKeyRequestFromJSONTyped = UpdateAccessKeyRequestFromJSONTyped; +function UpdateAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + 'ExpirationDate': value.expirationDate, + 'State': value.state, + }; +} +exports.UpdateAccessKeyRequestToJSON = UpdateAccessKeyRequestToJSON; diff --git a/dist/cjs/models/UpdateAccessKeyResponse.d.ts b/dist/cjs/models/UpdateAccessKeyResponse.d.ts new file mode 100644 index 00000000..66f8240e --- /dev/null +++ b/dist/cjs/models/UpdateAccessKeyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKey } from './AccessKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateAccessKeyResponse + */ +export interface UpdateAccessKeyResponse { + /** + * + * @type {AccessKey} + * @memberof UpdateAccessKeyResponse + */ + accessKey?: AccessKey; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateAccessKeyResponseFromJSON(json: any): UpdateAccessKeyResponse; +export declare function UpdateAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccessKeyResponse; +export declare function UpdateAccessKeyResponseToJSON(value?: UpdateAccessKeyResponse | null): any; diff --git a/dist/cjs/models/UpdateAccessKeyResponse.js b/dist/cjs/models/UpdateAccessKeyResponse.js new file mode 100644 index 00000000..6d0bf8d5 --- /dev/null +++ b/dist/cjs/models/UpdateAccessKeyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateAccessKeyResponseToJSON = exports.UpdateAccessKeyResponseFromJSONTyped = exports.UpdateAccessKeyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccessKey_1 = require("./AccessKey"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateAccessKeyResponseFromJSON(json) { + return UpdateAccessKeyResponseFromJSONTyped(json, false); +} +exports.UpdateAccessKeyResponseFromJSON = UpdateAccessKeyResponseFromJSON; +function UpdateAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKey': !(0, runtime_1.exists)(json, 'AccessKey') ? undefined : (0, AccessKey_1.AccessKeyFromJSON)(json['AccessKey']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateAccessKeyResponseFromJSONTyped = UpdateAccessKeyResponseFromJSONTyped; +function UpdateAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKey': (0, AccessKey_1.AccessKeyToJSON)(value.accessKey), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateAccessKeyResponseToJSON = UpdateAccessKeyResponseToJSON; diff --git a/dist/cjs/models/UpdateAccountRequest.d.ts b/dist/cjs/models/UpdateAccountRequest.d.ts new file mode 100644 index 00000000..2f858317 --- /dev/null +++ b/dist/cjs/models/UpdateAccountRequest.d.ts @@ -0,0 +1,105 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateAccountRequest + */ +export interface UpdateAccountRequest { + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. If you already have a list of additional emails registered, you cannot add to it, only replace it. To remove all registered additional emails, specify an empty list. + * @type {Array} + * @memberof UpdateAccountRequest + */ + additionalEmails?: Array; + /** + * The new city of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + city?: string; + /** + * The new name of the company for the account. + * @type {string} + * @memberof UpdateAccountRequest + */ + companyName?: string; + /** + * The new country of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + country?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateAccountRequest + */ + dryRun?: boolean; + /** + * The main email address for the account. This address is used for your credentials and notifications. + * @type {string} + * @memberof UpdateAccountRequest + */ + email?: string; + /** + * The new first name of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + firstName?: string; + /** + * The new job title of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + jobTitle?: string; + /** + * The new last name of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + lastName?: string; + /** + * The new mobile phone number of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + mobileNumber?: string; + /** + * The new landline phone number of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + phoneNumber?: string; + /** + * The new state/province of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + stateProvince?: string; + /** + * The new value added tax (VAT) number for the account. + * @type {string} + * @memberof UpdateAccountRequest + */ + vatNumber?: string; + /** + * The new ZIP code of the city. + * @type {string} + * @memberof UpdateAccountRequest + */ + zipCode?: string; +} +export declare function UpdateAccountRequestFromJSON(json: any): UpdateAccountRequest; +export declare function UpdateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountRequest; +export declare function UpdateAccountRequestToJSON(value?: UpdateAccountRequest | null): any; diff --git a/dist/cjs/models/UpdateAccountRequest.js b/dist/cjs/models/UpdateAccountRequest.js new file mode 100644 index 00000000..3e81663b --- /dev/null +++ b/dist/cjs/models/UpdateAccountRequest.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateAccountRequestToJSON = exports.UpdateAccountRequestFromJSONTyped = exports.UpdateAccountRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateAccountRequestFromJSON(json) { + return UpdateAccountRequestFromJSONTyped(json, false); +} +exports.UpdateAccountRequestFromJSON = UpdateAccountRequestFromJSON; +function UpdateAccountRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'additionalEmails': !(0, runtime_1.exists)(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': !(0, runtime_1.exists)(json, 'City') ? undefined : json['City'], + 'companyName': !(0, runtime_1.exists)(json, 'CompanyName') ? undefined : json['CompanyName'], + 'country': !(0, runtime_1.exists)(json, 'Country') ? undefined : json['Country'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'email': !(0, runtime_1.exists)(json, 'Email') ? undefined : json['Email'], + 'firstName': !(0, runtime_1.exists)(json, 'FirstName') ? undefined : json['FirstName'], + 'jobTitle': !(0, runtime_1.exists)(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': !(0, runtime_1.exists)(json, 'LastName') ? undefined : json['LastName'], + 'mobileNumber': !(0, runtime_1.exists)(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !(0, runtime_1.exists)(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !(0, runtime_1.exists)(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !(0, runtime_1.exists)(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': !(0, runtime_1.exists)(json, 'ZipCode') ? undefined : json['ZipCode'], + }; +} +exports.UpdateAccountRequestFromJSONTyped = UpdateAccountRequestFromJSONTyped; +function UpdateAccountRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'DryRun': value.dryRun, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} +exports.UpdateAccountRequestToJSON = UpdateAccountRequestToJSON; diff --git a/dist/cjs/models/UpdateAccountResponse.d.ts b/dist/cjs/models/UpdateAccountResponse.d.ts new file mode 100644 index 00000000..6734b089 --- /dev/null +++ b/dist/cjs/models/UpdateAccountResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Account } from './Account'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateAccountResponse + */ +export interface UpdateAccountResponse { + /** + * + * @type {Account} + * @memberof UpdateAccountResponse + */ + account?: Account; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateAccountResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateAccountResponseFromJSON(json: any): UpdateAccountResponse; +export declare function UpdateAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountResponse; +export declare function UpdateAccountResponseToJSON(value?: UpdateAccountResponse | null): any; diff --git a/dist/cjs/models/UpdateAccountResponse.js b/dist/cjs/models/UpdateAccountResponse.js new file mode 100644 index 00000000..25e47a4d --- /dev/null +++ b/dist/cjs/models/UpdateAccountResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateAccountResponseToJSON = exports.UpdateAccountResponseFromJSONTyped = exports.UpdateAccountResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Account_1 = require("./Account"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateAccountResponseFromJSON(json) { + return UpdateAccountResponseFromJSONTyped(json, false); +} +exports.UpdateAccountResponseFromJSON = UpdateAccountResponseFromJSON; +function UpdateAccountResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'account': !(0, runtime_1.exists)(json, 'Account') ? undefined : (0, Account_1.AccountFromJSON)(json['Account']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateAccountResponseFromJSONTyped = UpdateAccountResponseFromJSONTyped; +function UpdateAccountResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Account': (0, Account_1.AccountToJSON)(value.account), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateAccountResponseToJSON = UpdateAccountResponseToJSON; diff --git a/dist/cjs/models/UpdateApiAccessPolicyRequest.d.ts b/dist/cjs/models/UpdateApiAccessPolicyRequest.d.ts new file mode 100644 index 00000000..bd38f048 --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessPolicyRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateApiAccessPolicyRequest + */ +export interface UpdateApiAccessPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateApiAccessPolicyRequest + */ + dryRun?: boolean; + /** + * The maximum possible lifetime for your access keys, in seconds (between `0` and `3153600000`, both included). If set to `O`, your access keys can have unlimited lifetimes, but a trusted session cannot be activated. Otherwise, all your access keys must have an expiration date. This value must be greater than the remaining lifetime of each access key of your account. + * @type {number} + * @memberof UpdateApiAccessPolicyRequest + */ + maxAccessKeyExpirationSeconds: number; + /** + * If true, a trusted session is activated, provided that you specify the `MaxAccessKeyExpirationSeconds` parameter with a value greater than `0`. + * @type {boolean} + * @memberof UpdateApiAccessPolicyRequest + */ + requireTrustedEnv: boolean; +} +export declare function UpdateApiAccessPolicyRequestFromJSON(json: any): UpdateApiAccessPolicyRequest; +export declare function UpdateApiAccessPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessPolicyRequest; +export declare function UpdateApiAccessPolicyRequestToJSON(value?: UpdateApiAccessPolicyRequest | null): any; diff --git a/dist/cjs/models/UpdateApiAccessPolicyRequest.js b/dist/cjs/models/UpdateApiAccessPolicyRequest.js new file mode 100644 index 00000000..25112823 --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessPolicyRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateApiAccessPolicyRequestToJSON = exports.UpdateApiAccessPolicyRequestFromJSONTyped = exports.UpdateApiAccessPolicyRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateApiAccessPolicyRequestFromJSON(json) { + return UpdateApiAccessPolicyRequestFromJSONTyped(json, false); +} +exports.UpdateApiAccessPolicyRequestFromJSON = UpdateApiAccessPolicyRequestFromJSON; +function UpdateApiAccessPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'maxAccessKeyExpirationSeconds': json['MaxAccessKeyExpirationSeconds'], + 'requireTrustedEnv': json['RequireTrustedEnv'], + }; +} +exports.UpdateApiAccessPolicyRequestFromJSONTyped = UpdateApiAccessPolicyRequestFromJSONTyped; +function UpdateApiAccessPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'MaxAccessKeyExpirationSeconds': value.maxAccessKeyExpirationSeconds, + 'RequireTrustedEnv': value.requireTrustedEnv, + }; +} +exports.UpdateApiAccessPolicyRequestToJSON = UpdateApiAccessPolicyRequestToJSON; diff --git a/dist/cjs/models/UpdateApiAccessPolicyResponse.d.ts b/dist/cjs/models/UpdateApiAccessPolicyResponse.d.ts new file mode 100644 index 00000000..a830705c --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessPolicy } from './ApiAccessPolicy'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateApiAccessPolicyResponse + */ +export interface UpdateApiAccessPolicyResponse { + /** + * + * @type {ApiAccessPolicy} + * @memberof UpdateApiAccessPolicyResponse + */ + apiAccessPolicy?: ApiAccessPolicy; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateApiAccessPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateApiAccessPolicyResponseFromJSON(json: any): UpdateApiAccessPolicyResponse; +export declare function UpdateApiAccessPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessPolicyResponse; +export declare function UpdateApiAccessPolicyResponseToJSON(value?: UpdateApiAccessPolicyResponse | null): any; diff --git a/dist/cjs/models/UpdateApiAccessPolicyResponse.js b/dist/cjs/models/UpdateApiAccessPolicyResponse.js new file mode 100644 index 00000000..26fd3565 --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessPolicyResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateApiAccessPolicyResponseToJSON = exports.UpdateApiAccessPolicyResponseFromJSONTyped = exports.UpdateApiAccessPolicyResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ApiAccessPolicy_1 = require("./ApiAccessPolicy"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateApiAccessPolicyResponseFromJSON(json) { + return UpdateApiAccessPolicyResponseFromJSONTyped(json, false); +} +exports.UpdateApiAccessPolicyResponseFromJSON = UpdateApiAccessPolicyResponseFromJSON; +function UpdateApiAccessPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessPolicy': !(0, runtime_1.exists)(json, 'ApiAccessPolicy') ? undefined : (0, ApiAccessPolicy_1.ApiAccessPolicyFromJSON)(json['ApiAccessPolicy']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateApiAccessPolicyResponseFromJSONTyped = UpdateApiAccessPolicyResponseFromJSONTyped; +function UpdateApiAccessPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessPolicy': (0, ApiAccessPolicy_1.ApiAccessPolicyToJSON)(value.apiAccessPolicy), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateApiAccessPolicyResponseToJSON = UpdateApiAccessPolicyResponseToJSON; diff --git a/dist/cjs/models/UpdateApiAccessRuleRequest.d.ts b/dist/cjs/models/UpdateApiAccessRuleRequest.d.ts new file mode 100644 index 00000000..ba8cd2b4 --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessRuleRequest.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateApiAccessRuleRequest + */ +export interface UpdateApiAccessRuleRequest { + /** + * The ID of the API access rule you want to update. + * @type {string} + * @memberof UpdateApiAccessRuleRequest + */ + apiAccessRuleId: string; + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + cns?: Array; + /** + * A new description for the API access rule. + * @type {string} + * @memberof UpdateApiAccessRuleRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateApiAccessRuleRequest + */ + dryRun?: boolean; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + ipRanges?: Array; +} +export declare function UpdateApiAccessRuleRequestFromJSON(json: any): UpdateApiAccessRuleRequest; +export declare function UpdateApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessRuleRequest; +export declare function UpdateApiAccessRuleRequestToJSON(value?: UpdateApiAccessRuleRequest | null): any; diff --git a/dist/cjs/models/UpdateApiAccessRuleRequest.js b/dist/cjs/models/UpdateApiAccessRuleRequest.js new file mode 100644 index 00000000..9797653a --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessRuleRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateApiAccessRuleRequestToJSON = exports.UpdateApiAccessRuleRequestFromJSONTyped = exports.UpdateApiAccessRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateApiAccessRuleRequestFromJSON(json) { + return UpdateApiAccessRuleRequestFromJSONTyped(json, false); +} +exports.UpdateApiAccessRuleRequestFromJSON = UpdateApiAccessRuleRequestFromJSON; +function UpdateApiAccessRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleId': json['ApiAccessRuleId'], + 'caIds': !(0, runtime_1.exists)(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !(0, runtime_1.exists)(json, 'Cns') ? undefined : json['Cns'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRanges': !(0, runtime_1.exists)(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +exports.UpdateApiAccessRuleRequestFromJSONTyped = UpdateApiAccessRuleRequestFromJSONTyped; +function UpdateApiAccessRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleId': value.apiAccessRuleId, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'DryRun': value.dryRun, + 'IpRanges': value.ipRanges, + }; +} +exports.UpdateApiAccessRuleRequestToJSON = UpdateApiAccessRuleRequestToJSON; diff --git a/dist/cjs/models/UpdateApiAccessRuleResponse.d.ts b/dist/cjs/models/UpdateApiAccessRuleResponse.d.ts new file mode 100644 index 00000000..826c9456 --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessRule } from './ApiAccessRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateApiAccessRuleResponse + */ +export interface UpdateApiAccessRuleResponse { + /** + * + * @type {ApiAccessRule} + * @memberof UpdateApiAccessRuleResponse + */ + apiAccessRule?: ApiAccessRule; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateApiAccessRuleResponseFromJSON(json: any): UpdateApiAccessRuleResponse; +export declare function UpdateApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessRuleResponse; +export declare function UpdateApiAccessRuleResponseToJSON(value?: UpdateApiAccessRuleResponse | null): any; diff --git a/dist/cjs/models/UpdateApiAccessRuleResponse.js b/dist/cjs/models/UpdateApiAccessRuleResponse.js new file mode 100644 index 00000000..73293cc5 --- /dev/null +++ b/dist/cjs/models/UpdateApiAccessRuleResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateApiAccessRuleResponseToJSON = exports.UpdateApiAccessRuleResponseFromJSONTyped = exports.UpdateApiAccessRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ApiAccessRule_1 = require("./ApiAccessRule"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateApiAccessRuleResponseFromJSON(json) { + return UpdateApiAccessRuleResponseFromJSONTyped(json, false); +} +exports.UpdateApiAccessRuleResponseFromJSON = UpdateApiAccessRuleResponseFromJSON; +function UpdateApiAccessRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRule': !(0, runtime_1.exists)(json, 'ApiAccessRule') ? undefined : (0, ApiAccessRule_1.ApiAccessRuleFromJSON)(json['ApiAccessRule']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateApiAccessRuleResponseFromJSONTyped = UpdateApiAccessRuleResponseFromJSONTyped; +function UpdateApiAccessRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRule': (0, ApiAccessRule_1.ApiAccessRuleToJSON)(value.apiAccessRule), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateApiAccessRuleResponseToJSON = UpdateApiAccessRuleResponseToJSON; diff --git a/dist/cjs/models/UpdateCaRequest.d.ts b/dist/cjs/models/UpdateCaRequest.d.ts new file mode 100644 index 00000000..3e8fa79b --- /dev/null +++ b/dist/cjs/models/UpdateCaRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateCaRequest + */ +export interface UpdateCaRequest { + /** + * The ID of the CA. + * @type {string} + * @memberof UpdateCaRequest + */ + caId: string; + /** + * The description of the CA. + * @type {string} + * @memberof UpdateCaRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateCaRequest + */ + dryRun?: boolean; +} +export declare function UpdateCaRequestFromJSON(json: any): UpdateCaRequest; +export declare function UpdateCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCaRequest; +export declare function UpdateCaRequestToJSON(value?: UpdateCaRequest | null): any; diff --git a/dist/cjs/models/UpdateCaRequest.js b/dist/cjs/models/UpdateCaRequest.js new file mode 100644 index 00000000..815a548c --- /dev/null +++ b/dist/cjs/models/UpdateCaRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateCaRequestToJSON = exports.UpdateCaRequestFromJSONTyped = exports.UpdateCaRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateCaRequestFromJSON(json) { + return UpdateCaRequestFromJSONTyped(json, false); +} +exports.UpdateCaRequestFromJSON = UpdateCaRequestFromJSON; +function UpdateCaRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caId': json['CaId'], + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +exports.UpdateCaRequestFromJSONTyped = UpdateCaRequestFromJSONTyped; +function UpdateCaRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaId': value.caId, + 'Description': value.description, + 'DryRun': value.dryRun, + }; +} +exports.UpdateCaRequestToJSON = UpdateCaRequestToJSON; diff --git a/dist/cjs/models/UpdateCaResponse.d.ts b/dist/cjs/models/UpdateCaResponse.d.ts new file mode 100644 index 00000000..085db6bc --- /dev/null +++ b/dist/cjs/models/UpdateCaResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Ca } from './Ca'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateCaResponse + */ +export interface UpdateCaResponse { + /** + * + * @type {Ca} + * @memberof UpdateCaResponse + */ + ca?: Ca; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateCaResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateCaResponseFromJSON(json: any): UpdateCaResponse; +export declare function UpdateCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCaResponse; +export declare function UpdateCaResponseToJSON(value?: UpdateCaResponse | null): any; diff --git a/dist/cjs/models/UpdateCaResponse.js b/dist/cjs/models/UpdateCaResponse.js new file mode 100644 index 00000000..037064e4 --- /dev/null +++ b/dist/cjs/models/UpdateCaResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateCaResponseToJSON = exports.UpdateCaResponseFromJSONTyped = exports.UpdateCaResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Ca_1 = require("./Ca"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateCaResponseFromJSON(json) { + return UpdateCaResponseFromJSONTyped(json, false); +} +exports.UpdateCaResponseFromJSON = UpdateCaResponseFromJSON; +function UpdateCaResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'ca': !(0, runtime_1.exists)(json, 'Ca') ? undefined : (0, Ca_1.CaFromJSON)(json['Ca']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateCaResponseFromJSONTyped = UpdateCaResponseFromJSONTyped; +function UpdateCaResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Ca': (0, Ca_1.CaToJSON)(value.ca), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateCaResponseToJSON = UpdateCaResponseToJSON; diff --git a/dist/cjs/models/UpdateFlexibleGpuRequest.d.ts b/dist/cjs/models/UpdateFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..04cf770a --- /dev/null +++ b/dist/cjs/models/UpdateFlexibleGpuRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateFlexibleGpuRequest + */ +export interface UpdateFlexibleGpuRequest { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof UpdateFlexibleGpuRequest + */ + deleteOnVmDeletion?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to modify. + * @type {string} + * @memberof UpdateFlexibleGpuRequest + */ + flexibleGpuId: string; +} +export declare function UpdateFlexibleGpuRequestFromJSON(json: any): UpdateFlexibleGpuRequest; +export declare function UpdateFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFlexibleGpuRequest; +export declare function UpdateFlexibleGpuRequestToJSON(value?: UpdateFlexibleGpuRequest | null): any; diff --git a/dist/cjs/models/UpdateFlexibleGpuRequest.js b/dist/cjs/models/UpdateFlexibleGpuRequest.js new file mode 100644 index 00000000..3413025e --- /dev/null +++ b/dist/cjs/models/UpdateFlexibleGpuRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateFlexibleGpuRequestToJSON = exports.UpdateFlexibleGpuRequestFromJSONTyped = exports.UpdateFlexibleGpuRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateFlexibleGpuRequestFromJSON(json) { + return UpdateFlexibleGpuRequestFromJSONTyped(json, false); +} +exports.UpdateFlexibleGpuRequestFromJSON = UpdateFlexibleGpuRequestFromJSON; +function UpdateFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !(0, runtime_1.exists)(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} +exports.UpdateFlexibleGpuRequestFromJSONTyped = UpdateFlexibleGpuRequestFromJSONTyped; +function UpdateFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} +exports.UpdateFlexibleGpuRequestToJSON = UpdateFlexibleGpuRequestToJSON; diff --git a/dist/cjs/models/UpdateFlexibleGpuResponse.d.ts b/dist/cjs/models/UpdateFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..f1b07cf4 --- /dev/null +++ b/dist/cjs/models/UpdateFlexibleGpuResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpu } from './FlexibleGpu'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateFlexibleGpuResponse + */ +export interface UpdateFlexibleGpuResponse { + /** + * + * @type {FlexibleGpu} + * @memberof UpdateFlexibleGpuResponse + */ + flexibleGpu?: FlexibleGpu; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateFlexibleGpuResponseFromJSON(json: any): UpdateFlexibleGpuResponse; +export declare function UpdateFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFlexibleGpuResponse; +export declare function UpdateFlexibleGpuResponseToJSON(value?: UpdateFlexibleGpuResponse | null): any; diff --git a/dist/cjs/models/UpdateFlexibleGpuResponse.js b/dist/cjs/models/UpdateFlexibleGpuResponse.js new file mode 100644 index 00000000..8cfb6a1b --- /dev/null +++ b/dist/cjs/models/UpdateFlexibleGpuResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateFlexibleGpuResponseToJSON = exports.UpdateFlexibleGpuResponseFromJSONTyped = exports.UpdateFlexibleGpuResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const FlexibleGpu_1 = require("./FlexibleGpu"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateFlexibleGpuResponseFromJSON(json) { + return UpdateFlexibleGpuResponseFromJSONTyped(json, false); +} +exports.UpdateFlexibleGpuResponseFromJSON = UpdateFlexibleGpuResponseFromJSON; +function UpdateFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpu': !(0, runtime_1.exists)(json, 'FlexibleGpu') ? undefined : (0, FlexibleGpu_1.FlexibleGpuFromJSON)(json['FlexibleGpu']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateFlexibleGpuResponseFromJSONTyped = UpdateFlexibleGpuResponseFromJSONTyped; +function UpdateFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpu': (0, FlexibleGpu_1.FlexibleGpuToJSON)(value.flexibleGpu), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateFlexibleGpuResponseToJSON = UpdateFlexibleGpuResponseToJSON; diff --git a/dist/cjs/models/UpdateImageRequest.d.ts b/dist/cjs/models/UpdateImageRequest.d.ts new file mode 100644 index 00000000..904dbdd9 --- /dev/null +++ b/dist/cjs/models/UpdateImageRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResourceCreation } from './PermissionsOnResourceCreation'; +/** + * + * @export + * @interface UpdateImageRequest + */ +export interface UpdateImageRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateImageRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI you want to modify. + * @type {string} + * @memberof UpdateImageRequest + */ + imageId: string; + /** + * + * @type {PermissionsOnResourceCreation} + * @memberof UpdateImageRequest + */ + permissionsToLaunch: PermissionsOnResourceCreation; +} +export declare function UpdateImageRequestFromJSON(json: any): UpdateImageRequest; +export declare function UpdateImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateImageRequest; +export declare function UpdateImageRequestToJSON(value?: UpdateImageRequest | null): any; diff --git a/dist/cjs/models/UpdateImageRequest.js b/dist/cjs/models/UpdateImageRequest.js new file mode 100644 index 00000000..b544e3fa --- /dev/null +++ b/dist/cjs/models/UpdateImageRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateImageRequestToJSON = exports.UpdateImageRequestFromJSONTyped = exports.UpdateImageRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PermissionsOnResourceCreation_1 = require("./PermissionsOnResourceCreation"); +function UpdateImageRequestFromJSON(json) { + return UpdateImageRequestFromJSONTyped(json, false); +} +exports.UpdateImageRequestFromJSON = UpdateImageRequestFromJSON; +function UpdateImageRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'permissionsToLaunch': (0, PermissionsOnResourceCreation_1.PermissionsOnResourceCreationFromJSON)(json['PermissionsToLaunch']), + }; +} +exports.UpdateImageRequestFromJSONTyped = UpdateImageRequestFromJSONTyped; +function UpdateImageRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'PermissionsToLaunch': (0, PermissionsOnResourceCreation_1.PermissionsOnResourceCreationToJSON)(value.permissionsToLaunch), + }; +} +exports.UpdateImageRequestToJSON = UpdateImageRequestToJSON; diff --git a/dist/cjs/models/UpdateImageResponse.d.ts b/dist/cjs/models/UpdateImageResponse.d.ts new file mode 100644 index 00000000..657c2b4a --- /dev/null +++ b/dist/cjs/models/UpdateImageResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Image } from './Image'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateImageResponse + */ +export interface UpdateImageResponse { + /** + * + * @type {Image} + * @memberof UpdateImageResponse + */ + image?: Image; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateImageResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateImageResponseFromJSON(json: any): UpdateImageResponse; +export declare function UpdateImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateImageResponse; +export declare function UpdateImageResponseToJSON(value?: UpdateImageResponse | null): any; diff --git a/dist/cjs/models/UpdateImageResponse.js b/dist/cjs/models/UpdateImageResponse.js new file mode 100644 index 00000000..68db677f --- /dev/null +++ b/dist/cjs/models/UpdateImageResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateImageResponseToJSON = exports.UpdateImageResponseFromJSONTyped = exports.UpdateImageResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Image_1 = require("./Image"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateImageResponseFromJSON(json) { + return UpdateImageResponseFromJSONTyped(json, false); +} +exports.UpdateImageResponseFromJSON = UpdateImageResponseFromJSON; +function UpdateImageResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'image': !(0, runtime_1.exists)(json, 'Image') ? undefined : (0, Image_1.ImageFromJSON)(json['Image']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateImageResponseFromJSONTyped = UpdateImageResponseFromJSONTyped; +function UpdateImageResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Image': (0, Image_1.ImageToJSON)(value.image), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateImageResponseToJSON = UpdateImageResponseToJSON; diff --git a/dist/cjs/models/UpdateListenerRuleRequest.d.ts b/dist/cjs/models/UpdateListenerRuleRequest.d.ts new file mode 100644 index 00000000..5cdd0aaf --- /dev/null +++ b/dist/cjs/models/UpdateListenerRuleRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateListenerRuleRequest + */ +export interface UpdateListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateListenerRuleRequest + */ + dryRun?: boolean; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + hostPattern?: string | null; + /** + * The name of the listener rule. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + listenerRuleName: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + pathPattern?: string | null; +} +export declare function UpdateListenerRuleRequestFromJSON(json: any): UpdateListenerRuleRequest; +export declare function UpdateListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateListenerRuleRequest; +export declare function UpdateListenerRuleRequestToJSON(value?: UpdateListenerRuleRequest | null): any; diff --git a/dist/cjs/models/UpdateListenerRuleRequest.js b/dist/cjs/models/UpdateListenerRuleRequest.js new file mode 100644 index 00000000..8ef43422 --- /dev/null +++ b/dist/cjs/models/UpdateListenerRuleRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateListenerRuleRequestToJSON = exports.UpdateListenerRuleRequestFromJSONTyped = exports.UpdateListenerRuleRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateListenerRuleRequestFromJSON(json) { + return UpdateListenerRuleRequestFromJSONTyped(json, false); +} +exports.UpdateListenerRuleRequestFromJSON = UpdateListenerRuleRequestFromJSON; +function UpdateListenerRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'hostPattern': !(0, runtime_1.exists)(json, 'HostPattern') ? undefined : json['HostPattern'], + 'listenerRuleName': json['ListenerRuleName'], + 'pathPattern': !(0, runtime_1.exists)(json, 'PathPattern') ? undefined : json['PathPattern'], + }; +} +exports.UpdateListenerRuleRequestFromJSONTyped = UpdateListenerRuleRequestFromJSONTyped; +function UpdateListenerRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'HostPattern': value.hostPattern, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + }; +} +exports.UpdateListenerRuleRequestToJSON = UpdateListenerRuleRequestToJSON; diff --git a/dist/cjs/models/UpdateListenerRuleResponse.d.ts b/dist/cjs/models/UpdateListenerRuleResponse.d.ts new file mode 100644 index 00000000..c0bf417f --- /dev/null +++ b/dist/cjs/models/UpdateListenerRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRule } from './ListenerRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateListenerRuleResponse + */ +export interface UpdateListenerRuleResponse { + /** + * + * @type {ListenerRule} + * @memberof UpdateListenerRuleResponse + */ + listenerRule?: ListenerRule; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateListenerRuleResponseFromJSON(json: any): UpdateListenerRuleResponse; +export declare function UpdateListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateListenerRuleResponse; +export declare function UpdateListenerRuleResponseToJSON(value?: UpdateListenerRuleResponse | null): any; diff --git a/dist/cjs/models/UpdateListenerRuleResponse.js b/dist/cjs/models/UpdateListenerRuleResponse.js new file mode 100644 index 00000000..13acfc70 --- /dev/null +++ b/dist/cjs/models/UpdateListenerRuleResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateListenerRuleResponseToJSON = exports.UpdateListenerRuleResponseFromJSONTyped = exports.UpdateListenerRuleResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ListenerRule_1 = require("./ListenerRule"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateListenerRuleResponseFromJSON(json) { + return UpdateListenerRuleResponseFromJSONTyped(json, false); +} +exports.UpdateListenerRuleResponseFromJSON = UpdateListenerRuleResponseFromJSON; +function UpdateListenerRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRule': !(0, runtime_1.exists)(json, 'ListenerRule') ? undefined : (0, ListenerRule_1.ListenerRuleFromJSON)(json['ListenerRule']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateListenerRuleResponseFromJSONTyped = UpdateListenerRuleResponseFromJSONTyped; +function UpdateListenerRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRule': (0, ListenerRule_1.ListenerRuleToJSON)(value.listenerRule), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateListenerRuleResponseToJSON = UpdateListenerRuleResponseToJSON; diff --git a/dist/cjs/models/UpdateLoadBalancerRequest.d.ts b/dist/cjs/models/UpdateLoadBalancerRequest.d.ts new file mode 100644 index 00000000..5dea7564 --- /dev/null +++ b/dist/cjs/models/UpdateLoadBalancerRequest.d.ts @@ -0,0 +1,77 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessLog } from './AccessLog'; +import { HealthCheck } from './HealthCheck'; +/** + * + * @export + * @interface UpdateLoadBalancerRequest + */ +export interface UpdateLoadBalancerRequest { + /** + * + * @type {AccessLog} + * @memberof UpdateLoadBalancerRequest + */ + accessLog?: AccessLog; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateLoadBalancerRequest + */ + dryRun?: boolean; + /** + * + * @type {HealthCheck} + * @memberof UpdateLoadBalancerRequest + */ + healthCheck?: HealthCheck; + /** + * The name of the load balancer. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + loadBalancerName: string; + /** + * The port on which the load balancer is listening (between `1` and `65535`, both included). This parameter is required if you want to update the server certificate. + * @type {number} + * @memberof UpdateLoadBalancerRequest + */ + loadBalancerPort?: number; + /** + * The name of the policy you want to enable for the listener. + * @type {Array} + * @memberof UpdateLoadBalancerRequest + */ + policyNames?: Array; + /** + * (internet-facing only) The public IP you want to associate with the load balancer. The former public IP of the load balancer is then disassociated. If you specify an empty string and the former public IP belonged to you, it is disassociated and replaced by a public IP owned by 3DS OUTSCALE. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + publicIp?: string; + /** + * (Net only) One or more IDs of security groups you want to assign to the load balancer. You need to specify the already assigned security groups that you want to keep along with the new ones you are assigning. If the list is empty, the default security group of the Net is assigned to the load balancer. + * @type {Array} + * @memberof UpdateLoadBalancerRequest + */ + securityGroups?: Array; + /** + * The Outscale Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > Outscale Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). If this parameter is specified, you must also specify the `LoadBalancerPort` parameter. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + serverCertificateId?: string; +} +export declare function UpdateLoadBalancerRequestFromJSON(json: any): UpdateLoadBalancerRequest; +export declare function UpdateLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLoadBalancerRequest; +export declare function UpdateLoadBalancerRequestToJSON(value?: UpdateLoadBalancerRequest | null): any; diff --git a/dist/cjs/models/UpdateLoadBalancerRequest.js b/dist/cjs/models/UpdateLoadBalancerRequest.js new file mode 100644 index 00000000..7cee981c --- /dev/null +++ b/dist/cjs/models/UpdateLoadBalancerRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateLoadBalancerRequestToJSON = exports.UpdateLoadBalancerRequestFromJSONTyped = exports.UpdateLoadBalancerRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const AccessLog_1 = require("./AccessLog"); +const HealthCheck_1 = require("./HealthCheck"); +function UpdateLoadBalancerRequestFromJSON(json) { + return UpdateLoadBalancerRequestFromJSONTyped(json, false); +} +exports.UpdateLoadBalancerRequestFromJSON = UpdateLoadBalancerRequestFromJSON; +function UpdateLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessLog': !(0, runtime_1.exists)(json, 'AccessLog') ? undefined : (0, AccessLog_1.AccessLogFromJSON)(json['AccessLog']), + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'healthCheck': !(0, runtime_1.exists)(json, 'HealthCheck') ? undefined : (0, HealthCheck_1.HealthCheckFromJSON)(json['HealthCheck']), + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPort': !(0, runtime_1.exists)(json, 'LoadBalancerPort') ? undefined : json['LoadBalancerPort'], + 'policyNames': !(0, runtime_1.exists)(json, 'PolicyNames') ? undefined : json['PolicyNames'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'serverCertificateId': !(0, runtime_1.exists)(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} +exports.UpdateLoadBalancerRequestFromJSONTyped = UpdateLoadBalancerRequestFromJSONTyped; +function UpdateLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessLog': (0, AccessLog_1.AccessLogToJSON)(value.accessLog), + 'DryRun': value.dryRun, + 'HealthCheck': (0, HealthCheck_1.HealthCheckToJSON)(value.healthCheck), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPort': value.loadBalancerPort, + 'PolicyNames': value.policyNames, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'ServerCertificateId': value.serverCertificateId, + }; +} +exports.UpdateLoadBalancerRequestToJSON = UpdateLoadBalancerRequestToJSON; diff --git a/dist/cjs/models/UpdateLoadBalancerResponse.d.ts b/dist/cjs/models/UpdateLoadBalancerResponse.d.ts new file mode 100644 index 00000000..525c3605 --- /dev/null +++ b/dist/cjs/models/UpdateLoadBalancerResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateLoadBalancerResponse + */ +export interface UpdateLoadBalancerResponse { + /** + * + * @type {LoadBalancer} + * @memberof UpdateLoadBalancerResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateLoadBalancerResponseFromJSON(json: any): UpdateLoadBalancerResponse; +export declare function UpdateLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLoadBalancerResponse; +export declare function UpdateLoadBalancerResponseToJSON(value?: UpdateLoadBalancerResponse | null): any; diff --git a/dist/cjs/models/UpdateLoadBalancerResponse.js b/dist/cjs/models/UpdateLoadBalancerResponse.js new file mode 100644 index 00000000..7e44f370 --- /dev/null +++ b/dist/cjs/models/UpdateLoadBalancerResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateLoadBalancerResponseToJSON = exports.UpdateLoadBalancerResponseFromJSONTyped = exports.UpdateLoadBalancerResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LoadBalancer_1 = require("./LoadBalancer"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +function UpdateLoadBalancerResponseFromJSON(json) { + return UpdateLoadBalancerResponseFromJSONTyped(json, false); +} +exports.UpdateLoadBalancerResponseFromJSON = UpdateLoadBalancerResponseFromJSON; +function UpdateLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !(0, runtime_1.exists)(json, 'LoadBalancer') ? undefined : (0, LoadBalancer_1.LoadBalancerFromJSON)(json['LoadBalancer']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateLoadBalancerResponseFromJSONTyped = UpdateLoadBalancerResponseFromJSONTyped; +function UpdateLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': (0, LoadBalancer_1.LoadBalancerToJSON)(value.loadBalancer), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateLoadBalancerResponseToJSON = UpdateLoadBalancerResponseToJSON; diff --git a/dist/cjs/models/UpdateNetAccessPointRequest.d.ts b/dist/cjs/models/UpdateNetAccessPointRequest.d.ts new file mode 100644 index 00000000..af8bed3c --- /dev/null +++ b/dist/cjs/models/UpdateNetAccessPointRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateNetAccessPointRequest + */ +export interface UpdateNetAccessPointRequest { + /** + * One or more IDs of route tables to associate with the specified Net access point. + * @type {Array} + * @memberof UpdateNetAccessPointRequest + */ + addRouteTableIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net access point. + * @type {string} + * @memberof UpdateNetAccessPointRequest + */ + netAccessPointId: string; + /** + * One or more IDs of route tables to disassociate from the specified Net access point. + * @type {Array} + * @memberof UpdateNetAccessPointRequest + */ + removeRouteTableIds?: Array; +} +export declare function UpdateNetAccessPointRequestFromJSON(json: any): UpdateNetAccessPointRequest; +export declare function UpdateNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetAccessPointRequest; +export declare function UpdateNetAccessPointRequestToJSON(value?: UpdateNetAccessPointRequest | null): any; diff --git a/dist/cjs/models/UpdateNetAccessPointRequest.js b/dist/cjs/models/UpdateNetAccessPointRequest.js new file mode 100644 index 00000000..72dea28a --- /dev/null +++ b/dist/cjs/models/UpdateNetAccessPointRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateNetAccessPointRequestToJSON = exports.UpdateNetAccessPointRequestFromJSONTyped = exports.UpdateNetAccessPointRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateNetAccessPointRequestFromJSON(json) { + return UpdateNetAccessPointRequestFromJSONTyped(json, false); +} +exports.UpdateNetAccessPointRequestFromJSON = UpdateNetAccessPointRequestFromJSON; +function UpdateNetAccessPointRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'addRouteTableIds': !(0, runtime_1.exists)(json, 'AddRouteTableIds') ? undefined : json['AddRouteTableIds'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netAccessPointId': json['NetAccessPointId'], + 'removeRouteTableIds': !(0, runtime_1.exists)(json, 'RemoveRouteTableIds') ? undefined : json['RemoveRouteTableIds'], + }; +} +exports.UpdateNetAccessPointRequestFromJSONTyped = UpdateNetAccessPointRequestFromJSONTyped; +function UpdateNetAccessPointRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AddRouteTableIds': value.addRouteTableIds, + 'DryRun': value.dryRun, + 'NetAccessPointId': value.netAccessPointId, + 'RemoveRouteTableIds': value.removeRouteTableIds, + }; +} +exports.UpdateNetAccessPointRequestToJSON = UpdateNetAccessPointRequestToJSON; diff --git a/dist/cjs/models/UpdateNetAccessPointResponse.d.ts b/dist/cjs/models/UpdateNetAccessPointResponse.d.ts new file mode 100644 index 00000000..81fee9b0 --- /dev/null +++ b/dist/cjs/models/UpdateNetAccessPointResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetAccessPoint } from './NetAccessPoint'; +/** + * + * @export + * @interface UpdateNetAccessPointResponse + */ +export interface UpdateNetAccessPointResponse { + /** + * + * @type {NetAccessPoint} + * @memberof UpdateNetAccessPointResponse + */ + netAccessPoint?: NetAccessPoint; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateNetAccessPointResponseFromJSON(json: any): UpdateNetAccessPointResponse; +export declare function UpdateNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetAccessPointResponse; +export declare function UpdateNetAccessPointResponseToJSON(value?: UpdateNetAccessPointResponse | null): any; diff --git a/dist/cjs/models/UpdateNetAccessPointResponse.js b/dist/cjs/models/UpdateNetAccessPointResponse.js new file mode 100644 index 00000000..5a7c47d7 --- /dev/null +++ b/dist/cjs/models/UpdateNetAccessPointResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateNetAccessPointResponseToJSON = exports.UpdateNetAccessPointResponseFromJSONTyped = exports.UpdateNetAccessPointResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const NetAccessPoint_1 = require("./NetAccessPoint"); +function UpdateNetAccessPointResponseFromJSON(json) { + return UpdateNetAccessPointResponseFromJSONTyped(json, false); +} +exports.UpdateNetAccessPointResponseFromJSON = UpdateNetAccessPointResponseFromJSON; +function UpdateNetAccessPointResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPoint': !(0, runtime_1.exists)(json, 'NetAccessPoint') ? undefined : (0, NetAccessPoint_1.NetAccessPointFromJSON)(json['NetAccessPoint']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateNetAccessPointResponseFromJSONTyped = UpdateNetAccessPointResponseFromJSONTyped; +function UpdateNetAccessPointResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPoint': (0, NetAccessPoint_1.NetAccessPointToJSON)(value.netAccessPoint), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateNetAccessPointResponseToJSON = UpdateNetAccessPointResponseToJSON; diff --git a/dist/cjs/models/UpdateNetRequest.d.ts b/dist/cjs/models/UpdateNetRequest.d.ts new file mode 100644 index 00000000..fddfe339 --- /dev/null +++ b/dist/cjs/models/UpdateNetRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateNetRequest + */ +export interface UpdateNetRequest { + /** + * The ID of the DHCP options set (or `default` if you want to associate the default one). + * @type {string} + * @memberof UpdateNetRequest + */ + dhcpOptionsSetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNetRequest + */ + dryRun?: boolean; + /** + * The ID of the Net. + * @type {string} + * @memberof UpdateNetRequest + */ + netId: string; +} +export declare function UpdateNetRequestFromJSON(json: any): UpdateNetRequest; +export declare function UpdateNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetRequest; +export declare function UpdateNetRequestToJSON(value?: UpdateNetRequest | null): any; diff --git a/dist/cjs/models/UpdateNetRequest.js b/dist/cjs/models/UpdateNetRequest.js new file mode 100644 index 00000000..4e670f19 --- /dev/null +++ b/dist/cjs/models/UpdateNetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateNetRequestToJSON = exports.UpdateNetRequestFromJSONTyped = exports.UpdateNetRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateNetRequestFromJSON(json) { + return UpdateNetRequestFromJSONTyped(json, false); +} +exports.UpdateNetRequestFromJSON = UpdateNetRequestFromJSON; +function UpdateNetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetId': json['DhcpOptionsSetId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} +exports.UpdateNetRequestFromJSONTyped = UpdateNetRequestFromJSONTyped; +function UpdateNetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} +exports.UpdateNetRequestToJSON = UpdateNetRequestToJSON; diff --git a/dist/cjs/models/UpdateNetResponse.d.ts b/dist/cjs/models/UpdateNetResponse.d.ts new file mode 100644 index 00000000..2f7255dc --- /dev/null +++ b/dist/cjs/models/UpdateNetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Net } from './Net'; +/** + * + * @export + * @interface UpdateNetResponse + */ +export interface UpdateNetResponse { + /** + * + * @type {Net} + * @memberof UpdateNetResponse + */ + net?: Net; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateNetResponseFromJSON(json: any): UpdateNetResponse; +export declare function UpdateNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetResponse; +export declare function UpdateNetResponseToJSON(value?: UpdateNetResponse | null): any; diff --git a/dist/cjs/models/UpdateNetResponse.js b/dist/cjs/models/UpdateNetResponse.js new file mode 100644 index 00000000..ac827670 --- /dev/null +++ b/dist/cjs/models/UpdateNetResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateNetResponseToJSON = exports.UpdateNetResponseFromJSONTyped = exports.UpdateNetResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Net_1 = require("./Net"); +function UpdateNetResponseFromJSON(json) { + return UpdateNetResponseFromJSONTyped(json, false); +} +exports.UpdateNetResponseFromJSON = UpdateNetResponseFromJSON; +function UpdateNetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'net': !(0, runtime_1.exists)(json, 'Net') ? undefined : (0, Net_1.NetFromJSON)(json['Net']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateNetResponseFromJSONTyped = UpdateNetResponseFromJSONTyped; +function UpdateNetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Net': (0, Net_1.NetToJSON)(value.net), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateNetResponseToJSON = UpdateNetResponseToJSON; diff --git a/dist/cjs/models/UpdateNicRequest.d.ts b/dist/cjs/models/UpdateNicRequest.d.ts new file mode 100644 index 00000000..8251c84f --- /dev/null +++ b/dist/cjs/models/UpdateNicRequest.d.ts @@ -0,0 +1,53 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkNicToUpdate } from './LinkNicToUpdate'; +/** + * + * @export + * @interface UpdateNicRequest + */ +export interface UpdateNicRequest { + /** + * A new description for the NIC. + * @type {string} + * @memberof UpdateNicRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNicRequest + */ + dryRun?: boolean; + /** + * + * @type {LinkNicToUpdate} + * @memberof UpdateNicRequest + */ + linkNic?: LinkNicToUpdate; + /** + * The ID of the NIC you want to modify. + * @type {string} + * @memberof UpdateNicRequest + */ + nicId: string; + /** + * One or more IDs of security groups for the NIC.
+ * You must specify at least one group, even if you use the default security group in the Net. + * @type {Array} + * @memberof UpdateNicRequest + */ + securityGroupIds?: Array; +} +export declare function UpdateNicRequestFromJSON(json: any): UpdateNicRequest; +export declare function UpdateNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNicRequest; +export declare function UpdateNicRequestToJSON(value?: UpdateNicRequest | null): any; diff --git a/dist/cjs/models/UpdateNicRequest.js b/dist/cjs/models/UpdateNicRequest.js new file mode 100644 index 00000000..910ec1fb --- /dev/null +++ b/dist/cjs/models/UpdateNicRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateNicRequestToJSON = exports.UpdateNicRequestFromJSONTyped = exports.UpdateNicRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkNicToUpdate_1 = require("./LinkNicToUpdate"); +function UpdateNicRequestFromJSON(json) { + return UpdateNicRequestFromJSONTyped(json, false); +} +exports.UpdateNicRequestFromJSON = UpdateNicRequestFromJSON; +function UpdateNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !(0, runtime_1.exists)(json, 'Description') ? undefined : json['Description'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'linkNic': !(0, runtime_1.exists)(json, 'LinkNic') ? undefined : (0, LinkNicToUpdate_1.LinkNicToUpdateFromJSON)(json['LinkNic']), + 'nicId': json['NicId'], + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + }; +} +exports.UpdateNicRequestFromJSONTyped = UpdateNicRequestFromJSONTyped; +function UpdateNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'LinkNic': (0, LinkNicToUpdate_1.LinkNicToUpdateToJSON)(value.linkNic), + 'NicId': value.nicId, + 'SecurityGroupIds': value.securityGroupIds, + }; +} +exports.UpdateNicRequestToJSON = UpdateNicRequestToJSON; diff --git a/dist/cjs/models/UpdateNicResponse.d.ts b/dist/cjs/models/UpdateNicResponse.d.ts new file mode 100644 index 00000000..7f97580a --- /dev/null +++ b/dist/cjs/models/UpdateNicResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Nic } from './Nic'; +/** + * + * @export + * @interface UpdateNicResponse + */ +export interface UpdateNicResponse { + /** + * + * @type {Nic} + * @memberof UpdateNicResponse + */ + nic?: Nic; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateNicResponseFromJSON(json: any): UpdateNicResponse; +export declare function UpdateNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNicResponse; +export declare function UpdateNicResponseToJSON(value?: UpdateNicResponse | null): any; diff --git a/dist/cjs/models/UpdateNicResponse.js b/dist/cjs/models/UpdateNicResponse.js new file mode 100644 index 00000000..387bb8e2 --- /dev/null +++ b/dist/cjs/models/UpdateNicResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateNicResponseToJSON = exports.UpdateNicResponseFromJSONTyped = exports.UpdateNicResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Nic_1 = require("./Nic"); +function UpdateNicResponseFromJSON(json) { + return UpdateNicResponseFromJSONTyped(json, false); +} +exports.UpdateNicResponseFromJSON = UpdateNicResponseFromJSON; +function UpdateNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nic': !(0, runtime_1.exists)(json, 'Nic') ? undefined : (0, Nic_1.NicFromJSON)(json['Nic']), + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + }; +} +exports.UpdateNicResponseFromJSONTyped = UpdateNicResponseFromJSONTyped; +function UpdateNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nic': (0, Nic_1.NicToJSON)(value.nic), + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + }; +} +exports.UpdateNicResponseToJSON = UpdateNicResponseToJSON; diff --git a/dist/cjs/models/UpdateRoutePropagationRequest.d.ts b/dist/cjs/models/UpdateRoutePropagationRequest.d.ts new file mode 100644 index 00000000..d4aa1ae6 --- /dev/null +++ b/dist/cjs/models/UpdateRoutePropagationRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateRoutePropagationRequest + */ +export interface UpdateRoutePropagationRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateRoutePropagationRequest + */ + dryRun?: boolean; + /** + * If true, a virtual gateway can propagate routes to a specified route table of a Net. If false, the propagation is disabled. + * @type {boolean} + * @memberof UpdateRoutePropagationRequest + */ + enable: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof UpdateRoutePropagationRequest + */ + routeTableId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UpdateRoutePropagationRequest + */ + virtualGatewayId: string; +} +export declare function UpdateRoutePropagationRequestFromJSON(json: any): UpdateRoutePropagationRequest; +export declare function UpdateRoutePropagationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoutePropagationRequest; +export declare function UpdateRoutePropagationRequestToJSON(value?: UpdateRoutePropagationRequest | null): any; diff --git a/dist/cjs/models/UpdateRoutePropagationRequest.js b/dist/cjs/models/UpdateRoutePropagationRequest.js new file mode 100644 index 00000000..901df96e --- /dev/null +++ b/dist/cjs/models/UpdateRoutePropagationRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateRoutePropagationRequestToJSON = exports.UpdateRoutePropagationRequestFromJSONTyped = exports.UpdateRoutePropagationRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateRoutePropagationRequestFromJSON(json) { + return UpdateRoutePropagationRequestFromJSONTyped(json, false); +} +exports.UpdateRoutePropagationRequestFromJSON = UpdateRoutePropagationRequestFromJSON; +function UpdateRoutePropagationRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'enable': json['Enable'], + 'routeTableId': json['RouteTableId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +exports.UpdateRoutePropagationRequestFromJSONTyped = UpdateRoutePropagationRequestFromJSONTyped; +function UpdateRoutePropagationRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Enable': value.enable, + 'RouteTableId': value.routeTableId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.UpdateRoutePropagationRequestToJSON = UpdateRoutePropagationRequestToJSON; diff --git a/dist/cjs/models/UpdateRoutePropagationResponse.d.ts b/dist/cjs/models/UpdateRoutePropagationResponse.d.ts new file mode 100644 index 00000000..8c94c4de --- /dev/null +++ b/dist/cjs/models/UpdateRoutePropagationResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface UpdateRoutePropagationResponse + */ +export interface UpdateRoutePropagationResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateRoutePropagationResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof UpdateRoutePropagationResponse + */ + routeTable?: RouteTable; +} +export declare function UpdateRoutePropagationResponseFromJSON(json: any): UpdateRoutePropagationResponse; +export declare function UpdateRoutePropagationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoutePropagationResponse; +export declare function UpdateRoutePropagationResponseToJSON(value?: UpdateRoutePropagationResponse | null): any; diff --git a/dist/cjs/models/UpdateRoutePropagationResponse.js b/dist/cjs/models/UpdateRoutePropagationResponse.js new file mode 100644 index 00000000..e830e90c --- /dev/null +++ b/dist/cjs/models/UpdateRoutePropagationResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateRoutePropagationResponseToJSON = exports.UpdateRoutePropagationResponseFromJSONTyped = exports.UpdateRoutePropagationResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const RouteTable_1 = require("./RouteTable"); +function UpdateRoutePropagationResponseFromJSON(json) { + return UpdateRoutePropagationResponseFromJSONTyped(json, false); +} +exports.UpdateRoutePropagationResponseFromJSON = UpdateRoutePropagationResponseFromJSON; +function UpdateRoutePropagationResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'routeTable': !(0, runtime_1.exists)(json, 'RouteTable') ? undefined : (0, RouteTable_1.RouteTableFromJSON)(json['RouteTable']), + }; +} +exports.UpdateRoutePropagationResponseFromJSONTyped = UpdateRoutePropagationResponseFromJSONTyped; +function UpdateRoutePropagationResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'RouteTable': (0, RouteTable_1.RouteTableToJSON)(value.routeTable), + }; +} +exports.UpdateRoutePropagationResponseToJSON = UpdateRoutePropagationResponseToJSON; diff --git a/dist/cjs/models/UpdateRouteRequest.d.ts b/dist/cjs/models/UpdateRouteRequest.d.ts new file mode 100644 index 00000000..cd24f3a0 --- /dev/null +++ b/dist/cjs/models/UpdateRouteRequest.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateRouteRequest + */ +export interface UpdateRouteRequest { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof UpdateRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateRouteRequest + */ + dryRun?: boolean; + /** + * The ID of an Internet service or virtual gateway attached to your Net. + * @type {string} + * @memberof UpdateRouteRequest + */ + gatewayId?: string; + /** + * The ID of a NAT service. + * @type {string} + * @memberof UpdateRouteRequest + */ + natServiceId?: string; + /** + * The ID of a Net peering connection. + * @type {string} + * @memberof UpdateRouteRequest + */ + netPeeringId?: string; + /** + * The ID of a network interface card (NIC). + * @type {string} + * @memberof UpdateRouteRequest + */ + nicId?: string; + /** + * The ID of the route table. + * @type {string} + * @memberof UpdateRouteRequest + */ + routeTableId: string; + /** + * The ID of a NAT VM in your Net. + * @type {string} + * @memberof UpdateRouteRequest + */ + vmId?: string; +} +export declare function UpdateRouteRequestFromJSON(json: any): UpdateRouteRequest; +export declare function UpdateRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRouteRequest; +export declare function UpdateRouteRequestToJSON(value?: UpdateRouteRequest | null): any; diff --git a/dist/cjs/models/UpdateRouteRequest.js b/dist/cjs/models/UpdateRouteRequest.js new file mode 100644 index 00000000..95946121 --- /dev/null +++ b/dist/cjs/models/UpdateRouteRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateRouteRequestToJSON = exports.UpdateRouteRequestFromJSONTyped = exports.UpdateRouteRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateRouteRequestFromJSON(json) { + return UpdateRouteRequestFromJSONTyped(json, false); +} +exports.UpdateRouteRequestFromJSON = UpdateRouteRequestFromJSON; +function UpdateRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'gatewayId': !(0, runtime_1.exists)(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !(0, runtime_1.exists)(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netPeeringId': !(0, runtime_1.exists)(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !(0, runtime_1.exists)(json, 'NicId') ? undefined : json['NicId'], + 'routeTableId': json['RouteTableId'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.UpdateRouteRequestFromJSONTyped = UpdateRouteRequestFromJSONTyped; +function UpdateRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'RouteTableId': value.routeTableId, + 'VmId': value.vmId, + }; +} +exports.UpdateRouteRequestToJSON = UpdateRouteRequestToJSON; diff --git a/dist/cjs/models/UpdateRouteResponse.d.ts b/dist/cjs/models/UpdateRouteResponse.d.ts new file mode 100644 index 00000000..be88c188 --- /dev/null +++ b/dist/cjs/models/UpdateRouteResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface UpdateRouteResponse + */ +export interface UpdateRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof UpdateRouteResponse + */ + routeTable?: RouteTable; +} +export declare function UpdateRouteResponseFromJSON(json: any): UpdateRouteResponse; +export declare function UpdateRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRouteResponse; +export declare function UpdateRouteResponseToJSON(value?: UpdateRouteResponse | null): any; diff --git a/dist/cjs/models/UpdateRouteResponse.js b/dist/cjs/models/UpdateRouteResponse.js new file mode 100644 index 00000000..d650c0bb --- /dev/null +++ b/dist/cjs/models/UpdateRouteResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateRouteResponseToJSON = exports.UpdateRouteResponseFromJSONTyped = exports.UpdateRouteResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const RouteTable_1 = require("./RouteTable"); +function UpdateRouteResponseFromJSON(json) { + return UpdateRouteResponseFromJSONTyped(json, false); +} +exports.UpdateRouteResponseFromJSON = UpdateRouteResponseFromJSON; +function UpdateRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'routeTable': !(0, runtime_1.exists)(json, 'RouteTable') ? undefined : (0, RouteTable_1.RouteTableFromJSON)(json['RouteTable']), + }; +} +exports.UpdateRouteResponseFromJSONTyped = UpdateRouteResponseFromJSONTyped; +function UpdateRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'RouteTable': (0, RouteTable_1.RouteTableToJSON)(value.routeTable), + }; +} +exports.UpdateRouteResponseToJSON = UpdateRouteResponseToJSON; diff --git a/dist/cjs/models/UpdateServerCertificateRequest.d.ts b/dist/cjs/models/UpdateServerCertificateRequest.d.ts new file mode 100644 index 00000000..620bda00 --- /dev/null +++ b/dist/cjs/models/UpdateServerCertificateRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateServerCertificateRequest + */ +export interface UpdateServerCertificateRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateServerCertificateRequest + */ + dryRun?: boolean; + /** + * The name of the server certificate you want to modify. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + name: string; + /** + * A new name for the server certificate. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + newName?: string; + /** + * A new path for the server certificate. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + newPath?: string; +} +export declare function UpdateServerCertificateRequestFromJSON(json: any): UpdateServerCertificateRequest; +export declare function UpdateServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateServerCertificateRequest; +export declare function UpdateServerCertificateRequestToJSON(value?: UpdateServerCertificateRequest | null): any; diff --git a/dist/cjs/models/UpdateServerCertificateRequest.js b/dist/cjs/models/UpdateServerCertificateRequest.js new file mode 100644 index 00000000..380daa9f --- /dev/null +++ b/dist/cjs/models/UpdateServerCertificateRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateServerCertificateRequestToJSON = exports.UpdateServerCertificateRequestFromJSONTyped = exports.UpdateServerCertificateRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateServerCertificateRequestFromJSON(json) { + return UpdateServerCertificateRequestFromJSONTyped(json, false); +} +exports.UpdateServerCertificateRequestFromJSON = UpdateServerCertificateRequestFromJSON; +function UpdateServerCertificateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + 'newName': !(0, runtime_1.exists)(json, 'NewName') ? undefined : json['NewName'], + 'newPath': !(0, runtime_1.exists)(json, 'NewPath') ? undefined : json['NewPath'], + }; +} +exports.UpdateServerCertificateRequestFromJSONTyped = UpdateServerCertificateRequestFromJSONTyped; +function UpdateServerCertificateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Name': value.name, + 'NewName': value.newName, + 'NewPath': value.newPath, + }; +} +exports.UpdateServerCertificateRequestToJSON = UpdateServerCertificateRequestToJSON; diff --git a/dist/cjs/models/UpdateServerCertificateResponse.d.ts b/dist/cjs/models/UpdateServerCertificateResponse.d.ts new file mode 100644 index 00000000..f58ede89 --- /dev/null +++ b/dist/cjs/models/UpdateServerCertificateResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ServerCertificate } from './ServerCertificate'; +/** + * + * @export + * @interface UpdateServerCertificateResponse + */ +export interface UpdateServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateServerCertificateResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {ServerCertificate} + * @memberof UpdateServerCertificateResponse + */ + serverCertificate?: ServerCertificate; +} +export declare function UpdateServerCertificateResponseFromJSON(json: any): UpdateServerCertificateResponse; +export declare function UpdateServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateServerCertificateResponse; +export declare function UpdateServerCertificateResponseToJSON(value?: UpdateServerCertificateResponse | null): any; diff --git a/dist/cjs/models/UpdateServerCertificateResponse.js b/dist/cjs/models/UpdateServerCertificateResponse.js new file mode 100644 index 00000000..09aa8917 --- /dev/null +++ b/dist/cjs/models/UpdateServerCertificateResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateServerCertificateResponseToJSON = exports.UpdateServerCertificateResponseFromJSONTyped = exports.UpdateServerCertificateResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const ServerCertificate_1 = require("./ServerCertificate"); +function UpdateServerCertificateResponseFromJSON(json) { + return UpdateServerCertificateResponseFromJSONTyped(json, false); +} +exports.UpdateServerCertificateResponseFromJSON = UpdateServerCertificateResponseFromJSON; +function UpdateServerCertificateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'serverCertificate': !(0, runtime_1.exists)(json, 'ServerCertificate') ? undefined : (0, ServerCertificate_1.ServerCertificateFromJSON)(json['ServerCertificate']), + }; +} +exports.UpdateServerCertificateResponseFromJSONTyped = UpdateServerCertificateResponseFromJSONTyped; +function UpdateServerCertificateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'ServerCertificate': (0, ServerCertificate_1.ServerCertificateToJSON)(value.serverCertificate), + }; +} +exports.UpdateServerCertificateResponseToJSON = UpdateServerCertificateResponseToJSON; diff --git a/dist/cjs/models/UpdateSnapshotRequest.d.ts b/dist/cjs/models/UpdateSnapshotRequest.d.ts new file mode 100644 index 00000000..f8e82d6b --- /dev/null +++ b/dist/cjs/models/UpdateSnapshotRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResourceCreation } from './PermissionsOnResourceCreation'; +/** + * + * @export + * @interface UpdateSnapshotRequest + */ +export interface UpdateSnapshotRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateSnapshotRequest + */ + dryRun?: boolean; + /** + * + * @type {PermissionsOnResourceCreation} + * @memberof UpdateSnapshotRequest + */ + permissionsToCreateVolume: PermissionsOnResourceCreation; + /** + * The ID of the snapshot. + * @type {string} + * @memberof UpdateSnapshotRequest + */ + snapshotId: string; +} +export declare function UpdateSnapshotRequestFromJSON(json: any): UpdateSnapshotRequest; +export declare function UpdateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotRequest; +export declare function UpdateSnapshotRequestToJSON(value?: UpdateSnapshotRequest | null): any; diff --git a/dist/cjs/models/UpdateSnapshotRequest.js b/dist/cjs/models/UpdateSnapshotRequest.js new file mode 100644 index 00000000..77a7ec2a --- /dev/null +++ b/dist/cjs/models/UpdateSnapshotRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateSnapshotRequestToJSON = exports.UpdateSnapshotRequestFromJSONTyped = exports.UpdateSnapshotRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const PermissionsOnResourceCreation_1 = require("./PermissionsOnResourceCreation"); +function UpdateSnapshotRequestFromJSON(json) { + return UpdateSnapshotRequestFromJSONTyped(json, false); +} +exports.UpdateSnapshotRequestFromJSON = UpdateSnapshotRequestFromJSON; +function UpdateSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'permissionsToCreateVolume': (0, PermissionsOnResourceCreation_1.PermissionsOnResourceCreationFromJSON)(json['PermissionsToCreateVolume']), + 'snapshotId': json['SnapshotId'], + }; +} +exports.UpdateSnapshotRequestFromJSONTyped = UpdateSnapshotRequestFromJSONTyped; +function UpdateSnapshotRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'PermissionsToCreateVolume': (0, PermissionsOnResourceCreation_1.PermissionsOnResourceCreationToJSON)(value.permissionsToCreateVolume), + 'SnapshotId': value.snapshotId, + }; +} +exports.UpdateSnapshotRequestToJSON = UpdateSnapshotRequestToJSON; diff --git a/dist/cjs/models/UpdateSnapshotResponse.d.ts b/dist/cjs/models/UpdateSnapshotResponse.d.ts new file mode 100644 index 00000000..5b85895f --- /dev/null +++ b/dist/cjs/models/UpdateSnapshotResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Snapshot } from './Snapshot'; +/** + * + * @export + * @interface UpdateSnapshotResponse + */ +export interface UpdateSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateSnapshotResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Snapshot} + * @memberof UpdateSnapshotResponse + */ + snapshot?: Snapshot; +} +export declare function UpdateSnapshotResponseFromJSON(json: any): UpdateSnapshotResponse; +export declare function UpdateSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotResponse; +export declare function UpdateSnapshotResponseToJSON(value?: UpdateSnapshotResponse | null): any; diff --git a/dist/cjs/models/UpdateSnapshotResponse.js b/dist/cjs/models/UpdateSnapshotResponse.js new file mode 100644 index 00000000..fd8fb6f6 --- /dev/null +++ b/dist/cjs/models/UpdateSnapshotResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateSnapshotResponseToJSON = exports.UpdateSnapshotResponseFromJSONTyped = exports.UpdateSnapshotResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Snapshot_1 = require("./Snapshot"); +function UpdateSnapshotResponseFromJSON(json) { + return UpdateSnapshotResponseFromJSONTyped(json, false); +} +exports.UpdateSnapshotResponseFromJSON = UpdateSnapshotResponseFromJSON; +function UpdateSnapshotResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'snapshot': !(0, runtime_1.exists)(json, 'Snapshot') ? undefined : (0, Snapshot_1.SnapshotFromJSON)(json['Snapshot']), + }; +} +exports.UpdateSnapshotResponseFromJSONTyped = UpdateSnapshotResponseFromJSONTyped; +function UpdateSnapshotResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Snapshot': (0, Snapshot_1.SnapshotToJSON)(value.snapshot), + }; +} +exports.UpdateSnapshotResponseToJSON = UpdateSnapshotResponseToJSON; diff --git a/dist/cjs/models/UpdateSubnetRequest.d.ts b/dist/cjs/models/UpdateSubnetRequest.d.ts new file mode 100644 index 00000000..a8a1477f --- /dev/null +++ b/dist/cjs/models/UpdateSubnetRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateSubnetRequest + */ +export interface UpdateSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateSubnetRequest + */ + dryRun?: boolean; + /** + * If true, a public IP is assigned to the network interface cards (NICs) created in the specified Subnet. + * @type {boolean} + * @memberof UpdateSubnetRequest + */ + mapPublicIpOnLaunch: boolean; + /** + * The ID of the Subnet. + * @type {string} + * @memberof UpdateSubnetRequest + */ + subnetId: string; +} +export declare function UpdateSubnetRequestFromJSON(json: any): UpdateSubnetRequest; +export declare function UpdateSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubnetRequest; +export declare function UpdateSubnetRequestToJSON(value?: UpdateSubnetRequest | null): any; diff --git a/dist/cjs/models/UpdateSubnetRequest.js b/dist/cjs/models/UpdateSubnetRequest.js new file mode 100644 index 00000000..234495f8 --- /dev/null +++ b/dist/cjs/models/UpdateSubnetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateSubnetRequestToJSON = exports.UpdateSubnetRequestFromJSONTyped = exports.UpdateSubnetRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateSubnetRequestFromJSON(json) { + return UpdateSubnetRequestFromJSONTyped(json, false); +} +exports.UpdateSubnetRequestFromJSON = UpdateSubnetRequestFromJSON; +function UpdateSubnetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'mapPublicIpOnLaunch': json['MapPublicIpOnLaunch'], + 'subnetId': json['SubnetId'], + }; +} +exports.UpdateSubnetRequestFromJSONTyped = UpdateSubnetRequestFromJSONTyped; +function UpdateSubnetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'MapPublicIpOnLaunch': value.mapPublicIpOnLaunch, + 'SubnetId': value.subnetId, + }; +} +exports.UpdateSubnetRequestToJSON = UpdateSubnetRequestToJSON; diff --git a/dist/cjs/models/UpdateSubnetResponse.d.ts b/dist/cjs/models/UpdateSubnetResponse.d.ts new file mode 100644 index 00000000..9581b12a --- /dev/null +++ b/dist/cjs/models/UpdateSubnetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subnet } from './Subnet'; +/** + * + * @export + * @interface UpdateSubnetResponse + */ +export interface UpdateSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateSubnetResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Subnet} + * @memberof UpdateSubnetResponse + */ + subnet?: Subnet; +} +export declare function UpdateSubnetResponseFromJSON(json: any): UpdateSubnetResponse; +export declare function UpdateSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubnetResponse; +export declare function UpdateSubnetResponseToJSON(value?: UpdateSubnetResponse | null): any; diff --git a/dist/cjs/models/UpdateSubnetResponse.js b/dist/cjs/models/UpdateSubnetResponse.js new file mode 100644 index 00000000..593703ee --- /dev/null +++ b/dist/cjs/models/UpdateSubnetResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateSubnetResponseToJSON = exports.UpdateSubnetResponseFromJSONTyped = exports.UpdateSubnetResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Subnet_1 = require("./Subnet"); +function UpdateSubnetResponseFromJSON(json) { + return UpdateSubnetResponseFromJSONTyped(json, false); +} +exports.UpdateSubnetResponseFromJSON = UpdateSubnetResponseFromJSON; +function UpdateSubnetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'subnet': !(0, runtime_1.exists)(json, 'Subnet') ? undefined : (0, Subnet_1.SubnetFromJSON)(json['Subnet']), + }; +} +exports.UpdateSubnetResponseFromJSONTyped = UpdateSubnetResponseFromJSONTyped; +function UpdateSubnetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Subnet': (0, Subnet_1.SubnetToJSON)(value.subnet), + }; +} +exports.UpdateSubnetResponseToJSON = UpdateSubnetResponseToJSON; diff --git a/dist/cjs/models/UpdateVmRequest.d.ts b/dist/cjs/models/UpdateVmRequest.d.ts new file mode 100644 index 00000000..33ce9ebb --- /dev/null +++ b/dist/cjs/models/UpdateVmRequest.d.ts @@ -0,0 +1,104 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingVmUpdate } from './BlockDeviceMappingVmUpdate'; +/** + * + * @export + * @interface UpdateVmRequest + */ +export interface UpdateVmRequest { + /** + * One or more block device mappings of the VM. + * @type {Array} + * @memberof UpdateVmRequest + */ + blockDeviceMappings?: Array; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof UpdateVmRequest + */ + bsuOptimized?: boolean; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof UpdateVmRequest + */ + deletionProtection?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVmRequest + */ + dryRun?: boolean; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof UpdateVmRequest + */ + isSourceDestChecked?: boolean; + /** + * The name of the keypair.
+ * To complete the replacement, manually replace the old public key with the new public key in the ~/.ssh/authorized_keys file located in the VM. Restart the VM to apply the change. + * @type {string} + * @memberof UpdateVmRequest + */ + keypairName?: string; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof UpdateVmRequest + */ + performance?: UpdateVmRequestPerformanceEnum; + /** + * One or more IDs of security groups for the VM. + * @type {Array} + * @memberof UpdateVmRequest + */ + securityGroupIds?: Array; + /** + * The Base64-encoded MIME user data, limited to 500 kibibytes (KiB). + * @type {string} + * @memberof UpdateVmRequest + */ + userData?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof UpdateVmRequest + */ + vmId: string; + /** + * The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. + * @type {string} + * @memberof UpdateVmRequest + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof UpdateVmRequest + */ + vmType?: string; +} +/** + * @export + */ +export declare const UpdateVmRequestPerformanceEnum: { + readonly Medium: "medium"; + readonly High: "high"; + readonly Highest: "highest"; +}; +export declare type UpdateVmRequestPerformanceEnum = typeof UpdateVmRequestPerformanceEnum[keyof typeof UpdateVmRequestPerformanceEnum]; +export declare function UpdateVmRequestFromJSON(json: any): UpdateVmRequest; +export declare function UpdateVmRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVmRequest; +export declare function UpdateVmRequestToJSON(value?: UpdateVmRequest | null): any; diff --git a/dist/cjs/models/UpdateVmRequest.js b/dist/cjs/models/UpdateVmRequest.js new file mode 100644 index 00000000..e506a0b9 --- /dev/null +++ b/dist/cjs/models/UpdateVmRequest.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateVmRequestToJSON = exports.UpdateVmRequestFromJSONTyped = exports.UpdateVmRequestFromJSON = exports.UpdateVmRequestPerformanceEnum = void 0; +const runtime_1 = require("../runtime"); +const BlockDeviceMappingVmUpdate_1 = require("./BlockDeviceMappingVmUpdate"); +/** + * @export + */ +exports.UpdateVmRequestPerformanceEnum = { + Medium: 'medium', + High: 'high', + Highest: 'highest' +}; +function UpdateVmRequestFromJSON(json) { + return UpdateVmRequestFromJSONTyped(json, false); +} +exports.UpdateVmRequestFromJSON = UpdateVmRequestFromJSON; +function UpdateVmRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'blockDeviceMappings': !(0, runtime_1.exists)(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingVmUpdate_1.BlockDeviceMappingVmUpdateFromJSON)), + 'bsuOptimized': !(0, runtime_1.exists)(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'deletionProtection': !(0, runtime_1.exists)(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'isSourceDestChecked': !(0, runtime_1.exists)(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'keypairName': !(0, runtime_1.exists)(json, 'KeypairName') ? undefined : json['KeypairName'], + 'performance': !(0, runtime_1.exists)(json, 'Performance') ? undefined : json['Performance'], + 'securityGroupIds': !(0, runtime_1.exists)(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'userData': !(0, runtime_1.exists)(json, 'UserData') ? undefined : json['UserData'], + 'vmId': json['VmId'], + 'vmInitiatedShutdownBehavior': !(0, runtime_1.exists)(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !(0, runtime_1.exists)(json, 'VmType') ? undefined : json['VmType'], + }; +} +exports.UpdateVmRequestFromJSONTyped = UpdateVmRequestFromJSONTyped; +function UpdateVmRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingVmUpdate_1.BlockDeviceMappingVmUpdateToJSON)), + 'BsuOptimized': value.bsuOptimized, + 'DeletionProtection': value.deletionProtection, + 'DryRun': value.dryRun, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'KeypairName': value.keypairName, + 'Performance': value.performance, + 'SecurityGroupIds': value.securityGroupIds, + 'UserData': value.userData, + 'VmId': value.vmId, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} +exports.UpdateVmRequestToJSON = UpdateVmRequestToJSON; diff --git a/dist/cjs/models/UpdateVmResponse.d.ts b/dist/cjs/models/UpdateVmResponse.d.ts new file mode 100644 index 00000000..2e1c66a5 --- /dev/null +++ b/dist/cjs/models/UpdateVmResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Vm } from './Vm'; +/** + * + * @export + * @interface UpdateVmResponse + */ +export interface UpdateVmResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVmResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Vm} + * @memberof UpdateVmResponse + */ + vm?: Vm; +} +export declare function UpdateVmResponseFromJSON(json: any): UpdateVmResponse; +export declare function UpdateVmResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVmResponse; +export declare function UpdateVmResponseToJSON(value?: UpdateVmResponse | null): any; diff --git a/dist/cjs/models/UpdateVmResponse.js b/dist/cjs/models/UpdateVmResponse.js new file mode 100644 index 00000000..9087a84e --- /dev/null +++ b/dist/cjs/models/UpdateVmResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateVmResponseToJSON = exports.UpdateVmResponseFromJSONTyped = exports.UpdateVmResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Vm_1 = require("./Vm"); +function UpdateVmResponseFromJSON(json) { + return UpdateVmResponseFromJSONTyped(json, false); +} +exports.UpdateVmResponseFromJSON = UpdateVmResponseFromJSON; +function UpdateVmResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vm': !(0, runtime_1.exists)(json, 'Vm') ? undefined : (0, Vm_1.VmFromJSON)(json['Vm']), + }; +} +exports.UpdateVmResponseFromJSONTyped = UpdateVmResponseFromJSONTyped; +function UpdateVmResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Vm': (0, Vm_1.VmToJSON)(value.vm), + }; +} +exports.UpdateVmResponseToJSON = UpdateVmResponseToJSON; diff --git a/dist/cjs/models/UpdateVolumeRequest.d.ts b/dist/cjs/models/UpdateVolumeRequest.d.ts new file mode 100644 index 00000000..6b90d2bf --- /dev/null +++ b/dist/cjs/models/UpdateVolumeRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateVolumeRequest + */ +export interface UpdateVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVolumeRequest + */ + dryRun?: boolean; + /** + * The new number of I/O operations per second (IOPS). This parameter can be specified only if you update an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. This modification is instantaneous on a cold volume, not on a hot one. + * @type {number} + * @memberof UpdateVolumeRequest + */ + iops?: number; + /** + * (cold volume only) The new size of the volume, in gibibytes (GiB). This value must be equal to or greater than the current size of the volume. This modification is not instantaneous. + * @type {number} + * @memberof UpdateVolumeRequest + */ + size?: number; + /** + * The ID of the volume you want to update. + * @type {string} + * @memberof UpdateVolumeRequest + */ + volumeId: string; + /** + * (cold volume only) The new type of the volume (`standard` \| `io1` \| `gp2`). This modification is instantaneous. If you update to an `io1` volume, you must also specify the `Iops` parameter. + * @type {string} + * @memberof UpdateVolumeRequest + */ + volumeType?: string; +} +export declare function UpdateVolumeRequestFromJSON(json: any): UpdateVolumeRequest; +export declare function UpdateVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVolumeRequest; +export declare function UpdateVolumeRequestToJSON(value?: UpdateVolumeRequest | null): any; diff --git a/dist/cjs/models/UpdateVolumeRequest.js b/dist/cjs/models/UpdateVolumeRequest.js new file mode 100644 index 00000000..f5296eae --- /dev/null +++ b/dist/cjs/models/UpdateVolumeRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateVolumeRequestToJSON = exports.UpdateVolumeRequestFromJSONTyped = exports.UpdateVolumeRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +function UpdateVolumeRequestFromJSON(json) { + return UpdateVolumeRequestFromJSONTyped(json, false); +} +exports.UpdateVolumeRequestFromJSON = UpdateVolumeRequestFromJSON; +function UpdateVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'iops': !(0, runtime_1.exists)(json, 'Iops') ? undefined : json['Iops'], + 'size': !(0, runtime_1.exists)(json, 'Size') ? undefined : json['Size'], + 'volumeId': json['VolumeId'], + 'volumeType': !(0, runtime_1.exists)(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +exports.UpdateVolumeRequestFromJSONTyped = UpdateVolumeRequestFromJSONTyped; +function UpdateVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Iops': value.iops, + 'Size': value.size, + 'VolumeId': value.volumeId, + 'VolumeType': value.volumeType, + }; +} +exports.UpdateVolumeRequestToJSON = UpdateVolumeRequestToJSON; diff --git a/dist/cjs/models/UpdateVolumeResponse.d.ts b/dist/cjs/models/UpdateVolumeResponse.d.ts new file mode 100644 index 00000000..e370089e --- /dev/null +++ b/dist/cjs/models/UpdateVolumeResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Volume } from './Volume'; +/** + * + * @export + * @interface UpdateVolumeResponse + */ +export interface UpdateVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVolumeResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Volume} + * @memberof UpdateVolumeResponse + */ + volume?: Volume; +} +export declare function UpdateVolumeResponseFromJSON(json: any): UpdateVolumeResponse; +export declare function UpdateVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVolumeResponse; +export declare function UpdateVolumeResponseToJSON(value?: UpdateVolumeResponse | null): any; diff --git a/dist/cjs/models/UpdateVolumeResponse.js b/dist/cjs/models/UpdateVolumeResponse.js new file mode 100644 index 00000000..e2a9ad49 --- /dev/null +++ b/dist/cjs/models/UpdateVolumeResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateVolumeResponseToJSON = exports.UpdateVolumeResponseFromJSONTyped = exports.UpdateVolumeResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const Volume_1 = require("./Volume"); +function UpdateVolumeResponseFromJSON(json) { + return UpdateVolumeResponseFromJSONTyped(json, false); +} +exports.UpdateVolumeResponseFromJSON = UpdateVolumeResponseFromJSON; +function UpdateVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'volume': !(0, runtime_1.exists)(json, 'Volume') ? undefined : (0, Volume_1.VolumeFromJSON)(json['Volume']), + }; +} +exports.UpdateVolumeResponseFromJSONTyped = UpdateVolumeResponseFromJSONTyped; +function UpdateVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'Volume': (0, Volume_1.VolumeToJSON)(value.volume), + }; +} +exports.UpdateVolumeResponseToJSON = UpdateVolumeResponseToJSON; diff --git a/dist/cjs/models/UpdateVpnConnectionRequest.d.ts b/dist/cjs/models/UpdateVpnConnectionRequest.d.ts new file mode 100644 index 00000000..c1a3af32 --- /dev/null +++ b/dist/cjs/models/UpdateVpnConnectionRequest.d.ts @@ -0,0 +1,52 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { VpnOptions } from './VpnOptions'; +/** + * + * @export + * @interface UpdateVpnConnectionRequest + */ +export interface UpdateVpnConnectionRequest { + /** + * The ID of the client gateway. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + clientGatewayId?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVpnConnectionRequest + */ + dryRun?: boolean; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + virtualGatewayId?: string; + /** + * The ID of the VPN connection you want to modify. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + vpnConnectionId: string; + /** + * + * @type {VpnOptions} + * @memberof UpdateVpnConnectionRequest + */ + vpnOptions?: VpnOptions; +} +export declare function UpdateVpnConnectionRequestFromJSON(json: any): UpdateVpnConnectionRequest; +export declare function UpdateVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVpnConnectionRequest; +export declare function UpdateVpnConnectionRequestToJSON(value?: UpdateVpnConnectionRequest | null): any; diff --git a/dist/cjs/models/UpdateVpnConnectionRequest.js b/dist/cjs/models/UpdateVpnConnectionRequest.js new file mode 100644 index 00000000..4a4538d3 --- /dev/null +++ b/dist/cjs/models/UpdateVpnConnectionRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateVpnConnectionRequestToJSON = exports.UpdateVpnConnectionRequestFromJSONTyped = exports.UpdateVpnConnectionRequestFromJSON = void 0; +const runtime_1 = require("../runtime"); +const VpnOptions_1 = require("./VpnOptions"); +function UpdateVpnConnectionRequestFromJSON(json) { + return UpdateVpnConnectionRequestFromJSONTyped(json, false); +} +exports.UpdateVpnConnectionRequestFromJSON = UpdateVpnConnectionRequestFromJSON; +function UpdateVpnConnectionRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayId': !(0, runtime_1.exists)(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'dryRun': !(0, runtime_1.exists)(json, 'DryRun') ? undefined : json['DryRun'], + 'virtualGatewayId': !(0, runtime_1.exists)(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vpnConnectionId': json['VpnConnectionId'], + 'vpnOptions': !(0, runtime_1.exists)(json, 'VpnOptions') ? undefined : (0, VpnOptions_1.VpnOptionsFromJSON)(json['VpnOptions']), + }; +} +exports.UpdateVpnConnectionRequestFromJSONTyped = UpdateVpnConnectionRequestFromJSONTyped; +function UpdateVpnConnectionRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayId': value.clientGatewayId, + 'DryRun': value.dryRun, + 'VirtualGatewayId': value.virtualGatewayId, + 'VpnConnectionId': value.vpnConnectionId, + 'VpnOptions': (0, VpnOptions_1.VpnOptionsToJSON)(value.vpnOptions), + }; +} +exports.UpdateVpnConnectionRequestToJSON = UpdateVpnConnectionRequestToJSON; diff --git a/dist/cjs/models/UpdateVpnConnectionResponse.d.ts b/dist/cjs/models/UpdateVpnConnectionResponse.d.ts new file mode 100644 index 00000000..1ff49834 --- /dev/null +++ b/dist/cjs/models/UpdateVpnConnectionResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VpnConnection } from './VpnConnection'; +/** + * + * @export + * @interface UpdateVpnConnectionResponse + */ +export interface UpdateVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVpnConnectionResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VpnConnection} + * @memberof UpdateVpnConnectionResponse + */ + vpnConnection?: VpnConnection; +} +export declare function UpdateVpnConnectionResponseFromJSON(json: any): UpdateVpnConnectionResponse; +export declare function UpdateVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVpnConnectionResponse; +export declare function UpdateVpnConnectionResponseToJSON(value?: UpdateVpnConnectionResponse | null): any; diff --git a/dist/cjs/models/UpdateVpnConnectionResponse.js b/dist/cjs/models/UpdateVpnConnectionResponse.js new file mode 100644 index 00000000..4f2b8125 --- /dev/null +++ b/dist/cjs/models/UpdateVpnConnectionResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateVpnConnectionResponseToJSON = exports.UpdateVpnConnectionResponseFromJSONTyped = exports.UpdateVpnConnectionResponseFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ModelResponseContext_1 = require("./ModelResponseContext"); +const VpnConnection_1 = require("./VpnConnection"); +function UpdateVpnConnectionResponseFromJSON(json) { + return UpdateVpnConnectionResponseFromJSONTyped(json, false); +} +exports.UpdateVpnConnectionResponseFromJSON = UpdateVpnConnectionResponseFromJSON; +function UpdateVpnConnectionResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !(0, runtime_1.exists)(json, 'ResponseContext') ? undefined : (0, ModelResponseContext_1.ModelResponseContextFromJSON)(json['ResponseContext']), + 'vpnConnection': !(0, runtime_1.exists)(json, 'VpnConnection') ? undefined : (0, VpnConnection_1.VpnConnectionFromJSON)(json['VpnConnection']), + }; +} +exports.UpdateVpnConnectionResponseFromJSONTyped = UpdateVpnConnectionResponseFromJSONTyped; +function UpdateVpnConnectionResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': (0, ModelResponseContext_1.ModelResponseContextToJSON)(value.responseContext), + 'VpnConnection': (0, VpnConnection_1.VpnConnectionToJSON)(value.vpnConnection), + }; +} +exports.UpdateVpnConnectionResponseToJSON = UpdateVpnConnectionResponseToJSON; diff --git a/dist/cjs/models/VgwTelemetry.d.ts b/dist/cjs/models/VgwTelemetry.d.ts new file mode 100644 index 00000000..c5f0c30f --- /dev/null +++ b/dist/cjs/models/VgwTelemetry.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the current state of a VPN tunnel. + * @export + * @interface VgwTelemetry + */ +export interface VgwTelemetry { + /** + * The number of routes accepted through BGP (Border Gateway Protocol) route exchanges. + * @type {number} + * @memberof VgwTelemetry + */ + acceptedRouteCount?: number; + /** + * The date and time (UTC) of the latest state update. + * @type {string} + * @memberof VgwTelemetry + */ + lastStateChangeDate?: string; + /** + * The IP on the OUTSCALE side of the tunnel. + * @type {string} + * @memberof VgwTelemetry + */ + outsideIpAddress?: string; + /** + * The state of the IPSEC tunnel (`UP` \| `DOWN`). + * @type {string} + * @memberof VgwTelemetry + */ + state?: string; + /** + * A description of the current state of the tunnel. + * @type {string} + * @memberof VgwTelemetry + */ + stateDescription?: string; +} +export declare function VgwTelemetryFromJSON(json: any): VgwTelemetry; +export declare function VgwTelemetryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VgwTelemetry; +export declare function VgwTelemetryToJSON(value?: VgwTelemetry | null): any; diff --git a/dist/cjs/models/VgwTelemetry.js b/dist/cjs/models/VgwTelemetry.js new file mode 100644 index 00000000..4ccde4b6 --- /dev/null +++ b/dist/cjs/models/VgwTelemetry.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VgwTelemetryToJSON = exports.VgwTelemetryFromJSONTyped = exports.VgwTelemetryFromJSON = void 0; +const runtime_1 = require("../runtime"); +function VgwTelemetryFromJSON(json) { + return VgwTelemetryFromJSONTyped(json, false); +} +exports.VgwTelemetryFromJSON = VgwTelemetryFromJSON; +function VgwTelemetryFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'acceptedRouteCount': !(0, runtime_1.exists)(json, 'AcceptedRouteCount') ? undefined : json['AcceptedRouteCount'], + 'lastStateChangeDate': !(0, runtime_1.exists)(json, 'LastStateChangeDate') ? undefined : json['LastStateChangeDate'], + 'outsideIpAddress': !(0, runtime_1.exists)(json, 'OutsideIpAddress') ? undefined : json['OutsideIpAddress'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'stateDescription': !(0, runtime_1.exists)(json, 'StateDescription') ? undefined : json['StateDescription'], + }; +} +exports.VgwTelemetryFromJSONTyped = VgwTelemetryFromJSONTyped; +function VgwTelemetryToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AcceptedRouteCount': value.acceptedRouteCount, + 'LastStateChangeDate': value.lastStateChangeDate, + 'OutsideIpAddress': value.outsideIpAddress, + 'State': value.state, + 'StateDescription': value.stateDescription, + }; +} +exports.VgwTelemetryToJSON = VgwTelemetryToJSON; diff --git a/dist/cjs/models/VirtualGateway.d.ts b/dist/cjs/models/VirtualGateway.d.ts new file mode 100644 index 00000000..5e952315 --- /dev/null +++ b/dist/cjs/models/VirtualGateway.d.ts @@ -0,0 +1,53 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NetToVirtualGatewayLink } from './NetToVirtualGatewayLink'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the virtual gateway. + * @export + * @interface VirtualGateway + */ +export interface VirtualGateway { + /** + * The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof VirtualGateway + */ + connectionType?: string; + /** + * The Net to which the virtual gateway is attached. + * @type {Array} + * @memberof VirtualGateway + */ + netToVirtualGatewayLinks?: Array; + /** + * The state of the virtual gateway (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof VirtualGateway + */ + state?: string; + /** + * One or more tags associated with the virtual gateway. + * @type {Array} + * @memberof VirtualGateway + */ + tags?: Array; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof VirtualGateway + */ + virtualGatewayId?: string; +} +export declare function VirtualGatewayFromJSON(json: any): VirtualGateway; +export declare function VirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualGateway; +export declare function VirtualGatewayToJSON(value?: VirtualGateway | null): any; diff --git a/dist/cjs/models/VirtualGateway.js b/dist/cjs/models/VirtualGateway.js new file mode 100644 index 00000000..0972f588 --- /dev/null +++ b/dist/cjs/models/VirtualGateway.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VirtualGatewayToJSON = exports.VirtualGatewayFromJSONTyped = exports.VirtualGatewayFromJSON = void 0; +const runtime_1 = require("../runtime"); +const NetToVirtualGatewayLink_1 = require("./NetToVirtualGatewayLink"); +const ResourceTag_1 = require("./ResourceTag"); +function VirtualGatewayFromJSON(json) { + return VirtualGatewayFromJSONTyped(json, false); +} +exports.VirtualGatewayFromJSON = VirtualGatewayFromJSON; +function VirtualGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'connectionType': !(0, runtime_1.exists)(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'netToVirtualGatewayLinks': !(0, runtime_1.exists)(json, 'NetToVirtualGatewayLinks') ? undefined : (json['NetToVirtualGatewayLinks'].map(NetToVirtualGatewayLink_1.NetToVirtualGatewayLinkFromJSON)), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'virtualGatewayId': !(0, runtime_1.exists)(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + }; +} +exports.VirtualGatewayFromJSONTyped = VirtualGatewayFromJSONTyped; +function VirtualGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConnectionType': value.connectionType, + 'NetToVirtualGatewayLinks': value.netToVirtualGatewayLinks === undefined ? undefined : (value.netToVirtualGatewayLinks.map(NetToVirtualGatewayLink_1.NetToVirtualGatewayLinkToJSON)), + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'VirtualGatewayId': value.virtualGatewayId, + }; +} +exports.VirtualGatewayToJSON = VirtualGatewayToJSON; diff --git a/dist/cjs/models/Vm.d.ts b/dist/cjs/models/Vm.d.ts new file mode 100644 index 00000000..3c5f7ae3 --- /dev/null +++ b/dist/cjs/models/Vm.d.ts @@ -0,0 +1,224 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingCreated } from './BlockDeviceMappingCreated'; +import { NicLight } from './NicLight'; +import { Placement } from './Placement'; +import { ResourceTag } from './ResourceTag'; +import { SecurityGroupLight } from './SecurityGroupLight'; +/** + * Information about the VM. + * @export + * @interface Vm + */ +export interface Vm { + /** + * The architecture of the VM (`i386` \| `x86_64`). + * @type {string} + * @memberof Vm + */ + architecture?: string; + /** + * The block device mapping of the VM. + * @type {Array} + * @memberof Vm + */ + blockDeviceMappings?: Array; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof Vm + */ + bsuOptimized?: boolean; + /** + * The idempotency token provided when launching the VM. + * @type {string} + * @memberof Vm + */ + clientToken?: string; + /** + * The date and time at which the VM was created. + * @type {string} + * @memberof Vm + */ + creationDate?: string; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof Vm + */ + deletionProtection?: boolean; + /** + * The hypervisor type of the VMs (`ovm` \| `xen`). + * @type {string} + * @memberof Vm + */ + hypervisor?: string; + /** + * The ID of the OMI used to create the VM. + * @type {string} + * @memberof Vm + */ + imageId?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof Vm + */ + isSourceDestChecked?: boolean; + /** + * The name of the keypair used when launching the VM. + * @type {string} + * @memberof Vm + */ + keypairName?: string; + /** + * The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on). + * @type {number} + * @memberof Vm + */ + launchNumber?: number; + /** + * The ID of the Net in which the VM is running. + * @type {string} + * @memberof Vm + */ + netId?: string; + /** + * (Net only) The network interface cards (NICs) the VMs are attached to. + * @type {Array} + * @memberof Vm + */ + nics?: Array; + /** + * Indicates the operating system (OS) of the VM. + * @type {string} + * @memberof Vm + */ + osFamily?: string; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof Vm + */ + performance?: string; + /** + * + * @type {Placement} + * @memberof Vm + */ + placement?: Placement; + /** + * The name of the private DNS. + * @type {string} + * @memberof Vm + */ + privateDnsName?: string; + /** + * The primary private IP of the VM. + * @type {string} + * @memberof Vm + */ + privateIp?: string; + /** + * The product code associated with the OMI used to create the VM (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof Vm + */ + productCodes?: Array; + /** + * The name of the public DNS. + * @type {string} + * @memberof Vm + */ + publicDnsName?: string; + /** + * The public IP of the VM. + * @type {string} + * @memberof Vm + */ + publicIp?: string; + /** + * The reservation ID of the VM. + * @type {string} + * @memberof Vm + */ + reservationId?: string; + /** + * The name of the root device for the VM (for example, `/dev/vda1`). + * @type {string} + * @memberof Vm + */ + rootDeviceName?: string; + /** + * The type of root device used by the VM (always `bsu`). + * @type {string} + * @memberof Vm + */ + rootDeviceType?: string; + /** + * One or more security groups associated with the VM. + * @type {Array} + * @memberof Vm + */ + securityGroups?: Array; + /** + * The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {string} + * @memberof Vm + */ + state?: string; + /** + * The reason explaining the current state of the VM. + * @type {string} + * @memberof Vm + */ + stateReason?: string; + /** + * The ID of the Subnet for the VM. + * @type {string} + * @memberof Vm + */ + subnetId?: string; + /** + * One or more tags associated with the VM. + * @type {Array} + * @memberof Vm + */ + tags?: Array; + /** + * The Base64-encoded MIME user data. + * @type {string} + * @memberof Vm + */ + userData?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof Vm + */ + vmId?: string; + /** + * The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is deleted. + * @type {string} + * @memberof Vm + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof Vm + */ + vmType?: string; +} +export declare function VmFromJSON(json: any): Vm; +export declare function VmFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vm; +export declare function VmToJSON(value?: Vm | null): any; diff --git a/dist/cjs/models/Vm.js b/dist/cjs/models/Vm.js new file mode 100644 index 00000000..6b4c78bb --- /dev/null +++ b/dist/cjs/models/Vm.js @@ -0,0 +1,111 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VmToJSON = exports.VmFromJSONTyped = exports.VmFromJSON = void 0; +const runtime_1 = require("../runtime"); +const BlockDeviceMappingCreated_1 = require("./BlockDeviceMappingCreated"); +const NicLight_1 = require("./NicLight"); +const Placement_1 = require("./Placement"); +const ResourceTag_1 = require("./ResourceTag"); +const SecurityGroupLight_1 = require("./SecurityGroupLight"); +function VmFromJSON(json) { + return VmFromJSONTyped(json, false); +} +exports.VmFromJSON = VmFromJSON; +function VmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'architecture': !(0, runtime_1.exists)(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !(0, runtime_1.exists)(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingCreated_1.BlockDeviceMappingCreatedFromJSON)), + 'bsuOptimized': !(0, runtime_1.exists)(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'clientToken': !(0, runtime_1.exists)(json, 'ClientToken') ? undefined : json['ClientToken'], + 'creationDate': !(0, runtime_1.exists)(json, 'CreationDate') ? undefined : json['CreationDate'], + 'deletionProtection': !(0, runtime_1.exists)(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'hypervisor': !(0, runtime_1.exists)(json, 'Hypervisor') ? undefined : json['Hypervisor'], + 'imageId': !(0, runtime_1.exists)(json, 'ImageId') ? undefined : json['ImageId'], + 'isSourceDestChecked': !(0, runtime_1.exists)(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'keypairName': !(0, runtime_1.exists)(json, 'KeypairName') ? undefined : json['KeypairName'], + 'launchNumber': !(0, runtime_1.exists)(json, 'LaunchNumber') ? undefined : json['LaunchNumber'], + 'netId': !(0, runtime_1.exists)(json, 'NetId') ? undefined : json['NetId'], + 'nics': !(0, runtime_1.exists)(json, 'Nics') ? undefined : (json['Nics'].map(NicLight_1.NicLightFromJSON)), + 'osFamily': !(0, runtime_1.exists)(json, 'OsFamily') ? undefined : json['OsFamily'], + 'performance': !(0, runtime_1.exists)(json, 'Performance') ? undefined : json['Performance'], + 'placement': !(0, runtime_1.exists)(json, 'Placement') ? undefined : (0, Placement_1.PlacementFromJSON)(json['Placement']), + 'privateDnsName': !(0, runtime_1.exists)(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !(0, runtime_1.exists)(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'productCodes': !(0, runtime_1.exists)(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'publicDnsName': !(0, runtime_1.exists)(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !(0, runtime_1.exists)(json, 'PublicIp') ? undefined : json['PublicIp'], + 'reservationId': !(0, runtime_1.exists)(json, 'ReservationId') ? undefined : json['ReservationId'], + 'rootDeviceName': !(0, runtime_1.exists)(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'rootDeviceType': !(0, runtime_1.exists)(json, 'RootDeviceType') ? undefined : json['RootDeviceType'], + 'securityGroups': !(0, runtime_1.exists)(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupLight_1.SecurityGroupLightFromJSON)), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'stateReason': !(0, runtime_1.exists)(json, 'StateReason') ? undefined : json['StateReason'], + 'subnetId': !(0, runtime_1.exists)(json, 'SubnetId') ? undefined : json['SubnetId'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'userData': !(0, runtime_1.exists)(json, 'UserData') ? undefined : json['UserData'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + 'vmInitiatedShutdownBehavior': !(0, runtime_1.exists)(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !(0, runtime_1.exists)(json, 'VmType') ? undefined : json['VmType'], + }; +} +exports.VmFromJSONTyped = VmFromJSONTyped; +function VmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingCreated_1.BlockDeviceMappingCreatedToJSON)), + 'BsuOptimized': value.bsuOptimized, + 'ClientToken': value.clientToken, + 'CreationDate': value.creationDate, + 'DeletionProtection': value.deletionProtection, + 'Hypervisor': value.hypervisor, + 'ImageId': value.imageId, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'KeypairName': value.keypairName, + 'LaunchNumber': value.launchNumber, + 'NetId': value.netId, + 'Nics': value.nics === undefined ? undefined : (value.nics.map(NicLight_1.NicLightToJSON)), + 'OsFamily': value.osFamily, + 'Performance': value.performance, + 'Placement': (0, Placement_1.PlacementToJSON)(value.placement), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + 'ProductCodes': value.productCodes, + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'ReservationId': value.reservationId, + 'RootDeviceName': value.rootDeviceName, + 'RootDeviceType': value.rootDeviceType, + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupLight_1.SecurityGroupLightToJSON)), + 'State': value.state, + 'StateReason': value.stateReason, + 'SubnetId': value.subnetId, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'UserData': value.userData, + 'VmId': value.vmId, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} +exports.VmToJSON = VmToJSON; diff --git a/dist/cjs/models/VmState.d.ts b/dist/cjs/models/VmState.d.ts new file mode 100644 index 00000000..b67dca9b --- /dev/null +++ b/dist/cjs/models/VmState.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the state of the VM. + * @export + * @interface VmState + */ +export interface VmState { + /** + * The current state of the VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof VmState + */ + currentState?: string; + /** + * The previous state of the VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof VmState + */ + previousState?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof VmState + */ + vmId?: string; +} +export declare function VmStateFromJSON(json: any): VmState; +export declare function VmStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmState; +export declare function VmStateToJSON(value?: VmState | null): any; diff --git a/dist/cjs/models/VmState.js b/dist/cjs/models/VmState.js new file mode 100644 index 00000000..f12ae766 --- /dev/null +++ b/dist/cjs/models/VmState.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VmStateToJSON = exports.VmStateFromJSONTyped = exports.VmStateFromJSON = void 0; +const runtime_1 = require("../runtime"); +function VmStateFromJSON(json) { + return VmStateFromJSONTyped(json, false); +} +exports.VmStateFromJSON = VmStateFromJSON; +function VmStateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'currentState': !(0, runtime_1.exists)(json, 'CurrentState') ? undefined : json['CurrentState'], + 'previousState': !(0, runtime_1.exists)(json, 'PreviousState') ? undefined : json['PreviousState'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + }; +} +exports.VmStateFromJSONTyped = VmStateFromJSONTyped; +function VmStateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CurrentState': value.currentState, + 'PreviousState': value.previousState, + 'VmId': value.vmId, + }; +} +exports.VmStateToJSON = VmStateToJSON; diff --git a/dist/cjs/models/VmStates.d.ts b/dist/cjs/models/VmStates.d.ts new file mode 100644 index 00000000..f2a17252 --- /dev/null +++ b/dist/cjs/models/VmStates.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MaintenanceEvent } from './MaintenanceEvent'; +/** + * Information about the states of the VMs. + * @export + * @interface VmStates + */ +export interface VmStates { + /** + * One or more scheduled events associated with the VM. + * @type {Array} + * @memberof VmStates + */ + maintenanceEvents?: Array; + /** + * The name of the Subregion of the VM. + * @type {string} + * @memberof VmStates + */ + subregionName?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof VmStates + */ + vmId?: string; + /** + * The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {string} + * @memberof VmStates + */ + vmState?: string; +} +export declare function VmStatesFromJSON(json: any): VmStates; +export declare function VmStatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmStates; +export declare function VmStatesToJSON(value?: VmStates | null): any; diff --git a/dist/cjs/models/VmStates.js b/dist/cjs/models/VmStates.js new file mode 100644 index 00000000..9f94b20e --- /dev/null +++ b/dist/cjs/models/VmStates.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VmStatesToJSON = exports.VmStatesFromJSONTyped = exports.VmStatesFromJSON = void 0; +const runtime_1 = require("../runtime"); +const MaintenanceEvent_1 = require("./MaintenanceEvent"); +function VmStatesFromJSON(json) { + return VmStatesFromJSONTyped(json, false); +} +exports.VmStatesFromJSON = VmStatesFromJSON; +function VmStatesFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'maintenanceEvents': !(0, runtime_1.exists)(json, 'MaintenanceEvents') ? undefined : (json['MaintenanceEvents'].map(MaintenanceEvent_1.MaintenanceEventFromJSON)), + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'vmId': !(0, runtime_1.exists)(json, 'VmId') ? undefined : json['VmId'], + 'vmState': !(0, runtime_1.exists)(json, 'VmState') ? undefined : json['VmState'], + }; +} +exports.VmStatesFromJSONTyped = VmStatesFromJSONTyped; +function VmStatesToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'MaintenanceEvents': value.maintenanceEvents === undefined ? undefined : (value.maintenanceEvents.map(MaintenanceEvent_1.MaintenanceEventToJSON)), + 'SubregionName': value.subregionName, + 'VmId': value.vmId, + 'VmState': value.vmState, + }; +} +exports.VmStatesToJSON = VmStatesToJSON; diff --git a/dist/cjs/models/VmType.d.ts b/dist/cjs/models/VmType.d.ts new file mode 100644 index 00000000..04bf0056 --- /dev/null +++ b/dist/cjs/models/VmType.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the VM type. + * @export + * @interface VmType + */ +export interface VmType { + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof VmType + */ + bsuOptimized?: boolean; + /** + * The maximum number of private IPs per network interface card (NIC). + * @type {number} + * @memberof VmType + */ + maxPrivateIps?: number; + /** + * The amount of memory, in gibibytes. + * @type {number} + * @memberof VmType + */ + memorySize?: number; + /** + * The number of vCores. + * @type {number} + * @memberof VmType + */ + vcoreCount?: number; + /** + * The name of the VM type. + * @type {string} + * @memberof VmType + */ + vmTypeName?: string; + /** + * The maximum number of ephemeral storage disks. + * @type {number} + * @memberof VmType + */ + volumeCount?: number; + /** + * The size of one ephemeral storage disk, in gibibytes (GiB). + * @type {number} + * @memberof VmType + */ + volumeSize?: number; +} +export declare function VmTypeFromJSON(json: any): VmType; +export declare function VmTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmType; +export declare function VmTypeToJSON(value?: VmType | null): any; diff --git a/dist/cjs/models/VmType.js b/dist/cjs/models/VmType.js new file mode 100644 index 00000000..32e2792b --- /dev/null +++ b/dist/cjs/models/VmType.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VmTypeToJSON = exports.VmTypeFromJSONTyped = exports.VmTypeFromJSON = void 0; +const runtime_1 = require("../runtime"); +function VmTypeFromJSON(json) { + return VmTypeFromJSONTyped(json, false); +} +exports.VmTypeFromJSON = VmTypeFromJSON; +function VmTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsuOptimized': !(0, runtime_1.exists)(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'maxPrivateIps': !(0, runtime_1.exists)(json, 'MaxPrivateIps') ? undefined : json['MaxPrivateIps'], + 'memorySize': !(0, runtime_1.exists)(json, 'MemorySize') ? undefined : json['MemorySize'], + 'vcoreCount': !(0, runtime_1.exists)(json, 'VcoreCount') ? undefined : json['VcoreCount'], + 'vmTypeName': !(0, runtime_1.exists)(json, 'VmTypeName') ? undefined : json['VmTypeName'], + 'volumeCount': !(0, runtime_1.exists)(json, 'VolumeCount') ? undefined : json['VolumeCount'], + 'volumeSize': !(0, runtime_1.exists)(json, 'VolumeSize') ? undefined : json['VolumeSize'], + }; +} +exports.VmTypeFromJSONTyped = VmTypeFromJSONTyped; +function VmTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BsuOptimized': value.bsuOptimized, + 'MaxPrivateIps': value.maxPrivateIps, + 'MemorySize': value.memorySize, + 'VcoreCount': value.vcoreCount, + 'VmTypeName': value.vmTypeName, + 'VolumeCount': value.volumeCount, + 'VolumeSize': value.volumeSize, + }; +} +exports.VmTypeToJSON = VmTypeToJSON; diff --git a/dist/cjs/models/Volume.d.ts b/dist/cjs/models/Volume.d.ts new file mode 100644 index 00000000..f3bca110 --- /dev/null +++ b/dist/cjs/models/Volume.d.ts @@ -0,0 +1,85 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkedVolume } from './LinkedVolume'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the volume. + * @export + * @interface Volume + */ +export interface Volume { + /** + * The date and time of creation of the volume. + * @type {string} + * @memberof Volume + */ + creationDate?: string; + /** + * The number of I/O operations per second (IOPS):
+ * - For `io1` volumes, the number of provisioned IOPS
+ * - For `gp2` volumes, the baseline performance of the volume + * @type {number} + * @memberof Volume + */ + iops?: number; + /** + * Information about your volume attachment. + * @type {Array} + * @memberof Volume + */ + linkedVolumes?: Array; + /** + * The size of the volume, in gibibytes (GiB). + * @type {number} + * @memberof Volume + */ + size?: number; + /** + * The snapshot from which the volume was created. + * @type {string} + * @memberof Volume + */ + snapshotId?: string; + /** + * The state of the volume (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). + * @type {string} + * @memberof Volume + */ + state?: string; + /** + * The Subregion in which the volume was created. + * @type {string} + * @memberof Volume + */ + subregionName?: string; + /** + * One or more tags associated with the volume. + * @type {Array} + * @memberof Volume + */ + tags?: Array; + /** + * The ID of the volume. + * @type {string} + * @memberof Volume + */ + volumeId?: string; + /** + * The type of the volume (`standard` \| `gp2` \| `io1`). + * @type {string} + * @memberof Volume + */ + volumeType?: string; +} +export declare function VolumeFromJSON(json: any): Volume; +export declare function VolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume; +export declare function VolumeToJSON(value?: Volume | null): any; diff --git a/dist/cjs/models/Volume.js b/dist/cjs/models/Volume.js new file mode 100644 index 00000000..8630543e --- /dev/null +++ b/dist/cjs/models/Volume.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VolumeToJSON = exports.VolumeFromJSONTyped = exports.VolumeFromJSON = void 0; +const runtime_1 = require("../runtime"); +const LinkedVolume_1 = require("./LinkedVolume"); +const ResourceTag_1 = require("./ResourceTag"); +function VolumeFromJSON(json) { + return VolumeFromJSONTyped(json, false); +} +exports.VolumeFromJSON = VolumeFromJSON; +function VolumeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'creationDate': !(0, runtime_1.exists)(json, 'CreationDate') ? undefined : json['CreationDate'], + 'iops': !(0, runtime_1.exists)(json, 'Iops') ? undefined : json['Iops'], + 'linkedVolumes': !(0, runtime_1.exists)(json, 'LinkedVolumes') ? undefined : (json['LinkedVolumes'].map(LinkedVolume_1.LinkedVolumeFromJSON)), + 'size': !(0, runtime_1.exists)(json, 'Size') ? undefined : json['Size'], + 'snapshotId': !(0, runtime_1.exists)(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'subregionName': !(0, runtime_1.exists)(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'volumeId': !(0, runtime_1.exists)(json, 'VolumeId') ? undefined : json['VolumeId'], + 'volumeType': !(0, runtime_1.exists)(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +exports.VolumeFromJSONTyped = VolumeFromJSONTyped; +function VolumeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CreationDate': value.creationDate, + 'Iops': value.iops, + 'LinkedVolumes': value.linkedVolumes === undefined ? undefined : (value.linkedVolumes.map(LinkedVolume_1.LinkedVolumeToJSON)), + 'Size': value.size, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'VolumeId': value.volumeId, + 'VolumeType': value.volumeType, + }; +} +exports.VolumeToJSON = VolumeToJSON; diff --git a/dist/cjs/models/VpnConnection.d.ts b/dist/cjs/models/VpnConnection.d.ts new file mode 100644 index 00000000..5b35ab9d --- /dev/null +++ b/dist/cjs/models/VpnConnection.d.ts @@ -0,0 +1,91 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +import { RouteLight } from './RouteLight'; +import { VgwTelemetry } from './VgwTelemetry'; +import { VpnOptions } from './VpnOptions'; +/** + * Information about a VPN connection. + * @export + * @interface VpnConnection + */ +export interface VpnConnection { + /** + * Example configuration for the client gateway. + * @type {string} + * @memberof VpnConnection + */ + clientGatewayConfiguration?: string; + /** + * The ID of the client gateway used on the client end of the connection. + * @type {string} + * @memberof VpnConnection + */ + clientGatewayId?: string; + /** + * The type of VPN connection (always `ipsec.1`). + * @type {string} + * @memberof VpnConnection + */ + connectionType?: string; + /** + * Information about one or more static routes associated with the VPN connection, if any. + * @type {Array} + * @memberof VpnConnection + */ + routes?: Array; + /** + * The state of the VPN connection (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof VpnConnection + */ + state?: string; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof VpnConnection + */ + staticRoutesOnly?: boolean; + /** + * One or more tags associated with the VPN connection. + * @type {Array} + * @memberof VpnConnection + */ + tags?: Array; + /** + * Information about the current state of one or more of the VPN tunnels. + * @type {Array} + * @memberof VpnConnection + */ + vgwTelemetries?: Array; + /** + * The ID of the virtual gateway used on the OUTSCALE end of the connection. + * @type {string} + * @memberof VpnConnection + */ + virtualGatewayId?: string; + /** + * The ID of the VPN connection. + * @type {string} + * @memberof VpnConnection + */ + vpnConnectionId?: string; + /** + * + * @type {VpnOptions} + * @memberof VpnConnection + */ + vpnOptions?: VpnOptions; +} +export declare function VpnConnectionFromJSON(json: any): VpnConnection; +export declare function VpnConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpnConnection; +export declare function VpnConnectionToJSON(value?: VpnConnection | null): any; diff --git a/dist/cjs/models/VpnConnection.js b/dist/cjs/models/VpnConnection.js new file mode 100644 index 00000000..00a91073 --- /dev/null +++ b/dist/cjs/models/VpnConnection.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VpnConnectionToJSON = exports.VpnConnectionFromJSONTyped = exports.VpnConnectionFromJSON = void 0; +const runtime_1 = require("../runtime"); +const ResourceTag_1 = require("./ResourceTag"); +const RouteLight_1 = require("./RouteLight"); +const VgwTelemetry_1 = require("./VgwTelemetry"); +const VpnOptions_1 = require("./VpnOptions"); +function VpnConnectionFromJSON(json) { + return VpnConnectionFromJSONTyped(json, false); +} +exports.VpnConnectionFromJSON = VpnConnectionFromJSON; +function VpnConnectionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayConfiguration': !(0, runtime_1.exists)(json, 'ClientGatewayConfiguration') ? undefined : json['ClientGatewayConfiguration'], + 'clientGatewayId': !(0, runtime_1.exists)(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'connectionType': !(0, runtime_1.exists)(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'routes': !(0, runtime_1.exists)(json, 'Routes') ? undefined : (json['Routes'].map(RouteLight_1.RouteLightFromJSON)), + 'state': !(0, runtime_1.exists)(json, 'State') ? undefined : json['State'], + 'staticRoutesOnly': !(0, runtime_1.exists)(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'tags': !(0, runtime_1.exists)(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTag_1.ResourceTagFromJSON)), + 'vgwTelemetries': !(0, runtime_1.exists)(json, 'VgwTelemetries') ? undefined : (json['VgwTelemetries'].map(VgwTelemetry_1.VgwTelemetryFromJSON)), + 'virtualGatewayId': !(0, runtime_1.exists)(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vpnConnectionId': !(0, runtime_1.exists)(json, 'VpnConnectionId') ? undefined : json['VpnConnectionId'], + 'vpnOptions': !(0, runtime_1.exists)(json, 'VpnOptions') ? undefined : (0, VpnOptions_1.VpnOptionsFromJSON)(json['VpnOptions']), + }; +} +exports.VpnConnectionFromJSONTyped = VpnConnectionFromJSONTyped; +function VpnConnectionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayConfiguration': value.clientGatewayConfiguration, + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'Routes': value.routes === undefined ? undefined : (value.routes.map(RouteLight_1.RouteLightToJSON)), + 'State': value.state, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTag_1.ResourceTagToJSON)), + 'VgwTelemetries': value.vgwTelemetries === undefined ? undefined : (value.vgwTelemetries.map(VgwTelemetry_1.VgwTelemetryToJSON)), + 'VirtualGatewayId': value.virtualGatewayId, + 'VpnConnectionId': value.vpnConnectionId, + 'VpnOptions': (0, VpnOptions_1.VpnOptionsToJSON)(value.vpnOptions), + }; +} +exports.VpnConnectionToJSON = VpnConnectionToJSON; diff --git a/dist/cjs/models/VpnOptions.d.ts b/dist/cjs/models/VpnOptions.d.ts new file mode 100644 index 00000000..bae8c4d5 --- /dev/null +++ b/dist/cjs/models/VpnOptions.d.ts @@ -0,0 +1,41 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Phase1Options } from './Phase1Options'; +import { Phase2Options } from './Phase2Options'; +/** + * Information about the VPN options. + * @export + * @interface VpnOptions + */ +export interface VpnOptions { + /** + * + * @type {Phase1Options} + * @memberof VpnOptions + */ + phase1Options?: Phase1Options; + /** + * + * @type {Phase2Options} + * @memberof VpnOptions + */ + phase2Options?: Phase2Options; + /** + * The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range. + * @type {string} + * @memberof VpnOptions + */ + tunnelInsideIpRange?: string; +} +export declare function VpnOptionsFromJSON(json: any): VpnOptions; +export declare function VpnOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpnOptions; +export declare function VpnOptionsToJSON(value?: VpnOptions | null): any; diff --git a/dist/cjs/models/VpnOptions.js b/dist/cjs/models/VpnOptions.js new file mode 100644 index 00000000..6aebf08e --- /dev/null +++ b/dist/cjs/models/VpnOptions.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VpnOptionsToJSON = exports.VpnOptionsFromJSONTyped = exports.VpnOptionsFromJSON = void 0; +const runtime_1 = require("../runtime"); +const Phase1Options_1 = require("./Phase1Options"); +const Phase2Options_1 = require("./Phase2Options"); +function VpnOptionsFromJSON(json) { + return VpnOptionsFromJSONTyped(json, false); +} +exports.VpnOptionsFromJSON = VpnOptionsFromJSON; +function VpnOptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'phase1Options': !(0, runtime_1.exists)(json, 'Phase1Options') ? undefined : (0, Phase1Options_1.Phase1OptionsFromJSON)(json['Phase1Options']), + 'phase2Options': !(0, runtime_1.exists)(json, 'Phase2Options') ? undefined : (0, Phase2Options_1.Phase2OptionsFromJSON)(json['Phase2Options']), + 'tunnelInsideIpRange': !(0, runtime_1.exists)(json, 'TunnelInsideIpRange') ? undefined : json['TunnelInsideIpRange'], + }; +} +exports.VpnOptionsFromJSONTyped = VpnOptionsFromJSONTyped; +function VpnOptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Phase1Options': (0, Phase1Options_1.Phase1OptionsToJSON)(value.phase1Options), + 'Phase2Options': (0, Phase2Options_1.Phase2OptionsToJSON)(value.phase2Options), + 'TunnelInsideIpRange': value.tunnelInsideIpRange, + }; +} +exports.VpnOptionsToJSON = VpnOptionsToJSON; diff --git a/dist/cjs/models/With.d.ts b/dist/cjs/models/With.d.ts new file mode 100644 index 00000000..02d1b877 --- /dev/null +++ b/dist/cjs/models/With.d.ts @@ -0,0 +1,117 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The information to display in each returned log. If this parameter is not specified, all available response elements are displayed. If this parameter is specified, by default `AccountId` and `RequestId` are also included in the response, unless you explicitly specify them as false. + * @export + * @interface With + */ +export interface With { + /** + * By default or if set to true, the account ID is displayed. + * @type {boolean} + * @memberof With + */ + accountId?: boolean; + /** + * If set to true, the duration of the call is displayed. + * @type {boolean} + * @memberof With + */ + callDuration?: boolean; + /** + * If set to true, the access key is displayed. + * @type {boolean} + * @memberof With + */ + queryAccessKey?: boolean; + /** + * If set to true, the name of the API is displayed. + * @type {boolean} + * @memberof With + */ + queryApiName?: boolean; + /** + * If set to true, the version of the API is displayed. + * @type {boolean} + * @memberof With + */ + queryApiVersion?: boolean; + /** + * If set to true, the name of the call is displayed. + * @type {boolean} + * @memberof With + */ + queryCallName?: boolean; + /** + * If set to true, the date of the call is displayed. + * @type {boolean} + * @memberof With + */ + queryDate?: boolean; + /** + * If set to true, the raw header of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryHeaderRaw?: boolean; + /** + * If set to true, the size of the raw header of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryHeaderSize?: boolean; + /** + * If set to true, the IP is displayed. + * @type {boolean} + * @memberof With + */ + queryIpAddress?: boolean; + /** + * If set to true, the raw payload of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryPayloadRaw?: boolean; + /** + * If set to true, the size of the raw payload of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryPayloadSize?: boolean; + /** + * If set to true, the user agent of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryUserAgent?: boolean; + /** + * By default or if set to true, the request ID is displayed. + * @type {boolean} + * @memberof With + */ + requestId?: boolean; + /** + * If set to true, the size of the response is displayed. + * @type {boolean} + * @memberof With + */ + responseSize?: boolean; + /** + * If set to true, the HTTP status code of the response is displayed. + * @type {boolean} + * @memberof With + */ + responseStatusCode?: boolean; +} +export declare function WithFromJSON(json: any): With; +export declare function WithFromJSONTyped(json: any, ignoreDiscriminator: boolean): With; +export declare function WithToJSON(value?: With | null): any; diff --git a/dist/cjs/models/With.js b/dist/cjs/models/With.js new file mode 100644 index 00000000..9d9c5348 --- /dev/null +++ b/dist/cjs/models/With.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithToJSON = exports.WithFromJSONTyped = exports.WithFromJSON = void 0; +const runtime_1 = require("../runtime"); +function WithFromJSON(json) { + return WithFromJSONTyped(json, false); +} +exports.WithFromJSON = WithFromJSON; +function WithFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !(0, runtime_1.exists)(json, 'AccountId') ? undefined : json['AccountId'], + 'callDuration': !(0, runtime_1.exists)(json, 'CallDuration') ? undefined : json['CallDuration'], + 'queryAccessKey': !(0, runtime_1.exists)(json, 'QueryAccessKey') ? undefined : json['QueryAccessKey'], + 'queryApiName': !(0, runtime_1.exists)(json, 'QueryApiName') ? undefined : json['QueryApiName'], + 'queryApiVersion': !(0, runtime_1.exists)(json, 'QueryApiVersion') ? undefined : json['QueryApiVersion'], + 'queryCallName': !(0, runtime_1.exists)(json, 'QueryCallName') ? undefined : json['QueryCallName'], + 'queryDate': !(0, runtime_1.exists)(json, 'QueryDate') ? undefined : json['QueryDate'], + 'queryHeaderRaw': !(0, runtime_1.exists)(json, 'QueryHeaderRaw') ? undefined : json['QueryHeaderRaw'], + 'queryHeaderSize': !(0, runtime_1.exists)(json, 'QueryHeaderSize') ? undefined : json['QueryHeaderSize'], + 'queryIpAddress': !(0, runtime_1.exists)(json, 'QueryIpAddress') ? undefined : json['QueryIpAddress'], + 'queryPayloadRaw': !(0, runtime_1.exists)(json, 'QueryPayloadRaw') ? undefined : json['QueryPayloadRaw'], + 'queryPayloadSize': !(0, runtime_1.exists)(json, 'QueryPayloadSize') ? undefined : json['QueryPayloadSize'], + 'queryUserAgent': !(0, runtime_1.exists)(json, 'QueryUserAgent') ? undefined : json['QueryUserAgent'], + 'requestId': !(0, runtime_1.exists)(json, 'RequestId') ? undefined : json['RequestId'], + 'responseSize': !(0, runtime_1.exists)(json, 'ResponseSize') ? undefined : json['ResponseSize'], + 'responseStatusCode': !(0, runtime_1.exists)(json, 'ResponseStatusCode') ? undefined : json['ResponseStatusCode'], + }; +} +exports.WithFromJSONTyped = WithFromJSONTyped; +function WithToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'CallDuration': value.callDuration, + 'QueryAccessKey': value.queryAccessKey, + 'QueryApiName': value.queryApiName, + 'QueryApiVersion': value.queryApiVersion, + 'QueryCallName': value.queryCallName, + 'QueryDate': value.queryDate, + 'QueryHeaderRaw': value.queryHeaderRaw, + 'QueryHeaderSize': value.queryHeaderSize, + 'QueryIpAddress': value.queryIpAddress, + 'QueryPayloadRaw': value.queryPayloadRaw, + 'QueryPayloadSize': value.queryPayloadSize, + 'QueryUserAgent': value.queryUserAgent, + 'RequestId': value.requestId, + 'ResponseSize': value.responseSize, + 'ResponseStatusCode': value.responseStatusCode, + }; +} +exports.WithToJSON = WithToJSON; diff --git a/dist/cjs/models/index.d.ts b/dist/cjs/models/index.d.ts new file mode 100644 index 00000000..e750cf26 --- /dev/null +++ b/dist/cjs/models/index.d.ts @@ -0,0 +1,496 @@ +export * from './AcceptNetPeeringRequest'; +export * from './AcceptNetPeeringResponse'; +export * from './AccepterNet'; +export * from './AccessKey'; +export * from './AccessKeySecretKey'; +export * from './AccessLog'; +export * from './Account'; +export * from './ApiAccessPolicy'; +export * from './ApiAccessRule'; +export * from './ApplicationStickyCookiePolicy'; +export * from './BackendVmHealth'; +export * from './BlockDeviceMappingCreated'; +export * from './BlockDeviceMappingImage'; +export * from './BlockDeviceMappingVmCreation'; +export * from './BlockDeviceMappingVmUpdate'; +export * from './BsuCreated'; +export * from './BsuToCreate'; +export * from './BsuToUpdateVm'; +export * from './Ca'; +export * from './Catalog'; +export * from './CatalogEntry'; +export * from './CheckAuthenticationRequest'; +export * from './CheckAuthenticationResponse'; +export * from './ClientGateway'; +export * from './ConsumptionEntry'; +export * from './CreateAccessKeyRequest'; +export * from './CreateAccessKeyResponse'; +export * from './CreateAccountRequest'; +export * from './CreateAccountResponse'; +export * from './CreateApiAccessRuleRequest'; +export * from './CreateApiAccessRuleResponse'; +export * from './CreateCaRequest'; +export * from './CreateCaResponse'; +export * from './CreateClientGatewayRequest'; +export * from './CreateClientGatewayResponse'; +export * from './CreateDhcpOptionsRequest'; +export * from './CreateDhcpOptionsResponse'; +export * from './CreateDirectLinkInterfaceRequest'; +export * from './CreateDirectLinkInterfaceResponse'; +export * from './CreateDirectLinkRequest'; +export * from './CreateDirectLinkResponse'; +export * from './CreateFlexibleGpuRequest'; +export * from './CreateFlexibleGpuResponse'; +export * from './CreateImageExportTaskRequest'; +export * from './CreateImageExportTaskResponse'; +export * from './CreateImageRequest'; +export * from './CreateImageResponse'; +export * from './CreateInternetServiceRequest'; +export * from './CreateInternetServiceResponse'; +export * from './CreateKeypairRequest'; +export * from './CreateKeypairResponse'; +export * from './CreateListenerRuleRequest'; +export * from './CreateListenerRuleResponse'; +export * from './CreateLoadBalancerListenersRequest'; +export * from './CreateLoadBalancerListenersResponse'; +export * from './CreateLoadBalancerPolicyRequest'; +export * from './CreateLoadBalancerPolicyResponse'; +export * from './CreateLoadBalancerRequest'; +export * from './CreateLoadBalancerResponse'; +export * from './CreateLoadBalancerTagsRequest'; +export * from './CreateLoadBalancerTagsResponse'; +export * from './CreateNatServiceRequest'; +export * from './CreateNatServiceResponse'; +export * from './CreateNetAccessPointRequest'; +export * from './CreateNetAccessPointResponse'; +export * from './CreateNetPeeringRequest'; +export * from './CreateNetPeeringResponse'; +export * from './CreateNetRequest'; +export * from './CreateNetResponse'; +export * from './CreateNicRequest'; +export * from './CreateNicResponse'; +export * from './CreatePublicIpRequest'; +export * from './CreatePublicIpResponse'; +export * from './CreateRouteRequest'; +export * from './CreateRouteResponse'; +export * from './CreateRouteTableRequest'; +export * from './CreateRouteTableResponse'; +export * from './CreateSecurityGroupRequest'; +export * from './CreateSecurityGroupResponse'; +export * from './CreateSecurityGroupRuleRequest'; +export * from './CreateSecurityGroupRuleResponse'; +export * from './CreateServerCertificateRequest'; +export * from './CreateServerCertificateResponse'; +export * from './CreateSnapshotExportTaskRequest'; +export * from './CreateSnapshotExportTaskResponse'; +export * from './CreateSnapshotRequest'; +export * from './CreateSnapshotResponse'; +export * from './CreateSubnetRequest'; +export * from './CreateSubnetResponse'; +export * from './CreateTagsRequest'; +export * from './CreateTagsResponse'; +export * from './CreateVirtualGatewayRequest'; +export * from './CreateVirtualGatewayResponse'; +export * from './CreateVmsRequest'; +export * from './CreateVmsResponse'; +export * from './CreateVolumeRequest'; +export * from './CreateVolumeResponse'; +export * from './CreateVpnConnectionRequest'; +export * from './CreateVpnConnectionResponse'; +export * from './CreateVpnConnectionRouteRequest'; +export * from './CreateVpnConnectionRouteResponse'; +export * from './DeleteAccessKeyRequest'; +export * from './DeleteAccessKeyResponse'; +export * from './DeleteApiAccessRuleRequest'; +export * from './DeleteApiAccessRuleResponse'; +export * from './DeleteCaRequest'; +export * from './DeleteCaResponse'; +export * from './DeleteClientGatewayRequest'; +export * from './DeleteClientGatewayResponse'; +export * from './DeleteDhcpOptionsRequest'; +export * from './DeleteDhcpOptionsResponse'; +export * from './DeleteDirectLinkInterfaceRequest'; +export * from './DeleteDirectLinkInterfaceResponse'; +export * from './DeleteDirectLinkRequest'; +export * from './DeleteDirectLinkResponse'; +export * from './DeleteExportTaskRequest'; +export * from './DeleteExportTaskResponse'; +export * from './DeleteFlexibleGpuRequest'; +export * from './DeleteFlexibleGpuResponse'; +export * from './DeleteImageRequest'; +export * from './DeleteImageResponse'; +export * from './DeleteInternetServiceRequest'; +export * from './DeleteInternetServiceResponse'; +export * from './DeleteKeypairRequest'; +export * from './DeleteKeypairResponse'; +export * from './DeleteListenerRuleRequest'; +export * from './DeleteListenerRuleResponse'; +export * from './DeleteLoadBalancerListenersRequest'; +export * from './DeleteLoadBalancerListenersResponse'; +export * from './DeleteLoadBalancerPolicyRequest'; +export * from './DeleteLoadBalancerPolicyResponse'; +export * from './DeleteLoadBalancerRequest'; +export * from './DeleteLoadBalancerResponse'; +export * from './DeleteLoadBalancerTagsRequest'; +export * from './DeleteLoadBalancerTagsResponse'; +export * from './DeleteNatServiceRequest'; +export * from './DeleteNatServiceResponse'; +export * from './DeleteNetAccessPointRequest'; +export * from './DeleteNetAccessPointResponse'; +export * from './DeleteNetPeeringRequest'; +export * from './DeleteNetPeeringResponse'; +export * from './DeleteNetRequest'; +export * from './DeleteNetResponse'; +export * from './DeleteNicRequest'; +export * from './DeleteNicResponse'; +export * from './DeletePublicIpRequest'; +export * from './DeletePublicIpResponse'; +export * from './DeleteRouteRequest'; +export * from './DeleteRouteResponse'; +export * from './DeleteRouteTableRequest'; +export * from './DeleteRouteTableResponse'; +export * from './DeleteSecurityGroupRequest'; +export * from './DeleteSecurityGroupResponse'; +export * from './DeleteSecurityGroupRuleRequest'; +export * from './DeleteSecurityGroupRuleResponse'; +export * from './DeleteServerCertificateRequest'; +export * from './DeleteServerCertificateResponse'; +export * from './DeleteSnapshotRequest'; +export * from './DeleteSnapshotResponse'; +export * from './DeleteSubnetRequest'; +export * from './DeleteSubnetResponse'; +export * from './DeleteTagsRequest'; +export * from './DeleteTagsResponse'; +export * from './DeleteVirtualGatewayRequest'; +export * from './DeleteVirtualGatewayResponse'; +export * from './DeleteVmsRequest'; +export * from './DeleteVmsResponse'; +export * from './DeleteVolumeRequest'; +export * from './DeleteVolumeResponse'; +export * from './DeleteVpnConnectionRequest'; +export * from './DeleteVpnConnectionResponse'; +export * from './DeleteVpnConnectionRouteRequest'; +export * from './DeleteVpnConnectionRouteResponse'; +export * from './DeregisterVmsInLoadBalancerRequest'; +export * from './DeregisterVmsInLoadBalancerResponse'; +export * from './DhcpOptionsSet'; +export * from './DirectLink'; +export * from './DirectLinkInterface'; +export * from './DirectLinkInterfaces'; +export * from './ErrorResponse'; +export * from './Errors'; +export * from './FiltersAccessKeys'; +export * from './FiltersApiAccessRule'; +export * from './FiltersApiLog'; +export * from './FiltersCa'; +export * from './FiltersClientGateway'; +export * from './FiltersDhcpOptions'; +export * from './FiltersDirectLink'; +export * from './FiltersDirectLinkInterface'; +export * from './FiltersExportTask'; +export * from './FiltersFlexibleGpu'; +export * from './FiltersImage'; +export * from './FiltersInternetService'; +export * from './FiltersKeypair'; +export * from './FiltersListenerRule'; +export * from './FiltersLoadBalancer'; +export * from './FiltersNatService'; +export * from './FiltersNet'; +export * from './FiltersNetAccessPoint'; +export * from './FiltersNetPeering'; +export * from './FiltersNic'; +export * from './FiltersProductType'; +export * from './FiltersPublicIp'; +export * from './FiltersQuota'; +export * from './FiltersRouteTable'; +export * from './FiltersSecurityGroup'; +export * from './FiltersServerCertificate'; +export * from './FiltersService'; +export * from './FiltersSnapshot'; +export * from './FiltersSubnet'; +export * from './FiltersSubregion'; +export * from './FiltersTag'; +export * from './FiltersVirtualGateway'; +export * from './FiltersVm'; +export * from './FiltersVmType'; +export * from './FiltersVmsState'; +export * from './FiltersVolume'; +export * from './FiltersVpnConnection'; +export * from './FlexibleGpu'; +export * from './FlexibleGpuCatalog'; +export * from './HealthCheck'; +export * from './Image'; +export * from './ImageExportTask'; +export * from './InternetService'; +export * from './Keypair'; +export * from './KeypairCreated'; +export * from './LinkFlexibleGpuRequest'; +export * from './LinkFlexibleGpuResponse'; +export * from './LinkInternetServiceRequest'; +export * from './LinkInternetServiceResponse'; +export * from './LinkLoadBalancerBackendMachinesRequest'; +export * from './LinkLoadBalancerBackendMachinesResponse'; +export * from './LinkNic'; +export * from './LinkNicLight'; +export * from './LinkNicRequest'; +export * from './LinkNicResponse'; +export * from './LinkNicToUpdate'; +export * from './LinkPrivateIpsRequest'; +export * from './LinkPrivateIpsResponse'; +export * from './LinkPublicIp'; +export * from './LinkPublicIpLightForVm'; +export * from './LinkPublicIpRequest'; +export * from './LinkPublicIpResponse'; +export * from './LinkRouteTable'; +export * from './LinkRouteTableRequest'; +export * from './LinkRouteTableResponse'; +export * from './LinkVirtualGatewayRequest'; +export * from './LinkVirtualGatewayResponse'; +export * from './LinkVolumeRequest'; +export * from './LinkVolumeResponse'; +export * from './LinkedVolume'; +export * from './Listener'; +export * from './ListenerForCreation'; +export * from './ListenerRule'; +export * from './ListenerRuleForCreation'; +export * from './LoadBalancer'; +export * from './LoadBalancerLight'; +export * from './LoadBalancerStickyCookiePolicy'; +export * from './LoadBalancerTag'; +export * from './Location'; +export * from './Log'; +export * from './MaintenanceEvent'; +export * from './ModelResponseContext'; +export * from './NatService'; +export * from './Net'; +export * from './NetAccessPoint'; +export * from './NetPeering'; +export * from './NetPeeringState'; +export * from './NetToVirtualGatewayLink'; +export * from './Nic'; +export * from './NicForVmCreation'; +export * from './NicLight'; +export * from './OsuApiKey'; +export * from './OsuExportImageExportTask'; +export * from './OsuExportSnapshotExportTask'; +export * from './OsuExportToCreate'; +export * from './PermissionsOnResource'; +export * from './PermissionsOnResourceCreation'; +export * from './Phase1Options'; +export * from './Phase2Options'; +export * from './Placement'; +export * from './PrivateIp'; +export * from './PrivateIpLight'; +export * from './PrivateIpLightForVm'; +export * from './ProductType'; +export * from './PublicIp'; +export * from './PublicIpLight'; +export * from './Quota'; +export * from './QuotaTypes'; +export * from './ReadAccessKeysRequest'; +export * from './ReadAccessKeysResponse'; +export * from './ReadAccountsRequest'; +export * from './ReadAccountsResponse'; +export * from './ReadAdminPasswordRequest'; +export * from './ReadAdminPasswordResponse'; +export * from './ReadApiAccessPolicyRequest'; +export * from './ReadApiAccessPolicyResponse'; +export * from './ReadApiAccessRulesRequest'; +export * from './ReadApiAccessRulesResponse'; +export * from './ReadApiLogsRequest'; +export * from './ReadApiLogsResponse'; +export * from './ReadCasRequest'; +export * from './ReadCasResponse'; +export * from './ReadCatalogRequest'; +export * from './ReadCatalogResponse'; +export * from './ReadClientGatewaysRequest'; +export * from './ReadClientGatewaysResponse'; +export * from './ReadConsoleOutputRequest'; +export * from './ReadConsoleOutputResponse'; +export * from './ReadConsumptionAccountRequest'; +export * from './ReadConsumptionAccountResponse'; +export * from './ReadDhcpOptionsRequest'; +export * from './ReadDhcpOptionsResponse'; +export * from './ReadDirectLinkInterfacesRequest'; +export * from './ReadDirectLinkInterfacesResponse'; +export * from './ReadDirectLinksRequest'; +export * from './ReadDirectLinksResponse'; +export * from './ReadFlexibleGpuCatalogRequest'; +export * from './ReadFlexibleGpuCatalogResponse'; +export * from './ReadFlexibleGpusRequest'; +export * from './ReadFlexibleGpusResponse'; +export * from './ReadImageExportTasksRequest'; +export * from './ReadImageExportTasksResponse'; +export * from './ReadImagesRequest'; +export * from './ReadImagesResponse'; +export * from './ReadInternetServicesRequest'; +export * from './ReadInternetServicesResponse'; +export * from './ReadKeypairsRequest'; +export * from './ReadKeypairsResponse'; +export * from './ReadListenerRulesRequest'; +export * from './ReadListenerRulesResponse'; +export * from './ReadLoadBalancerTagsRequest'; +export * from './ReadLoadBalancerTagsResponse'; +export * from './ReadLoadBalancersRequest'; +export * from './ReadLoadBalancersResponse'; +export * from './ReadLocationsRequest'; +export * from './ReadLocationsResponse'; +export * from './ReadNatServicesRequest'; +export * from './ReadNatServicesResponse'; +export * from './ReadNetAccessPointServicesRequest'; +export * from './ReadNetAccessPointServicesResponse'; +export * from './ReadNetAccessPointsRequest'; +export * from './ReadNetAccessPointsResponse'; +export * from './ReadNetPeeringsRequest'; +export * from './ReadNetPeeringsResponse'; +export * from './ReadNetsRequest'; +export * from './ReadNetsResponse'; +export * from './ReadNicsRequest'; +export * from './ReadNicsResponse'; +export * from './ReadProductTypesRequest'; +export * from './ReadProductTypesResponse'; +export * from './ReadPublicCatalogRequest'; +export * from './ReadPublicCatalogResponse'; +export * from './ReadPublicIpRangesRequest'; +export * from './ReadPublicIpRangesResponse'; +export * from './ReadPublicIpsRequest'; +export * from './ReadPublicIpsResponse'; +export * from './ReadQuotasRequest'; +export * from './ReadQuotasResponse'; +export * from './ReadRegionsRequest'; +export * from './ReadRegionsResponse'; +export * from './ReadRouteTablesRequest'; +export * from './ReadRouteTablesResponse'; +export * from './ReadSecretAccessKeyRequest'; +export * from './ReadSecretAccessKeyResponse'; +export * from './ReadSecurityGroupsRequest'; +export * from './ReadSecurityGroupsResponse'; +export * from './ReadServerCertificatesRequest'; +export * from './ReadServerCertificatesResponse'; +export * from './ReadSnapshotExportTasksRequest'; +export * from './ReadSnapshotExportTasksResponse'; +export * from './ReadSnapshotsRequest'; +export * from './ReadSnapshotsResponse'; +export * from './ReadSubnetsRequest'; +export * from './ReadSubnetsResponse'; +export * from './ReadSubregionsRequest'; +export * from './ReadSubregionsResponse'; +export * from './ReadTagsRequest'; +export * from './ReadTagsResponse'; +export * from './ReadVirtualGatewaysRequest'; +export * from './ReadVirtualGatewaysResponse'; +export * from './ReadVmTypesRequest'; +export * from './ReadVmTypesResponse'; +export * from './ReadVmsHealthRequest'; +export * from './ReadVmsHealthResponse'; +export * from './ReadVmsRequest'; +export * from './ReadVmsResponse'; +export * from './ReadVmsStateRequest'; +export * from './ReadVmsStateResponse'; +export * from './ReadVolumesRequest'; +export * from './ReadVolumesResponse'; +export * from './ReadVpnConnectionsRequest'; +export * from './ReadVpnConnectionsResponse'; +export * from './RebootVmsRequest'; +export * from './RebootVmsResponse'; +export * from './Region'; +export * from './RegisterVmsInLoadBalancerRequest'; +export * from './RegisterVmsInLoadBalancerResponse'; +export * from './RejectNetPeeringRequest'; +export * from './RejectNetPeeringResponse'; +export * from './ResetAccountPasswordRequest'; +export * from './ResetAccountPasswordResponse'; +export * from './ResourceLoadBalancerTag'; +export * from './ResourceTag'; +export * from './Route'; +export * from './RouteLight'; +export * from './RoutePropagatingVirtualGateway'; +export * from './RouteTable'; +export * from './SecurityGroup'; +export * from './SecurityGroupLight'; +export * from './SecurityGroupRule'; +export * from './SecurityGroupsMember'; +export * from './SendResetPasswordEmailRequest'; +export * from './SendResetPasswordEmailResponse'; +export * from './ServerCertificate'; +export * from './Service'; +export * from './Snapshot'; +export * from './SnapshotExportTask'; +export * from './SourceNet'; +export * from './SourceSecurityGroup'; +export * from './StartVmsRequest'; +export * from './StartVmsResponse'; +export * from './StateComment'; +export * from './StopVmsRequest'; +export * from './StopVmsResponse'; +export * from './Subnet'; +export * from './Subregion'; +export * from './Tag'; +export * from './UnlinkFlexibleGpuRequest'; +export * from './UnlinkFlexibleGpuResponse'; +export * from './UnlinkInternetServiceRequest'; +export * from './UnlinkInternetServiceResponse'; +export * from './UnlinkLoadBalancerBackendMachinesRequest'; +export * from './UnlinkLoadBalancerBackendMachinesResponse'; +export * from './UnlinkNicRequest'; +export * from './UnlinkNicResponse'; +export * from './UnlinkPrivateIpsRequest'; +export * from './UnlinkPrivateIpsResponse'; +export * from './UnlinkPublicIpRequest'; +export * from './UnlinkPublicIpResponse'; +export * from './UnlinkRouteTableRequest'; +export * from './UnlinkRouteTableResponse'; +export * from './UnlinkVirtualGatewayRequest'; +export * from './UnlinkVirtualGatewayResponse'; +export * from './UnlinkVolumeRequest'; +export * from './UnlinkVolumeResponse'; +export * from './UpdateAccessKeyRequest'; +export * from './UpdateAccessKeyResponse'; +export * from './UpdateAccountRequest'; +export * from './UpdateAccountResponse'; +export * from './UpdateApiAccessPolicyRequest'; +export * from './UpdateApiAccessPolicyResponse'; +export * from './UpdateApiAccessRuleRequest'; +export * from './UpdateApiAccessRuleResponse'; +export * from './UpdateCaRequest'; +export * from './UpdateCaResponse'; +export * from './UpdateFlexibleGpuRequest'; +export * from './UpdateFlexibleGpuResponse'; +export * from './UpdateImageRequest'; +export * from './UpdateImageResponse'; +export * from './UpdateListenerRuleRequest'; +export * from './UpdateListenerRuleResponse'; +export * from './UpdateLoadBalancerRequest'; +export * from './UpdateLoadBalancerResponse'; +export * from './UpdateNetAccessPointRequest'; +export * from './UpdateNetAccessPointResponse'; +export * from './UpdateNetRequest'; +export * from './UpdateNetResponse'; +export * from './UpdateNicRequest'; +export * from './UpdateNicResponse'; +export * from './UpdateRoutePropagationRequest'; +export * from './UpdateRoutePropagationResponse'; +export * from './UpdateRouteRequest'; +export * from './UpdateRouteResponse'; +export * from './UpdateServerCertificateRequest'; +export * from './UpdateServerCertificateResponse'; +export * from './UpdateSnapshotRequest'; +export * from './UpdateSnapshotResponse'; +export * from './UpdateSubnetRequest'; +export * from './UpdateSubnetResponse'; +export * from './UpdateVmRequest'; +export * from './UpdateVmResponse'; +export * from './UpdateVolumeRequest'; +export * from './UpdateVolumeResponse'; +export * from './UpdateVpnConnectionRequest'; +export * from './UpdateVpnConnectionResponse'; +export * from './VgwTelemetry'; +export * from './VirtualGateway'; +export * from './Vm'; +export * from './VmState'; +export * from './VmStates'; +export * from './VmType'; +export * from './Volume'; +export * from './VpnConnection'; +export * from './VpnOptions'; +export * from './With'; diff --git a/dist/cjs/models/index.js b/dist/cjs/models/index.js new file mode 100644 index 00000000..3a4113ed --- /dev/null +++ b/dist/cjs/models/index.js @@ -0,0 +1,514 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/* tslint:disable */ +/* eslint-disable */ +__exportStar(require("./AcceptNetPeeringRequest"), exports); +__exportStar(require("./AcceptNetPeeringResponse"), exports); +__exportStar(require("./AccepterNet"), exports); +__exportStar(require("./AccessKey"), exports); +__exportStar(require("./AccessKeySecretKey"), exports); +__exportStar(require("./AccessLog"), exports); +__exportStar(require("./Account"), exports); +__exportStar(require("./ApiAccessPolicy"), exports); +__exportStar(require("./ApiAccessRule"), exports); +__exportStar(require("./ApplicationStickyCookiePolicy"), exports); +__exportStar(require("./BackendVmHealth"), exports); +__exportStar(require("./BlockDeviceMappingCreated"), exports); +__exportStar(require("./BlockDeviceMappingImage"), exports); +__exportStar(require("./BlockDeviceMappingVmCreation"), exports); +__exportStar(require("./BlockDeviceMappingVmUpdate"), exports); +__exportStar(require("./BsuCreated"), exports); +__exportStar(require("./BsuToCreate"), exports); +__exportStar(require("./BsuToUpdateVm"), exports); +__exportStar(require("./Ca"), exports); +__exportStar(require("./Catalog"), exports); +__exportStar(require("./CatalogEntry"), exports); +__exportStar(require("./CheckAuthenticationRequest"), exports); +__exportStar(require("./CheckAuthenticationResponse"), exports); +__exportStar(require("./ClientGateway"), exports); +__exportStar(require("./ConsumptionEntry"), exports); +__exportStar(require("./CreateAccessKeyRequest"), exports); +__exportStar(require("./CreateAccessKeyResponse"), exports); +__exportStar(require("./CreateAccountRequest"), exports); +__exportStar(require("./CreateAccountResponse"), exports); +__exportStar(require("./CreateApiAccessRuleRequest"), exports); +__exportStar(require("./CreateApiAccessRuleResponse"), exports); +__exportStar(require("./CreateCaRequest"), exports); +__exportStar(require("./CreateCaResponse"), exports); +__exportStar(require("./CreateClientGatewayRequest"), exports); +__exportStar(require("./CreateClientGatewayResponse"), exports); +__exportStar(require("./CreateDhcpOptionsRequest"), exports); +__exportStar(require("./CreateDhcpOptionsResponse"), exports); +__exportStar(require("./CreateDirectLinkInterfaceRequest"), exports); +__exportStar(require("./CreateDirectLinkInterfaceResponse"), exports); +__exportStar(require("./CreateDirectLinkRequest"), exports); +__exportStar(require("./CreateDirectLinkResponse"), exports); +__exportStar(require("./CreateFlexibleGpuRequest"), exports); +__exportStar(require("./CreateFlexibleGpuResponse"), exports); +__exportStar(require("./CreateImageExportTaskRequest"), exports); +__exportStar(require("./CreateImageExportTaskResponse"), exports); +__exportStar(require("./CreateImageRequest"), exports); +__exportStar(require("./CreateImageResponse"), exports); +__exportStar(require("./CreateInternetServiceRequest"), exports); +__exportStar(require("./CreateInternetServiceResponse"), exports); +__exportStar(require("./CreateKeypairRequest"), exports); +__exportStar(require("./CreateKeypairResponse"), exports); +__exportStar(require("./CreateListenerRuleRequest"), exports); +__exportStar(require("./CreateListenerRuleResponse"), exports); +__exportStar(require("./CreateLoadBalancerListenersRequest"), exports); +__exportStar(require("./CreateLoadBalancerListenersResponse"), exports); +__exportStar(require("./CreateLoadBalancerPolicyRequest"), exports); +__exportStar(require("./CreateLoadBalancerPolicyResponse"), exports); +__exportStar(require("./CreateLoadBalancerRequest"), exports); +__exportStar(require("./CreateLoadBalancerResponse"), exports); +__exportStar(require("./CreateLoadBalancerTagsRequest"), exports); +__exportStar(require("./CreateLoadBalancerTagsResponse"), exports); +__exportStar(require("./CreateNatServiceRequest"), exports); +__exportStar(require("./CreateNatServiceResponse"), exports); +__exportStar(require("./CreateNetAccessPointRequest"), exports); +__exportStar(require("./CreateNetAccessPointResponse"), exports); +__exportStar(require("./CreateNetPeeringRequest"), exports); +__exportStar(require("./CreateNetPeeringResponse"), exports); +__exportStar(require("./CreateNetRequest"), exports); +__exportStar(require("./CreateNetResponse"), exports); +__exportStar(require("./CreateNicRequest"), exports); +__exportStar(require("./CreateNicResponse"), exports); +__exportStar(require("./CreatePublicIpRequest"), exports); +__exportStar(require("./CreatePublicIpResponse"), exports); +__exportStar(require("./CreateRouteRequest"), exports); +__exportStar(require("./CreateRouteResponse"), exports); +__exportStar(require("./CreateRouteTableRequest"), exports); +__exportStar(require("./CreateRouteTableResponse"), exports); +__exportStar(require("./CreateSecurityGroupRequest"), exports); +__exportStar(require("./CreateSecurityGroupResponse"), exports); +__exportStar(require("./CreateSecurityGroupRuleRequest"), exports); +__exportStar(require("./CreateSecurityGroupRuleResponse"), exports); +__exportStar(require("./CreateServerCertificateRequest"), exports); +__exportStar(require("./CreateServerCertificateResponse"), exports); +__exportStar(require("./CreateSnapshotExportTaskRequest"), exports); +__exportStar(require("./CreateSnapshotExportTaskResponse"), exports); +__exportStar(require("./CreateSnapshotRequest"), exports); +__exportStar(require("./CreateSnapshotResponse"), exports); +__exportStar(require("./CreateSubnetRequest"), exports); +__exportStar(require("./CreateSubnetResponse"), exports); +__exportStar(require("./CreateTagsRequest"), exports); +__exportStar(require("./CreateTagsResponse"), exports); +__exportStar(require("./CreateVirtualGatewayRequest"), exports); +__exportStar(require("./CreateVirtualGatewayResponse"), exports); +__exportStar(require("./CreateVmsRequest"), exports); +__exportStar(require("./CreateVmsResponse"), exports); +__exportStar(require("./CreateVolumeRequest"), exports); +__exportStar(require("./CreateVolumeResponse"), exports); +__exportStar(require("./CreateVpnConnectionRequest"), exports); +__exportStar(require("./CreateVpnConnectionResponse"), exports); +__exportStar(require("./CreateVpnConnectionRouteRequest"), exports); +__exportStar(require("./CreateVpnConnectionRouteResponse"), exports); +__exportStar(require("./DeleteAccessKeyRequest"), exports); +__exportStar(require("./DeleteAccessKeyResponse"), exports); +__exportStar(require("./DeleteApiAccessRuleRequest"), exports); +__exportStar(require("./DeleteApiAccessRuleResponse"), exports); +__exportStar(require("./DeleteCaRequest"), exports); +__exportStar(require("./DeleteCaResponse"), exports); +__exportStar(require("./DeleteClientGatewayRequest"), exports); +__exportStar(require("./DeleteClientGatewayResponse"), exports); +__exportStar(require("./DeleteDhcpOptionsRequest"), exports); +__exportStar(require("./DeleteDhcpOptionsResponse"), exports); +__exportStar(require("./DeleteDirectLinkInterfaceRequest"), exports); +__exportStar(require("./DeleteDirectLinkInterfaceResponse"), exports); +__exportStar(require("./DeleteDirectLinkRequest"), exports); +__exportStar(require("./DeleteDirectLinkResponse"), exports); +__exportStar(require("./DeleteExportTaskRequest"), exports); +__exportStar(require("./DeleteExportTaskResponse"), exports); +__exportStar(require("./DeleteFlexibleGpuRequest"), exports); +__exportStar(require("./DeleteFlexibleGpuResponse"), exports); +__exportStar(require("./DeleteImageRequest"), exports); +__exportStar(require("./DeleteImageResponse"), exports); +__exportStar(require("./DeleteInternetServiceRequest"), exports); +__exportStar(require("./DeleteInternetServiceResponse"), exports); +__exportStar(require("./DeleteKeypairRequest"), exports); +__exportStar(require("./DeleteKeypairResponse"), exports); +__exportStar(require("./DeleteListenerRuleRequest"), exports); +__exportStar(require("./DeleteListenerRuleResponse"), exports); +__exportStar(require("./DeleteLoadBalancerListenersRequest"), exports); +__exportStar(require("./DeleteLoadBalancerListenersResponse"), exports); +__exportStar(require("./DeleteLoadBalancerPolicyRequest"), exports); +__exportStar(require("./DeleteLoadBalancerPolicyResponse"), exports); +__exportStar(require("./DeleteLoadBalancerRequest"), exports); +__exportStar(require("./DeleteLoadBalancerResponse"), exports); +__exportStar(require("./DeleteLoadBalancerTagsRequest"), exports); +__exportStar(require("./DeleteLoadBalancerTagsResponse"), exports); +__exportStar(require("./DeleteNatServiceRequest"), exports); +__exportStar(require("./DeleteNatServiceResponse"), exports); +__exportStar(require("./DeleteNetAccessPointRequest"), exports); +__exportStar(require("./DeleteNetAccessPointResponse"), exports); +__exportStar(require("./DeleteNetPeeringRequest"), exports); +__exportStar(require("./DeleteNetPeeringResponse"), exports); +__exportStar(require("./DeleteNetRequest"), exports); +__exportStar(require("./DeleteNetResponse"), exports); +__exportStar(require("./DeleteNicRequest"), exports); +__exportStar(require("./DeleteNicResponse"), exports); +__exportStar(require("./DeletePublicIpRequest"), exports); +__exportStar(require("./DeletePublicIpResponse"), exports); +__exportStar(require("./DeleteRouteRequest"), exports); +__exportStar(require("./DeleteRouteResponse"), exports); +__exportStar(require("./DeleteRouteTableRequest"), exports); +__exportStar(require("./DeleteRouteTableResponse"), exports); +__exportStar(require("./DeleteSecurityGroupRequest"), exports); +__exportStar(require("./DeleteSecurityGroupResponse"), exports); +__exportStar(require("./DeleteSecurityGroupRuleRequest"), exports); +__exportStar(require("./DeleteSecurityGroupRuleResponse"), exports); +__exportStar(require("./DeleteServerCertificateRequest"), exports); +__exportStar(require("./DeleteServerCertificateResponse"), exports); +__exportStar(require("./DeleteSnapshotRequest"), exports); +__exportStar(require("./DeleteSnapshotResponse"), exports); +__exportStar(require("./DeleteSubnetRequest"), exports); +__exportStar(require("./DeleteSubnetResponse"), exports); +__exportStar(require("./DeleteTagsRequest"), exports); +__exportStar(require("./DeleteTagsResponse"), exports); +__exportStar(require("./DeleteVirtualGatewayRequest"), exports); +__exportStar(require("./DeleteVirtualGatewayResponse"), exports); +__exportStar(require("./DeleteVmsRequest"), exports); +__exportStar(require("./DeleteVmsResponse"), exports); +__exportStar(require("./DeleteVolumeRequest"), exports); +__exportStar(require("./DeleteVolumeResponse"), exports); +__exportStar(require("./DeleteVpnConnectionRequest"), exports); +__exportStar(require("./DeleteVpnConnectionResponse"), exports); +__exportStar(require("./DeleteVpnConnectionRouteRequest"), exports); +__exportStar(require("./DeleteVpnConnectionRouteResponse"), exports); +__exportStar(require("./DeregisterVmsInLoadBalancerRequest"), exports); +__exportStar(require("./DeregisterVmsInLoadBalancerResponse"), exports); +__exportStar(require("./DhcpOptionsSet"), exports); +__exportStar(require("./DirectLink"), exports); +__exportStar(require("./DirectLinkInterface"), exports); +__exportStar(require("./DirectLinkInterfaces"), exports); +__exportStar(require("./ErrorResponse"), exports); +__exportStar(require("./Errors"), exports); +__exportStar(require("./FiltersAccessKeys"), exports); +__exportStar(require("./FiltersApiAccessRule"), exports); +__exportStar(require("./FiltersApiLog"), exports); +__exportStar(require("./FiltersCa"), exports); +__exportStar(require("./FiltersClientGateway"), exports); +__exportStar(require("./FiltersDhcpOptions"), exports); +__exportStar(require("./FiltersDirectLink"), exports); +__exportStar(require("./FiltersDirectLinkInterface"), exports); +__exportStar(require("./FiltersExportTask"), exports); +__exportStar(require("./FiltersFlexibleGpu"), exports); +__exportStar(require("./FiltersImage"), exports); +__exportStar(require("./FiltersInternetService"), exports); +__exportStar(require("./FiltersKeypair"), exports); +__exportStar(require("./FiltersListenerRule"), exports); +__exportStar(require("./FiltersLoadBalancer"), exports); +__exportStar(require("./FiltersNatService"), exports); +__exportStar(require("./FiltersNet"), exports); +__exportStar(require("./FiltersNetAccessPoint"), exports); +__exportStar(require("./FiltersNetPeering"), exports); +__exportStar(require("./FiltersNic"), exports); +__exportStar(require("./FiltersProductType"), exports); +__exportStar(require("./FiltersPublicIp"), exports); +__exportStar(require("./FiltersQuota"), exports); +__exportStar(require("./FiltersRouteTable"), exports); +__exportStar(require("./FiltersSecurityGroup"), exports); +__exportStar(require("./FiltersServerCertificate"), exports); +__exportStar(require("./FiltersService"), exports); +__exportStar(require("./FiltersSnapshot"), exports); +__exportStar(require("./FiltersSubnet"), exports); +__exportStar(require("./FiltersSubregion"), exports); +__exportStar(require("./FiltersTag"), exports); +__exportStar(require("./FiltersVirtualGateway"), exports); +__exportStar(require("./FiltersVm"), exports); +__exportStar(require("./FiltersVmType"), exports); +__exportStar(require("./FiltersVmsState"), exports); +__exportStar(require("./FiltersVolume"), exports); +__exportStar(require("./FiltersVpnConnection"), exports); +__exportStar(require("./FlexibleGpu"), exports); +__exportStar(require("./FlexibleGpuCatalog"), exports); +__exportStar(require("./HealthCheck"), exports); +__exportStar(require("./Image"), exports); +__exportStar(require("./ImageExportTask"), exports); +__exportStar(require("./InternetService"), exports); +__exportStar(require("./Keypair"), exports); +__exportStar(require("./KeypairCreated"), exports); +__exportStar(require("./LinkFlexibleGpuRequest"), exports); +__exportStar(require("./LinkFlexibleGpuResponse"), exports); +__exportStar(require("./LinkInternetServiceRequest"), exports); +__exportStar(require("./LinkInternetServiceResponse"), exports); +__exportStar(require("./LinkLoadBalancerBackendMachinesRequest"), exports); +__exportStar(require("./LinkLoadBalancerBackendMachinesResponse"), exports); +__exportStar(require("./LinkNic"), exports); +__exportStar(require("./LinkNicLight"), exports); +__exportStar(require("./LinkNicRequest"), exports); +__exportStar(require("./LinkNicResponse"), exports); +__exportStar(require("./LinkNicToUpdate"), exports); +__exportStar(require("./LinkPrivateIpsRequest"), exports); +__exportStar(require("./LinkPrivateIpsResponse"), exports); +__exportStar(require("./LinkPublicIp"), exports); +__exportStar(require("./LinkPublicIpLightForVm"), exports); +__exportStar(require("./LinkPublicIpRequest"), exports); +__exportStar(require("./LinkPublicIpResponse"), exports); +__exportStar(require("./LinkRouteTable"), exports); +__exportStar(require("./LinkRouteTableRequest"), exports); +__exportStar(require("./LinkRouteTableResponse"), exports); +__exportStar(require("./LinkVirtualGatewayRequest"), exports); +__exportStar(require("./LinkVirtualGatewayResponse"), exports); +__exportStar(require("./LinkVolumeRequest"), exports); +__exportStar(require("./LinkVolumeResponse"), exports); +__exportStar(require("./LinkedVolume"), exports); +__exportStar(require("./Listener"), exports); +__exportStar(require("./ListenerForCreation"), exports); +__exportStar(require("./ListenerRule"), exports); +__exportStar(require("./ListenerRuleForCreation"), exports); +__exportStar(require("./LoadBalancer"), exports); +__exportStar(require("./LoadBalancerLight"), exports); +__exportStar(require("./LoadBalancerStickyCookiePolicy"), exports); +__exportStar(require("./LoadBalancerTag"), exports); +__exportStar(require("./Location"), exports); +__exportStar(require("./Log"), exports); +__exportStar(require("./MaintenanceEvent"), exports); +__exportStar(require("./ModelResponseContext"), exports); +__exportStar(require("./NatService"), exports); +__exportStar(require("./Net"), exports); +__exportStar(require("./NetAccessPoint"), exports); +__exportStar(require("./NetPeering"), exports); +__exportStar(require("./NetPeeringState"), exports); +__exportStar(require("./NetToVirtualGatewayLink"), exports); +__exportStar(require("./Nic"), exports); +__exportStar(require("./NicForVmCreation"), exports); +__exportStar(require("./NicLight"), exports); +__exportStar(require("./OsuApiKey"), exports); +__exportStar(require("./OsuExportImageExportTask"), exports); +__exportStar(require("./OsuExportSnapshotExportTask"), exports); +__exportStar(require("./OsuExportToCreate"), exports); +__exportStar(require("./PermissionsOnResource"), exports); +__exportStar(require("./PermissionsOnResourceCreation"), exports); +__exportStar(require("./Phase1Options"), exports); +__exportStar(require("./Phase2Options"), exports); +__exportStar(require("./Placement"), exports); +__exportStar(require("./PrivateIp"), exports); +__exportStar(require("./PrivateIpLight"), exports); +__exportStar(require("./PrivateIpLightForVm"), exports); +__exportStar(require("./ProductType"), exports); +__exportStar(require("./PublicIp"), exports); +__exportStar(require("./PublicIpLight"), exports); +__exportStar(require("./Quota"), exports); +__exportStar(require("./QuotaTypes"), exports); +__exportStar(require("./ReadAccessKeysRequest"), exports); +__exportStar(require("./ReadAccessKeysResponse"), exports); +__exportStar(require("./ReadAccountsRequest"), exports); +__exportStar(require("./ReadAccountsResponse"), exports); +__exportStar(require("./ReadAdminPasswordRequest"), exports); +__exportStar(require("./ReadAdminPasswordResponse"), exports); +__exportStar(require("./ReadApiAccessPolicyRequest"), exports); +__exportStar(require("./ReadApiAccessPolicyResponse"), exports); +__exportStar(require("./ReadApiAccessRulesRequest"), exports); +__exportStar(require("./ReadApiAccessRulesResponse"), exports); +__exportStar(require("./ReadApiLogsRequest"), exports); +__exportStar(require("./ReadApiLogsResponse"), exports); +__exportStar(require("./ReadCasRequest"), exports); +__exportStar(require("./ReadCasResponse"), exports); +__exportStar(require("./ReadCatalogRequest"), exports); +__exportStar(require("./ReadCatalogResponse"), exports); +__exportStar(require("./ReadClientGatewaysRequest"), exports); +__exportStar(require("./ReadClientGatewaysResponse"), exports); +__exportStar(require("./ReadConsoleOutputRequest"), exports); +__exportStar(require("./ReadConsoleOutputResponse"), exports); +__exportStar(require("./ReadConsumptionAccountRequest"), exports); +__exportStar(require("./ReadConsumptionAccountResponse"), exports); +__exportStar(require("./ReadDhcpOptionsRequest"), exports); +__exportStar(require("./ReadDhcpOptionsResponse"), exports); +__exportStar(require("./ReadDirectLinkInterfacesRequest"), exports); +__exportStar(require("./ReadDirectLinkInterfacesResponse"), exports); +__exportStar(require("./ReadDirectLinksRequest"), exports); +__exportStar(require("./ReadDirectLinksResponse"), exports); +__exportStar(require("./ReadFlexibleGpuCatalogRequest"), exports); +__exportStar(require("./ReadFlexibleGpuCatalogResponse"), exports); +__exportStar(require("./ReadFlexibleGpusRequest"), exports); +__exportStar(require("./ReadFlexibleGpusResponse"), exports); +__exportStar(require("./ReadImageExportTasksRequest"), exports); +__exportStar(require("./ReadImageExportTasksResponse"), exports); +__exportStar(require("./ReadImagesRequest"), exports); +__exportStar(require("./ReadImagesResponse"), exports); +__exportStar(require("./ReadInternetServicesRequest"), exports); +__exportStar(require("./ReadInternetServicesResponse"), exports); +__exportStar(require("./ReadKeypairsRequest"), exports); +__exportStar(require("./ReadKeypairsResponse"), exports); +__exportStar(require("./ReadListenerRulesRequest"), exports); +__exportStar(require("./ReadListenerRulesResponse"), exports); +__exportStar(require("./ReadLoadBalancerTagsRequest"), exports); +__exportStar(require("./ReadLoadBalancerTagsResponse"), exports); +__exportStar(require("./ReadLoadBalancersRequest"), exports); +__exportStar(require("./ReadLoadBalancersResponse"), exports); +__exportStar(require("./ReadLocationsRequest"), exports); +__exportStar(require("./ReadLocationsResponse"), exports); +__exportStar(require("./ReadNatServicesRequest"), exports); +__exportStar(require("./ReadNatServicesResponse"), exports); +__exportStar(require("./ReadNetAccessPointServicesRequest"), exports); +__exportStar(require("./ReadNetAccessPointServicesResponse"), exports); +__exportStar(require("./ReadNetAccessPointsRequest"), exports); +__exportStar(require("./ReadNetAccessPointsResponse"), exports); +__exportStar(require("./ReadNetPeeringsRequest"), exports); +__exportStar(require("./ReadNetPeeringsResponse"), exports); +__exportStar(require("./ReadNetsRequest"), exports); +__exportStar(require("./ReadNetsResponse"), exports); +__exportStar(require("./ReadNicsRequest"), exports); +__exportStar(require("./ReadNicsResponse"), exports); +__exportStar(require("./ReadProductTypesRequest"), exports); +__exportStar(require("./ReadProductTypesResponse"), exports); +__exportStar(require("./ReadPublicCatalogRequest"), exports); +__exportStar(require("./ReadPublicCatalogResponse"), exports); +__exportStar(require("./ReadPublicIpRangesRequest"), exports); +__exportStar(require("./ReadPublicIpRangesResponse"), exports); +__exportStar(require("./ReadPublicIpsRequest"), exports); +__exportStar(require("./ReadPublicIpsResponse"), exports); +__exportStar(require("./ReadQuotasRequest"), exports); +__exportStar(require("./ReadQuotasResponse"), exports); +__exportStar(require("./ReadRegionsRequest"), exports); +__exportStar(require("./ReadRegionsResponse"), exports); +__exportStar(require("./ReadRouteTablesRequest"), exports); +__exportStar(require("./ReadRouteTablesResponse"), exports); +__exportStar(require("./ReadSecretAccessKeyRequest"), exports); +__exportStar(require("./ReadSecretAccessKeyResponse"), exports); +__exportStar(require("./ReadSecurityGroupsRequest"), exports); +__exportStar(require("./ReadSecurityGroupsResponse"), exports); +__exportStar(require("./ReadServerCertificatesRequest"), exports); +__exportStar(require("./ReadServerCertificatesResponse"), exports); +__exportStar(require("./ReadSnapshotExportTasksRequest"), exports); +__exportStar(require("./ReadSnapshotExportTasksResponse"), exports); +__exportStar(require("./ReadSnapshotsRequest"), exports); +__exportStar(require("./ReadSnapshotsResponse"), exports); +__exportStar(require("./ReadSubnetsRequest"), exports); +__exportStar(require("./ReadSubnetsResponse"), exports); +__exportStar(require("./ReadSubregionsRequest"), exports); +__exportStar(require("./ReadSubregionsResponse"), exports); +__exportStar(require("./ReadTagsRequest"), exports); +__exportStar(require("./ReadTagsResponse"), exports); +__exportStar(require("./ReadVirtualGatewaysRequest"), exports); +__exportStar(require("./ReadVirtualGatewaysResponse"), exports); +__exportStar(require("./ReadVmTypesRequest"), exports); +__exportStar(require("./ReadVmTypesResponse"), exports); +__exportStar(require("./ReadVmsHealthRequest"), exports); +__exportStar(require("./ReadVmsHealthResponse"), exports); +__exportStar(require("./ReadVmsRequest"), exports); +__exportStar(require("./ReadVmsResponse"), exports); +__exportStar(require("./ReadVmsStateRequest"), exports); +__exportStar(require("./ReadVmsStateResponse"), exports); +__exportStar(require("./ReadVolumesRequest"), exports); +__exportStar(require("./ReadVolumesResponse"), exports); +__exportStar(require("./ReadVpnConnectionsRequest"), exports); +__exportStar(require("./ReadVpnConnectionsResponse"), exports); +__exportStar(require("./RebootVmsRequest"), exports); +__exportStar(require("./RebootVmsResponse"), exports); +__exportStar(require("./Region"), exports); +__exportStar(require("./RegisterVmsInLoadBalancerRequest"), exports); +__exportStar(require("./RegisterVmsInLoadBalancerResponse"), exports); +__exportStar(require("./RejectNetPeeringRequest"), exports); +__exportStar(require("./RejectNetPeeringResponse"), exports); +__exportStar(require("./ResetAccountPasswordRequest"), exports); +__exportStar(require("./ResetAccountPasswordResponse"), exports); +__exportStar(require("./ResourceLoadBalancerTag"), exports); +__exportStar(require("./ResourceTag"), exports); +__exportStar(require("./Route"), exports); +__exportStar(require("./RouteLight"), exports); +__exportStar(require("./RoutePropagatingVirtualGateway"), exports); +__exportStar(require("./RouteTable"), exports); +__exportStar(require("./SecurityGroup"), exports); +__exportStar(require("./SecurityGroupLight"), exports); +__exportStar(require("./SecurityGroupRule"), exports); +__exportStar(require("./SecurityGroupsMember"), exports); +__exportStar(require("./SendResetPasswordEmailRequest"), exports); +__exportStar(require("./SendResetPasswordEmailResponse"), exports); +__exportStar(require("./ServerCertificate"), exports); +__exportStar(require("./Service"), exports); +__exportStar(require("./Snapshot"), exports); +__exportStar(require("./SnapshotExportTask"), exports); +__exportStar(require("./SourceNet"), exports); +__exportStar(require("./SourceSecurityGroup"), exports); +__exportStar(require("./StartVmsRequest"), exports); +__exportStar(require("./StartVmsResponse"), exports); +__exportStar(require("./StateComment"), exports); +__exportStar(require("./StopVmsRequest"), exports); +__exportStar(require("./StopVmsResponse"), exports); +__exportStar(require("./Subnet"), exports); +__exportStar(require("./Subregion"), exports); +__exportStar(require("./Tag"), exports); +__exportStar(require("./UnlinkFlexibleGpuRequest"), exports); +__exportStar(require("./UnlinkFlexibleGpuResponse"), exports); +__exportStar(require("./UnlinkInternetServiceRequest"), exports); +__exportStar(require("./UnlinkInternetServiceResponse"), exports); +__exportStar(require("./UnlinkLoadBalancerBackendMachinesRequest"), exports); +__exportStar(require("./UnlinkLoadBalancerBackendMachinesResponse"), exports); +__exportStar(require("./UnlinkNicRequest"), exports); +__exportStar(require("./UnlinkNicResponse"), exports); +__exportStar(require("./UnlinkPrivateIpsRequest"), exports); +__exportStar(require("./UnlinkPrivateIpsResponse"), exports); +__exportStar(require("./UnlinkPublicIpRequest"), exports); +__exportStar(require("./UnlinkPublicIpResponse"), exports); +__exportStar(require("./UnlinkRouteTableRequest"), exports); +__exportStar(require("./UnlinkRouteTableResponse"), exports); +__exportStar(require("./UnlinkVirtualGatewayRequest"), exports); +__exportStar(require("./UnlinkVirtualGatewayResponse"), exports); +__exportStar(require("./UnlinkVolumeRequest"), exports); +__exportStar(require("./UnlinkVolumeResponse"), exports); +__exportStar(require("./UpdateAccessKeyRequest"), exports); +__exportStar(require("./UpdateAccessKeyResponse"), exports); +__exportStar(require("./UpdateAccountRequest"), exports); +__exportStar(require("./UpdateAccountResponse"), exports); +__exportStar(require("./UpdateApiAccessPolicyRequest"), exports); +__exportStar(require("./UpdateApiAccessPolicyResponse"), exports); +__exportStar(require("./UpdateApiAccessRuleRequest"), exports); +__exportStar(require("./UpdateApiAccessRuleResponse"), exports); +__exportStar(require("./UpdateCaRequest"), exports); +__exportStar(require("./UpdateCaResponse"), exports); +__exportStar(require("./UpdateFlexibleGpuRequest"), exports); +__exportStar(require("./UpdateFlexibleGpuResponse"), exports); +__exportStar(require("./UpdateImageRequest"), exports); +__exportStar(require("./UpdateImageResponse"), exports); +__exportStar(require("./UpdateListenerRuleRequest"), exports); +__exportStar(require("./UpdateListenerRuleResponse"), exports); +__exportStar(require("./UpdateLoadBalancerRequest"), exports); +__exportStar(require("./UpdateLoadBalancerResponse"), exports); +__exportStar(require("./UpdateNetAccessPointRequest"), exports); +__exportStar(require("./UpdateNetAccessPointResponse"), exports); +__exportStar(require("./UpdateNetRequest"), exports); +__exportStar(require("./UpdateNetResponse"), exports); +__exportStar(require("./UpdateNicRequest"), exports); +__exportStar(require("./UpdateNicResponse"), exports); +__exportStar(require("./UpdateRoutePropagationRequest"), exports); +__exportStar(require("./UpdateRoutePropagationResponse"), exports); +__exportStar(require("./UpdateRouteRequest"), exports); +__exportStar(require("./UpdateRouteResponse"), exports); +__exportStar(require("./UpdateServerCertificateRequest"), exports); +__exportStar(require("./UpdateServerCertificateResponse"), exports); +__exportStar(require("./UpdateSnapshotRequest"), exports); +__exportStar(require("./UpdateSnapshotResponse"), exports); +__exportStar(require("./UpdateSubnetRequest"), exports); +__exportStar(require("./UpdateSubnetResponse"), exports); +__exportStar(require("./UpdateVmRequest"), exports); +__exportStar(require("./UpdateVmResponse"), exports); +__exportStar(require("./UpdateVolumeRequest"), exports); +__exportStar(require("./UpdateVolumeResponse"), exports); +__exportStar(require("./UpdateVpnConnectionRequest"), exports); +__exportStar(require("./UpdateVpnConnectionResponse"), exports); +__exportStar(require("./VgwTelemetry"), exports); +__exportStar(require("./VirtualGateway"), exports); +__exportStar(require("./Vm"), exports); +__exportStar(require("./VmState"), exports); +__exportStar(require("./VmStates"), exports); +__exportStar(require("./VmType"), exports); +__exportStar(require("./Volume"), exports); +__exportStar(require("./VpnConnection"), exports); +__exportStar(require("./VpnOptions"), exports); +__exportStar(require("./With"), exports); diff --git a/dist/cjs/runtime.d.ts b/dist/cjs/runtime.d.ts new file mode 100644 index 00000000..a29f01fd --- /dev/null +++ b/dist/cjs/runtime.d.ts @@ -0,0 +1,173 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export declare const BASE_PATH: string; +export interface ConfigurationParameters { + basePath?: string; + fetchApi?: FetchAPI; + middleware?: Middleware[]; + queryParamsStringify?: (params: HTTPQuery) => string; + username?: string; + password?: string; + apiKey?: string | ((name: string) => string); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); + headers?: HTTPHeaders; + credentials?: RequestCredentials; + awsV4SignParameters?: AwsV4SignerParameters; +} +export interface AwsV4SignerParameters { + accessKeyId: string; + secretAccessKey: string; + region: string; + service?: string; +} +export declare class AwsV4Signer { + private configuration; + constructor(configuration: AwsV4SignerParameters); + sign(method: string, url: string, headers: HTTPHeaders, body: any): Promise<{ + url: URL; + headers: HTTPHeaders; + }>; +} +export declare class Configuration { + private configuration; + constructor(configuration?: ConfigurationParameters); + set config(configuration: Configuration); + get basePath(): string; + get fetchApi(): FetchAPI | undefined; + get middleware(): Middleware[]; + get queryParamsStringify(): (params: HTTPQuery) => string; + get username(): string | undefined; + get password(): string | undefined; + get apiKey(): ((name: string) => string) | undefined; + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; + get headers(): HTTPHeaders | undefined; + get credentials(): RequestCredentials | undefined; + get awsV4SignerParameters(): AwsV4SignerParameters | undefined; +} +export declare const DefaultConfig: Configuration; +/** + * This is the base class for all generated API classes. + */ +export declare class BaseAPI { + protected configuration: Configuration; + private middleware; + constructor(configuration?: Configuration); + withMiddleware(this: T, ...middlewares: Middleware[]): T; + withPreMiddleware(this: T, ...preMiddlewares: Array): T; + withPostMiddleware(this: T, ...postMiddlewares: Array): T; + protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverideFunction): Promise; + private createFetchParams; + private fetchApi; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone; +} +export declare class ResponseError extends Error { + response: Response; + name: "ResponseError"; + constructor(response: Response, msg?: string); +} +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export declare type Json = any; +export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export declare type HTTPHeaders = { + [key: string]: string; +}; +export declare type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | HTTPQuery; +}; +export declare type HTTPBody = Json | FormData | URLSearchParams; +export declare type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export declare type InitOverideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; +export interface FetchParams { + url: string; + init: RequestInit; +} +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} +export declare function exists(json: any, key: string): boolean; +export declare function querystring(params: HTTPQuery, prefix?: string): string; +export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function canConsumeForm(consumes: Consume[]): boolean; +export interface Consume { + contentType: string; +} +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; +} +export interface ApiResponse { + raw: Response; + value(): Promise; +} +export interface ResponseTransformer { + (json: any): T; +} +export declare class JSONApiResponse { + raw: Response; + private transformer; + constructor(raw: Response, transformer?: ResponseTransformer); + value(): Promise; +} +export declare class VoidApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class BlobApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class TextApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} diff --git a/dist/cjs/runtime.js b/dist/cjs/runtime.js new file mode 100644 index 00000000..5ce0f32e --- /dev/null +++ b/dist/cjs/runtime.js @@ -0,0 +1,316 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.AwsV4Signer = exports.BASE_PATH = void 0; +const aws4fetch_1 = require("aws4fetch"); +exports.BASE_PATH = "https://api.eu-west-2.outscale.com/api/v1".replace(/\/+$/, ""); +class AwsV4Signer { + constructor(configuration) { + this.configuration = configuration; + } + sign(method, url, headers, body) { + return __awaiter(this, void 0, void 0, function* () { + const signer = new aws4fetch_1.AwsV4Signer({ + method: method, + url: url, + headers: headers, + body: body, + accessKeyId: this.configuration.accessKeyId, + secretAccessKey: this.configuration.secretAccessKey, + service: this.configuration.service, + region: this.configuration.region, + }); + const signResult = yield signer.sign(); + // Convert Headers to HTTPHeaders + let newHeaders = {}; + for (const [key, value] of signResult.headers.entries()) { + newHeaders[key] = value; + } + return { url: signResult.url, headers: newHeaders }; + }); + } +} +exports.AwsV4Signer = AwsV4Signer; +class Configuration { + constructor(configuration = {}) { + this.configuration = configuration; + } + set config(configuration) { + this.configuration = configuration; + } + get basePath() { + return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH; + } + get fetchApi() { + return this.configuration.fetchApi; + } + get middleware() { + return this.configuration.middleware || []; + } + get queryParamsStringify() { + return this.configuration.queryParamsStringify || querystring; + } + get username() { + return this.configuration.username; + } + get password() { + return this.configuration.password; + } + get apiKey() { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + get accessToken() { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; }); + } + return undefined; + } + get headers() { + return this.configuration.headers; + } + get credentials() { + return this.configuration.credentials; + } + get awsV4SignerParameters() { + return this.configuration.awsV4SignParameters; + } +} +exports.Configuration = Configuration; +exports.DefaultConfig = new Configuration(); +/** + * This is the base class for all generated API classes. + */ +class BaseAPI { + constructor(configuration = exports.DefaultConfig) { + this.configuration = configuration; + this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams; + } + } + let response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + for (const middleware of this.middleware) { + if (middleware.post) { + response = (yield middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response; + } + } + return response; + }); + this.middleware = configuration.middleware; + } + withMiddleware(...middlewares) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + withPreMiddleware(...preMiddlewares) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + withPostMiddleware(...postMiddlewares) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + request(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const { url, init } = yield this.createFetchParams(context, initOverrides); + const response = yield this.fetchApi(url, init); + if (response.status >= 200 && response.status < 300) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + }); + } + createFetchParams(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const initOverrideFn = typeof initOverrides === "function" + ? initOverrides + : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; }); + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + const overridedInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({ + init: initParams, + context, + }))); + const init = Object.assign(Object.assign({}, overridedInit), { body: isFormData(overridedInit.body) || + overridedInit.body instanceof URLSearchParams || + isBlob(overridedInit.body) + ? overridedInit.body + : JSON.stringify(overridedInit.body) }); + return { url, init }; + }); + } + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + clone() { + const constructor = this.constructor; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} +exports.BaseAPI = BaseAPI; +; +function isBlob(value) { + return typeof Blob !== 'undefined' && value instanceof Blob; +} +function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; +} +class ResponseError extends Error { + constructor(response, msg) { + super(msg); + this.response = response; + this.name = "ResponseError"; + } +} +exports.ResponseError = ResponseError; +class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +exports.RequiredError = RequiredError; +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +function exists(json, key) { + const value = json[key]; + return value !== null && value !== undefined; +} +exports.exists = exists; +function querystring(params, prefix = '') { + return Object.keys(params) + .map((key) => { + const fullKey = prefix + (prefix.length ? `[${key}]` : key); + const value = params[key]; + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; + }) + .filter(part => part.length > 0) + .join('&'); +} +exports.querystring = querystring; +function mapValues(data, fn) { + return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {}); +} +exports.mapValues = mapValues; +function canConsumeForm(consumes) { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} +exports.canConsumeForm = canConsumeForm; +class JSONApiResponse { + constructor(raw, transformer = (jsonValue) => jsonValue) { + this.raw = raw; + this.transformer = transformer; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return this.transformer(yield this.raw.json()); + }); + } +} +exports.JSONApiResponse = JSONApiResponse; +class VoidApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return undefined; + }); + } +} +exports.VoidApiResponse = VoidApiResponse; +class BlobApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.blob(); + }); + } + ; +} +exports.BlobApiResponse = BlobApiResponse; +class TextApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.text(); + }); + } + ; +} +exports.TextApiResponse = TextApiResponse; diff --git a/dist/esm/apis/AccessKeyApi.d.ts b/dist/esm/apis/AccessKeyApi.d.ts new file mode 100644 index 00000000..3b233d2b --- /dev/null +++ b/dist/esm/apis/AccessKeyApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateAccessKeyRequest, CreateAccessKeyResponse, DeleteAccessKeyRequest, DeleteAccessKeyResponse, ReadAccessKeysRequest, ReadAccessKeysResponse, ReadSecretAccessKeyRequest, ReadSecretAccessKeyResponse, UpdateAccessKeyRequest, UpdateAccessKeyResponse } from '../models'; +export interface CreateAccessKeyOperationRequest { + createAccessKeyRequest?: CreateAccessKeyRequest; +} +export interface DeleteAccessKeyOperationRequest { + deleteAccessKeyRequest?: DeleteAccessKeyRequest; +} +export interface ReadAccessKeysOperationRequest { + readAccessKeysRequest?: ReadAccessKeysRequest; +} +export interface ReadSecretAccessKeyOperationRequest { + readSecretAccessKeyRequest?: ReadSecretAccessKeyRequest; +} +export interface UpdateAccessKeyOperationRequest { + updateAccessKeyRequest?: UpdateAccessKeyRequest; +} +/** + * AccessKeyApi - interface + * + * @export + * @interface AccessKeyApiInterface + */ +export interface AccessKeyApiInterface { + /** + * + * @param {CreateAccessKeyRequest} [createAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + createAccessKeyRaw(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccessKey(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteAccessKeyRequest} [deleteAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + deleteAccessKeyRaw(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteAccessKey(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadAccessKeysRequest} [readAccessKeysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + readAccessKeysRaw(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccessKeys(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSecretAccessKeyRequest} [readSecretAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + readSecretAccessKeyRaw(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecretAccessKey(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateAccessKeyRequest} [updateAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + updateAccessKeyRaw(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccessKey(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class AccessKeyApi extends runtime.BaseAPI implements AccessKeyApiInterface { + /** + */ + createAccessKeyRaw(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccessKey(requestParameters?: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteAccessKeyRaw(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteAccessKey(requestParameters?: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readAccessKeysRaw(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccessKeys(requestParameters?: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSecretAccessKeyRaw(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecretAccessKey(requestParameters?: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateAccessKeyRaw(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccessKey(requestParameters?: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/AccessKeyApi.js b/dist/esm/apis/AccessKeyApi.js new file mode 100644 index 00000000..0a0245bf --- /dev/null +++ b/dist/esm/apis/AccessKeyApi.js @@ -0,0 +1,239 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateAccessKeyRequestToJSON, CreateAccessKeyResponseFromJSON, DeleteAccessKeyRequestToJSON, DeleteAccessKeyResponseFromJSON, ReadAccessKeysRequestToJSON, ReadAccessKeysResponseFromJSON, ReadSecretAccessKeyRequestToJSON, ReadSecretAccessKeyResponseFromJSON, UpdateAccessKeyRequestToJSON, UpdateAccessKeyResponseFromJSON, } from '../models'; +/** + * + */ +export class AccessKeyApi extends runtime.BaseAPI { + /** + */ + createAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = CreateAccessKeyRequestToJSON(requestParameters.createAccessKeyRequest); + const request = { + path: `/CreateAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateAccessKeyResponseFromJSON(jsonValue)); + }); + } + /** + */ + createAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = DeleteAccessKeyRequestToJSON(requestParameters.deleteAccessKeyRequest); + const request = { + path: `/DeleteAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteAccessKeyResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readAccessKeysRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = ReadAccessKeysRequestToJSON(requestParameters.readAccessKeysRequest); + const request = { + path: `/ReadAccessKeys`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadAccessKeysResponseFromJSON(jsonValue)); + }); + } + /** + */ + readAccessKeys(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readAccessKeysRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSecretAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = ReadSecretAccessKeyRequestToJSON(requestParameters.readSecretAccessKeyRequest); + const request = { + path: `/ReadSecretAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSecretAccessKeyResponseFromJSON(jsonValue)); + }); + } + /** + */ + readSecretAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSecretAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateAccessKeyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = UpdateAccessKeyRequestToJSON(requestParameters.updateAccessKeyRequest); + const request = { + path: `/UpdateAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAccessKeyResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateAccessKey(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateAccessKeyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/AccountApi.d.ts b/dist/esm/apis/AccountApi.d.ts new file mode 100644 index 00000000..b62f629f --- /dev/null +++ b/dist/esm/apis/AccountApi.d.ts @@ -0,0 +1,166 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CheckAuthenticationRequest, CheckAuthenticationResponse, CreateAccountRequest, CreateAccountResponse, ReadAccountsRequest, ReadAccountsResponse, ReadConsumptionAccountRequest, ReadConsumptionAccountResponse, ResetAccountPasswordRequest, ResetAccountPasswordResponse, SendResetPasswordEmailRequest, SendResetPasswordEmailResponse, UpdateAccountRequest, UpdateAccountResponse } from '../models'; +export interface CheckAuthenticationOperationRequest { + checkAuthenticationRequest?: CheckAuthenticationRequest; +} +export interface CreateAccountOperationRequest { + createAccountRequest?: CreateAccountRequest; +} +export interface ReadAccountsOperationRequest { + readAccountsRequest?: ReadAccountsRequest; +} +export interface ReadConsumptionAccountOperationRequest { + readConsumptionAccountRequest?: ReadConsumptionAccountRequest; +} +export interface ResetAccountPasswordOperationRequest { + resetAccountPasswordRequest?: ResetAccountPasswordRequest; +} +export interface SendResetPasswordEmailOperationRequest { + sendResetPasswordEmailRequest?: SendResetPasswordEmailRequest; +} +export interface UpdateAccountOperationRequest { + updateAccountRequest?: UpdateAccountRequest; +} +/** + * AccountApi - interface + * + * @export + * @interface AccountApiInterface + */ +export interface AccountApiInterface { + /** + * + * @param {CheckAuthenticationRequest} [checkAuthenticationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + checkAuthenticationRaw(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + checkAuthentication(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateAccountRequest} [createAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccount(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadAccountsRequest} [readAccountsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + readAccountsRaw(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccounts(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadConsumptionAccountRequest} [readConsumptionAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + readConsumptionAccountRaw(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsumptionAccount(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ResetAccountPasswordRequest} [resetAccountPasswordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + resetAccountPasswordRaw(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + resetAccountPassword(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {SendResetPasswordEmailRequest} [sendResetPasswordEmailRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + sendResetPasswordEmailRaw(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + sendResetPasswordEmail(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateAccountRequest} [updateAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccount(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class AccountApi extends runtime.BaseAPI implements AccountApiInterface { + /** + */ + checkAuthenticationRaw(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + checkAuthentication(requestParameters?: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createAccount(requestParameters?: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readAccountsRaw(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAccounts(requestParameters?: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readConsumptionAccountRaw(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsumptionAccount(requestParameters?: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + resetAccountPasswordRaw(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + resetAccountPassword(requestParameters?: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + sendResetPasswordEmailRaw(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + sendResetPasswordEmail(requestParameters?: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateAccount(requestParameters?: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/AccountApi.js b/dist/esm/apis/AccountApi.js new file mode 100644 index 00000000..751e9340 --- /dev/null +++ b/dist/esm/apis/AccountApi.js @@ -0,0 +1,296 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CheckAuthenticationRequestToJSON, CheckAuthenticationResponseFromJSON, CreateAccountRequestToJSON, CreateAccountResponseFromJSON, ReadAccountsRequestToJSON, ReadAccountsResponseFromJSON, ReadConsumptionAccountRequestToJSON, ReadConsumptionAccountResponseFromJSON, ResetAccountPasswordRequestToJSON, ResetAccountPasswordResponseFromJSON, SendResetPasswordEmailRequestToJSON, SendResetPasswordEmailResponseFromJSON, UpdateAccountRequestToJSON, UpdateAccountResponseFromJSON, } from '../models'; +/** + * + */ +export class AccountApi extends runtime.BaseAPI { + /** + */ + checkAuthenticationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CheckAuthenticationRequestToJSON(requestParameters.checkAuthenticationRequest); + const request = { + path: `/CheckAuthentication`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CheckAuthenticationResponseFromJSON(jsonValue)); + }); + } + /** + */ + checkAuthentication(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.checkAuthenticationRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createAccountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateAccountRequestToJSON(requestParameters.createAccountRequest); + const request = { + path: `/CreateAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateAccountResponseFromJSON(jsonValue)); + }); + } + /** + */ + createAccount(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createAccountRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readAccountsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadAccountsRequestToJSON(requestParameters.readAccountsRequest); + const request = { + path: `/ReadAccounts`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadAccountsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readAccounts(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readAccountsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readConsumptionAccountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadConsumptionAccountRequestToJSON(requestParameters.readConsumptionAccountRequest); + const request = { + path: `/ReadConsumptionAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadConsumptionAccountResponseFromJSON(jsonValue)); + }); + } + /** + */ + readConsumptionAccount(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readConsumptionAccountRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + resetAccountPasswordRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ResetAccountPasswordRequestToJSON(requestParameters.resetAccountPasswordRequest); + const request = { + path: `/ResetAccountPassword`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ResetAccountPasswordResponseFromJSON(jsonValue)); + }); + } + /** + */ + resetAccountPassword(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.resetAccountPasswordRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + sendResetPasswordEmailRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = SendResetPasswordEmailRequestToJSON(requestParameters.sendResetPasswordEmailRequest); + const request = { + path: `/SendResetPasswordEmail`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SendResetPasswordEmailResponseFromJSON(jsonValue)); + }); + } + /** + */ + sendResetPasswordEmail(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sendResetPasswordEmailRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateAccountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateAccountRequestToJSON(requestParameters.updateAccountRequest); + const request = { + path: `/UpdateAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAccountResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateAccount(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateAccountRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ApiAccessPolicyApi.d.ts b/dist/esm/apis/ApiAccessPolicyApi.d.ts new file mode 100644 index 00000000..73a53932 --- /dev/null +++ b/dist/esm/apis/ApiAccessPolicyApi.d.ts @@ -0,0 +1,66 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadApiAccessPolicyRequest, ReadApiAccessPolicyResponse, UpdateApiAccessPolicyRequest, UpdateApiAccessPolicyResponse } from '../models'; +export interface ReadApiAccessPolicyOperationRequest { + readApiAccessPolicyRequest?: ReadApiAccessPolicyRequest; +} +export interface UpdateApiAccessPolicyOperationRequest { + updateApiAccessPolicyRequest?: UpdateApiAccessPolicyRequest; +} +/** + * ApiAccessPolicyApi - interface + * + * @export + * @interface ApiAccessPolicyApiInterface + */ +export interface ApiAccessPolicyApiInterface { + /** + * + * @param {ReadApiAccessPolicyRequest} [readApiAccessPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessPolicyApiInterface + */ + readApiAccessPolicyRaw(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessPolicy(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateApiAccessPolicyRequest} [updateApiAccessPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessPolicyApiInterface + */ + updateApiAccessPolicyRaw(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessPolicy(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ApiAccessPolicyApi extends runtime.BaseAPI implements ApiAccessPolicyApiInterface { + /** + */ + readApiAccessPolicyRaw(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessPolicy(requestParameters?: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateApiAccessPolicyRaw(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessPolicy(requestParameters?: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ApiAccessPolicyApi.js b/dist/esm/apis/ApiAccessPolicyApi.js new file mode 100644 index 00000000..13035419 --- /dev/null +++ b/dist/esm/apis/ApiAccessPolicyApi.js @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadApiAccessPolicyRequestToJSON, ReadApiAccessPolicyResponseFromJSON, UpdateApiAccessPolicyRequestToJSON, UpdateApiAccessPolicyResponseFromJSON, } from '../models'; +/** + * + */ +export class ApiAccessPolicyApi extends runtime.BaseAPI { + /** + */ + readApiAccessPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = ReadApiAccessPolicyRequestToJSON(requestParameters.readApiAccessPolicyRequest); + const request = { + path: `/ReadApiAccessPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadApiAccessPolicyResponseFromJSON(jsonValue)); + }); + } + /** + */ + readApiAccessPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readApiAccessPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateApiAccessPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = UpdateApiAccessPolicyRequestToJSON(requestParameters.updateApiAccessPolicyRequest); + const request = { + path: `/UpdateApiAccessPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateApiAccessPolicyResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateApiAccessPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateApiAccessPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ApiAccessRuleApi.d.ts b/dist/esm/apis/ApiAccessRuleApi.d.ts new file mode 100644 index 00000000..5e7e5742 --- /dev/null +++ b/dist/esm/apis/ApiAccessRuleApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateApiAccessRuleRequest, CreateApiAccessRuleResponse, DeleteApiAccessRuleRequest, DeleteApiAccessRuleResponse, ReadApiAccessRulesRequest, ReadApiAccessRulesResponse, UpdateApiAccessRuleRequest, UpdateApiAccessRuleResponse } from '../models'; +export interface CreateApiAccessRuleOperationRequest { + createApiAccessRuleRequest?: CreateApiAccessRuleRequest; +} +export interface DeleteApiAccessRuleOperationRequest { + deleteApiAccessRuleRequest?: DeleteApiAccessRuleRequest; +} +export interface ReadApiAccessRulesOperationRequest { + readApiAccessRulesRequest?: ReadApiAccessRulesRequest; +} +export interface UpdateApiAccessRuleOperationRequest { + updateApiAccessRuleRequest?: UpdateApiAccessRuleRequest; +} +/** + * ApiAccessRuleApi - interface + * + * @export + * @interface ApiAccessRuleApiInterface + */ +export interface ApiAccessRuleApiInterface { + /** + * + * @param {CreateApiAccessRuleRequest} [createApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + createApiAccessRuleRaw(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createApiAccessRule(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteApiAccessRuleRequest} [deleteApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + deleteApiAccessRuleRaw(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteApiAccessRule(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadApiAccessRulesRequest} [readApiAccessRulesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + readApiAccessRulesRaw(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessRules(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateApiAccessRuleRequest} [updateApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + updateApiAccessRuleRaw(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessRule(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ApiAccessRuleApi extends runtime.BaseAPI implements ApiAccessRuleApiInterface { + /** + */ + createApiAccessRuleRaw(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createApiAccessRule(requestParameters?: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteApiAccessRuleRaw(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteApiAccessRule(requestParameters?: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readApiAccessRulesRaw(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiAccessRules(requestParameters?: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateApiAccessRuleRaw(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateApiAccessRule(requestParameters?: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ApiAccessRuleApi.js b/dist/esm/apis/ApiAccessRuleApi.js new file mode 100644 index 00000000..e4760c3c --- /dev/null +++ b/dist/esm/apis/ApiAccessRuleApi.js @@ -0,0 +1,197 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateApiAccessRuleRequestToJSON, CreateApiAccessRuleResponseFromJSON, DeleteApiAccessRuleRequestToJSON, DeleteApiAccessRuleResponseFromJSON, ReadApiAccessRulesRequestToJSON, ReadApiAccessRulesResponseFromJSON, UpdateApiAccessRuleRequestToJSON, UpdateApiAccessRuleResponseFromJSON, } from '../models'; +/** + * + */ +export class ApiAccessRuleApi extends runtime.BaseAPI { + /** + */ + createApiAccessRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = CreateApiAccessRuleRequestToJSON(requestParameters.createApiAccessRuleRequest); + const request = { + path: `/CreateApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateApiAccessRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + createApiAccessRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createApiAccessRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteApiAccessRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = DeleteApiAccessRuleRequestToJSON(requestParameters.deleteApiAccessRuleRequest); + const request = { + path: `/DeleteApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteApiAccessRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteApiAccessRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteApiAccessRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readApiAccessRulesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = ReadApiAccessRulesRequestToJSON(requestParameters.readApiAccessRulesRequest); + const request = { + path: `/ReadApiAccessRules`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadApiAccessRulesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readApiAccessRules(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readApiAccessRulesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateApiAccessRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = UpdateApiAccessRuleRequestToJSON(requestParameters.updateApiAccessRuleRequest); + const request = { + path: `/UpdateApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateApiAccessRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateApiAccessRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateApiAccessRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ApiLogApi.d.ts b/dist/esm/apis/ApiLogApi.d.ts new file mode 100644 index 00000000..339d1d65 --- /dev/null +++ b/dist/esm/apis/ApiLogApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadApiLogsRequest, ReadApiLogsResponse } from '../models'; +export interface ReadApiLogsOperationRequest { + readApiLogsRequest?: ReadApiLogsRequest; +} +/** + * ApiLogApi - interface + * + * @export + * @interface ApiLogApiInterface + */ +export interface ApiLogApiInterface { + /** + * + * @param {ReadApiLogsRequest} [readApiLogsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiLogApiInterface + */ + readApiLogsRaw(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiLogs(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ApiLogApi extends runtime.BaseAPI implements ApiLogApiInterface { + /** + */ + readApiLogsRaw(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readApiLogs(requestParameters?: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ApiLogApi.js b/dist/esm/apis/ApiLogApi.js new file mode 100644 index 00000000..aa424c74 --- /dev/null +++ b/dist/esm/apis/ApiLogApi.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadApiLogsRequestToJSON, ReadApiLogsResponseFromJSON, } from '../models'; +/** + * + */ +export class ApiLogApi extends runtime.BaseAPI { + /** + */ + readApiLogsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadApiLogsRequestToJSON(requestParameters.readApiLogsRequest); + const request = { + path: `/ReadApiLogs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadApiLogsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readApiLogs(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readApiLogsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CaApi.d.ts b/dist/esm/apis/CaApi.d.ts new file mode 100644 index 00000000..abc71785 --- /dev/null +++ b/dist/esm/apis/CaApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateCaRequest, CreateCaResponse, DeleteCaRequest, DeleteCaResponse, ReadCasRequest, ReadCasResponse, UpdateCaRequest, UpdateCaResponse } from '../models'; +export interface CreateCaOperationRequest { + createCaRequest?: CreateCaRequest; +} +export interface DeleteCaOperationRequest { + deleteCaRequest?: DeleteCaRequest; +} +export interface ReadCasOperationRequest { + readCasRequest?: ReadCasRequest; +} +export interface UpdateCaOperationRequest { + updateCaRequest?: UpdateCaRequest; +} +/** + * CaApi - interface + * + * @export + * @interface CaApiInterface + */ +export interface CaApiInterface { + /** + * + * @param {CreateCaRequest} [createCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + createCaRaw(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createCa(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteCaRequest} [deleteCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + deleteCaRaw(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteCa(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadCasRequest} [readCasRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + readCasRaw(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCas(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateCaRequest} [updateCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + updateCaRaw(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateCa(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class CaApi extends runtime.BaseAPI implements CaApiInterface { + /** + */ + createCaRaw(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createCa(requestParameters?: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteCaRaw(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteCa(requestParameters?: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readCasRaw(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCas(requestParameters?: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateCaRaw(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateCa(requestParameters?: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/CaApi.js b/dist/esm/apis/CaApi.js new file mode 100644 index 00000000..a278b03c --- /dev/null +++ b/dist/esm/apis/CaApi.js @@ -0,0 +1,197 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateCaRequestToJSON, CreateCaResponseFromJSON, DeleteCaRequestToJSON, DeleteCaResponseFromJSON, ReadCasRequestToJSON, ReadCasResponseFromJSON, UpdateCaRequestToJSON, UpdateCaResponseFromJSON, } from '../models'; +/** + * + */ +export class CaApi extends runtime.BaseAPI { + /** + */ + createCaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = CreateCaRequestToJSON(requestParameters.createCaRequest); + const request = { + path: `/CreateCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateCaResponseFromJSON(jsonValue)); + }); + } + /** + */ + createCa(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createCaRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteCaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = DeleteCaRequestToJSON(requestParameters.deleteCaRequest); + const request = { + path: `/DeleteCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteCaResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteCa(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteCaRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readCasRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = ReadCasRequestToJSON(requestParameters.readCasRequest); + const request = { + path: `/ReadCas`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadCasResponseFromJSON(jsonValue)); + }); + } + /** + */ + readCas(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readCasRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateCaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + const body = UpdateCaRequestToJSON(requestParameters.updateCaRequest); + const request = { + path: `/UpdateCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateCaResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateCa(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateCaRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CatalogApi.d.ts b/dist/esm/apis/CatalogApi.d.ts new file mode 100644 index 00000000..ad7a4680 --- /dev/null +++ b/dist/esm/apis/CatalogApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadCatalogRequest, ReadCatalogResponse } from '../models'; +export interface ReadCatalogOperationRequest { + readCatalogRequest?: ReadCatalogRequest; +} +/** + * CatalogApi - interface + * + * @export + * @interface CatalogApiInterface + */ +export interface CatalogApiInterface { + /** + * + * @param {ReadCatalogRequest} [readCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CatalogApiInterface + */ + readCatalogRaw(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCatalog(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class CatalogApi extends runtime.BaseAPI implements CatalogApiInterface { + /** + */ + readCatalogRaw(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readCatalog(requestParameters?: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/CatalogApi.js b/dist/esm/apis/CatalogApi.js new file mode 100644 index 00000000..a4ae4144 --- /dev/null +++ b/dist/esm/apis/CatalogApi.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadCatalogRequestToJSON, ReadCatalogResponseFromJSON, } from '../models'; +/** + * + */ +export class CatalogApi extends runtime.BaseAPI { + /** + */ + readCatalogRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadCatalogRequestToJSON(requestParameters.readCatalogRequest); + const request = { + path: `/ReadCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadCatalogResponseFromJSON(jsonValue)); + }); + } + /** + */ + readCatalog(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readCatalogRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ClientGatewayApi.d.ts b/dist/esm/apis/ClientGatewayApi.d.ts new file mode 100644 index 00000000..77def004 --- /dev/null +++ b/dist/esm/apis/ClientGatewayApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateClientGatewayRequest, CreateClientGatewayResponse, DeleteClientGatewayRequest, DeleteClientGatewayResponse, ReadClientGatewaysRequest, ReadClientGatewaysResponse } from '../models'; +export interface CreateClientGatewayOperationRequest { + createClientGatewayRequest?: CreateClientGatewayRequest; +} +export interface DeleteClientGatewayOperationRequest { + deleteClientGatewayRequest?: DeleteClientGatewayRequest; +} +export interface ReadClientGatewaysOperationRequest { + readClientGatewaysRequest?: ReadClientGatewaysRequest; +} +/** + * ClientGatewayApi - interface + * + * @export + * @interface ClientGatewayApiInterface + */ +export interface ClientGatewayApiInterface { + /** + * + * @param {CreateClientGatewayRequest} [createClientGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + createClientGatewayRaw(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createClientGateway(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteClientGatewayRequest} [deleteClientGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + deleteClientGatewayRaw(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteClientGateway(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadClientGatewaysRequest} [readClientGatewaysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + readClientGatewaysRaw(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readClientGateways(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ClientGatewayApi extends runtime.BaseAPI implements ClientGatewayApiInterface { + /** + */ + createClientGatewayRaw(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createClientGateway(requestParameters?: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteClientGatewayRaw(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteClientGateway(requestParameters?: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readClientGatewaysRaw(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readClientGateways(requestParameters?: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ClientGatewayApi.js b/dist/esm/apis/ClientGatewayApi.js new file mode 100644 index 00000000..f1d843c9 --- /dev/null +++ b/dist/esm/apis/ClientGatewayApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateClientGatewayRequestToJSON, CreateClientGatewayResponseFromJSON, DeleteClientGatewayRequestToJSON, DeleteClientGatewayResponseFromJSON, ReadClientGatewaysRequestToJSON, ReadClientGatewaysResponseFromJSON, } from '../models'; +/** + * + */ +export class ClientGatewayApi extends runtime.BaseAPI { + /** + */ + createClientGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateClientGatewayRequestToJSON(requestParameters.createClientGatewayRequest); + const request = { + path: `/CreateClientGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateClientGatewayResponseFromJSON(jsonValue)); + }); + } + /** + */ + createClientGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createClientGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteClientGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteClientGatewayRequestToJSON(requestParameters.deleteClientGatewayRequest); + const request = { + path: `/DeleteClientGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteClientGatewayResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteClientGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteClientGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readClientGatewaysRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadClientGatewaysRequestToJSON(requestParameters.readClientGatewaysRequest); + const request = { + path: `/ReadClientGateways`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadClientGatewaysResponseFromJSON(jsonValue)); + }); + } + /** + */ + readClientGateways(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readClientGatewaysRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DhcpOptionApi.d.ts b/dist/esm/apis/DhcpOptionApi.d.ts new file mode 100644 index 00000000..821d5631 --- /dev/null +++ b/dist/esm/apis/DhcpOptionApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateDhcpOptionsRequest, CreateDhcpOptionsResponse, DeleteDhcpOptionsRequest, DeleteDhcpOptionsResponse, ReadDhcpOptionsRequest, ReadDhcpOptionsResponse } from '../models'; +export interface CreateDhcpOptionsOperationRequest { + createDhcpOptionsRequest?: CreateDhcpOptionsRequest; +} +export interface DeleteDhcpOptionsOperationRequest { + deleteDhcpOptionsRequest?: DeleteDhcpOptionsRequest; +} +export interface ReadDhcpOptionsOperationRequest { + readDhcpOptionsRequest?: ReadDhcpOptionsRequest; +} +/** + * DhcpOptionApi - interface + * + * @export + * @interface DhcpOptionApiInterface + */ +export interface DhcpOptionApiInterface { + /** + * + * @param {CreateDhcpOptionsRequest} [createDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + createDhcpOptionsRaw(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDhcpOptions(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteDhcpOptionsRequest} [deleteDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + deleteDhcpOptionsRaw(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDhcpOptions(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadDhcpOptionsRequest} [readDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + readDhcpOptionsRaw(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDhcpOptions(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class DhcpOptionApi extends runtime.BaseAPI implements DhcpOptionApiInterface { + /** + */ + createDhcpOptionsRaw(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDhcpOptions(requestParameters?: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteDhcpOptionsRaw(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDhcpOptions(requestParameters?: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readDhcpOptionsRaw(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDhcpOptions(requestParameters?: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/DhcpOptionApi.js b/dist/esm/apis/DhcpOptionApi.js new file mode 100644 index 00000000..d2ebab67 --- /dev/null +++ b/dist/esm/apis/DhcpOptionApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateDhcpOptionsRequestToJSON, CreateDhcpOptionsResponseFromJSON, DeleteDhcpOptionsRequestToJSON, DeleteDhcpOptionsResponseFromJSON, ReadDhcpOptionsRequestToJSON, ReadDhcpOptionsResponseFromJSON, } from '../models'; +/** + * + */ +export class DhcpOptionApi extends runtime.BaseAPI { + /** + */ + createDhcpOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateDhcpOptionsRequestToJSON(requestParameters.createDhcpOptionsRequest); + const request = { + path: `/CreateDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDhcpOptionsResponseFromJSON(jsonValue)); + }); + } + /** + */ + createDhcpOptions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createDhcpOptionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteDhcpOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteDhcpOptionsRequestToJSON(requestParameters.deleteDhcpOptionsRequest); + const request = { + path: `/DeleteDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDhcpOptionsResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteDhcpOptions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteDhcpOptionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readDhcpOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadDhcpOptionsRequestToJSON(requestParameters.readDhcpOptionsRequest); + const request = { + path: `/ReadDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadDhcpOptionsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readDhcpOptions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readDhcpOptionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DirectLinkApi.d.ts b/dist/esm/apis/DirectLinkApi.d.ts new file mode 100644 index 00000000..39325740 --- /dev/null +++ b/dist/esm/apis/DirectLinkApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateDirectLinkRequest, CreateDirectLinkResponse, DeleteDirectLinkRequest, DeleteDirectLinkResponse, ReadDirectLinksRequest, ReadDirectLinksResponse } from '../models'; +export interface CreateDirectLinkOperationRequest { + createDirectLinkRequest?: CreateDirectLinkRequest; +} +export interface DeleteDirectLinkOperationRequest { + deleteDirectLinkRequest?: DeleteDirectLinkRequest; +} +export interface ReadDirectLinksOperationRequest { + readDirectLinksRequest?: ReadDirectLinksRequest; +} +/** + * DirectLinkApi - interface + * + * @export + * @interface DirectLinkApiInterface + */ +export interface DirectLinkApiInterface { + /** + * + * @param {CreateDirectLinkRequest} [createDirectLinkRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + createDirectLinkRaw(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLink(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteDirectLinkRequest} [deleteDirectLinkRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + deleteDirectLinkRaw(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLink(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadDirectLinksRequest} [readDirectLinksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + readDirectLinksRaw(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinks(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class DirectLinkApi extends runtime.BaseAPI implements DirectLinkApiInterface { + /** + */ + createDirectLinkRaw(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLink(requestParameters?: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteDirectLinkRaw(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLink(requestParameters?: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readDirectLinksRaw(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinks(requestParameters?: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/DirectLinkApi.js b/dist/esm/apis/DirectLinkApi.js new file mode 100644 index 00000000..9240ec30 --- /dev/null +++ b/dist/esm/apis/DirectLinkApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateDirectLinkRequestToJSON, CreateDirectLinkResponseFromJSON, DeleteDirectLinkRequestToJSON, DeleteDirectLinkResponseFromJSON, ReadDirectLinksRequestToJSON, ReadDirectLinksResponseFromJSON, } from '../models'; +/** + * + */ +export class DirectLinkApi extends runtime.BaseAPI { + /** + */ + createDirectLinkRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateDirectLinkRequestToJSON(requestParameters.createDirectLinkRequest); + const request = { + path: `/CreateDirectLink`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDirectLinkResponseFromJSON(jsonValue)); + }); + } + /** + */ + createDirectLink(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createDirectLinkRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteDirectLinkRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteDirectLinkRequestToJSON(requestParameters.deleteDirectLinkRequest); + const request = { + path: `/DeleteDirectLink`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDirectLinkResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteDirectLink(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteDirectLinkRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readDirectLinksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadDirectLinksRequestToJSON(requestParameters.readDirectLinksRequest); + const request = { + path: `/ReadDirectLinks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadDirectLinksResponseFromJSON(jsonValue)); + }); + } + /** + */ + readDirectLinks(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readDirectLinksRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DirectLinkInterfaceApi.d.ts b/dist/esm/apis/DirectLinkInterfaceApi.d.ts new file mode 100644 index 00000000..d777c776 --- /dev/null +++ b/dist/esm/apis/DirectLinkInterfaceApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateDirectLinkInterfaceRequest, CreateDirectLinkInterfaceResponse, DeleteDirectLinkInterfaceRequest, DeleteDirectLinkInterfaceResponse, ReadDirectLinkInterfacesRequest, ReadDirectLinkInterfacesResponse } from '../models'; +export interface CreateDirectLinkInterfaceOperationRequest { + createDirectLinkInterfaceRequest?: CreateDirectLinkInterfaceRequest; +} +export interface DeleteDirectLinkInterfaceOperationRequest { + deleteDirectLinkInterfaceRequest?: DeleteDirectLinkInterfaceRequest; +} +export interface ReadDirectLinkInterfacesOperationRequest { + readDirectLinkInterfacesRequest?: ReadDirectLinkInterfacesRequest; +} +/** + * DirectLinkInterfaceApi - interface + * + * @export + * @interface DirectLinkInterfaceApiInterface + */ +export interface DirectLinkInterfaceApiInterface { + /** + * + * @param {CreateDirectLinkInterfaceRequest} [createDirectLinkInterfaceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + createDirectLinkInterfaceRaw(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLinkInterface(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteDirectLinkInterfaceRequest} [deleteDirectLinkInterfaceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + deleteDirectLinkInterfaceRaw(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLinkInterface(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadDirectLinkInterfacesRequest} [readDirectLinkInterfacesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + readDirectLinkInterfacesRaw(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinkInterfaces(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class DirectLinkInterfaceApi extends runtime.BaseAPI implements DirectLinkInterfaceApiInterface { + /** + */ + createDirectLinkInterfaceRaw(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createDirectLinkInterface(requestParameters?: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteDirectLinkInterfaceRaw(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteDirectLinkInterface(requestParameters?: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readDirectLinkInterfacesRaw(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readDirectLinkInterfaces(requestParameters?: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/DirectLinkInterfaceApi.js b/dist/esm/apis/DirectLinkInterfaceApi.js new file mode 100644 index 00000000..fab0522b --- /dev/null +++ b/dist/esm/apis/DirectLinkInterfaceApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateDirectLinkInterfaceRequestToJSON, CreateDirectLinkInterfaceResponseFromJSON, DeleteDirectLinkInterfaceRequestToJSON, DeleteDirectLinkInterfaceResponseFromJSON, ReadDirectLinkInterfacesRequestToJSON, ReadDirectLinkInterfacesResponseFromJSON, } from '../models'; +/** + * + */ +export class DirectLinkInterfaceApi extends runtime.BaseAPI { + /** + */ + createDirectLinkInterfaceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateDirectLinkInterfaceRequestToJSON(requestParameters.createDirectLinkInterfaceRequest); + const request = { + path: `/CreateDirectLinkInterface`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDirectLinkInterfaceResponseFromJSON(jsonValue)); + }); + } + /** + */ + createDirectLinkInterface(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createDirectLinkInterfaceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteDirectLinkInterfaceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteDirectLinkInterfaceRequestToJSON(requestParameters.deleteDirectLinkInterfaceRequest); + const request = { + path: `/DeleteDirectLinkInterface`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDirectLinkInterfaceResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteDirectLinkInterface(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteDirectLinkInterfaceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readDirectLinkInterfacesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadDirectLinkInterfacesRequestToJSON(requestParameters.readDirectLinkInterfacesRequest); + const request = { + path: `/ReadDirectLinkInterfaces`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadDirectLinkInterfacesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readDirectLinkInterfaces(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readDirectLinkInterfacesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FlexibleGpuApi.d.ts b/dist/esm/apis/FlexibleGpuApi.d.ts new file mode 100644 index 00000000..0dbc8867 --- /dev/null +++ b/dist/esm/apis/FlexibleGpuApi.d.ts @@ -0,0 +1,166 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateFlexibleGpuRequest, CreateFlexibleGpuResponse, DeleteFlexibleGpuRequest, DeleteFlexibleGpuResponse, LinkFlexibleGpuRequest, LinkFlexibleGpuResponse, ReadFlexibleGpuCatalogRequest, ReadFlexibleGpuCatalogResponse, ReadFlexibleGpusRequest, ReadFlexibleGpusResponse, UnlinkFlexibleGpuRequest, UnlinkFlexibleGpuResponse, UpdateFlexibleGpuRequest, UpdateFlexibleGpuResponse } from '../models'; +export interface CreateFlexibleGpuOperationRequest { + createFlexibleGpuRequest?: CreateFlexibleGpuRequest; +} +export interface DeleteFlexibleGpuOperationRequest { + deleteFlexibleGpuRequest?: DeleteFlexibleGpuRequest; +} +export interface LinkFlexibleGpuOperationRequest { + linkFlexibleGpuRequest?: LinkFlexibleGpuRequest; +} +export interface ReadFlexibleGpuCatalogOperationRequest { + readFlexibleGpuCatalogRequest?: ReadFlexibleGpuCatalogRequest; +} +export interface ReadFlexibleGpusOperationRequest { + readFlexibleGpusRequest?: ReadFlexibleGpusRequest; +} +export interface UnlinkFlexibleGpuOperationRequest { + unlinkFlexibleGpuRequest?: UnlinkFlexibleGpuRequest; +} +export interface UpdateFlexibleGpuOperationRequest { + updateFlexibleGpuRequest?: UpdateFlexibleGpuRequest; +} +/** + * FlexibleGpuApi - interface + * + * @export + * @interface FlexibleGpuApiInterface + */ +export interface FlexibleGpuApiInterface { + /** + * + * @param {CreateFlexibleGpuRequest} [createFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + createFlexibleGpuRaw(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createFlexibleGpu(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteFlexibleGpuRequest} [deleteFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + deleteFlexibleGpuRaw(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteFlexibleGpu(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkFlexibleGpuRequest} [linkFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + linkFlexibleGpuRaw(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkFlexibleGpu(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadFlexibleGpuCatalogRequest} [readFlexibleGpuCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + readFlexibleGpuCatalogRaw(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpuCatalog(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadFlexibleGpusRequest} [readFlexibleGpusRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + readFlexibleGpusRaw(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpus(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkFlexibleGpuRequest} [unlinkFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + unlinkFlexibleGpuRaw(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkFlexibleGpu(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateFlexibleGpuRequest} [updateFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + updateFlexibleGpuRaw(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateFlexibleGpu(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class FlexibleGpuApi extends runtime.BaseAPI implements FlexibleGpuApiInterface { + /** + */ + createFlexibleGpuRaw(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createFlexibleGpu(requestParameters?: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteFlexibleGpuRaw(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteFlexibleGpu(requestParameters?: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkFlexibleGpuRaw(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkFlexibleGpu(requestParameters?: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readFlexibleGpuCatalogRaw(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpuCatalog(requestParameters?: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readFlexibleGpusRaw(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readFlexibleGpus(requestParameters?: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkFlexibleGpuRaw(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkFlexibleGpu(requestParameters?: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateFlexibleGpuRaw(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateFlexibleGpu(requestParameters?: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/FlexibleGpuApi.js b/dist/esm/apis/FlexibleGpuApi.js new file mode 100644 index 00000000..275667ee --- /dev/null +++ b/dist/esm/apis/FlexibleGpuApi.js @@ -0,0 +1,299 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateFlexibleGpuRequestToJSON, CreateFlexibleGpuResponseFromJSON, DeleteFlexibleGpuRequestToJSON, DeleteFlexibleGpuResponseFromJSON, LinkFlexibleGpuRequestToJSON, LinkFlexibleGpuResponseFromJSON, ReadFlexibleGpuCatalogRequestToJSON, ReadFlexibleGpuCatalogResponseFromJSON, ReadFlexibleGpusRequestToJSON, ReadFlexibleGpusResponseFromJSON, UnlinkFlexibleGpuRequestToJSON, UnlinkFlexibleGpuResponseFromJSON, UpdateFlexibleGpuRequestToJSON, UpdateFlexibleGpuResponseFromJSON, } from '../models'; +/** + * + */ +export class FlexibleGpuApi extends runtime.BaseAPI { + /** + */ + createFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateFlexibleGpuRequestToJSON(requestParameters.createFlexibleGpuRequest); + const request = { + path: `/CreateFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateFlexibleGpuResponseFromJSON(jsonValue)); + }); + } + /** + */ + createFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteFlexibleGpuRequestToJSON(requestParameters.deleteFlexibleGpuRequest); + const request = { + path: `/DeleteFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteFlexibleGpuResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkFlexibleGpuRequestToJSON(requestParameters.linkFlexibleGpuRequest); + const request = { + path: `/LinkFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkFlexibleGpuResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readFlexibleGpuCatalogRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadFlexibleGpuCatalogRequestToJSON(requestParameters.readFlexibleGpuCatalogRequest); + const request = { + path: `/ReadFlexibleGpuCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadFlexibleGpuCatalogResponseFromJSON(jsonValue)); + }); + } + /** + */ + readFlexibleGpuCatalog(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readFlexibleGpuCatalogRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readFlexibleGpusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadFlexibleGpusRequestToJSON(requestParameters.readFlexibleGpusRequest); + const request = { + path: `/ReadFlexibleGpus`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadFlexibleGpusResponseFromJSON(jsonValue)); + }); + } + /** + */ + readFlexibleGpus(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readFlexibleGpusRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkFlexibleGpuRequestToJSON(requestParameters.unlinkFlexibleGpuRequest); + const request = { + path: `/UnlinkFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkFlexibleGpuResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateFlexibleGpuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateFlexibleGpuRequestToJSON(requestParameters.updateFlexibleGpuRequest); + const request = { + path: `/UpdateFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateFlexibleGpuResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateFlexibleGpu(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateFlexibleGpuRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ImageApi.d.ts b/dist/esm/apis/ImageApi.d.ts new file mode 100644 index 00000000..a41e755d --- /dev/null +++ b/dist/esm/apis/ImageApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateImageExportTaskRequest, CreateImageExportTaskResponse, CreateImageRequest, CreateImageResponse, DeleteImageRequest, DeleteImageResponse, ReadImageExportTasksRequest, ReadImageExportTasksResponse, ReadImagesRequest, ReadImagesResponse, UpdateImageRequest, UpdateImageResponse } from '../models'; +export interface CreateImageOperationRequest { + createImageRequest?: CreateImageRequest; +} +export interface CreateImageExportTaskOperationRequest { + createImageExportTaskRequest?: CreateImageExportTaskRequest; +} +export interface DeleteImageOperationRequest { + deleteImageRequest?: DeleteImageRequest; +} +export interface ReadImageExportTasksOperationRequest { + readImageExportTasksRequest?: ReadImageExportTasksRequest; +} +export interface ReadImagesOperationRequest { + readImagesRequest?: ReadImagesRequest; +} +export interface UpdateImageOperationRequest { + updateImageRequest?: UpdateImageRequest; +} +/** + * ImageApi - interface + * + * @export + * @interface ImageApiInterface + */ +export interface ImageApiInterface { + /** + * + * @param {CreateImageRequest} [createImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + createImageRaw(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImage(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateImageExportTaskRequest} [createImageExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + createImageExportTaskRaw(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImageExportTask(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteImageRequest} [deleteImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + deleteImageRaw(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteImage(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadImageExportTasksRequest} [readImageExportTasksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + readImageExportTasksRaw(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImageExportTasks(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadImagesRequest} [readImagesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + readImagesRaw(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImages(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateImageRequest} [updateImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + updateImageRaw(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateImage(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterface { + /** + */ + createImageRaw(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImage(requestParameters?: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createImageExportTaskRaw(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createImageExportTask(requestParameters?: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteImageRaw(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteImage(requestParameters?: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readImageExportTasksRaw(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImageExportTasks(requestParameters?: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readImagesRaw(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readImages(requestParameters?: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateImageRaw(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateImage(requestParameters?: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ImageApi.js b/dist/esm/apis/ImageApi.js new file mode 100644 index 00000000..659aa80d --- /dev/null +++ b/dist/esm/apis/ImageApi.js @@ -0,0 +1,263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateImageExportTaskRequestToJSON, CreateImageExportTaskResponseFromJSON, CreateImageRequestToJSON, CreateImageResponseFromJSON, DeleteImageRequestToJSON, DeleteImageResponseFromJSON, ReadImageExportTasksRequestToJSON, ReadImageExportTasksResponseFromJSON, ReadImagesRequestToJSON, ReadImagesResponseFromJSON, UpdateImageRequestToJSON, UpdateImageResponseFromJSON, } from '../models'; +/** + * + */ +export class ImageApi extends runtime.BaseAPI { + /** + */ + createImageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateImageRequestToJSON(requestParameters.createImageRequest); + const request = { + path: `/CreateImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateImageResponseFromJSON(jsonValue)); + }); + } + /** + */ + createImage(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createImageRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createImageExportTaskRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateImageExportTaskRequestToJSON(requestParameters.createImageExportTaskRequest); + const request = { + path: `/CreateImageExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateImageExportTaskResponseFromJSON(jsonValue)); + }); + } + /** + */ + createImageExportTask(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createImageExportTaskRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteImageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteImageRequestToJSON(requestParameters.deleteImageRequest); + const request = { + path: `/DeleteImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteImageResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteImage(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteImageRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readImageExportTasksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadImageExportTasksRequestToJSON(requestParameters.readImageExportTasksRequest); + const request = { + path: `/ReadImageExportTasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadImageExportTasksResponseFromJSON(jsonValue)); + }); + } + /** + */ + readImageExportTasks(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readImageExportTasksRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readImagesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadImagesRequestToJSON(requestParameters.readImagesRequest); + const request = { + path: `/ReadImages`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadImagesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readImages(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readImagesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateImageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateImageRequestToJSON(requestParameters.updateImageRequest); + const request = { + path: `/UpdateImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateImageResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateImage(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateImageRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/InternetServiceApi.d.ts b/dist/esm/apis/InternetServiceApi.d.ts new file mode 100644 index 00000000..9b6ab1ce --- /dev/null +++ b/dist/esm/apis/InternetServiceApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateInternetServiceRequest, CreateInternetServiceResponse, DeleteInternetServiceRequest, DeleteInternetServiceResponse, LinkInternetServiceRequest, LinkInternetServiceResponse, ReadInternetServicesRequest, ReadInternetServicesResponse, UnlinkInternetServiceRequest, UnlinkInternetServiceResponse } from '../models'; +export interface CreateInternetServiceOperationRequest { + createInternetServiceRequest?: CreateInternetServiceRequest; +} +export interface DeleteInternetServiceOperationRequest { + deleteInternetServiceRequest?: DeleteInternetServiceRequest; +} +export interface LinkInternetServiceOperationRequest { + linkInternetServiceRequest?: LinkInternetServiceRequest; +} +export interface ReadInternetServicesOperationRequest { + readInternetServicesRequest?: ReadInternetServicesRequest; +} +export interface UnlinkInternetServiceOperationRequest { + unlinkInternetServiceRequest?: UnlinkInternetServiceRequest; +} +/** + * InternetServiceApi - interface + * + * @export + * @interface InternetServiceApiInterface + */ +export interface InternetServiceApiInterface { + /** + * + * @param {CreateInternetServiceRequest} [createInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + createInternetServiceRaw(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createInternetService(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteInternetServiceRequest} [deleteInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + deleteInternetServiceRaw(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteInternetService(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkInternetServiceRequest} [linkInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + linkInternetServiceRaw(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkInternetService(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadInternetServicesRequest} [readInternetServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + readInternetServicesRaw(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readInternetServices(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkInternetServiceRequest} [unlinkInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + unlinkInternetServiceRaw(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkInternetService(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class InternetServiceApi extends runtime.BaseAPI implements InternetServiceApiInterface { + /** + */ + createInternetServiceRaw(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createInternetService(requestParameters?: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteInternetServiceRaw(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteInternetService(requestParameters?: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkInternetServiceRaw(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkInternetService(requestParameters?: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readInternetServicesRaw(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readInternetServices(requestParameters?: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkInternetServiceRaw(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkInternetService(requestParameters?: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/InternetServiceApi.js b/dist/esm/apis/InternetServiceApi.js new file mode 100644 index 00000000..aa6a7bcb --- /dev/null +++ b/dist/esm/apis/InternetServiceApi.js @@ -0,0 +1,224 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateInternetServiceRequestToJSON, CreateInternetServiceResponseFromJSON, DeleteInternetServiceRequestToJSON, DeleteInternetServiceResponseFromJSON, LinkInternetServiceRequestToJSON, LinkInternetServiceResponseFromJSON, ReadInternetServicesRequestToJSON, ReadInternetServicesResponseFromJSON, UnlinkInternetServiceRequestToJSON, UnlinkInternetServiceResponseFromJSON, } from '../models'; +/** + * + */ +export class InternetServiceApi extends runtime.BaseAPI { + /** + */ + createInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateInternetServiceRequestToJSON(requestParameters.createInternetServiceRequest); + const request = { + path: `/CreateInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateInternetServiceResponseFromJSON(jsonValue)); + }); + } + /** + */ + createInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteInternetServiceRequestToJSON(requestParameters.deleteInternetServiceRequest); + const request = { + path: `/DeleteInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteInternetServiceResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkInternetServiceRequestToJSON(requestParameters.linkInternetServiceRequest); + const request = { + path: `/LinkInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkInternetServiceResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readInternetServicesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadInternetServicesRequestToJSON(requestParameters.readInternetServicesRequest); + const request = { + path: `/ReadInternetServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadInternetServicesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readInternetServices(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readInternetServicesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkInternetServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkInternetServiceRequestToJSON(requestParameters.unlinkInternetServiceRequest); + const request = { + path: `/UnlinkInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkInternetServiceResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkInternetService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkInternetServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/KeypairApi.d.ts b/dist/esm/apis/KeypairApi.d.ts new file mode 100644 index 00000000..41edec4a --- /dev/null +++ b/dist/esm/apis/KeypairApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateKeypairRequest, CreateKeypairResponse, DeleteKeypairRequest, DeleteKeypairResponse, ReadKeypairsRequest, ReadKeypairsResponse } from '../models'; +export interface CreateKeypairOperationRequest { + createKeypairRequest?: CreateKeypairRequest; +} +export interface DeleteKeypairOperationRequest { + deleteKeypairRequest?: DeleteKeypairRequest; +} +export interface ReadKeypairsOperationRequest { + readKeypairsRequest?: ReadKeypairsRequest; +} +/** + * KeypairApi - interface + * + * @export + * @interface KeypairApiInterface + */ +export interface KeypairApiInterface { + /** + * + * @param {CreateKeypairRequest} [createKeypairRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + createKeypairRaw(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createKeypair(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteKeypairRequest} [deleteKeypairRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + deleteKeypairRaw(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteKeypair(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadKeypairsRequest} [readKeypairsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + readKeypairsRaw(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readKeypairs(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class KeypairApi extends runtime.BaseAPI implements KeypairApiInterface { + /** + */ + createKeypairRaw(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createKeypair(requestParameters?: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteKeypairRaw(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteKeypair(requestParameters?: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readKeypairsRaw(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readKeypairs(requestParameters?: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/KeypairApi.js b/dist/esm/apis/KeypairApi.js new file mode 100644 index 00000000..1f22f876 --- /dev/null +++ b/dist/esm/apis/KeypairApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateKeypairRequestToJSON, CreateKeypairResponseFromJSON, DeleteKeypairRequestToJSON, DeleteKeypairResponseFromJSON, ReadKeypairsRequestToJSON, ReadKeypairsResponseFromJSON, } from '../models'; +/** + * + */ +export class KeypairApi extends runtime.BaseAPI { + /** + */ + createKeypairRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateKeypairRequestToJSON(requestParameters.createKeypairRequest); + const request = { + path: `/CreateKeypair`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateKeypairResponseFromJSON(jsonValue)); + }); + } + /** + */ + createKeypair(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createKeypairRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteKeypairRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteKeypairRequestToJSON(requestParameters.deleteKeypairRequest); + const request = { + path: `/DeleteKeypair`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteKeypairResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteKeypair(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteKeypairRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readKeypairsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadKeypairsRequestToJSON(requestParameters.readKeypairsRequest); + const request = { + path: `/ReadKeypairs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadKeypairsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readKeypairs(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readKeypairsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ListenerApi.d.ts b/dist/esm/apis/ListenerApi.d.ts new file mode 100644 index 00000000..c8af2da9 --- /dev/null +++ b/dist/esm/apis/ListenerApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateListenerRuleRequest, CreateListenerRuleResponse, CreateLoadBalancerListenersRequest, CreateLoadBalancerListenersResponse, DeleteListenerRuleRequest, DeleteListenerRuleResponse, DeleteLoadBalancerListenersRequest, DeleteLoadBalancerListenersResponse, ReadListenerRulesRequest, ReadListenerRulesResponse, UpdateListenerRuleRequest, UpdateListenerRuleResponse } from '../models'; +export interface CreateListenerRuleOperationRequest { + createListenerRuleRequest?: CreateListenerRuleRequest; +} +export interface CreateLoadBalancerListenersOperationRequest { + createLoadBalancerListenersRequest?: CreateLoadBalancerListenersRequest; +} +export interface DeleteListenerRuleOperationRequest { + deleteListenerRuleRequest?: DeleteListenerRuleRequest; +} +export interface DeleteLoadBalancerListenersOperationRequest { + deleteLoadBalancerListenersRequest?: DeleteLoadBalancerListenersRequest; +} +export interface ReadListenerRulesOperationRequest { + readListenerRulesRequest?: ReadListenerRulesRequest; +} +export interface UpdateListenerRuleOperationRequest { + updateListenerRuleRequest?: UpdateListenerRuleRequest; +} +/** + * ListenerApi - interface + * + * @export + * @interface ListenerApiInterface + */ +export interface ListenerApiInterface { + /** + * + * @param {CreateListenerRuleRequest} [createListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + createListenerRuleRaw(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createListenerRule(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateLoadBalancerListenersRequest} [createLoadBalancerListenersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + createLoadBalancerListenersRaw(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerListeners(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteListenerRuleRequest} [deleteListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + deleteListenerRuleRaw(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteListenerRule(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerListenersRequest} [deleteLoadBalancerListenersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + deleteLoadBalancerListenersRaw(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerListeners(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadListenerRulesRequest} [readListenerRulesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + readListenerRulesRaw(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readListenerRules(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateListenerRuleRequest} [updateListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + updateListenerRuleRaw(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateListenerRule(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ListenerApi extends runtime.BaseAPI implements ListenerApiInterface { + /** + */ + createListenerRuleRaw(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createListenerRule(requestParameters?: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createLoadBalancerListenersRaw(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerListeners(requestParameters?: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteListenerRuleRaw(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteListenerRule(requestParameters?: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerListenersRaw(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerListeners(requestParameters?: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readListenerRulesRaw(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readListenerRules(requestParameters?: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateListenerRuleRaw(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateListenerRule(requestParameters?: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ListenerApi.js b/dist/esm/apis/ListenerApi.js new file mode 100644 index 00000000..ef98e3d1 --- /dev/null +++ b/dist/esm/apis/ListenerApi.js @@ -0,0 +1,263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateListenerRuleRequestToJSON, CreateListenerRuleResponseFromJSON, CreateLoadBalancerListenersRequestToJSON, CreateLoadBalancerListenersResponseFromJSON, DeleteListenerRuleRequestToJSON, DeleteListenerRuleResponseFromJSON, DeleteLoadBalancerListenersRequestToJSON, DeleteLoadBalancerListenersResponseFromJSON, ReadListenerRulesRequestToJSON, ReadListenerRulesResponseFromJSON, UpdateListenerRuleRequestToJSON, UpdateListenerRuleResponseFromJSON, } from '../models'; +/** + * + */ +export class ListenerApi extends runtime.BaseAPI { + /** + */ + createListenerRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateListenerRuleRequestToJSON(requestParameters.createListenerRuleRequest); + const request = { + path: `/CreateListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateListenerRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + createListenerRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createListenerRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createLoadBalancerListenersRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateLoadBalancerListenersRequestToJSON(requestParameters.createLoadBalancerListenersRequest); + const request = { + path: `/CreateLoadBalancerListeners`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerListenersResponseFromJSON(jsonValue)); + }); + } + /** + */ + createLoadBalancerListeners(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerListenersRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteListenerRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteListenerRuleRequestToJSON(requestParameters.deleteListenerRuleRequest); + const request = { + path: `/DeleteListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteListenerRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteListenerRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteListenerRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerListenersRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteLoadBalancerListenersRequestToJSON(requestParameters.deleteLoadBalancerListenersRequest); + const request = { + path: `/DeleteLoadBalancerListeners`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerListenersResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteLoadBalancerListeners(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerListenersRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readListenerRulesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadListenerRulesRequestToJSON(requestParameters.readListenerRulesRequest); + const request = { + path: `/ReadListenerRules`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadListenerRulesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readListenerRules(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readListenerRulesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateListenerRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateListenerRuleRequestToJSON(requestParameters.updateListenerRuleRequest); + const request = { + path: `/UpdateListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateListenerRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateListenerRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateListenerRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/LoadBalancerApi.d.ts b/dist/esm/apis/LoadBalancerApi.d.ts new file mode 100644 index 00000000..958f2ac2 --- /dev/null +++ b/dist/esm/apis/LoadBalancerApi.d.ts @@ -0,0 +1,266 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateLoadBalancerRequest, CreateLoadBalancerResponse, CreateLoadBalancerTagsRequest, CreateLoadBalancerTagsResponse, DeleteLoadBalancerRequest, DeleteLoadBalancerResponse, DeleteLoadBalancerTagsRequest, DeleteLoadBalancerTagsResponse, DeregisterVmsInLoadBalancerRequest, DeregisterVmsInLoadBalancerResponse, LinkLoadBalancerBackendMachinesRequest, LinkLoadBalancerBackendMachinesResponse, ReadLoadBalancerTagsRequest, ReadLoadBalancerTagsResponse, ReadLoadBalancersRequest, ReadLoadBalancersResponse, ReadVmsHealthRequest, ReadVmsHealthResponse, RegisterVmsInLoadBalancerRequest, RegisterVmsInLoadBalancerResponse, UnlinkLoadBalancerBackendMachinesRequest, UnlinkLoadBalancerBackendMachinesResponse, UpdateLoadBalancerRequest, UpdateLoadBalancerResponse } from '../models'; +export interface CreateLoadBalancerOperationRequest { + createLoadBalancerRequest?: CreateLoadBalancerRequest; +} +export interface CreateLoadBalancerTagsOperationRequest { + createLoadBalancerTagsRequest?: CreateLoadBalancerTagsRequest; +} +export interface DeleteLoadBalancerOperationRequest { + deleteLoadBalancerRequest?: DeleteLoadBalancerRequest; +} +export interface DeleteLoadBalancerTagsOperationRequest { + deleteLoadBalancerTagsRequest?: DeleteLoadBalancerTagsRequest; +} +export interface DeregisterVmsInLoadBalancerOperationRequest { + deregisterVmsInLoadBalancerRequest?: DeregisterVmsInLoadBalancerRequest; +} +export interface LinkLoadBalancerBackendMachinesOperationRequest { + linkLoadBalancerBackendMachinesRequest?: LinkLoadBalancerBackendMachinesRequest; +} +export interface ReadLoadBalancerTagsOperationRequest { + readLoadBalancerTagsRequest?: ReadLoadBalancerTagsRequest; +} +export interface ReadLoadBalancersOperationRequest { + readLoadBalancersRequest?: ReadLoadBalancersRequest; +} +export interface ReadVmsHealthOperationRequest { + readVmsHealthRequest?: ReadVmsHealthRequest; +} +export interface RegisterVmsInLoadBalancerOperationRequest { + registerVmsInLoadBalancerRequest?: RegisterVmsInLoadBalancerRequest; +} +export interface UnlinkLoadBalancerBackendMachinesOperationRequest { + unlinkLoadBalancerBackendMachinesRequest?: UnlinkLoadBalancerBackendMachinesRequest; +} +export interface UpdateLoadBalancerOperationRequest { + updateLoadBalancerRequest?: UpdateLoadBalancerRequest; +} +/** + * LoadBalancerApi - interface + * + * @export + * @interface LoadBalancerApiInterface + */ +export interface LoadBalancerApiInterface { + /** + * + * @param {CreateLoadBalancerRequest} [createLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + createLoadBalancerRaw(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancer(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateLoadBalancerTagsRequest} [createLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + createLoadBalancerTagsRaw(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerTags(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerRequest} [deleteLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deleteLoadBalancerRaw(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancer(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerTagsRequest} [deleteLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deleteLoadBalancerTagsRaw(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerTags(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeregisterVmsInLoadBalancerRequest} [deregisterVmsInLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deregisterVmsInLoadBalancerRaw(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deregisterVmsInLoadBalancer(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkLoadBalancerBackendMachinesRequest} [linkLoadBalancerBackendMachinesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + linkLoadBalancerBackendMachinesRaw(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkLoadBalancerBackendMachines(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadLoadBalancerTagsRequest} [readLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readLoadBalancerTagsRaw(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancerTags(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadLoadBalancersRequest} [readLoadBalancersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readLoadBalancersRaw(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancers(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmsHealthRequest} [readVmsHealthRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readVmsHealthRaw(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsHealth(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {RegisterVmsInLoadBalancerRequest} [registerVmsInLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + registerVmsInLoadBalancerRaw(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + registerVmsInLoadBalancer(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkLoadBalancerBackendMachinesRequest} [unlinkLoadBalancerBackendMachinesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateLoadBalancerRequest} [updateLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + updateLoadBalancerRaw(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateLoadBalancer(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class LoadBalancerApi extends runtime.BaseAPI implements LoadBalancerApiInterface { + /** + */ + createLoadBalancerRaw(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancer(requestParameters?: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createLoadBalancerTagsRaw(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerTags(requestParameters?: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerRaw(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancer(requestParameters?: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerTagsRaw(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerTags(requestParameters?: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deregisterVmsInLoadBalancerRaw(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deregisterVmsInLoadBalancer(requestParameters?: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkLoadBalancerBackendMachinesRaw(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkLoadBalancerBackendMachines(requestParameters?: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readLoadBalancerTagsRaw(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancerTags(requestParameters?: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readLoadBalancersRaw(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLoadBalancers(requestParameters?: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmsHealthRaw(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsHealth(requestParameters?: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + registerVmsInLoadBalancerRaw(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + registerVmsInLoadBalancer(requestParameters?: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters?: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateLoadBalancerRaw(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateLoadBalancer(requestParameters?: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/LoadBalancerApi.js b/dist/esm/apis/LoadBalancerApi.js new file mode 100644 index 00000000..6b73166d --- /dev/null +++ b/dist/esm/apis/LoadBalancerApi.js @@ -0,0 +1,497 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateLoadBalancerRequestToJSON, CreateLoadBalancerResponseFromJSON, CreateLoadBalancerTagsRequestToJSON, CreateLoadBalancerTagsResponseFromJSON, DeleteLoadBalancerRequestToJSON, DeleteLoadBalancerResponseFromJSON, DeleteLoadBalancerTagsRequestToJSON, DeleteLoadBalancerTagsResponseFromJSON, DeregisterVmsInLoadBalancerRequestToJSON, DeregisterVmsInLoadBalancerResponseFromJSON, LinkLoadBalancerBackendMachinesRequestToJSON, LinkLoadBalancerBackendMachinesResponseFromJSON, ReadLoadBalancerTagsRequestToJSON, ReadLoadBalancerTagsResponseFromJSON, ReadLoadBalancersRequestToJSON, ReadLoadBalancersResponseFromJSON, ReadVmsHealthRequestToJSON, ReadVmsHealthResponseFromJSON, RegisterVmsInLoadBalancerRequestToJSON, RegisterVmsInLoadBalancerResponseFromJSON, UnlinkLoadBalancerBackendMachinesRequestToJSON, UnlinkLoadBalancerBackendMachinesResponseFromJSON, UpdateLoadBalancerRequestToJSON, UpdateLoadBalancerResponseFromJSON, } from '../models'; +/** + * + */ +export class LoadBalancerApi extends runtime.BaseAPI { + /** + */ + createLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateLoadBalancerRequestToJSON(requestParameters.createLoadBalancerRequest); + const request = { + path: `/CreateLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerResponseFromJSON(jsonValue)); + }); + } + /** + */ + createLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createLoadBalancerTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateLoadBalancerTagsRequestToJSON(requestParameters.createLoadBalancerTagsRequest); + const request = { + path: `/CreateLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerTagsResponseFromJSON(jsonValue)); + }); + } + /** + */ + createLoadBalancerTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteLoadBalancerRequestToJSON(requestParameters.deleteLoadBalancerRequest); + const request = { + path: `/DeleteLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteLoadBalancerTagsRequestToJSON(requestParameters.deleteLoadBalancerTagsRequest); + const request = { + path: `/DeleteLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerTagsResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteLoadBalancerTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deregisterVmsInLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeregisterVmsInLoadBalancerRequestToJSON(requestParameters.deregisterVmsInLoadBalancerRequest); + const request = { + path: `/DeregisterVmsInLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeregisterVmsInLoadBalancerResponseFromJSON(jsonValue)); + }); + } + /** + */ + deregisterVmsInLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deregisterVmsInLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkLoadBalancerBackendMachinesRequestToJSON(requestParameters.linkLoadBalancerBackendMachinesRequest); + const request = { + path: `/LinkLoadBalancerBackendMachines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkLoadBalancerBackendMachinesResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkLoadBalancerBackendMachines(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readLoadBalancerTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadLoadBalancerTagsRequestToJSON(requestParameters.readLoadBalancerTagsRequest); + const request = { + path: `/ReadLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadLoadBalancerTagsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readLoadBalancerTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readLoadBalancerTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readLoadBalancersRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadLoadBalancersRequestToJSON(requestParameters.readLoadBalancersRequest); + const request = { + path: `/ReadLoadBalancers`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadLoadBalancersResponseFromJSON(jsonValue)); + }); + } + /** + */ + readLoadBalancers(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readLoadBalancersRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmsHealthRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadVmsHealthRequestToJSON(requestParameters.readVmsHealthRequest); + const request = { + path: `/ReadVmsHealth`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmsHealthResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVmsHealth(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmsHealthRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + registerVmsInLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = RegisterVmsInLoadBalancerRequestToJSON(requestParameters.registerVmsInLoadBalancerRequest); + const request = { + path: `/RegisterVmsInLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => RegisterVmsInLoadBalancerResponseFromJSON(jsonValue)); + }); + } + /** + */ + registerVmsInLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.registerVmsInLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkLoadBalancerBackendMachinesRequestToJSON(requestParameters.unlinkLoadBalancerBackendMachinesRequest); + const request = { + path: `/UnlinkLoadBalancerBackendMachines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkLoadBalancerBackendMachinesResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateLoadBalancerRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateLoadBalancerRequestToJSON(requestParameters.updateLoadBalancerRequest); + const request = { + path: `/UpdateLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateLoadBalancerResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateLoadBalancer(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateLoadBalancerRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/LoadBalancerPolicyApi.d.ts b/dist/esm/apis/LoadBalancerPolicyApi.d.ts new file mode 100644 index 00000000..a4fb6b16 --- /dev/null +++ b/dist/esm/apis/LoadBalancerPolicyApi.d.ts @@ -0,0 +1,66 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateLoadBalancerPolicyRequest, CreateLoadBalancerPolicyResponse, DeleteLoadBalancerPolicyRequest, DeleteLoadBalancerPolicyResponse } from '../models'; +export interface CreateLoadBalancerPolicyOperationRequest { + createLoadBalancerPolicyRequest?: CreateLoadBalancerPolicyRequest; +} +export interface DeleteLoadBalancerPolicyOperationRequest { + deleteLoadBalancerPolicyRequest?: DeleteLoadBalancerPolicyRequest; +} +/** + * LoadBalancerPolicyApi - interface + * + * @export + * @interface LoadBalancerPolicyApiInterface + */ +export interface LoadBalancerPolicyApiInterface { + /** + * + * @param {CreateLoadBalancerPolicyRequest} [createLoadBalancerPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerPolicyApiInterface + */ + createLoadBalancerPolicyRaw(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerPolicy(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteLoadBalancerPolicyRequest} [deleteLoadBalancerPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerPolicyApiInterface + */ + deleteLoadBalancerPolicyRaw(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerPolicy(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class LoadBalancerPolicyApi extends runtime.BaseAPI implements LoadBalancerPolicyApiInterface { + /** + */ + createLoadBalancerPolicyRaw(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createLoadBalancerPolicy(requestParameters?: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteLoadBalancerPolicyRaw(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteLoadBalancerPolicy(requestParameters?: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/LoadBalancerPolicyApi.js b/dist/esm/apis/LoadBalancerPolicyApi.js new file mode 100644 index 00000000..e998077e --- /dev/null +++ b/dist/esm/apis/LoadBalancerPolicyApi.js @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateLoadBalancerPolicyRequestToJSON, CreateLoadBalancerPolicyResponseFromJSON, DeleteLoadBalancerPolicyRequestToJSON, DeleteLoadBalancerPolicyResponseFromJSON, } from '../models'; +/** + * + */ +export class LoadBalancerPolicyApi extends runtime.BaseAPI { + /** + */ + createLoadBalancerPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateLoadBalancerPolicyRequestToJSON(requestParameters.createLoadBalancerPolicyRequest); + const request = { + path: `/CreateLoadBalancerPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerPolicyResponseFromJSON(jsonValue)); + }); + } + /** + */ + createLoadBalancerPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createLoadBalancerPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteLoadBalancerPolicyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteLoadBalancerPolicyRequestToJSON(requestParameters.deleteLoadBalancerPolicyRequest); + const request = { + path: `/DeleteLoadBalancerPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerPolicyResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteLoadBalancerPolicy(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteLoadBalancerPolicyRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/LocationApi.d.ts b/dist/esm/apis/LocationApi.d.ts new file mode 100644 index 00000000..a72dff78 --- /dev/null +++ b/dist/esm/apis/LocationApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadLocationsRequest, ReadLocationsResponse } from '../models'; +export interface ReadLocationsOperationRequest { + readLocationsRequest?: ReadLocationsRequest; +} +/** + * LocationApi - interface + * + * @export + * @interface LocationApiInterface + */ +export interface LocationApiInterface { + /** + * + * @param {ReadLocationsRequest} [readLocationsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LocationApiInterface + */ + readLocationsRaw(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLocations(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class LocationApi extends runtime.BaseAPI implements LocationApiInterface { + /** + */ + readLocationsRaw(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readLocations(requestParameters?: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/LocationApi.js b/dist/esm/apis/LocationApi.js new file mode 100644 index 00000000..384475a1 --- /dev/null +++ b/dist/esm/apis/LocationApi.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadLocationsRequestToJSON, ReadLocationsResponseFromJSON, } from '../models'; +/** + * + */ +export class LocationApi extends runtime.BaseAPI { + /** + */ + readLocationsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadLocationsRequestToJSON(requestParameters.readLocationsRequest); + const request = { + path: `/ReadLocations`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadLocationsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readLocations(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readLocationsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/NatServiceApi.d.ts b/dist/esm/apis/NatServiceApi.d.ts new file mode 100644 index 00000000..5c169a46 --- /dev/null +++ b/dist/esm/apis/NatServiceApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNatServiceRequest, CreateNatServiceResponse, DeleteNatServiceRequest, DeleteNatServiceResponse, ReadNatServicesRequest, ReadNatServicesResponse } from '../models'; +export interface CreateNatServiceOperationRequest { + createNatServiceRequest?: CreateNatServiceRequest; +} +export interface DeleteNatServiceOperationRequest { + deleteNatServiceRequest?: DeleteNatServiceRequest; +} +export interface ReadNatServicesOperationRequest { + readNatServicesRequest?: ReadNatServicesRequest; +} +/** + * NatServiceApi - interface + * + * @export + * @interface NatServiceApiInterface + */ +export interface NatServiceApiInterface { + /** + * + * @param {CreateNatServiceRequest} [createNatServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + createNatServiceRaw(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNatService(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNatServiceRequest} [deleteNatServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + deleteNatServiceRaw(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNatService(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNatServicesRequest} [readNatServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + readNatServicesRaw(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNatServices(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NatServiceApi extends runtime.BaseAPI implements NatServiceApiInterface { + /** + */ + createNatServiceRaw(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNatService(requestParameters?: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNatServiceRaw(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNatService(requestParameters?: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNatServicesRaw(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNatServices(requestParameters?: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/NatServiceApi.js b/dist/esm/apis/NatServiceApi.js new file mode 100644 index 00000000..ec1ad307 --- /dev/null +++ b/dist/esm/apis/NatServiceApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateNatServiceRequestToJSON, CreateNatServiceResponseFromJSON, DeleteNatServiceRequestToJSON, DeleteNatServiceResponseFromJSON, ReadNatServicesRequestToJSON, ReadNatServicesResponseFromJSON, } from '../models'; +/** + * + */ +export class NatServiceApi extends runtime.BaseAPI { + /** + */ + createNatServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateNatServiceRequestToJSON(requestParameters.createNatServiceRequest); + const request = { + path: `/CreateNatService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNatServiceResponseFromJSON(jsonValue)); + }); + } + /** + */ + createNatService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNatServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNatServiceRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteNatServiceRequestToJSON(requestParameters.deleteNatServiceRequest); + const request = { + path: `/DeleteNatService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNatServiceResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteNatService(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNatServiceRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNatServicesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadNatServicesRequestToJSON(requestParameters.readNatServicesRequest); + const request = { + path: `/ReadNatServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNatServicesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readNatServices(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNatServicesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/NetAccessPointApi.d.ts b/dist/esm/apis/NetAccessPointApi.d.ts new file mode 100644 index 00000000..da4bfbbf --- /dev/null +++ b/dist/esm/apis/NetAccessPointApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNetAccessPointRequest, CreateNetAccessPointResponse, DeleteNetAccessPointRequest, DeleteNetAccessPointResponse, ReadNetAccessPointServicesRequest, ReadNetAccessPointServicesResponse, ReadNetAccessPointsRequest, ReadNetAccessPointsResponse, UpdateNetAccessPointRequest, UpdateNetAccessPointResponse } from '../models'; +export interface CreateNetAccessPointOperationRequest { + createNetAccessPointRequest?: CreateNetAccessPointRequest; +} +export interface DeleteNetAccessPointOperationRequest { + deleteNetAccessPointRequest?: DeleteNetAccessPointRequest; +} +export interface ReadNetAccessPointServicesOperationRequest { + readNetAccessPointServicesRequest?: ReadNetAccessPointServicesRequest; +} +export interface ReadNetAccessPointsOperationRequest { + readNetAccessPointsRequest?: ReadNetAccessPointsRequest; +} +export interface UpdateNetAccessPointOperationRequest { + updateNetAccessPointRequest?: UpdateNetAccessPointRequest; +} +/** + * NetAccessPointApi - interface + * + * @export + * @interface NetAccessPointApiInterface + */ +export interface NetAccessPointApiInterface { + /** + * + * @param {CreateNetAccessPointRequest} [createNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + createNetAccessPointRaw(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetAccessPoint(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNetAccessPointRequest} [deleteNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + deleteNetAccessPointRaw(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetAccessPoint(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetAccessPointServicesRequest} [readNetAccessPointServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + readNetAccessPointServicesRaw(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPointServices(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetAccessPointsRequest} [readNetAccessPointsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + readNetAccessPointsRaw(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPoints(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateNetAccessPointRequest} [updateNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + updateNetAccessPointRaw(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNetAccessPoint(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NetAccessPointApi extends runtime.BaseAPI implements NetAccessPointApiInterface { + /** + */ + createNetAccessPointRaw(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetAccessPoint(requestParameters?: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNetAccessPointRaw(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetAccessPoint(requestParameters?: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetAccessPointServicesRaw(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPointServices(requestParameters?: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetAccessPointsRaw(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetAccessPoints(requestParameters?: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateNetAccessPointRaw(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNetAccessPoint(requestParameters?: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/NetAccessPointApi.js b/dist/esm/apis/NetAccessPointApi.js new file mode 100644 index 00000000..3baf2376 --- /dev/null +++ b/dist/esm/apis/NetAccessPointApi.js @@ -0,0 +1,221 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateNetAccessPointRequestToJSON, CreateNetAccessPointResponseFromJSON, DeleteNetAccessPointRequestToJSON, DeleteNetAccessPointResponseFromJSON, ReadNetAccessPointServicesRequestToJSON, ReadNetAccessPointServicesResponseFromJSON, ReadNetAccessPointsRequestToJSON, ReadNetAccessPointsResponseFromJSON, UpdateNetAccessPointRequestToJSON, UpdateNetAccessPointResponseFromJSON, } from '../models'; +/** + * + */ +export class NetAccessPointApi extends runtime.BaseAPI { + /** + */ + createNetAccessPointRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateNetAccessPointRequestToJSON(requestParameters.createNetAccessPointRequest); + const request = { + path: `/CreateNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNetAccessPointResponseFromJSON(jsonValue)); + }); + } + /** + */ + createNetAccessPoint(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNetAccessPointRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNetAccessPointRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteNetAccessPointRequestToJSON(requestParameters.deleteNetAccessPointRequest); + const request = { + path: `/DeleteNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNetAccessPointResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteNetAccessPoint(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNetAccessPointRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetAccessPointServicesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadNetAccessPointServicesRequestToJSON(requestParameters.readNetAccessPointServicesRequest); + const request = { + path: `/ReadNetAccessPointServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetAccessPointServicesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readNetAccessPointServices(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetAccessPointServicesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetAccessPointsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadNetAccessPointsRequestToJSON(requestParameters.readNetAccessPointsRequest); + const request = { + path: `/ReadNetAccessPoints`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetAccessPointsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readNetAccessPoints(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetAccessPointsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateNetAccessPointRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateNetAccessPointRequestToJSON(requestParameters.updateNetAccessPointRequest); + const request = { + path: `/UpdateNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateNetAccessPointResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateNetAccessPoint(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateNetAccessPointRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/NetApi.d.ts b/dist/esm/apis/NetApi.d.ts new file mode 100644 index 00000000..ab09ffa3 --- /dev/null +++ b/dist/esm/apis/NetApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNetRequest, CreateNetResponse, DeleteNetRequest, DeleteNetResponse, ReadNetsRequest, ReadNetsResponse, UpdateNetRequest, UpdateNetResponse } from '../models'; +export interface CreateNetOperationRequest { + createNetRequest?: CreateNetRequest; +} +export interface DeleteNetOperationRequest { + deleteNetRequest?: DeleteNetRequest; +} +export interface ReadNetsOperationRequest { + readNetsRequest?: ReadNetsRequest; +} +export interface UpdateNetOperationRequest { + updateNetRequest?: UpdateNetRequest; +} +/** + * NetApi - interface + * + * @export + * @interface NetApiInterface + */ +export interface NetApiInterface { + /** + * + * @param {CreateNetRequest} [createNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + createNetRaw(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNet(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNetRequest} [deleteNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + deleteNetRaw(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNet(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetsRequest} [readNetsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + readNetsRaw(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNets(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateNetRequest} [updateNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + updateNetRaw(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNet(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NetApi extends runtime.BaseAPI implements NetApiInterface { + /** + */ + createNetRaw(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNet(requestParameters?: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNetRaw(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNet(requestParameters?: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetsRaw(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNets(requestParameters?: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateNetRaw(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNet(requestParameters?: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/NetApi.js b/dist/esm/apis/NetApi.js new file mode 100644 index 00000000..94b23fd6 --- /dev/null +++ b/dist/esm/apis/NetApi.js @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateNetRequestToJSON, CreateNetResponseFromJSON, DeleteNetRequestToJSON, DeleteNetResponseFromJSON, ReadNetsRequestToJSON, ReadNetsResponseFromJSON, UpdateNetRequestToJSON, UpdateNetResponseFromJSON, } from '../models'; +/** + * + */ +export class NetApi extends runtime.BaseAPI { + /** + */ + createNetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateNetRequestToJSON(requestParameters.createNetRequest); + const request = { + path: `/CreateNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNetResponseFromJSON(jsonValue)); + }); + } + /** + */ + createNet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteNetRequestToJSON(requestParameters.deleteNetRequest); + const request = { + path: `/DeleteNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNetResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteNet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadNetsRequestToJSON(requestParameters.readNetsRequest); + const request = { + path: `/ReadNets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readNets(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateNetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateNetRequestToJSON(requestParameters.updateNetRequest); + const request = { + path: `/UpdateNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateNetResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateNet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateNetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/NetPeeringApi.d.ts b/dist/esm/apis/NetPeeringApi.d.ts new file mode 100644 index 00000000..ab3505e2 --- /dev/null +++ b/dist/esm/apis/NetPeeringApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { AcceptNetPeeringRequest, AcceptNetPeeringResponse, CreateNetPeeringRequest, CreateNetPeeringResponse, DeleteNetPeeringRequest, DeleteNetPeeringResponse, ReadNetPeeringsRequest, ReadNetPeeringsResponse, RejectNetPeeringRequest, RejectNetPeeringResponse } from '../models'; +export interface AcceptNetPeeringOperationRequest { + acceptNetPeeringRequest?: AcceptNetPeeringRequest; +} +export interface CreateNetPeeringOperationRequest { + createNetPeeringRequest?: CreateNetPeeringRequest; +} +export interface DeleteNetPeeringOperationRequest { + deleteNetPeeringRequest?: DeleteNetPeeringRequest; +} +export interface ReadNetPeeringsOperationRequest { + readNetPeeringsRequest?: ReadNetPeeringsRequest; +} +export interface RejectNetPeeringOperationRequest { + rejectNetPeeringRequest?: RejectNetPeeringRequest; +} +/** + * NetPeeringApi - interface + * + * @export + * @interface NetPeeringApiInterface + */ +export interface NetPeeringApiInterface { + /** + * + * @param {AcceptNetPeeringRequest} [acceptNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + acceptNetPeeringRaw(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + acceptNetPeering(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateNetPeeringRequest} [createNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + createNetPeeringRaw(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetPeering(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNetPeeringRequest} [deleteNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + deleteNetPeeringRaw(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetPeering(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNetPeeringsRequest} [readNetPeeringsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + readNetPeeringsRaw(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetPeerings(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {RejectNetPeeringRequest} [rejectNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + rejectNetPeeringRaw(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rejectNetPeering(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NetPeeringApi extends runtime.BaseAPI implements NetPeeringApiInterface { + /** + */ + acceptNetPeeringRaw(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + acceptNetPeering(requestParameters?: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createNetPeeringRaw(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNetPeering(requestParameters?: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNetPeeringRaw(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNetPeering(requestParameters?: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNetPeeringsRaw(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNetPeerings(requestParameters?: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + rejectNetPeeringRaw(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rejectNetPeering(requestParameters?: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/NetPeeringApi.js b/dist/esm/apis/NetPeeringApi.js new file mode 100644 index 00000000..b3c9cb6b --- /dev/null +++ b/dist/esm/apis/NetPeeringApi.js @@ -0,0 +1,224 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { AcceptNetPeeringRequestToJSON, AcceptNetPeeringResponseFromJSON, CreateNetPeeringRequestToJSON, CreateNetPeeringResponseFromJSON, DeleteNetPeeringRequestToJSON, DeleteNetPeeringResponseFromJSON, ReadNetPeeringsRequestToJSON, ReadNetPeeringsResponseFromJSON, RejectNetPeeringRequestToJSON, RejectNetPeeringResponseFromJSON, } from '../models'; +/** + * + */ +export class NetPeeringApi extends runtime.BaseAPI { + /** + */ + acceptNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = AcceptNetPeeringRequestToJSON(requestParameters.acceptNetPeeringRequest); + const request = { + path: `/AcceptNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => AcceptNetPeeringResponseFromJSON(jsonValue)); + }); + } + /** + */ + acceptNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.acceptNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateNetPeeringRequestToJSON(requestParameters.createNetPeeringRequest); + const request = { + path: `/CreateNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNetPeeringResponseFromJSON(jsonValue)); + }); + } + /** + */ + createNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteNetPeeringRequestToJSON(requestParameters.deleteNetPeeringRequest); + const request = { + path: `/DeleteNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNetPeeringResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNetPeeringsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadNetPeeringsRequestToJSON(requestParameters.readNetPeeringsRequest); + const request = { + path: `/ReadNetPeerings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetPeeringsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readNetPeerings(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNetPeeringsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + rejectNetPeeringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = RejectNetPeeringRequestToJSON(requestParameters.rejectNetPeeringRequest); + const request = { + path: `/RejectNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => RejectNetPeeringResponseFromJSON(jsonValue)); + }); + } + /** + */ + rejectNetPeering(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rejectNetPeeringRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/NicApi.d.ts b/dist/esm/apis/NicApi.d.ts new file mode 100644 index 00000000..ae3923f3 --- /dev/null +++ b/dist/esm/apis/NicApi.d.ts @@ -0,0 +1,186 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateNicRequest, CreateNicResponse, DeleteNicRequest, DeleteNicResponse, LinkNicRequest, LinkNicResponse, LinkPrivateIpsRequest, LinkPrivateIpsResponse, ReadNicsRequest, ReadNicsResponse, UnlinkNicRequest, UnlinkNicResponse, UnlinkPrivateIpsRequest, UnlinkPrivateIpsResponse, UpdateNicRequest, UpdateNicResponse } from '../models'; +export interface CreateNicOperationRequest { + createNicRequest?: CreateNicRequest; +} +export interface DeleteNicOperationRequest { + deleteNicRequest?: DeleteNicRequest; +} +export interface LinkNicOperationRequest { + linkNicRequest?: LinkNicRequest; +} +export interface LinkPrivateIpsOperationRequest { + linkPrivateIpsRequest?: LinkPrivateIpsRequest; +} +export interface ReadNicsOperationRequest { + readNicsRequest?: ReadNicsRequest; +} +export interface UnlinkNicOperationRequest { + unlinkNicRequest?: UnlinkNicRequest; +} +export interface UnlinkPrivateIpsOperationRequest { + unlinkPrivateIpsRequest?: UnlinkPrivateIpsRequest; +} +export interface UpdateNicOperationRequest { + updateNicRequest?: UpdateNicRequest; +} +/** + * NicApi - interface + * + * @export + * @interface NicApiInterface + */ +export interface NicApiInterface { + /** + * + * @param {CreateNicRequest} [createNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + createNicRaw(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNic(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteNicRequest} [deleteNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + deleteNicRaw(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNic(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkNicRequest} [linkNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + linkNicRaw(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkNic(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkPrivateIpsRequest} [linkPrivateIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + linkPrivateIpsRaw(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPrivateIps(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadNicsRequest} [readNicsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + readNicsRaw(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNics(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkNicRequest} [unlinkNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + unlinkNicRaw(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkNic(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkPrivateIpsRequest} [unlinkPrivateIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + unlinkPrivateIpsRaw(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPrivateIps(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateNicRequest} [updateNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + updateNicRaw(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNic(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class NicApi extends runtime.BaseAPI implements NicApiInterface { + /** + */ + createNicRaw(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createNic(requestParameters?: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteNicRaw(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteNic(requestParameters?: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkNicRaw(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkNic(requestParameters?: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkPrivateIpsRaw(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPrivateIps(requestParameters?: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readNicsRaw(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readNics(requestParameters?: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkNicRaw(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkNic(requestParameters?: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkPrivateIpsRaw(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPrivateIps(requestParameters?: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateNicRaw(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateNic(requestParameters?: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/NicApi.js b/dist/esm/apis/NicApi.js new file mode 100644 index 00000000..40689068 --- /dev/null +++ b/dist/esm/apis/NicApi.js @@ -0,0 +1,341 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateNicRequestToJSON, CreateNicResponseFromJSON, DeleteNicRequestToJSON, DeleteNicResponseFromJSON, LinkNicRequestToJSON, LinkNicResponseFromJSON, LinkPrivateIpsRequestToJSON, LinkPrivateIpsResponseFromJSON, ReadNicsRequestToJSON, ReadNicsResponseFromJSON, UnlinkNicRequestToJSON, UnlinkNicResponseFromJSON, UnlinkPrivateIpsRequestToJSON, UnlinkPrivateIpsResponseFromJSON, UpdateNicRequestToJSON, UpdateNicResponseFromJSON, } from '../models'; +/** + * + */ +export class NicApi extends runtime.BaseAPI { + /** + */ + createNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateNicRequestToJSON(requestParameters.createNicRequest); + const request = { + path: `/CreateNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNicResponseFromJSON(jsonValue)); + }); + } + /** + */ + createNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteNicRequestToJSON(requestParameters.deleteNicRequest); + const request = { + path: `/DeleteNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNicResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkNicRequestToJSON(requestParameters.linkNicRequest); + const request = { + path: `/LinkNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkNicResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkPrivateIpsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkPrivateIpsRequestToJSON(requestParameters.linkPrivateIpsRequest); + const request = { + path: `/LinkPrivateIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkPrivateIpsResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkPrivateIps(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkPrivateIpsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readNicsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadNicsRequestToJSON(requestParameters.readNicsRequest); + const request = { + path: `/ReadNics`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNicsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readNics(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readNicsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkNicRequestToJSON(requestParameters.unlinkNicRequest); + const request = { + path: `/UnlinkNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkNicResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkPrivateIpsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkPrivateIpsRequestToJSON(requestParameters.unlinkPrivateIpsRequest); + const request = { + path: `/UnlinkPrivateIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkPrivateIpsResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkPrivateIps(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkPrivateIpsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateNicRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateNicRequestToJSON(requestParameters.updateNicRequest); + const request = { + path: `/UpdateNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateNicResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateNic(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateNicRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ProductTypeApi.d.ts b/dist/esm/apis/ProductTypeApi.d.ts new file mode 100644 index 00000000..9a17b2b1 --- /dev/null +++ b/dist/esm/apis/ProductTypeApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadProductTypesRequest, ReadProductTypesResponse } from '../models'; +export interface ReadProductTypesOperationRequest { + readProductTypesRequest?: ReadProductTypesRequest; +} +/** + * ProductTypeApi - interface + * + * @export + * @interface ProductTypeApiInterface + */ +export interface ProductTypeApiInterface { + /** + * + * @param {ReadProductTypesRequest} [readProductTypesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProductTypeApiInterface + */ + readProductTypesRaw(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readProductTypes(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ProductTypeApi extends runtime.BaseAPI implements ProductTypeApiInterface { + /** + */ + readProductTypesRaw(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readProductTypes(requestParameters?: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ProductTypeApi.js b/dist/esm/apis/ProductTypeApi.js new file mode 100644 index 00000000..e791c245 --- /dev/null +++ b/dist/esm/apis/ProductTypeApi.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadProductTypesRequestToJSON, ReadProductTypesResponseFromJSON, } from '../models'; +/** + * + */ +export class ProductTypeApi extends runtime.BaseAPI { + /** + */ + readProductTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadProductTypesRequestToJSON(requestParameters.readProductTypesRequest); + const request = { + path: `/ReadProductTypes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadProductTypesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readProductTypes(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readProductTypesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/PublicCatalogApi.d.ts b/dist/esm/apis/PublicCatalogApi.d.ts new file mode 100644 index 00000000..2883e617 --- /dev/null +++ b/dist/esm/apis/PublicCatalogApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadPublicCatalogRequest, ReadPublicCatalogResponse } from '../models'; +export interface ReadPublicCatalogOperationRequest { + readPublicCatalogRequest?: ReadPublicCatalogRequest; +} +/** + * PublicCatalogApi - interface + * + * @export + * @interface PublicCatalogApiInterface + */ +export interface PublicCatalogApiInterface { + /** + * + * @param {ReadPublicCatalogRequest} [readPublicCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicCatalogApiInterface + */ + readPublicCatalogRaw(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicCatalog(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class PublicCatalogApi extends runtime.BaseAPI implements PublicCatalogApiInterface { + /** + */ + readPublicCatalogRaw(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicCatalog(requestParameters?: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/PublicCatalogApi.js b/dist/esm/apis/PublicCatalogApi.js new file mode 100644 index 00000000..9c76db63 --- /dev/null +++ b/dist/esm/apis/PublicCatalogApi.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadPublicCatalogRequestToJSON, ReadPublicCatalogResponseFromJSON, } from '../models'; +/** + * + */ +export class PublicCatalogApi extends runtime.BaseAPI { + /** + */ + readPublicCatalogRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadPublicCatalogRequestToJSON(requestParameters.readPublicCatalogRequest); + const request = { + path: `/ReadPublicCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadPublicCatalogResponseFromJSON(jsonValue)); + }); + } + /** + */ + readPublicCatalog(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readPublicCatalogRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/PublicIpApi.d.ts b/dist/esm/apis/PublicIpApi.d.ts new file mode 100644 index 00000000..b79c5c7a --- /dev/null +++ b/dist/esm/apis/PublicIpApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreatePublicIpRequest, CreatePublicIpResponse, DeletePublicIpRequest, DeletePublicIpResponse, LinkPublicIpRequest, LinkPublicIpResponse, ReadPublicIpRangesRequest, ReadPublicIpRangesResponse, ReadPublicIpsRequest, ReadPublicIpsResponse, UnlinkPublicIpRequest, UnlinkPublicIpResponse } from '../models'; +export interface CreatePublicIpOperationRequest { + createPublicIpRequest?: CreatePublicIpRequest; +} +export interface DeletePublicIpOperationRequest { + deletePublicIpRequest?: DeletePublicIpRequest; +} +export interface LinkPublicIpOperationRequest { + linkPublicIpRequest?: LinkPublicIpRequest; +} +export interface ReadPublicIpRangesOperationRequest { + readPublicIpRangesRequest?: ReadPublicIpRangesRequest; +} +export interface ReadPublicIpsOperationRequest { + readPublicIpsRequest?: ReadPublicIpsRequest; +} +export interface UnlinkPublicIpOperationRequest { + unlinkPublicIpRequest?: UnlinkPublicIpRequest; +} +/** + * PublicIpApi - interface + * + * @export + * @interface PublicIpApiInterface + */ +export interface PublicIpApiInterface { + /** + * + * @param {CreatePublicIpRequest} [createPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + createPublicIpRaw(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createPublicIp(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeletePublicIpRequest} [deletePublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + deletePublicIpRaw(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deletePublicIp(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkPublicIpRequest} [linkPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + linkPublicIpRaw(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPublicIp(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadPublicIpRangesRequest} [readPublicIpRangesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + readPublicIpRangesRaw(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIpRanges(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadPublicIpsRequest} [readPublicIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + readPublicIpsRaw(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIps(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkPublicIpRequest} [unlinkPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + unlinkPublicIpRaw(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPublicIp(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class PublicIpApi extends runtime.BaseAPI implements PublicIpApiInterface { + /** + */ + createPublicIpRaw(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createPublicIp(requestParameters?: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deletePublicIpRaw(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deletePublicIp(requestParameters?: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkPublicIpRaw(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkPublicIp(requestParameters?: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readPublicIpRangesRaw(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIpRanges(requestParameters?: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readPublicIpsRaw(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readPublicIps(requestParameters?: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkPublicIpRaw(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkPublicIp(requestParameters?: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/PublicIpApi.js b/dist/esm/apis/PublicIpApi.js new file mode 100644 index 00000000..69453b45 --- /dev/null +++ b/dist/esm/apis/PublicIpApi.js @@ -0,0 +1,260 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreatePublicIpRequestToJSON, CreatePublicIpResponseFromJSON, DeletePublicIpRequestToJSON, DeletePublicIpResponseFromJSON, LinkPublicIpRequestToJSON, LinkPublicIpResponseFromJSON, ReadPublicIpRangesRequestToJSON, ReadPublicIpRangesResponseFromJSON, ReadPublicIpsRequestToJSON, ReadPublicIpsResponseFromJSON, UnlinkPublicIpRequestToJSON, UnlinkPublicIpResponseFromJSON, } from '../models'; +/** + * + */ +export class PublicIpApi extends runtime.BaseAPI { + /** + */ + createPublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreatePublicIpRequestToJSON(requestParameters.createPublicIpRequest); + const request = { + path: `/CreatePublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreatePublicIpResponseFromJSON(jsonValue)); + }); + } + /** + */ + createPublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createPublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deletePublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeletePublicIpRequestToJSON(requestParameters.deletePublicIpRequest); + const request = { + path: `/DeletePublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeletePublicIpResponseFromJSON(jsonValue)); + }); + } + /** + */ + deletePublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deletePublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkPublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkPublicIpRequestToJSON(requestParameters.linkPublicIpRequest); + const request = { + path: `/LinkPublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkPublicIpResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkPublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkPublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readPublicIpRangesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadPublicIpRangesRequestToJSON(requestParameters.readPublicIpRangesRequest); + const request = { + path: `/ReadPublicIpRanges`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadPublicIpRangesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readPublicIpRanges(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readPublicIpRangesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readPublicIpsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadPublicIpsRequestToJSON(requestParameters.readPublicIpsRequest); + const request = { + path: `/ReadPublicIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadPublicIpsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readPublicIps(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readPublicIpsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkPublicIpRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkPublicIpRequestToJSON(requestParameters.unlinkPublicIpRequest); + const request = { + path: `/UnlinkPublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkPublicIpResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkPublicIp(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkPublicIpRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/QuotaApi.d.ts b/dist/esm/apis/QuotaApi.d.ts new file mode 100644 index 00000000..ac0c373f --- /dev/null +++ b/dist/esm/apis/QuotaApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadQuotasRequest, ReadQuotasResponse } from '../models'; +export interface ReadQuotasOperationRequest { + readQuotasRequest?: ReadQuotasRequest; +} +/** + * QuotaApi - interface + * + * @export + * @interface QuotaApiInterface + */ +export interface QuotaApiInterface { + /** + * + * @param {ReadQuotasRequest} [readQuotasRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QuotaApiInterface + */ + readQuotasRaw(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readQuotas(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class QuotaApi extends runtime.BaseAPI implements QuotaApiInterface { + /** + */ + readQuotasRaw(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readQuotas(requestParameters?: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/QuotaApi.js b/dist/esm/apis/QuotaApi.js new file mode 100644 index 00000000..0d4eb126 --- /dev/null +++ b/dist/esm/apis/QuotaApi.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadQuotasRequestToJSON, ReadQuotasResponseFromJSON, } from '../models'; +/** + * + */ +export class QuotaApi extends runtime.BaseAPI { + /** + */ + readQuotasRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadQuotasRequestToJSON(requestParameters.readQuotasRequest); + const request = { + path: `/ReadQuotas`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadQuotasResponseFromJSON(jsonValue)); + }); + } + /** + */ + readQuotas(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readQuotasRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/RegionApi.d.ts b/dist/esm/apis/RegionApi.d.ts new file mode 100644 index 00000000..276449cf --- /dev/null +++ b/dist/esm/apis/RegionApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadRegionsRequest, ReadRegionsResponse } from '../models'; +export interface ReadRegionsOperationRequest { + readRegionsRequest?: ReadRegionsRequest; +} +/** + * RegionApi - interface + * + * @export + * @interface RegionApiInterface + */ +export interface RegionApiInterface { + /** + * + * @param {ReadRegionsRequest} [readRegionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegionApiInterface + */ + readRegionsRaw(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRegions(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class RegionApi extends runtime.BaseAPI implements RegionApiInterface { + /** + */ + readRegionsRaw(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRegions(requestParameters?: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/RegionApi.js b/dist/esm/apis/RegionApi.js new file mode 100644 index 00000000..a682a1c1 --- /dev/null +++ b/dist/esm/apis/RegionApi.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadRegionsRequestToJSON, ReadRegionsResponseFromJSON, } from '../models'; +/** + * + */ +export class RegionApi extends runtime.BaseAPI { + /** + */ + readRegionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadRegionsRequestToJSON(requestParameters.readRegionsRequest); + const request = { + path: `/ReadRegions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadRegionsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readRegions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readRegionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/RouteApi.d.ts b/dist/esm/apis/RouteApi.d.ts new file mode 100644 index 00000000..5ef638dc --- /dev/null +++ b/dist/esm/apis/RouteApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateRouteRequest, CreateRouteResponse, DeleteRouteRequest, DeleteRouteResponse, UpdateRouteRequest, UpdateRouteResponse } from '../models'; +export interface CreateRouteOperationRequest { + createRouteRequest?: CreateRouteRequest; +} +export interface DeleteRouteOperationRequest { + deleteRouteRequest?: DeleteRouteRequest; +} +export interface UpdateRouteOperationRequest { + updateRouteRequest?: UpdateRouteRequest; +} +/** + * RouteApi - interface + * + * @export + * @interface RouteApiInterface + */ +export interface RouteApiInterface { + /** + * + * @param {CreateRouteRequest} [createRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + createRouteRaw(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRoute(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteRouteRequest} [deleteRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + deleteRouteRaw(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRoute(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateRouteRequest} [updateRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + updateRouteRaw(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoute(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class RouteApi extends runtime.BaseAPI implements RouteApiInterface { + /** + */ + createRouteRaw(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRoute(requestParameters?: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteRouteRaw(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRoute(requestParameters?: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateRouteRaw(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoute(requestParameters?: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/RouteApi.js b/dist/esm/apis/RouteApi.js new file mode 100644 index 00000000..2dd4c0de --- /dev/null +++ b/dist/esm/apis/RouteApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateRouteRequestToJSON, CreateRouteResponseFromJSON, DeleteRouteRequestToJSON, DeleteRouteResponseFromJSON, UpdateRouteRequestToJSON, UpdateRouteResponseFromJSON, } from '../models'; +/** + * + */ +export class RouteApi extends runtime.BaseAPI { + /** + */ + createRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateRouteRequestToJSON(requestParameters.createRouteRequest); + const request = { + path: `/CreateRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateRouteResponseFromJSON(jsonValue)); + }); + } + /** + */ + createRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteRouteRequestToJSON(requestParameters.deleteRouteRequest); + const request = { + path: `/DeleteRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteRouteResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateRouteRequestToJSON(requestParameters.updateRouteRequest); + const request = { + path: `/UpdateRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateRouteResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/RouteTableApi.d.ts b/dist/esm/apis/RouteTableApi.d.ts new file mode 100644 index 00000000..e9e46139 --- /dev/null +++ b/dist/esm/apis/RouteTableApi.d.ts @@ -0,0 +1,126 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateRouteTableRequest, CreateRouteTableResponse, DeleteRouteTableRequest, DeleteRouteTableResponse, LinkRouteTableRequest, LinkRouteTableResponse, ReadRouteTablesRequest, ReadRouteTablesResponse, UnlinkRouteTableRequest, UnlinkRouteTableResponse } from '../models'; +export interface CreateRouteTableOperationRequest { + createRouteTableRequest?: CreateRouteTableRequest; +} +export interface DeleteRouteTableOperationRequest { + deleteRouteTableRequest?: DeleteRouteTableRequest; +} +export interface LinkRouteTableOperationRequest { + linkRouteTableRequest?: LinkRouteTableRequest; +} +export interface ReadRouteTablesOperationRequest { + readRouteTablesRequest?: ReadRouteTablesRequest; +} +export interface UnlinkRouteTableOperationRequest { + unlinkRouteTableRequest?: UnlinkRouteTableRequest; +} +/** + * RouteTableApi - interface + * + * @export + * @interface RouteTableApiInterface + */ +export interface RouteTableApiInterface { + /** + * + * @param {CreateRouteTableRequest} [createRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + createRouteTableRaw(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRouteTable(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteRouteTableRequest} [deleteRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + deleteRouteTableRaw(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRouteTable(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkRouteTableRequest} [linkRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + linkRouteTableRaw(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkRouteTable(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadRouteTablesRequest} [readRouteTablesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + readRouteTablesRaw(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRouteTables(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkRouteTableRequest} [unlinkRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + unlinkRouteTableRaw(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkRouteTable(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class RouteTableApi extends runtime.BaseAPI implements RouteTableApiInterface { + /** + */ + createRouteTableRaw(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createRouteTable(requestParameters?: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteRouteTableRaw(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteRouteTable(requestParameters?: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkRouteTableRaw(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkRouteTable(requestParameters?: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readRouteTablesRaw(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readRouteTables(requestParameters?: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkRouteTableRaw(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkRouteTable(requestParameters?: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/RouteTableApi.js b/dist/esm/apis/RouteTableApi.js new file mode 100644 index 00000000..0330e92f --- /dev/null +++ b/dist/esm/apis/RouteTableApi.js @@ -0,0 +1,224 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateRouteTableRequestToJSON, CreateRouteTableResponseFromJSON, DeleteRouteTableRequestToJSON, DeleteRouteTableResponseFromJSON, LinkRouteTableRequestToJSON, LinkRouteTableResponseFromJSON, ReadRouteTablesRequestToJSON, ReadRouteTablesResponseFromJSON, UnlinkRouteTableRequestToJSON, UnlinkRouteTableResponseFromJSON, } from '../models'; +/** + * + */ +export class RouteTableApi extends runtime.BaseAPI { + /** + */ + createRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateRouteTableRequestToJSON(requestParameters.createRouteTableRequest); + const request = { + path: `/CreateRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateRouteTableResponseFromJSON(jsonValue)); + }); + } + /** + */ + createRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteRouteTableRequestToJSON(requestParameters.deleteRouteTableRequest); + const request = { + path: `/DeleteRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteRouteTableResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkRouteTableRequestToJSON(requestParameters.linkRouteTableRequest); + const request = { + path: `/LinkRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkRouteTableResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readRouteTablesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadRouteTablesRequestToJSON(requestParameters.readRouteTablesRequest); + const request = { + path: `/ReadRouteTables`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadRouteTablesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readRouteTables(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readRouteTablesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkRouteTableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkRouteTableRequestToJSON(requestParameters.unlinkRouteTableRequest); + const request = { + path: `/UnlinkRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkRouteTableResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkRouteTable(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkRouteTableRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SecurityGroupApi.d.ts b/dist/esm/apis/SecurityGroupApi.d.ts new file mode 100644 index 00000000..5c619259 --- /dev/null +++ b/dist/esm/apis/SecurityGroupApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSecurityGroupRequest, CreateSecurityGroupResponse, DeleteSecurityGroupRequest, DeleteSecurityGroupResponse, ReadSecurityGroupsRequest, ReadSecurityGroupsResponse } from '../models'; +export interface CreateSecurityGroupOperationRequest { + createSecurityGroupRequest?: CreateSecurityGroupRequest; +} +export interface DeleteSecurityGroupOperationRequest { + deleteSecurityGroupRequest?: DeleteSecurityGroupRequest; +} +export interface ReadSecurityGroupsOperationRequest { + readSecurityGroupsRequest?: ReadSecurityGroupsRequest; +} +/** + * SecurityGroupApi - interface + * + * @export + * @interface SecurityGroupApiInterface + */ +export interface SecurityGroupApiInterface { + /** + * + * @param {CreateSecurityGroupRequest} [createSecurityGroupRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + createSecurityGroupRaw(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroup(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSecurityGroupRequest} [deleteSecurityGroupRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + deleteSecurityGroupRaw(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroup(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSecurityGroupsRequest} [readSecurityGroupsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + readSecurityGroupsRaw(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecurityGroups(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SecurityGroupApi extends runtime.BaseAPI implements SecurityGroupApiInterface { + /** + */ + createSecurityGroupRaw(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroup(requestParameters?: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSecurityGroupRaw(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroup(requestParameters?: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSecurityGroupsRaw(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSecurityGroups(requestParameters?: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/SecurityGroupApi.js b/dist/esm/apis/SecurityGroupApi.js new file mode 100644 index 00000000..f0a5d83a --- /dev/null +++ b/dist/esm/apis/SecurityGroupApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateSecurityGroupRequestToJSON, CreateSecurityGroupResponseFromJSON, DeleteSecurityGroupRequestToJSON, DeleteSecurityGroupResponseFromJSON, ReadSecurityGroupsRequestToJSON, ReadSecurityGroupsResponseFromJSON, } from '../models'; +/** + * + */ +export class SecurityGroupApi extends runtime.BaseAPI { + /** + */ + createSecurityGroupRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateSecurityGroupRequestToJSON(requestParameters.createSecurityGroupRequest); + const request = { + path: `/CreateSecurityGroup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSecurityGroupResponseFromJSON(jsonValue)); + }); + } + /** + */ + createSecurityGroup(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSecurityGroupRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSecurityGroupRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteSecurityGroupRequestToJSON(requestParameters.deleteSecurityGroupRequest); + const request = { + path: `/DeleteSecurityGroup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSecurityGroupResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteSecurityGroup(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSecurityGroupRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSecurityGroupsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadSecurityGroupsRequestToJSON(requestParameters.readSecurityGroupsRequest); + const request = { + path: `/ReadSecurityGroups`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSecurityGroupsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readSecurityGroups(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSecurityGroupsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SecurityGroupRuleApi.d.ts b/dist/esm/apis/SecurityGroupRuleApi.d.ts new file mode 100644 index 00000000..9e7bb733 --- /dev/null +++ b/dist/esm/apis/SecurityGroupRuleApi.d.ts @@ -0,0 +1,66 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, DeleteSecurityGroupRuleRequest, DeleteSecurityGroupRuleResponse } from '../models'; +export interface CreateSecurityGroupRuleOperationRequest { + createSecurityGroupRuleRequest?: CreateSecurityGroupRuleRequest; +} +export interface DeleteSecurityGroupRuleOperationRequest { + deleteSecurityGroupRuleRequest?: DeleteSecurityGroupRuleRequest; +} +/** + * SecurityGroupRuleApi - interface + * + * @export + * @interface SecurityGroupRuleApiInterface + */ +export interface SecurityGroupRuleApiInterface { + /** + * + * @param {CreateSecurityGroupRuleRequest} [createSecurityGroupRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupRuleApiInterface + */ + createSecurityGroupRuleRaw(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroupRule(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSecurityGroupRuleRequest} [deleteSecurityGroupRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupRuleApiInterface + */ + deleteSecurityGroupRuleRaw(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroupRule(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SecurityGroupRuleApi extends runtime.BaseAPI implements SecurityGroupRuleApiInterface { + /** + */ + createSecurityGroupRuleRaw(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSecurityGroupRule(requestParameters?: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSecurityGroupRuleRaw(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSecurityGroupRule(requestParameters?: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/SecurityGroupRuleApi.js b/dist/esm/apis/SecurityGroupRuleApi.js new file mode 100644 index 00000000..35e19d57 --- /dev/null +++ b/dist/esm/apis/SecurityGroupRuleApi.js @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateSecurityGroupRuleRequestToJSON, CreateSecurityGroupRuleResponseFromJSON, DeleteSecurityGroupRuleRequestToJSON, DeleteSecurityGroupRuleResponseFromJSON, } from '../models'; +/** + * + */ +export class SecurityGroupRuleApi extends runtime.BaseAPI { + /** + */ + createSecurityGroupRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateSecurityGroupRuleRequestToJSON(requestParameters.createSecurityGroupRuleRequest); + const request = { + path: `/CreateSecurityGroupRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSecurityGroupRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + createSecurityGroupRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSecurityGroupRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSecurityGroupRuleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteSecurityGroupRuleRequestToJSON(requestParameters.deleteSecurityGroupRuleRequest); + const request = { + path: `/DeleteSecurityGroupRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSecurityGroupRuleResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteSecurityGroupRule(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSecurityGroupRuleRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ServerCertificateApi.d.ts b/dist/esm/apis/ServerCertificateApi.d.ts new file mode 100644 index 00000000..c6efb8a1 --- /dev/null +++ b/dist/esm/apis/ServerCertificateApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateServerCertificateRequest, CreateServerCertificateResponse, DeleteServerCertificateRequest, DeleteServerCertificateResponse, ReadServerCertificatesRequest, ReadServerCertificatesResponse, UpdateServerCertificateRequest, UpdateServerCertificateResponse } from '../models'; +export interface CreateServerCertificateOperationRequest { + createServerCertificateRequest?: CreateServerCertificateRequest; +} +export interface DeleteServerCertificateOperationRequest { + deleteServerCertificateRequest?: DeleteServerCertificateRequest; +} +export interface ReadServerCertificatesOperationRequest { + readServerCertificatesRequest?: ReadServerCertificatesRequest; +} +export interface UpdateServerCertificateOperationRequest { + updateServerCertificateRequest?: UpdateServerCertificateRequest; +} +/** + * ServerCertificateApi - interface + * + * @export + * @interface ServerCertificateApiInterface + */ +export interface ServerCertificateApiInterface { + /** + * + * @param {CreateServerCertificateRequest} [createServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + createServerCertificateRaw(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createServerCertificate(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteServerCertificateRequest} [deleteServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + deleteServerCertificateRaw(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteServerCertificate(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadServerCertificatesRequest} [readServerCertificatesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + readServerCertificatesRaw(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readServerCertificates(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateServerCertificateRequest} [updateServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + updateServerCertificateRaw(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateServerCertificate(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class ServerCertificateApi extends runtime.BaseAPI implements ServerCertificateApiInterface { + /** + */ + createServerCertificateRaw(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createServerCertificate(requestParameters?: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteServerCertificateRaw(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteServerCertificate(requestParameters?: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readServerCertificatesRaw(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readServerCertificates(requestParameters?: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateServerCertificateRaw(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateServerCertificate(requestParameters?: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/ServerCertificateApi.js b/dist/esm/apis/ServerCertificateApi.js new file mode 100644 index 00000000..2083ab9e --- /dev/null +++ b/dist/esm/apis/ServerCertificateApi.js @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateServerCertificateRequestToJSON, CreateServerCertificateResponseFromJSON, DeleteServerCertificateRequestToJSON, DeleteServerCertificateResponseFromJSON, ReadServerCertificatesRequestToJSON, ReadServerCertificatesResponseFromJSON, UpdateServerCertificateRequestToJSON, UpdateServerCertificateResponseFromJSON, } from '../models'; +/** + * + */ +export class ServerCertificateApi extends runtime.BaseAPI { + /** + */ + createServerCertificateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateServerCertificateRequestToJSON(requestParameters.createServerCertificateRequest); + const request = { + path: `/CreateServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateServerCertificateResponseFromJSON(jsonValue)); + }); + } + /** + */ + createServerCertificate(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createServerCertificateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteServerCertificateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteServerCertificateRequestToJSON(requestParameters.deleteServerCertificateRequest); + const request = { + path: `/DeleteServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteServerCertificateResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteServerCertificate(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteServerCertificateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readServerCertificatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadServerCertificatesRequestToJSON(requestParameters.readServerCertificatesRequest); + const request = { + path: `/ReadServerCertificates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadServerCertificatesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readServerCertificates(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readServerCertificatesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateServerCertificateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateServerCertificateRequestToJSON(requestParameters.updateServerCertificateRequest); + const request = { + path: `/UpdateServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateServerCertificateResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateServerCertificate(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateServerCertificateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SnapshotApi.d.ts b/dist/esm/apis/SnapshotApi.d.ts new file mode 100644 index 00000000..bc03e47e --- /dev/null +++ b/dist/esm/apis/SnapshotApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSnapshotExportTaskRequest, CreateSnapshotExportTaskResponse, CreateSnapshotRequest, CreateSnapshotResponse, DeleteSnapshotRequest, DeleteSnapshotResponse, ReadSnapshotExportTasksRequest, ReadSnapshotExportTasksResponse, ReadSnapshotsRequest, ReadSnapshotsResponse, UpdateSnapshotRequest, UpdateSnapshotResponse } from '../models'; +export interface CreateSnapshotOperationRequest { + createSnapshotRequest?: CreateSnapshotRequest; +} +export interface CreateSnapshotExportTaskOperationRequest { + createSnapshotExportTaskRequest?: CreateSnapshotExportTaskRequest; +} +export interface DeleteSnapshotOperationRequest { + deleteSnapshotRequest?: DeleteSnapshotRequest; +} +export interface ReadSnapshotExportTasksOperationRequest { + readSnapshotExportTasksRequest?: ReadSnapshotExportTasksRequest; +} +export interface ReadSnapshotsOperationRequest { + readSnapshotsRequest?: ReadSnapshotsRequest; +} +export interface UpdateSnapshotOperationRequest { + updateSnapshotRequest?: UpdateSnapshotRequest; +} +/** + * SnapshotApi - interface + * + * @export + * @interface SnapshotApiInterface + */ +export interface SnapshotApiInterface { + /** + * + * @param {CreateSnapshotRequest} [createSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + createSnapshotRaw(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshot(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateSnapshotExportTaskRequest} [createSnapshotExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + createSnapshotExportTaskRaw(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshotExportTask(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSnapshotRequest} [deleteSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + deleteSnapshotRaw(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSnapshot(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSnapshotExportTasksRequest} [readSnapshotExportTasksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + readSnapshotExportTasksRaw(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshotExportTasks(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSnapshotsRequest} [readSnapshotsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + readSnapshotsRaw(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshots(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateSnapshotRequest} [updateSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + updateSnapshotRaw(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSnapshot(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SnapshotApi extends runtime.BaseAPI implements SnapshotApiInterface { + /** + */ + createSnapshotRaw(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshot(requestParameters?: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createSnapshotExportTaskRaw(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSnapshotExportTask(requestParameters?: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSnapshotRaw(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSnapshot(requestParameters?: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSnapshotExportTasksRaw(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshotExportTasks(requestParameters?: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSnapshotsRaw(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSnapshots(requestParameters?: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateSnapshotRaw(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSnapshot(requestParameters?: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/SnapshotApi.js b/dist/esm/apis/SnapshotApi.js new file mode 100644 index 00000000..513533f8 --- /dev/null +++ b/dist/esm/apis/SnapshotApi.js @@ -0,0 +1,263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateSnapshotExportTaskRequestToJSON, CreateSnapshotExportTaskResponseFromJSON, CreateSnapshotRequestToJSON, CreateSnapshotResponseFromJSON, DeleteSnapshotRequestToJSON, DeleteSnapshotResponseFromJSON, ReadSnapshotExportTasksRequestToJSON, ReadSnapshotExportTasksResponseFromJSON, ReadSnapshotsRequestToJSON, ReadSnapshotsResponseFromJSON, UpdateSnapshotRequestToJSON, UpdateSnapshotResponseFromJSON, } from '../models'; +/** + * + */ +export class SnapshotApi extends runtime.BaseAPI { + /** + */ + createSnapshotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateSnapshotRequestToJSON(requestParameters.createSnapshotRequest); + const request = { + path: `/CreateSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSnapshotResponseFromJSON(jsonValue)); + }); + } + /** + */ + createSnapshot(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSnapshotRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createSnapshotExportTaskRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateSnapshotExportTaskRequestToJSON(requestParameters.createSnapshotExportTaskRequest); + const request = { + path: `/CreateSnapshotExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSnapshotExportTaskResponseFromJSON(jsonValue)); + }); + } + /** + */ + createSnapshotExportTask(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSnapshotExportTaskRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSnapshotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteSnapshotRequestToJSON(requestParameters.deleteSnapshotRequest); + const request = { + path: `/DeleteSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSnapshotResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteSnapshot(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSnapshotRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSnapshotExportTasksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadSnapshotExportTasksRequestToJSON(requestParameters.readSnapshotExportTasksRequest); + const request = { + path: `/ReadSnapshotExportTasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSnapshotExportTasksResponseFromJSON(jsonValue)); + }); + } + /** + */ + readSnapshotExportTasks(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSnapshotExportTasksRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSnapshotsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadSnapshotsRequestToJSON(requestParameters.readSnapshotsRequest); + const request = { + path: `/ReadSnapshots`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSnapshotsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readSnapshots(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSnapshotsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateSnapshotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateSnapshotRequestToJSON(requestParameters.updateSnapshotRequest); + const request = { + path: `/UpdateSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSnapshotResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateSnapshot(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateSnapshotRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SubnetApi.d.ts b/dist/esm/apis/SubnetApi.d.ts new file mode 100644 index 00000000..81f40a15 --- /dev/null +++ b/dist/esm/apis/SubnetApi.d.ts @@ -0,0 +1,106 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateSubnetRequest, CreateSubnetResponse, DeleteSubnetRequest, DeleteSubnetResponse, ReadSubnetsRequest, ReadSubnetsResponse, UpdateSubnetRequest, UpdateSubnetResponse } from '../models'; +export interface CreateSubnetOperationRequest { + createSubnetRequest?: CreateSubnetRequest; +} +export interface DeleteSubnetOperationRequest { + deleteSubnetRequest?: DeleteSubnetRequest; +} +export interface ReadSubnetsOperationRequest { + readSubnetsRequest?: ReadSubnetsRequest; +} +export interface UpdateSubnetOperationRequest { + updateSubnetRequest?: UpdateSubnetRequest; +} +/** + * SubnetApi - interface + * + * @export + * @interface SubnetApiInterface + */ +export interface SubnetApiInterface { + /** + * + * @param {CreateSubnetRequest} [createSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + createSubnetRaw(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSubnet(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteSubnetRequest} [deleteSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + deleteSubnetRaw(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSubnet(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadSubnetsRequest} [readSubnetsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + readSubnetsRaw(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubnets(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateSubnetRequest} [updateSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + updateSubnetRaw(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSubnet(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SubnetApi extends runtime.BaseAPI implements SubnetApiInterface { + /** + */ + createSubnetRaw(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createSubnet(requestParameters?: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteSubnetRaw(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteSubnet(requestParameters?: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readSubnetsRaw(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubnets(requestParameters?: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateSubnetRaw(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateSubnet(requestParameters?: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/SubnetApi.js b/dist/esm/apis/SubnetApi.js new file mode 100644 index 00000000..20957835 --- /dev/null +++ b/dist/esm/apis/SubnetApi.js @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateSubnetRequestToJSON, CreateSubnetResponseFromJSON, DeleteSubnetRequestToJSON, DeleteSubnetResponseFromJSON, ReadSubnetsRequestToJSON, ReadSubnetsResponseFromJSON, UpdateSubnetRequestToJSON, UpdateSubnetResponseFromJSON, } from '../models'; +/** + * + */ +export class SubnetApi extends runtime.BaseAPI { + /** + */ + createSubnetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateSubnetRequestToJSON(requestParameters.createSubnetRequest); + const request = { + path: `/CreateSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSubnetResponseFromJSON(jsonValue)); + }); + } + /** + */ + createSubnet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createSubnetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteSubnetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteSubnetRequestToJSON(requestParameters.deleteSubnetRequest); + const request = { + path: `/DeleteSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSubnetResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteSubnet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteSubnetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readSubnetsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadSubnetsRequestToJSON(requestParameters.readSubnetsRequest); + const request = { + path: `/ReadSubnets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSubnetsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readSubnets(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSubnetsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateSubnetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateSubnetRequestToJSON(requestParameters.updateSubnetRequest); + const request = { + path: `/UpdateSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSubnetResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateSubnet(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateSubnetRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SubregionApi.d.ts b/dist/esm/apis/SubregionApi.d.ts new file mode 100644 index 00000000..387f69d9 --- /dev/null +++ b/dist/esm/apis/SubregionApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { ReadSubregionsRequest, ReadSubregionsResponse } from '../models'; +export interface ReadSubregionsOperationRequest { + readSubregionsRequest?: ReadSubregionsRequest; +} +/** + * SubregionApi - interface + * + * @export + * @interface SubregionApiInterface + */ +export interface SubregionApiInterface { + /** + * + * @param {ReadSubregionsRequest} [readSubregionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubregionApiInterface + */ + readSubregionsRaw(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubregions(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class SubregionApi extends runtime.BaseAPI implements SubregionApiInterface { + /** + */ + readSubregionsRaw(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readSubregions(requestParameters?: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/SubregionApi.js b/dist/esm/apis/SubregionApi.js new file mode 100644 index 00000000..e02dcd30 --- /dev/null +++ b/dist/esm/apis/SubregionApi.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReadSubregionsRequestToJSON, ReadSubregionsResponseFromJSON, } from '../models'; +/** + * + */ +export class SubregionApi extends runtime.BaseAPI { + /** + */ + readSubregionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadSubregionsRequestToJSON(requestParameters.readSubregionsRequest); + const request = { + path: `/ReadSubregions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSubregionsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readSubregions(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readSubregionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/TagApi.d.ts b/dist/esm/apis/TagApi.d.ts new file mode 100644 index 00000000..2efc075a --- /dev/null +++ b/dist/esm/apis/TagApi.d.ts @@ -0,0 +1,86 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateTagsRequest, CreateTagsResponse, DeleteTagsRequest, DeleteTagsResponse, ReadTagsRequest, ReadTagsResponse } from '../models'; +export interface CreateTagsOperationRequest { + createTagsRequest?: CreateTagsRequest; +} +export interface DeleteTagsOperationRequest { + deleteTagsRequest?: DeleteTagsRequest; +} +export interface ReadTagsOperationRequest { + readTagsRequest?: ReadTagsRequest; +} +/** + * TagApi - interface + * + * @export + * @interface TagApiInterface + */ +export interface TagApiInterface { + /** + * + * @param {CreateTagsRequest} [createTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + createTagsRaw(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createTags(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteTagsRequest} [deleteTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + deleteTagsRaw(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteTags(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadTagsRequest} [readTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + readTagsRaw(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readTags(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class TagApi extends runtime.BaseAPI implements TagApiInterface { + /** + */ + createTagsRaw(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createTags(requestParameters?: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteTagsRaw(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteTags(requestParameters?: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readTagsRaw(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readTags(requestParameters?: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/TagApi.js b/dist/esm/apis/TagApi.js new file mode 100644 index 00000000..92ce4293 --- /dev/null +++ b/dist/esm/apis/TagApi.js @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateTagsRequestToJSON, CreateTagsResponseFromJSON, DeleteTagsRequestToJSON, DeleteTagsResponseFromJSON, ReadTagsRequestToJSON, ReadTagsResponseFromJSON, } from '../models'; +/** + * + */ +export class TagApi extends runtime.BaseAPI { + /** + */ + createTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateTagsRequestToJSON(requestParameters.createTagsRequest); + const request = { + path: `/CreateTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateTagsResponseFromJSON(jsonValue)); + }); + } + /** + */ + createTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteTagsRequestToJSON(requestParameters.deleteTagsRequest); + const request = { + path: `/DeleteTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteTagsResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readTagsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadTagsRequestToJSON(requestParameters.readTagsRequest); + const request = { + path: `/ReadTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadTagsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readTags(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readTagsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/TaskApi.d.ts b/dist/esm/apis/TaskApi.d.ts new file mode 100644 index 00000000..5b2645d8 --- /dev/null +++ b/dist/esm/apis/TaskApi.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { DeleteExportTaskRequest, DeleteExportTaskResponse } from '../models'; +export interface DeleteExportTaskOperationRequest { + deleteExportTaskRequest?: DeleteExportTaskRequest; +} +/** + * TaskApi - interface + * + * @export + * @interface TaskApiInterface + */ +export interface TaskApiInterface { + /** + * + * @param {DeleteExportTaskRequest} [deleteExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TaskApiInterface + */ + deleteExportTaskRaw(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteExportTask(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class TaskApi extends runtime.BaseAPI implements TaskApiInterface { + /** + */ + deleteExportTaskRaw(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteExportTask(requestParameters?: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/TaskApi.js b/dist/esm/apis/TaskApi.js new file mode 100644 index 00000000..3c40bb53 --- /dev/null +++ b/dist/esm/apis/TaskApi.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { DeleteExportTaskRequestToJSON, DeleteExportTaskResponseFromJSON, } from '../models'; +/** + * + */ +export class TaskApi extends runtime.BaseAPI { + /** + */ + deleteExportTaskRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteExportTaskRequestToJSON(requestParameters.deleteExportTaskRequest); + const request = { + path: `/DeleteExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteExportTaskResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteExportTask(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteExportTaskRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/VirtualGatewayApi.d.ts b/dist/esm/apis/VirtualGatewayApi.d.ts new file mode 100644 index 00000000..b060d2f8 --- /dev/null +++ b/dist/esm/apis/VirtualGatewayApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVirtualGatewayRequest, CreateVirtualGatewayResponse, DeleteVirtualGatewayRequest, DeleteVirtualGatewayResponse, LinkVirtualGatewayRequest, LinkVirtualGatewayResponse, ReadVirtualGatewaysRequest, ReadVirtualGatewaysResponse, UnlinkVirtualGatewayRequest, UnlinkVirtualGatewayResponse, UpdateRoutePropagationRequest, UpdateRoutePropagationResponse } from '../models'; +export interface CreateVirtualGatewayOperationRequest { + createVirtualGatewayRequest?: CreateVirtualGatewayRequest; +} +export interface DeleteVirtualGatewayOperationRequest { + deleteVirtualGatewayRequest?: DeleteVirtualGatewayRequest; +} +export interface LinkVirtualGatewayOperationRequest { + linkVirtualGatewayRequest?: LinkVirtualGatewayRequest; +} +export interface ReadVirtualGatewaysOperationRequest { + readVirtualGatewaysRequest?: ReadVirtualGatewaysRequest; +} +export interface UnlinkVirtualGatewayOperationRequest { + unlinkVirtualGatewayRequest?: UnlinkVirtualGatewayRequest; +} +export interface UpdateRoutePropagationOperationRequest { + updateRoutePropagationRequest?: UpdateRoutePropagationRequest; +} +/** + * VirtualGatewayApi - interface + * + * @export + * @interface VirtualGatewayApiInterface + */ +export interface VirtualGatewayApiInterface { + /** + * + * @param {CreateVirtualGatewayRequest} [createVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + createVirtualGatewayRaw(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVirtualGateway(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVirtualGatewayRequest} [deleteVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + deleteVirtualGatewayRaw(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVirtualGateway(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkVirtualGatewayRequest} [linkVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + linkVirtualGatewayRaw(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVirtualGateway(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVirtualGatewaysRequest} [readVirtualGatewaysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + readVirtualGatewaysRaw(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVirtualGateways(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkVirtualGatewayRequest} [unlinkVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + unlinkVirtualGatewayRaw(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVirtualGateway(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateRoutePropagationRequest} [updateRoutePropagationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + updateRoutePropagationRaw(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoutePropagation(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VirtualGatewayApi extends runtime.BaseAPI implements VirtualGatewayApiInterface { + /** + */ + createVirtualGatewayRaw(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVirtualGateway(requestParameters?: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVirtualGatewayRaw(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVirtualGateway(requestParameters?: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkVirtualGatewayRaw(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVirtualGateway(requestParameters?: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVirtualGatewaysRaw(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVirtualGateways(requestParameters?: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkVirtualGatewayRaw(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVirtualGateway(requestParameters?: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateRoutePropagationRaw(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateRoutePropagation(requestParameters?: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/VirtualGatewayApi.js b/dist/esm/apis/VirtualGatewayApi.js new file mode 100644 index 00000000..c23ab2fb --- /dev/null +++ b/dist/esm/apis/VirtualGatewayApi.js @@ -0,0 +1,263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateVirtualGatewayRequestToJSON, CreateVirtualGatewayResponseFromJSON, DeleteVirtualGatewayRequestToJSON, DeleteVirtualGatewayResponseFromJSON, LinkVirtualGatewayRequestToJSON, LinkVirtualGatewayResponseFromJSON, ReadVirtualGatewaysRequestToJSON, ReadVirtualGatewaysResponseFromJSON, UnlinkVirtualGatewayRequestToJSON, UnlinkVirtualGatewayResponseFromJSON, UpdateRoutePropagationRequestToJSON, UpdateRoutePropagationResponseFromJSON, } from '../models'; +/** + * + */ +export class VirtualGatewayApi extends runtime.BaseAPI { + /** + */ + createVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateVirtualGatewayRequestToJSON(requestParameters.createVirtualGatewayRequest); + const request = { + path: `/CreateVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVirtualGatewayResponseFromJSON(jsonValue)); + }); + } + /** + */ + createVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteVirtualGatewayRequestToJSON(requestParameters.deleteVirtualGatewayRequest); + const request = { + path: `/DeleteVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVirtualGatewayResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkVirtualGatewayRequestToJSON(requestParameters.linkVirtualGatewayRequest); + const request = { + path: `/LinkVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkVirtualGatewayResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVirtualGatewaysRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadVirtualGatewaysRequestToJSON(requestParameters.readVirtualGatewaysRequest); + const request = { + path: `/ReadVirtualGateways`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVirtualGatewaysResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVirtualGateways(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVirtualGatewaysRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkVirtualGatewayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkVirtualGatewayRequestToJSON(requestParameters.unlinkVirtualGatewayRequest); + const request = { + path: `/UnlinkVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkVirtualGatewayResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkVirtualGateway(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkVirtualGatewayRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateRoutePropagationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateRoutePropagationRequestToJSON(requestParameters.updateRoutePropagationRequest); + const request = { + path: `/UpdateRoutePropagation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateRoutePropagationResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateRoutePropagation(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateRoutePropagationRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/VmApi.d.ts b/dist/esm/apis/VmApi.d.ts new file mode 100644 index 00000000..7cb36d5f --- /dev/null +++ b/dist/esm/apis/VmApi.d.ts @@ -0,0 +1,246 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVmsRequest, CreateVmsResponse, DeleteVmsRequest, DeleteVmsResponse, ReadAdminPasswordRequest, ReadAdminPasswordResponse, ReadConsoleOutputRequest, ReadConsoleOutputResponse, ReadVmTypesRequest, ReadVmTypesResponse, ReadVmsRequest, ReadVmsResponse, ReadVmsStateRequest, ReadVmsStateResponse, RebootVmsRequest, RebootVmsResponse, StartVmsRequest, StartVmsResponse, StopVmsRequest, StopVmsResponse, UpdateVmRequest, UpdateVmResponse } from '../models'; +export interface CreateVmsOperationRequest { + createVmsRequest?: CreateVmsRequest; +} +export interface DeleteVmsOperationRequest { + deleteVmsRequest?: DeleteVmsRequest; +} +export interface ReadAdminPasswordOperationRequest { + readAdminPasswordRequest?: ReadAdminPasswordRequest; +} +export interface ReadConsoleOutputOperationRequest { + readConsoleOutputRequest?: ReadConsoleOutputRequest; +} +export interface ReadVmTypesOperationRequest { + readVmTypesRequest?: ReadVmTypesRequest; +} +export interface ReadVmsOperationRequest { + readVmsRequest?: ReadVmsRequest; +} +export interface ReadVmsStateOperationRequest { + readVmsStateRequest?: ReadVmsStateRequest; +} +export interface RebootVmsOperationRequest { + rebootVmsRequest?: RebootVmsRequest; +} +export interface StartVmsOperationRequest { + startVmsRequest?: StartVmsRequest; +} +export interface StopVmsOperationRequest { + stopVmsRequest?: StopVmsRequest; +} +export interface UpdateVmOperationRequest { + updateVmRequest?: UpdateVmRequest; +} +/** + * VmApi - interface + * + * @export + * @interface VmApiInterface + */ +export interface VmApiInterface { + /** + * + * @param {CreateVmsRequest} [createVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + createVmsRaw(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVms(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVmsRequest} [deleteVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + deleteVmsRaw(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVms(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadAdminPasswordRequest} [readAdminPasswordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readAdminPasswordRaw(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAdminPassword(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadConsoleOutputRequest} [readConsoleOutputRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readConsoleOutputRaw(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsoleOutput(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmTypesRequest} [readVmTypesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmTypesRaw(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmTypes(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmsRequest} [readVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmsRaw(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVms(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVmsStateRequest} [readVmsStateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmsStateRaw(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsState(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {RebootVmsRequest} [rebootVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + rebootVmsRaw(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rebootVms(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {StartVmsRequest} [startVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + startVmsRaw(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + startVms(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {StopVmsRequest} [stopVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + stopVmsRaw(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + stopVms(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateVmRequest} [updateVmRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + updateVmRaw(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVm(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VmApi extends runtime.BaseAPI implements VmApiInterface { + /** + */ + createVmsRaw(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVms(requestParameters?: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVmsRaw(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVms(requestParameters?: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readAdminPasswordRaw(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readAdminPassword(requestParameters?: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readConsoleOutputRaw(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readConsoleOutput(requestParameters?: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmTypesRaw(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmTypes(requestParameters?: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmsRaw(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVms(requestParameters?: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVmsStateRaw(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVmsState(requestParameters?: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + rebootVmsRaw(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + rebootVms(requestParameters?: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + startVmsRaw(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + startVms(requestParameters?: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + stopVmsRaw(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + stopVms(requestParameters?: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateVmRaw(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVm(requestParameters?: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/VmApi.js b/dist/esm/apis/VmApi.js new file mode 100644 index 00000000..045e6fbe --- /dev/null +++ b/dist/esm/apis/VmApi.js @@ -0,0 +1,455 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateVmsRequestToJSON, CreateVmsResponseFromJSON, DeleteVmsRequestToJSON, DeleteVmsResponseFromJSON, ReadAdminPasswordRequestToJSON, ReadAdminPasswordResponseFromJSON, ReadConsoleOutputRequestToJSON, ReadConsoleOutputResponseFromJSON, ReadVmTypesRequestToJSON, ReadVmTypesResponseFromJSON, ReadVmsRequestToJSON, ReadVmsResponseFromJSON, ReadVmsStateRequestToJSON, ReadVmsStateResponseFromJSON, RebootVmsRequestToJSON, RebootVmsResponseFromJSON, StartVmsRequestToJSON, StartVmsResponseFromJSON, StopVmsRequestToJSON, StopVmsResponseFromJSON, UpdateVmRequestToJSON, UpdateVmResponseFromJSON, } from '../models'; +/** + * + */ +export class VmApi extends runtime.BaseAPI { + /** + */ + createVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateVmsRequestToJSON(requestParameters.createVmsRequest); + const request = { + path: `/CreateVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVmsResponseFromJSON(jsonValue)); + }); + } + /** + */ + createVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteVmsRequestToJSON(requestParameters.deleteVmsRequest); + const request = { + path: `/DeleteVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVmsResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readAdminPasswordRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadAdminPasswordRequestToJSON(requestParameters.readAdminPasswordRequest); + const request = { + path: `/ReadAdminPassword`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadAdminPasswordResponseFromJSON(jsonValue)); + }); + } + /** + */ + readAdminPassword(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readAdminPasswordRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readConsoleOutputRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadConsoleOutputRequestToJSON(requestParameters.readConsoleOutputRequest); + const request = { + path: `/ReadConsoleOutput`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadConsoleOutputResponseFromJSON(jsonValue)); + }); + } + /** + */ + readConsoleOutput(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readConsoleOutputRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const body = ReadVmTypesRequestToJSON(requestParameters.readVmTypesRequest); + const request = { + path: `/ReadVmTypes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmTypesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVmTypes(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmTypesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadVmsRequestToJSON(requestParameters.readVmsRequest); + const request = { + path: `/ReadVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVmsStateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadVmsStateRequestToJSON(requestParameters.readVmsStateRequest); + const request = { + path: `/ReadVmsState`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmsStateResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVmsState(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVmsStateRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + rebootVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = RebootVmsRequestToJSON(requestParameters.rebootVmsRequest); + const request = { + path: `/RebootVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => RebootVmsResponseFromJSON(jsonValue)); + }); + } + /** + */ + rebootVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rebootVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + startVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = StartVmsRequestToJSON(requestParameters.startVmsRequest); + const request = { + path: `/StartVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => StartVmsResponseFromJSON(jsonValue)); + }); + } + /** + */ + startVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.startVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + stopVmsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = StopVmsRequestToJSON(requestParameters.stopVmsRequest); + const request = { + path: `/StopVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => StopVmsResponseFromJSON(jsonValue)); + }); + } + /** + */ + stopVms(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.stopVmsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateVmRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateVmRequestToJSON(requestParameters.updateVmRequest); + const request = { + path: `/UpdateVm`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateVmResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateVm(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateVmRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/VolumeApi.d.ts b/dist/esm/apis/VolumeApi.d.ts new file mode 100644 index 00000000..c88746c7 --- /dev/null +++ b/dist/esm/apis/VolumeApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVolumeRequest, CreateVolumeResponse, DeleteVolumeRequest, DeleteVolumeResponse, LinkVolumeRequest, LinkVolumeResponse, ReadVolumesRequest, ReadVolumesResponse, UnlinkVolumeRequest, UnlinkVolumeResponse, UpdateVolumeRequest, UpdateVolumeResponse } from '../models'; +export interface CreateVolumeOperationRequest { + createVolumeRequest?: CreateVolumeRequest; +} +export interface DeleteVolumeOperationRequest { + deleteVolumeRequest?: DeleteVolumeRequest; +} +export interface LinkVolumeOperationRequest { + linkVolumeRequest?: LinkVolumeRequest; +} +export interface ReadVolumesOperationRequest { + readVolumesRequest?: ReadVolumesRequest; +} +export interface UnlinkVolumeOperationRequest { + unlinkVolumeRequest?: UnlinkVolumeRequest; +} +export interface UpdateVolumeOperationRequest { + updateVolumeRequest?: UpdateVolumeRequest; +} +/** + * VolumeApi - interface + * + * @export + * @interface VolumeApiInterface + */ +export interface VolumeApiInterface { + /** + * + * @param {CreateVolumeRequest} [createVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + createVolumeRaw(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVolume(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVolumeRequest} [deleteVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + deleteVolumeRaw(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVolume(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {LinkVolumeRequest} [linkVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + linkVolumeRaw(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVolume(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVolumesRequest} [readVolumesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + readVolumesRaw(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVolumes(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UnlinkVolumeRequest} [unlinkVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + unlinkVolumeRaw(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVolume(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateVolumeRequest} [updateVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + updateVolumeRaw(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVolume(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VolumeApi extends runtime.BaseAPI implements VolumeApiInterface { + /** + */ + createVolumeRaw(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVolume(requestParameters?: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVolumeRaw(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVolume(requestParameters?: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + linkVolumeRaw(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + linkVolume(requestParameters?: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVolumesRaw(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVolumes(requestParameters?: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + unlinkVolumeRaw(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + unlinkVolume(requestParameters?: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateVolumeRaw(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVolume(requestParameters?: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/VolumeApi.js b/dist/esm/apis/VolumeApi.js new file mode 100644 index 00000000..8cca3e92 --- /dev/null +++ b/dist/esm/apis/VolumeApi.js @@ -0,0 +1,263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateVolumeRequestToJSON, CreateVolumeResponseFromJSON, DeleteVolumeRequestToJSON, DeleteVolumeResponseFromJSON, LinkVolumeRequestToJSON, LinkVolumeResponseFromJSON, ReadVolumesRequestToJSON, ReadVolumesResponseFromJSON, UnlinkVolumeRequestToJSON, UnlinkVolumeResponseFromJSON, UpdateVolumeRequestToJSON, UpdateVolumeResponseFromJSON, } from '../models'; +/** + * + */ +export class VolumeApi extends runtime.BaseAPI { + /** + */ + createVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateVolumeRequestToJSON(requestParameters.createVolumeRequest); + const request = { + path: `/CreateVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVolumeResponseFromJSON(jsonValue)); + }); + } + /** + */ + createVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteVolumeRequestToJSON(requestParameters.deleteVolumeRequest); + const request = { + path: `/DeleteVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVolumeResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + linkVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = LinkVolumeRequestToJSON(requestParameters.linkVolumeRequest); + const request = { + path: `/LinkVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => LinkVolumeResponseFromJSON(jsonValue)); + }); + } + /** + */ + linkVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.linkVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVolumesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadVolumesRequestToJSON(requestParameters.readVolumesRequest); + const request = { + path: `/ReadVolumes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVolumesResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVolumes(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVolumesRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + unlinkVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UnlinkVolumeRequestToJSON(requestParameters.unlinkVolumeRequest); + const request = { + path: `/UnlinkVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkVolumeResponseFromJSON(jsonValue)); + }); + } + /** + */ + unlinkVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unlinkVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateVolumeRequestToJSON(requestParameters.updateVolumeRequest); + const request = { + path: `/UpdateVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateVolumeResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateVolume(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateVolumeRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/VpnConnectionApi.d.ts b/dist/esm/apis/VpnConnectionApi.d.ts new file mode 100644 index 00000000..5d53e9ce --- /dev/null +++ b/dist/esm/apis/VpnConnectionApi.d.ts @@ -0,0 +1,146 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import { CreateVpnConnectionRequest, CreateVpnConnectionResponse, CreateVpnConnectionRouteRequest, CreateVpnConnectionRouteResponse, DeleteVpnConnectionRequest, DeleteVpnConnectionResponse, DeleteVpnConnectionRouteRequest, DeleteVpnConnectionRouteResponse, ReadVpnConnectionsRequest, ReadVpnConnectionsResponse, UpdateVpnConnectionRequest, UpdateVpnConnectionResponse } from '../models'; +export interface CreateVpnConnectionOperationRequest { + createVpnConnectionRequest?: CreateVpnConnectionRequest; +} +export interface CreateVpnConnectionRouteOperationRequest { + createVpnConnectionRouteRequest?: CreateVpnConnectionRouteRequest; +} +export interface DeleteVpnConnectionOperationRequest { + deleteVpnConnectionRequest?: DeleteVpnConnectionRequest; +} +export interface DeleteVpnConnectionRouteOperationRequest { + deleteVpnConnectionRouteRequest?: DeleteVpnConnectionRouteRequest; +} +export interface ReadVpnConnectionsOperationRequest { + readVpnConnectionsRequest?: ReadVpnConnectionsRequest; +} +export interface UpdateVpnConnectionOperationRequest { + updateVpnConnectionRequest?: UpdateVpnConnectionRequest; +} +/** + * VpnConnectionApi - interface + * + * @export + * @interface VpnConnectionApiInterface + */ +export interface VpnConnectionApiInterface { + /** + * + * @param {CreateVpnConnectionRequest} [createVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + createVpnConnectionRaw(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnection(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {CreateVpnConnectionRouteRequest} [createVpnConnectionRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + createVpnConnectionRouteRaw(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnectionRoute(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVpnConnectionRequest} [deleteVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + deleteVpnConnectionRaw(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnection(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {DeleteVpnConnectionRouteRequest} [deleteVpnConnectionRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + deleteVpnConnectionRouteRaw(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnectionRoute(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {ReadVpnConnectionsRequest} [readVpnConnectionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + readVpnConnectionsRaw(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVpnConnections(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + * + * @param {UpdateVpnConnectionRequest} [updateVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + updateVpnConnectionRaw(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVpnConnection(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} +/** + * + */ +export declare class VpnConnectionApi extends runtime.BaseAPI implements VpnConnectionApiInterface { + /** + */ + createVpnConnectionRaw(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnection(requestParameters?: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + createVpnConnectionRouteRaw(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + createVpnConnectionRoute(requestParameters?: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVpnConnectionRaw(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnection(requestParameters?: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + deleteVpnConnectionRouteRaw(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + deleteVpnConnectionRoute(requestParameters?: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + readVpnConnectionsRaw(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + readVpnConnections(requestParameters?: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + /** + */ + updateVpnConnectionRaw(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + /** + */ + updateVpnConnection(requestParameters?: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; +} diff --git a/dist/esm/apis/VpnConnectionApi.js b/dist/esm/apis/VpnConnectionApi.js new file mode 100644 index 00000000..f6d8d3c7 --- /dev/null +++ b/dist/esm/apis/VpnConnectionApi.js @@ -0,0 +1,263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CreateVpnConnectionRequestToJSON, CreateVpnConnectionResponseFromJSON, CreateVpnConnectionRouteRequestToJSON, CreateVpnConnectionRouteResponseFromJSON, DeleteVpnConnectionRequestToJSON, DeleteVpnConnectionResponseFromJSON, DeleteVpnConnectionRouteRequestToJSON, DeleteVpnConnectionRouteResponseFromJSON, ReadVpnConnectionsRequestToJSON, ReadVpnConnectionsResponseFromJSON, UpdateVpnConnectionRequestToJSON, UpdateVpnConnectionResponseFromJSON, } from '../models'; +/** + * + */ +export class VpnConnectionApi extends runtime.BaseAPI { + /** + */ + createVpnConnectionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateVpnConnectionRequestToJSON(requestParameters.createVpnConnectionRequest); + const request = { + path: `/CreateVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVpnConnectionResponseFromJSON(jsonValue)); + }); + } + /** + */ + createVpnConnection(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVpnConnectionRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + createVpnConnectionRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = CreateVpnConnectionRouteRequestToJSON(requestParameters.createVpnConnectionRouteRequest); + const request = { + path: `/CreateVpnConnectionRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVpnConnectionRouteResponseFromJSON(jsonValue)); + }); + } + /** + */ + createVpnConnectionRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createVpnConnectionRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVpnConnectionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteVpnConnectionRequestToJSON(requestParameters.deleteVpnConnectionRequest); + const request = { + path: `/DeleteVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVpnConnectionResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteVpnConnection(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVpnConnectionRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + deleteVpnConnectionRouteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = DeleteVpnConnectionRouteRequestToJSON(requestParameters.deleteVpnConnectionRouteRequest); + const request = { + path: `/DeleteVpnConnectionRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVpnConnectionRouteResponseFromJSON(jsonValue)); + }); + } + /** + */ + deleteVpnConnectionRoute(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deleteVpnConnectionRouteRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + readVpnConnectionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = ReadVpnConnectionsRequestToJSON(requestParameters.readVpnConnectionsRequest); + const request = { + path: `/ReadVpnConnections`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVpnConnectionsResponseFromJSON(jsonValue)); + }); + } + /** + */ + readVpnConnections(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.readVpnConnectionsRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } + /** + */ + updateVpnConnectionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + const body = UpdateVpnConnectionRequestToJSON(requestParameters.updateVpnConnectionRequest); + const request = { + path: `/UpdateVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + }; + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = yield signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = yield this.request(request, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateVpnConnectionResponseFromJSON(jsonValue)); + }); + } + /** + */ + updateVpnConnection(requestParameters = {}, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateVpnConnectionRaw(requestParameters, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/index.d.ts b/dist/esm/apis/index.d.ts new file mode 100644 index 00000000..e89a7d70 --- /dev/null +++ b/dist/esm/apis/index.d.ts @@ -0,0 +1,43 @@ +export * from './AccessKeyApi'; +export * from './AccountApi'; +export * from './ApiAccessPolicyApi'; +export * from './ApiAccessRuleApi'; +export * from './ApiLogApi'; +export * from './CaApi'; +export * from './CatalogApi'; +export * from './ClientGatewayApi'; +export * from './DhcpOptionApi'; +export * from './DirectLinkApi'; +export * from './DirectLinkInterfaceApi'; +export * from './FlexibleGpuApi'; +export * from './ImageApi'; +export * from './InternetServiceApi'; +export * from './KeypairApi'; +export * from './ListenerApi'; +export * from './LoadBalancerApi'; +export * from './LoadBalancerPolicyApi'; +export * from './LocationApi'; +export * from './NatServiceApi'; +export * from './NetApi'; +export * from './NetAccessPointApi'; +export * from './NetPeeringApi'; +export * from './NicApi'; +export * from './ProductTypeApi'; +export * from './PublicCatalogApi'; +export * from './PublicIpApi'; +export * from './QuotaApi'; +export * from './RegionApi'; +export * from './RouteApi'; +export * from './RouteTableApi'; +export * from './SecurityGroupApi'; +export * from './SecurityGroupRuleApi'; +export * from './ServerCertificateApi'; +export * from './SnapshotApi'; +export * from './SubnetApi'; +export * from './SubregionApi'; +export * from './TagApi'; +export * from './TaskApi'; +export * from './VirtualGatewayApi'; +export * from './VmApi'; +export * from './VolumeApi'; +export * from './VpnConnectionApi'; diff --git a/dist/esm/apis/index.js b/dist/esm/apis/index.js new file mode 100644 index 00000000..366003cc --- /dev/null +++ b/dist/esm/apis/index.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AccessKeyApi'; +export * from './AccountApi'; +export * from './ApiAccessPolicyApi'; +export * from './ApiAccessRuleApi'; +export * from './ApiLogApi'; +export * from './CaApi'; +export * from './CatalogApi'; +export * from './ClientGatewayApi'; +export * from './DhcpOptionApi'; +export * from './DirectLinkApi'; +export * from './DirectLinkInterfaceApi'; +export * from './FlexibleGpuApi'; +export * from './ImageApi'; +export * from './InternetServiceApi'; +export * from './KeypairApi'; +export * from './ListenerApi'; +export * from './LoadBalancerApi'; +export * from './LoadBalancerPolicyApi'; +export * from './LocationApi'; +export * from './NatServiceApi'; +export * from './NetApi'; +export * from './NetAccessPointApi'; +export * from './NetPeeringApi'; +export * from './NicApi'; +export * from './ProductTypeApi'; +export * from './PublicCatalogApi'; +export * from './PublicIpApi'; +export * from './QuotaApi'; +export * from './RegionApi'; +export * from './RouteApi'; +export * from './RouteTableApi'; +export * from './SecurityGroupApi'; +export * from './SecurityGroupRuleApi'; +export * from './ServerCertificateApi'; +export * from './SnapshotApi'; +export * from './SubnetApi'; +export * from './SubregionApi'; +export * from './TagApi'; +export * from './TaskApi'; +export * from './VirtualGatewayApi'; +export * from './VmApi'; +export * from './VolumeApi'; +export * from './VpnConnectionApi'; diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 00000000..848ecfa4 --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,3 @@ +export * from './runtime'; +export * from './apis'; +export * from './models'; diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 00000000..be9d1ede --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis'; +export * from './models'; diff --git a/dist/esm/models/AcceptNetPeeringRequest.d.ts b/dist/esm/models/AcceptNetPeeringRequest.d.ts new file mode 100644 index 00000000..35b31212 --- /dev/null +++ b/dist/esm/models/AcceptNetPeeringRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AcceptNetPeeringRequest + */ +export interface AcceptNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof AcceptNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to accept. + * @type {string} + * @memberof AcceptNetPeeringRequest + */ + netPeeringId: string; +} +export declare function AcceptNetPeeringRequestFromJSON(json: any): AcceptNetPeeringRequest; +export declare function AcceptNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptNetPeeringRequest; +export declare function AcceptNetPeeringRequestToJSON(value?: AcceptNetPeeringRequest | null): any; diff --git a/dist/esm/models/AcceptNetPeeringRequest.js b/dist/esm/models/AcceptNetPeeringRequest.js new file mode 100644 index 00000000..6a47d3de --- /dev/null +++ b/dist/esm/models/AcceptNetPeeringRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function AcceptNetPeeringRequestFromJSON(json) { + return AcceptNetPeeringRequestFromJSONTyped(json, false); +} +export function AcceptNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} +export function AcceptNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} diff --git a/dist/esm/models/AcceptNetPeeringResponse.d.ts b/dist/esm/models/AcceptNetPeeringResponse.d.ts new file mode 100644 index 00000000..500d1eee --- /dev/null +++ b/dist/esm/models/AcceptNetPeeringResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetPeering } from './NetPeering'; +/** + * + * @export + * @interface AcceptNetPeeringResponse + */ +export interface AcceptNetPeeringResponse { + /** + * + * @type {NetPeering} + * @memberof AcceptNetPeeringResponse + */ + netPeering?: NetPeering; + /** + * + * @type {ModelResponseContext} + * @memberof AcceptNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function AcceptNetPeeringResponseFromJSON(json: any): AcceptNetPeeringResponse; +export declare function AcceptNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptNetPeeringResponse; +export declare function AcceptNetPeeringResponseToJSON(value?: AcceptNetPeeringResponse | null): any; diff --git a/dist/esm/models/AcceptNetPeeringResponse.js b/dist/esm/models/AcceptNetPeeringResponse.js new file mode 100644 index 00000000..2d0e7d26 --- /dev/null +++ b/dist/esm/models/AcceptNetPeeringResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetPeeringFromJSON, NetPeeringToJSON, } from './NetPeering'; +export function AcceptNetPeeringResponseFromJSON(json) { + return AcceptNetPeeringResponseFromJSONTyped(json, false); +} +export function AcceptNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netPeering': !exists(json, 'NetPeering') ? undefined : NetPeeringFromJSON(json['NetPeering']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function AcceptNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetPeering': NetPeeringToJSON(value.netPeering), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/AccepterNet.d.ts b/dist/esm/models/AccepterNet.d.ts new file mode 100644 index 00000000..904dff1d --- /dev/null +++ b/dist/esm/models/AccepterNet.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the accepter Net. + * @export + * @interface AccepterNet + */ +export interface AccepterNet { + /** + * The account ID of the owner of the accepter Net. + * @type {string} + * @memberof AccepterNet + */ + accountId?: string; + /** + * The IP range for the accepter Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof AccepterNet + */ + ipRange?: string; + /** + * The ID of the accepter Net. + * @type {string} + * @memberof AccepterNet + */ + netId?: string; +} +export declare function AccepterNetFromJSON(json: any): AccepterNet; +export declare function AccepterNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccepterNet; +export declare function AccepterNetToJSON(value?: AccepterNet | null): any; diff --git a/dist/esm/models/AccepterNet.js b/dist/esm/models/AccepterNet.js new file mode 100644 index 00000000..2f2e3e2f --- /dev/null +++ b/dist/esm/models/AccepterNet.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function AccepterNetFromJSON(json) { + return AccepterNetFromJSONTyped(json, false); +} +export function AccepterNetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + }; +} +export function AccepterNetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/AccessKey.d.ts b/dist/esm/models/AccessKey.d.ts new file mode 100644 index 00000000..9a5a703e --- /dev/null +++ b/dist/esm/models/AccessKey.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the access key. + * @export + * @interface AccessKey + */ +export interface AccessKey { + /** + * The ID of the access key. + * @type {string} + * @memberof AccessKey + */ + accessKeyId?: string; + /** + * The date and time (UTC) of creation of the access key. + * @type {string} + * @memberof AccessKey + */ + creationDate?: string; + /** + * The date (UTC) at which the access key expires. + * @type {string} + * @memberof AccessKey + */ + expirationDate?: string; + /** + * The date and time (UTC) of the last modification of the access key. + * @type {string} + * @memberof AccessKey + */ + lastModificationDate?: string; + /** + * The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not). + * @type {string} + * @memberof AccessKey + */ + state?: string; +} +export declare function AccessKeyFromJSON(json: any): AccessKey; +export declare function AccessKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessKey; +export declare function AccessKeyToJSON(value?: AccessKey | null): any; diff --git a/dist/esm/models/AccessKey.js b/dist/esm/models/AccessKey.js new file mode 100644 index 00000000..57a98663 --- /dev/null +++ b/dist/esm/models/AccessKey.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function AccessKeyFromJSON(json) { + return AccessKeyFromJSONTyped(json, false); +} +export function AccessKeyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': !exists(json, 'AccessKeyId') ? undefined : json['AccessKeyId'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'lastModificationDate': !exists(json, 'LastModificationDate') ? undefined : json['LastModificationDate'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} +export function AccessKeyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'CreationDate': value.creationDate, + 'ExpirationDate': value.expirationDate, + 'LastModificationDate': value.lastModificationDate, + 'State': value.state, + }; +} diff --git a/dist/esm/models/AccessKeySecretKey.d.ts b/dist/esm/models/AccessKeySecretKey.d.ts new file mode 100644 index 00000000..36e190f2 --- /dev/null +++ b/dist/esm/models/AccessKeySecretKey.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the access key. + * @export + * @interface AccessKeySecretKey + */ +export interface AccessKeySecretKey { + /** + * The ID of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + accessKeyId?: string; + /** + * The date and time (UTC) of creation of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + creationDate?: string; + /** + * The date and time (UTC) at which the access key expires. + * @type {string} + * @memberof AccessKeySecretKey + */ + expirationDate?: string; + /** + * The date and time (UTC) of the last modification of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + lastModificationDate?: string; + /** + * The access key that enables you to send requests. + * @type {string} + * @memberof AccessKeySecretKey + */ + secretKey?: string; + /** + * The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not). + * @type {string} + * @memberof AccessKeySecretKey + */ + state?: string; +} +export declare function AccessKeySecretKeyFromJSON(json: any): AccessKeySecretKey; +export declare function AccessKeySecretKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessKeySecretKey; +export declare function AccessKeySecretKeyToJSON(value?: AccessKeySecretKey | null): any; diff --git a/dist/esm/models/AccessKeySecretKey.js b/dist/esm/models/AccessKeySecretKey.js new file mode 100644 index 00000000..73b0f952 --- /dev/null +++ b/dist/esm/models/AccessKeySecretKey.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function AccessKeySecretKeyFromJSON(json) { + return AccessKeySecretKeyFromJSONTyped(json, false); +} +export function AccessKeySecretKeyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': !exists(json, 'AccessKeyId') ? undefined : json['AccessKeyId'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'lastModificationDate': !exists(json, 'LastModificationDate') ? undefined : json['LastModificationDate'], + 'secretKey': !exists(json, 'SecretKey') ? undefined : json['SecretKey'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} +export function AccessKeySecretKeyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'CreationDate': value.creationDate, + 'ExpirationDate': value.expirationDate, + 'LastModificationDate': value.lastModificationDate, + 'SecretKey': value.secretKey, + 'State': value.state, + }; +} diff --git a/dist/esm/models/AccessLog.d.ts b/dist/esm/models/AccessLog.d.ts new file mode 100644 index 00000000..ce4b3c7b --- /dev/null +++ b/dist/esm/models/AccessLog.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about access logs. + * @export + * @interface AccessLog + */ +export interface AccessLog { + /** + * If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the `OsuBucketName` parameter is required. + * @type {boolean} + * @memberof AccessLog + */ + isEnabled?: boolean; + /** + * The name of the OOS bucket for the access logs. + * @type {string} + * @memberof AccessLog + */ + osuBucketName?: string; + /** + * The path to the folder of the access logs in your OOS bucket (by default, the `root` level of your bucket). + * @type {string} + * @memberof AccessLog + */ + osuBucketPrefix?: string; + /** + * The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5 or 60 (by default, 60). + * @type {number} + * @memberof AccessLog + */ + publicationInterval?: number; +} +export declare function AccessLogFromJSON(json: any): AccessLog; +export declare function AccessLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessLog; +export declare function AccessLogToJSON(value?: AccessLog | null): any; diff --git a/dist/esm/models/AccessLog.js b/dist/esm/models/AccessLog.js new file mode 100644 index 00000000..87529404 --- /dev/null +++ b/dist/esm/models/AccessLog.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function AccessLogFromJSON(json) { + return AccessLogFromJSONTyped(json, false); +} +export function AccessLogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isEnabled': !exists(json, 'IsEnabled') ? undefined : json['IsEnabled'], + 'osuBucketName': !exists(json, 'OsuBucketName') ? undefined : json['OsuBucketName'], + 'osuBucketPrefix': !exists(json, 'OsuBucketPrefix') ? undefined : json['OsuBucketPrefix'], + 'publicationInterval': !exists(json, 'PublicationInterval') ? undefined : json['PublicationInterval'], + }; +} +export function AccessLogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsEnabled': value.isEnabled, + 'OsuBucketName': value.osuBucketName, + 'OsuBucketPrefix': value.osuBucketPrefix, + 'PublicationInterval': value.publicationInterval, + }; +} diff --git a/dist/esm/models/Account.d.ts b/dist/esm/models/Account.d.ts new file mode 100644 index 00000000..2cd8ed31 --- /dev/null +++ b/dist/esm/models/Account.d.ts @@ -0,0 +1,111 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the account. + * @export + * @interface Account + */ +export interface Account { + /** + * The ID of the account. + * @type {string} + * @memberof Account + */ + accountId?: string; + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. + * @type {Array} + * @memberof Account + */ + additionalEmails?: Array; + /** + * The city of the account owner. + * @type {string} + * @memberof Account + */ + city?: string; + /** + * The name of the company for the account. + * @type {string} + * @memberof Account + */ + companyName?: string; + /** + * The country of the account owner. + * @type {string} + * @memberof Account + */ + country?: string; + /** + * The ID of the customer. + * @type {string} + * @memberof Account + */ + customerId?: string; + /** + * The main email address for the account. This address is used for your credentials and for notifications. + * @type {string} + * @memberof Account + */ + email?: string; + /** + * The first name of the account owner. + * @type {string} + * @memberof Account + */ + firstName?: string; + /** + * The job title of the account owner. + * @type {string} + * @memberof Account + */ + jobTitle?: string; + /** + * The last name of the account owner. + * @type {string} + * @memberof Account + */ + lastName?: string; + /** + * The mobile phone number of the account owner. + * @type {string} + * @memberof Account + */ + mobileNumber?: string; + /** + * The landline phone number of the account owner. + * @type {string} + * @memberof Account + */ + phoneNumber?: string; + /** + * The state/province of the account. + * @type {string} + * @memberof Account + */ + stateProvince?: string; + /** + * The value added tax (VAT) number for the account. + * @type {string} + * @memberof Account + */ + vatNumber?: string; + /** + * The ZIP code of the city. + * @type {string} + * @memberof Account + */ + zipCode?: string; +} +export declare function AccountFromJSON(json: any): Account; +export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account; +export declare function AccountToJSON(value?: Account | null): any; diff --git a/dist/esm/models/Account.js b/dist/esm/models/Account.js new file mode 100644 index 00000000..f340b05f --- /dev/null +++ b/dist/esm/models/Account.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function AccountFromJSON(json) { + return AccountFromJSONTyped(json, false); +} +export function AccountFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'additionalEmails': !exists(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': !exists(json, 'City') ? undefined : json['City'], + 'companyName': !exists(json, 'CompanyName') ? undefined : json['CompanyName'], + 'country': !exists(json, 'Country') ? undefined : json['Country'], + 'customerId': !exists(json, 'CustomerId') ? undefined : json['CustomerId'], + 'email': !exists(json, 'Email') ? undefined : json['Email'], + 'firstName': !exists(json, 'FirstName') ? undefined : json['FirstName'], + 'jobTitle': !exists(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': !exists(json, 'LastName') ? undefined : json['LastName'], + 'mobileNumber': !exists(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !exists(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !exists(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !exists(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': !exists(json, 'ZipCode') ? undefined : json['ZipCode'], + }; +} +export function AccountToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'CustomerId': value.customerId, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} diff --git a/dist/esm/models/ApiAccessPolicy.d.ts b/dist/esm/models/ApiAccessPolicy.d.ts new file mode 100644 index 00000000..d6f0c85b --- /dev/null +++ b/dist/esm/models/ApiAccessPolicy.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the API access policy. + * @export + * @interface ApiAccessPolicy + */ +export interface ApiAccessPolicy { + /** + * The maximum possible lifetime for your access keys, in seconds. If `0`, your access keys can have unlimited lifetimes. + * @type {number} + * @memberof ApiAccessPolicy + */ + maxAccessKeyExpirationSeconds?: number; + /** + * If true, a trusted session is activated, allowing you to bypass Certificate Authorities (CAs) enforcement. For more information, see the `ApiKeyAuth` authentication scheme in the [Authentication](#authentication) section. + * @type {boolean} + * @memberof ApiAccessPolicy + */ + requireTrustedEnv?: boolean; +} +export declare function ApiAccessPolicyFromJSON(json: any): ApiAccessPolicy; +export declare function ApiAccessPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAccessPolicy; +export declare function ApiAccessPolicyToJSON(value?: ApiAccessPolicy | null): any; diff --git a/dist/esm/models/ApiAccessPolicy.js b/dist/esm/models/ApiAccessPolicy.js new file mode 100644 index 00000000..add554e4 --- /dev/null +++ b/dist/esm/models/ApiAccessPolicy.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ApiAccessPolicyFromJSON(json) { + return ApiAccessPolicyFromJSONTyped(json, false); +} +export function ApiAccessPolicyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'maxAccessKeyExpirationSeconds': !exists(json, 'MaxAccessKeyExpirationSeconds') ? undefined : json['MaxAccessKeyExpirationSeconds'], + 'requireTrustedEnv': !exists(json, 'RequireTrustedEnv') ? undefined : json['RequireTrustedEnv'], + }; +} +export function ApiAccessPolicyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'MaxAccessKeyExpirationSeconds': value.maxAccessKeyExpirationSeconds, + 'RequireTrustedEnv': value.requireTrustedEnv, + }; +} diff --git a/dist/esm/models/ApiAccessRule.d.ts b/dist/esm/models/ApiAccessRule.d.ts new file mode 100644 index 00000000..e6eac42f --- /dev/null +++ b/dist/esm/models/ApiAccessRule.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the API access rule. + * @export + * @interface ApiAccessRule + */ +export interface ApiAccessRule { + /** + * The ID of the API access rule. + * @type {string} + * @memberof ApiAccessRule + */ + apiAccessRuleId?: string; + /** + * One or more IDs of Client Certificate Authorities (CAs) used for the API access rule. + * @type {Array} + * @memberof ApiAccessRule + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof ApiAccessRule + */ + cns?: Array; + /** + * The description of the API access rule. + * @type {string} + * @memberof ApiAccessRule + */ + description?: string; + /** + * One or more IP ranges used for the API access rule, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof ApiAccessRule + */ + ipRanges?: Array; +} +export declare function ApiAccessRuleFromJSON(json: any): ApiAccessRule; +export declare function ApiAccessRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAccessRule; +export declare function ApiAccessRuleToJSON(value?: ApiAccessRule | null): any; diff --git a/dist/esm/models/ApiAccessRule.js b/dist/esm/models/ApiAccessRule.js new file mode 100644 index 00000000..57567498 --- /dev/null +++ b/dist/esm/models/ApiAccessRule.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ApiAccessRuleFromJSON(json) { + return ApiAccessRuleFromJSONTyped(json, false); +} +export function ApiAccessRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleId': !exists(json, 'ApiAccessRuleId') ? undefined : json['ApiAccessRuleId'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +export function ApiAccessRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleId': value.apiAccessRuleId, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'IpRanges': value.ipRanges, + }; +} diff --git a/dist/esm/models/ApplicationStickyCookiePolicy.d.ts b/dist/esm/models/ApplicationStickyCookiePolicy.d.ts new file mode 100644 index 00000000..148e7c5b --- /dev/null +++ b/dist/esm/models/ApplicationStickyCookiePolicy.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the stickiness policy. + * @export + * @interface ApplicationStickyCookiePolicy + */ +export interface ApplicationStickyCookiePolicy { + /** + * The name of the application cookie used for stickiness. + * @type {string} + * @memberof ApplicationStickyCookiePolicy + */ + cookieName?: string; + /** + * The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer. + * @type {string} + * @memberof ApplicationStickyCookiePolicy + */ + policyName?: string; +} +export declare function ApplicationStickyCookiePolicyFromJSON(json: any): ApplicationStickyCookiePolicy; +export declare function ApplicationStickyCookiePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationStickyCookiePolicy; +export declare function ApplicationStickyCookiePolicyToJSON(value?: ApplicationStickyCookiePolicy | null): any; diff --git a/dist/esm/models/ApplicationStickyCookiePolicy.js b/dist/esm/models/ApplicationStickyCookiePolicy.js new file mode 100644 index 00000000..03c692dd --- /dev/null +++ b/dist/esm/models/ApplicationStickyCookiePolicy.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ApplicationStickyCookiePolicyFromJSON(json) { + return ApplicationStickyCookiePolicyFromJSONTyped(json, false); +} +export function ApplicationStickyCookiePolicyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cookieName': !exists(json, 'CookieName') ? undefined : json['CookieName'], + 'policyName': !exists(json, 'PolicyName') ? undefined : json['PolicyName'], + }; +} +export function ApplicationStickyCookiePolicyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CookieName': value.cookieName, + 'PolicyName': value.policyName, + }; +} diff --git a/dist/esm/models/BackendVmHealth.d.ts b/dist/esm/models/BackendVmHealth.d.ts new file mode 100644 index 00000000..7943c4a4 --- /dev/null +++ b/dist/esm/models/BackendVmHealth.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the health of a back-end VM. + * @export + * @interface BackendVmHealth + */ +export interface BackendVmHealth { + /** + * The description of the state of the back-end VM. + * @type {string} + * @memberof BackendVmHealth + */ + description?: string; + /** + * The state of the back-end VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof BackendVmHealth + */ + state?: string; + /** + * Information about the cause of `OutOfService` VMs.
+ * Specifically, whether the cause is Elastic Load Balancing or the VM (`ELB` \| `Instance` \| `N/A`). + * @type {string} + * @memberof BackendVmHealth + */ + stateReason?: string; + /** + * The ID of the back-end VM. + * @type {string} + * @memberof BackendVmHealth + */ + vmId?: string; +} +export declare function BackendVmHealthFromJSON(json: any): BackendVmHealth; +export declare function BackendVmHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackendVmHealth; +export declare function BackendVmHealthToJSON(value?: BackendVmHealth | null): any; diff --git a/dist/esm/models/BackendVmHealth.js b/dist/esm/models/BackendVmHealth.js new file mode 100644 index 00000000..30c8c8d5 --- /dev/null +++ b/dist/esm/models/BackendVmHealth.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function BackendVmHealthFromJSON(json) { + return BackendVmHealthFromJSONTyped(json, false); +} +export function BackendVmHealthFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateReason': !exists(json, 'StateReason') ? undefined : json['StateReason'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function BackendVmHealthToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'State': value.state, + 'StateReason': value.stateReason, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/BlockDeviceMappingCreated.d.ts b/dist/esm/models/BlockDeviceMappingCreated.d.ts new file mode 100644 index 00000000..ba8dfd50 --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingCreated.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuCreated } from './BsuCreated'; +/** + * Information about the created block device mapping. + * @export + * @interface BlockDeviceMappingCreated + */ +export interface BlockDeviceMappingCreated { + /** + * + * @type {BsuCreated} + * @memberof BlockDeviceMappingCreated + */ + bsu?: BsuCreated; + /** + * The name of the device. + * @type {string} + * @memberof BlockDeviceMappingCreated + */ + deviceName?: string; +} +export declare function BlockDeviceMappingCreatedFromJSON(json: any): BlockDeviceMappingCreated; +export declare function BlockDeviceMappingCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingCreated; +export declare function BlockDeviceMappingCreatedToJSON(value?: BlockDeviceMappingCreated | null): any; diff --git a/dist/esm/models/BlockDeviceMappingCreated.js b/dist/esm/models/BlockDeviceMappingCreated.js new file mode 100644 index 00000000..1e7f086c --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingCreated.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BsuCreatedFromJSON, BsuCreatedToJSON, } from './BsuCreated'; +export function BlockDeviceMappingCreatedFromJSON(json) { + return BlockDeviceMappingCreatedFromJSONTyped(json, false); +} +export function BlockDeviceMappingCreatedFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !exists(json, 'Bsu') ? undefined : BsuCreatedFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + }; +} +export function BlockDeviceMappingCreatedToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': BsuCreatedToJSON(value.bsu), + 'DeviceName': value.deviceName, + }; +} diff --git a/dist/esm/models/BlockDeviceMappingImage.d.ts b/dist/esm/models/BlockDeviceMappingImage.d.ts new file mode 100644 index 00000000..24f56016 --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingImage.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuToCreate } from './BsuToCreate'; +/** + * One or more parameters used to automatically set up volumes when the VM is created. + * @export + * @interface BlockDeviceMappingImage + */ +export interface BlockDeviceMappingImage { + /** + * + * @type {BsuToCreate} + * @memberof BlockDeviceMappingImage + */ + bsu?: BsuToCreate; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingImage + */ + deviceName?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingImage + */ + virtualDeviceName?: string; +} +export declare function BlockDeviceMappingImageFromJSON(json: any): BlockDeviceMappingImage; +export declare function BlockDeviceMappingImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingImage; +export declare function BlockDeviceMappingImageToJSON(value?: BlockDeviceMappingImage | null): any; diff --git a/dist/esm/models/BlockDeviceMappingImage.js b/dist/esm/models/BlockDeviceMappingImage.js new file mode 100644 index 00000000..03279c3c --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingImage.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BsuToCreateFromJSON, BsuToCreateToJSON, } from './BsuToCreate'; +export function BlockDeviceMappingImageFromJSON(json) { + return BlockDeviceMappingImageFromJSONTyped(json, false); +} +export function BlockDeviceMappingImageFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !exists(json, 'Bsu') ? undefined : BsuToCreateFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'virtualDeviceName': !exists(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} +export function BlockDeviceMappingImageToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': BsuToCreateToJSON(value.bsu), + 'DeviceName': value.deviceName, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} diff --git a/dist/esm/models/BlockDeviceMappingVmCreation.d.ts b/dist/esm/models/BlockDeviceMappingVmCreation.d.ts new file mode 100644 index 00000000..9c3f63e3 --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingVmCreation.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuToCreate } from './BsuToCreate'; +/** + * Information about the block device mapping. + * @export + * @interface BlockDeviceMappingVmCreation + */ +export interface BlockDeviceMappingVmCreation { + /** + * + * @type {BsuToCreate} + * @memberof BlockDeviceMappingVmCreation + */ + bsu?: BsuToCreate; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + deviceName?: string; + /** + * Removes the device which is included in the block device mapping of the OMI. + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + noDevice?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + virtualDeviceName?: string; +} +export declare function BlockDeviceMappingVmCreationFromJSON(json: any): BlockDeviceMappingVmCreation; +export declare function BlockDeviceMappingVmCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingVmCreation; +export declare function BlockDeviceMappingVmCreationToJSON(value?: BlockDeviceMappingVmCreation | null): any; diff --git a/dist/esm/models/BlockDeviceMappingVmCreation.js b/dist/esm/models/BlockDeviceMappingVmCreation.js new file mode 100644 index 00000000..4fd9f9f4 --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingVmCreation.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BsuToCreateFromJSON, BsuToCreateToJSON, } from './BsuToCreate'; +export function BlockDeviceMappingVmCreationFromJSON(json) { + return BlockDeviceMappingVmCreationFromJSONTyped(json, false); +} +export function BlockDeviceMappingVmCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !exists(json, 'Bsu') ? undefined : BsuToCreateFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'noDevice': !exists(json, 'NoDevice') ? undefined : json['NoDevice'], + 'virtualDeviceName': !exists(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} +export function BlockDeviceMappingVmCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': BsuToCreateToJSON(value.bsu), + 'DeviceName': value.deviceName, + 'NoDevice': value.noDevice, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} diff --git a/dist/esm/models/BlockDeviceMappingVmUpdate.d.ts b/dist/esm/models/BlockDeviceMappingVmUpdate.d.ts new file mode 100644 index 00000000..83506783 --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingVmUpdate.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BsuToUpdateVm } from './BsuToUpdateVm'; +/** + * Information about the block device mapping. + * @export + * @interface BlockDeviceMappingVmUpdate + */ +export interface BlockDeviceMappingVmUpdate { + /** + * + * @type {BsuToUpdateVm} + * @memberof BlockDeviceMappingVmUpdate + */ + bsu?: BsuToUpdateVm; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + deviceName?: string; + /** + * Removes the device which is included in the block device mapping of the OMI. + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + noDevice?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + virtualDeviceName?: string; +} +export declare function BlockDeviceMappingVmUpdateFromJSON(json: any): BlockDeviceMappingVmUpdate; +export declare function BlockDeviceMappingVmUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingVmUpdate; +export declare function BlockDeviceMappingVmUpdateToJSON(value?: BlockDeviceMappingVmUpdate | null): any; diff --git a/dist/esm/models/BlockDeviceMappingVmUpdate.js b/dist/esm/models/BlockDeviceMappingVmUpdate.js new file mode 100644 index 00000000..38bf202f --- /dev/null +++ b/dist/esm/models/BlockDeviceMappingVmUpdate.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BsuToUpdateVmFromJSON, BsuToUpdateVmToJSON, } from './BsuToUpdateVm'; +export function BlockDeviceMappingVmUpdateFromJSON(json) { + return BlockDeviceMappingVmUpdateFromJSONTyped(json, false); +} +export function BlockDeviceMappingVmUpdateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsu': !exists(json, 'Bsu') ? undefined : BsuToUpdateVmFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'noDevice': !exists(json, 'NoDevice') ? undefined : json['NoDevice'], + 'virtualDeviceName': !exists(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} +export function BlockDeviceMappingVmUpdateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bsu': BsuToUpdateVmToJSON(value.bsu), + 'DeviceName': value.deviceName, + 'NoDevice': value.noDevice, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} diff --git a/dist/esm/models/BsuCreated.d.ts b/dist/esm/models/BsuCreated.d.ts new file mode 100644 index 00000000..5ea38146 --- /dev/null +++ b/dist/esm/models/BsuCreated.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the created BSU volume. + * @export + * @interface BsuCreated + */ +export interface BsuCreated { + /** + * If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuCreated + */ + deleteOnVmDeletion?: boolean; + /** + * The time and date of attachment of the volume to the VM. + * @type {Date} + * @memberof BsuCreated + */ + linkDate?: Date; + /** + * The state of the volume. + * @type {string} + * @memberof BsuCreated + */ + state?: string; + /** + * The ID of the volume. + * @type {string} + * @memberof BsuCreated + */ + volumeId?: string; +} +export declare function BsuCreatedFromJSON(json: any): BsuCreated; +export declare function BsuCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuCreated; +export declare function BsuCreatedToJSON(value?: BsuCreated | null): any; diff --git a/dist/esm/models/BsuCreated.js b/dist/esm/models/BsuCreated.js new file mode 100644 index 00000000..0c8ecab5 --- /dev/null +++ b/dist/esm/models/BsuCreated.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function BsuCreatedFromJSON(json) { + return BsuCreatedFromJSONTyped(json, false); +} +export function BsuCreatedFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'linkDate': !exists(json, 'LinkDate') ? undefined : (new Date(json['LinkDate'])), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +export function BsuCreatedToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'LinkDate': value.linkDate === undefined ? undefined : (value.linkDate.toISOString().substr(0, 10)), + 'State': value.state, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/BsuToCreate.d.ts b/dist/esm/models/BsuToCreate.d.ts new file mode 100644 index 00000000..ecea0485 --- /dev/null +++ b/dist/esm/models/BsuToCreate.d.ts @@ -0,0 +1,54 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the BSU volume to create. + * @export + * @interface BsuToCreate + */ +export interface BsuToCreate { + /** + * By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuToCreate + */ + deleteOnVmDeletion?: boolean; + /** + * The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. + * @type {number} + * @memberof BsuToCreate + */ + iops?: number; + /** + * The ID of the snapshot used to create the volume. + * @type {string} + * @memberof BsuToCreate + */ + snapshotId?: string; + /** + * The size of the volume, in gibibytes (GiB).
+ * If you specify a snapshot ID, the volume size must be at least equal to the snapshot size.
+ * If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one. + * @type {number} + * @memberof BsuToCreate + */ + volumeSize?: number; + /** + * The type of the volume (`standard` \| `io1` \| `gp2`). If not specified in the request, a `standard` volume is created.
+ * For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). + * @type {string} + * @memberof BsuToCreate + */ + volumeType?: string; +} +export declare function BsuToCreateFromJSON(json: any): BsuToCreate; +export declare function BsuToCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuToCreate; +export declare function BsuToCreateToJSON(value?: BsuToCreate | null): any; diff --git a/dist/esm/models/BsuToCreate.js b/dist/esm/models/BsuToCreate.js new file mode 100644 index 00000000..23c91bb7 --- /dev/null +++ b/dist/esm/models/BsuToCreate.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function BsuToCreateFromJSON(json) { + return BsuToCreateFromJSONTyped(json, false); +} +export function BsuToCreateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'volumeSize': !exists(json, 'VolumeSize') ? undefined : json['VolumeSize'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +export function BsuToCreateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'Iops': value.iops, + 'SnapshotId': value.snapshotId, + 'VolumeSize': value.volumeSize, + 'VolumeType': value.volumeType, + }; +} diff --git a/dist/esm/models/BsuToUpdateVm.d.ts b/dist/esm/models/BsuToUpdateVm.d.ts new file mode 100644 index 00000000..f64f8958 --- /dev/null +++ b/dist/esm/models/BsuToUpdateVm.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the BSU volume. + * @export + * @interface BsuToUpdateVm + */ +export interface BsuToUpdateVm { + /** + * If set to true, the volume is deleted when terminating the VM. If set to false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuToUpdateVm + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the volume. + * @type {string} + * @memberof BsuToUpdateVm + */ + volumeId?: string; +} +export declare function BsuToUpdateVmFromJSON(json: any): BsuToUpdateVm; +export declare function BsuToUpdateVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuToUpdateVm; +export declare function BsuToUpdateVmToJSON(value?: BsuToUpdateVm | null): any; diff --git a/dist/esm/models/BsuToUpdateVm.js b/dist/esm/models/BsuToUpdateVm.js new file mode 100644 index 00000000..f0fb1282 --- /dev/null +++ b/dist/esm/models/BsuToUpdateVm.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function BsuToUpdateVmFromJSON(json) { + return BsuToUpdateVmFromJSONTyped(json, false); +} +export function BsuToUpdateVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +export function BsuToUpdateVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/Ca.d.ts b/dist/esm/models/Ca.d.ts new file mode 100644 index 00000000..42b09a25 --- /dev/null +++ b/dist/esm/models/Ca.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the Client Certificate Authority (CA). + * @export + * @interface Ca + */ +export interface Ca { + /** + * The fingerprint of the CA. + * @type {string} + * @memberof Ca + */ + caFingerprint?: string; + /** + * The ID of the CA. + * @type {string} + * @memberof Ca + */ + caId?: string; + /** + * The description of the CA. + * @type {string} + * @memberof Ca + */ + description?: string; +} +export declare function CaFromJSON(json: any): Ca; +export declare function CaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ca; +export declare function CaToJSON(value?: Ca | null): any; diff --git a/dist/esm/models/Ca.js b/dist/esm/models/Ca.js new file mode 100644 index 00000000..e41252dc --- /dev/null +++ b/dist/esm/models/Ca.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CaFromJSON(json) { + return CaFromJSONTyped(json, false); +} +export function CaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caFingerprint': !exists(json, 'CaFingerprint') ? undefined : json['CaFingerprint'], + 'caId': !exists(json, 'CaId') ? undefined : json['CaId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + }; +} +export function CaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaFingerprint': value.caFingerprint, + 'CaId': value.caId, + 'Description': value.description, + }; +} diff --git a/dist/esm/models/Catalog.d.ts b/dist/esm/models/Catalog.d.ts new file mode 100644 index 00000000..d4e1d934 --- /dev/null +++ b/dist/esm/models/Catalog.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CatalogEntry } from './CatalogEntry'; +/** + * Information about our catalog of prices. + * @export + * @interface Catalog + */ +export interface Catalog { + /** + * One or more catalog entries. + * @type {Array} + * @memberof Catalog + */ + entries?: Array; +} +export declare function CatalogFromJSON(json: any): Catalog; +export declare function CatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Catalog; +export declare function CatalogToJSON(value?: Catalog | null): any; diff --git a/dist/esm/models/Catalog.js b/dist/esm/models/Catalog.js new file mode 100644 index 00000000..4c2637b8 --- /dev/null +++ b/dist/esm/models/Catalog.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { CatalogEntryFromJSON, CatalogEntryToJSON, } from './CatalogEntry'; +export function CatalogFromJSON(json) { + return CatalogFromJSONTyped(json, false); +} +export function CatalogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'entries': !exists(json, 'Entries') ? undefined : (json['Entries'].map(CatalogEntryFromJSON)), + }; +} +export function CatalogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Entries': value.entries === undefined ? undefined : (value.entries.map(CatalogEntryToJSON)), + }; +} diff --git a/dist/esm/models/CatalogEntry.d.ts b/dist/esm/models/CatalogEntry.d.ts new file mode 100644 index 00000000..ed4dfba4 --- /dev/null +++ b/dist/esm/models/CatalogEntry.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the catalog entry. + * @export + * @interface CatalogEntry + */ +export interface CatalogEntry { + /** + * The category of the catalog entry (for example, `network`). + * @type {string} + * @memberof CatalogEntry + */ + category?: string; + /** + * When returned and equal to `PER_MONTH`, the price of the catalog entry is calculated on a monthly basis. + * @type {string} + * @memberof CatalogEntry + */ + flags?: string; + /** + * The API call associated with the catalog entry (for example, `CreateVms` or `RunInstances`). + * @type {string} + * @memberof CatalogEntry + */ + operation?: string; + /** + * The service associated with the catalog entry (`TinaOS-FCU`, `TinaOS-LBU`, `TinaOS-DirectLink`, or `TinaOS-OOS`). + * @type {string} + * @memberof CatalogEntry + */ + service?: string; + /** + * The Subregion associated with the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + subregionName?: string; + /** + * The description of the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + title?: string; + /** + * The type of resource associated with the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + type?: string; + /** + * The unit price of the catalog entry, in the currency of the catalog of the Region where the API method was used. + * @type {number} + * @memberof CatalogEntry + */ + unitPrice?: number; +} +export declare function CatalogEntryFromJSON(json: any): CatalogEntry; +export declare function CatalogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CatalogEntry; +export declare function CatalogEntryToJSON(value?: CatalogEntry | null): any; diff --git a/dist/esm/models/CatalogEntry.js b/dist/esm/models/CatalogEntry.js new file mode 100644 index 00000000..816dcf4b --- /dev/null +++ b/dist/esm/models/CatalogEntry.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CatalogEntryFromJSON(json) { + return CatalogEntryFromJSONTyped(json, false); +} +export function CatalogEntryFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'category': !exists(json, 'Category') ? undefined : json['Category'], + 'flags': !exists(json, 'Flags') ? undefined : json['Flags'], + 'operation': !exists(json, 'Operation') ? undefined : json['Operation'], + 'service': !exists(json, 'Service') ? undefined : json['Service'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'title': !exists(json, 'Title') ? undefined : json['Title'], + 'type': !exists(json, 'Type') ? undefined : json['Type'], + 'unitPrice': !exists(json, 'UnitPrice') ? undefined : json['UnitPrice'], + }; +} +export function CatalogEntryToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Category': value.category, + 'Flags': value.flags, + 'Operation': value.operation, + 'Service': value.service, + 'SubregionName': value.subregionName, + 'Title': value.title, + 'Type': value.type, + 'UnitPrice': value.unitPrice, + }; +} diff --git a/dist/esm/models/CheckAuthenticationRequest.d.ts b/dist/esm/models/CheckAuthenticationRequest.d.ts new file mode 100644 index 00000000..7ae0182a --- /dev/null +++ b/dist/esm/models/CheckAuthenticationRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CheckAuthenticationRequest + */ +export interface CheckAuthenticationRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CheckAuthenticationRequest + */ + dryRun?: boolean; + /** + * The email address of the account. + * @type {string} + * @memberof CheckAuthenticationRequest + */ + login: string; + /** + * The password of the account. + * @type {string} + * @memberof CheckAuthenticationRequest + */ + password: string; +} +export declare function CheckAuthenticationRequestFromJSON(json: any): CheckAuthenticationRequest; +export declare function CheckAuthenticationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAuthenticationRequest; +export declare function CheckAuthenticationRequestToJSON(value?: CheckAuthenticationRequest | null): any; diff --git a/dist/esm/models/CheckAuthenticationRequest.js b/dist/esm/models/CheckAuthenticationRequest.js new file mode 100644 index 00000000..82dc9f72 --- /dev/null +++ b/dist/esm/models/CheckAuthenticationRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CheckAuthenticationRequestFromJSON(json) { + return CheckAuthenticationRequestFromJSONTyped(json, false); +} +export function CheckAuthenticationRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'login': json['Login'], + 'password': json['Password'], + }; +} +export function CheckAuthenticationRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Login': value.login, + 'Password': value.password, + }; +} diff --git a/dist/esm/models/CheckAuthenticationResponse.d.ts b/dist/esm/models/CheckAuthenticationResponse.d.ts new file mode 100644 index 00000000..1c87e084 --- /dev/null +++ b/dist/esm/models/CheckAuthenticationResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CheckAuthenticationResponse + */ +export interface CheckAuthenticationResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CheckAuthenticationResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CheckAuthenticationResponseFromJSON(json: any): CheckAuthenticationResponse; +export declare function CheckAuthenticationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAuthenticationResponse; +export declare function CheckAuthenticationResponseToJSON(value?: CheckAuthenticationResponse | null): any; diff --git a/dist/esm/models/CheckAuthenticationResponse.js b/dist/esm/models/CheckAuthenticationResponse.js new file mode 100644 index 00000000..40e568f4 --- /dev/null +++ b/dist/esm/models/CheckAuthenticationResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CheckAuthenticationResponseFromJSON(json) { + return CheckAuthenticationResponseFromJSONTyped(json, false); +} +export function CheckAuthenticationResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CheckAuthenticationResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ClientGateway.d.ts b/dist/esm/models/ClientGateway.d.ts new file mode 100644 index 00000000..a61c70ca --- /dev/null +++ b/dist/esm/models/ClientGateway.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the client gateway. + * @export + * @interface ClientGateway + */ +export interface ClientGateway { + /** + * The Autonomous System Number (ASN) used by the Border Gateway Protocol (BGP) to find the path to your client gateway through the Internet. + * @type {number} + * @memberof ClientGateway + */ + bgpAsn?: number; + /** + * The ID of the client gateway. + * @type {string} + * @memberof ClientGateway + */ + clientGatewayId?: string; + /** + * The type of communication tunnel used by the client gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof ClientGateway + */ + connectionType?: string; + /** + * The public IPv4 address of the client gateway (must be a fixed address into a NATed network). + * @type {string} + * @memberof ClientGateway + */ + publicIp?: string; + /** + * The state of the client gateway (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof ClientGateway + */ + state?: string; + /** + * One or more tags associated with the client gateway. + * @type {Array} + * @memberof ClientGateway + */ + tags?: Array; +} +export declare function ClientGatewayFromJSON(json: any): ClientGateway; +export declare function ClientGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGateway; +export declare function ClientGatewayToJSON(value?: ClientGateway | null): any; diff --git a/dist/esm/models/ClientGateway.js b/dist/esm/models/ClientGateway.js new file mode 100644 index 00000000..816c1d2a --- /dev/null +++ b/dist/esm/models/ClientGateway.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function ClientGatewayFromJSON(json) { + return ClientGatewayFromJSONTyped(json, false); +} +export function ClientGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsn': !exists(json, 'BgpAsn') ? undefined : json['BgpAsn'], + 'clientGatewayId': !exists(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'connectionType': !exists(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function ClientGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsn': value.bgpAsn, + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'PublicIp': value.publicIp, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/ConsumptionEntry.d.ts b/dist/esm/models/ConsumptionEntry.d.ts new file mode 100644 index 00000000..031a2dbe --- /dev/null +++ b/dist/esm/models/ConsumptionEntry.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the resources consumed during the specified time period. + * @export + * @interface ConsumptionEntry + */ +export interface ConsumptionEntry { + /** + * The ID of your TINA account. + * @type {string} + * @memberof ConsumptionEntry + */ + accountId?: string; + /** + * The category of the resource (for example, `network`). + * @type {string} + * @memberof ConsumptionEntry + */ + category?: string; + /** + * The beginning of the time period. + * @type {string} + * @memberof ConsumptionEntry + */ + fromDate?: string; + /** + * The API call that triggered the resource consumption (for example, `RunInstances` or `CreateVolume`). + * @type {string} + * @memberof ConsumptionEntry + */ + operation?: string; + /** + * The ID of the TINA account which is billed for your consumption. It can be different from your account in the `AccountId` parameter. + * @type {string} + * @memberof ConsumptionEntry + */ + payingAccountId?: string; + /** + * The service of the API call (`TinaOS-FCU`, `TinaOS-LBU`, `TinaOS-DirectLink`, `TinaOS-OOS`, or `TinaOS-OSU`). + * @type {string} + * @memberof ConsumptionEntry + */ + service?: string; + /** + * The name of the Subregion. + * @type {string} + * @memberof ConsumptionEntry + */ + subregionName?: string; + /** + * A description of the consumed resource. + * @type {string} + * @memberof ConsumptionEntry + */ + title?: string; + /** + * The end of the time period. + * @type {string} + * @memberof ConsumptionEntry + */ + toDate?: string; + /** + * The type of resource, depending on the API call. + * @type {string} + * @memberof ConsumptionEntry + */ + type?: string; + /** + * The consumed amount for the resource. The unit depends on the resource type. For more information, see the `Title` element. + * @type {number} + * @memberof ConsumptionEntry + */ + value?: number; +} +export declare function ConsumptionEntryFromJSON(json: any): ConsumptionEntry; +export declare function ConsumptionEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsumptionEntry; +export declare function ConsumptionEntryToJSON(value?: ConsumptionEntry | null): any; diff --git a/dist/esm/models/ConsumptionEntry.js b/dist/esm/models/ConsumptionEntry.js new file mode 100644 index 00000000..c0900a2f --- /dev/null +++ b/dist/esm/models/ConsumptionEntry.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ConsumptionEntryFromJSON(json) { + return ConsumptionEntryFromJSONTyped(json, false); +} +export function ConsumptionEntryFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'category': !exists(json, 'Category') ? undefined : json['Category'], + 'fromDate': !exists(json, 'FromDate') ? undefined : json['FromDate'], + 'operation': !exists(json, 'Operation') ? undefined : json['Operation'], + 'payingAccountId': !exists(json, 'PayingAccountId') ? undefined : json['PayingAccountId'], + 'service': !exists(json, 'Service') ? undefined : json['Service'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'title': !exists(json, 'Title') ? undefined : json['Title'], + 'toDate': !exists(json, 'ToDate') ? undefined : json['ToDate'], + 'type': !exists(json, 'Type') ? undefined : json['Type'], + 'value': !exists(json, 'Value') ? undefined : json['Value'], + }; +} +export function ConsumptionEntryToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Category': value.category, + 'FromDate': value.fromDate, + 'Operation': value.operation, + 'PayingAccountId': value.payingAccountId, + 'Service': value.service, + 'SubregionName': value.subregionName, + 'Title': value.title, + 'ToDate': value.toDate, + 'Type': value.type, + 'Value': value.value, + }; +} diff --git a/dist/esm/models/CreateAccessKeyRequest.d.ts b/dist/esm/models/CreateAccessKeyRequest.d.ts new file mode 100644 index 00000000..251f5c9c --- /dev/null +++ b/dist/esm/models/CreateAccessKeyRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateAccessKeyRequest + */ +export interface CreateAccessKeyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateAccessKeyRequest + */ + dryRun?: boolean; + /** + * The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). To remove an existing expiration date, use the method without specifying this parameter. + * @type {string} + * @memberof CreateAccessKeyRequest + */ + expirationDate?: string; +} +export declare function CreateAccessKeyRequestFromJSON(json: any): CreateAccessKeyRequest; +export declare function CreateAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccessKeyRequest; +export declare function CreateAccessKeyRequestToJSON(value?: CreateAccessKeyRequest | null): any; diff --git a/dist/esm/models/CreateAccessKeyRequest.js b/dist/esm/models/CreateAccessKeyRequest.js new file mode 100644 index 00000000..1bafd922 --- /dev/null +++ b/dist/esm/models/CreateAccessKeyRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateAccessKeyRequestFromJSON(json) { + return CreateAccessKeyRequestFromJSONTyped(json, false); +} +export function CreateAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + }; +} +export function CreateAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ExpirationDate': value.expirationDate, + }; +} diff --git a/dist/esm/models/CreateAccessKeyResponse.d.ts b/dist/esm/models/CreateAccessKeyResponse.d.ts new file mode 100644 index 00000000..b5d7d897 --- /dev/null +++ b/dist/esm/models/CreateAccessKeyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKeySecretKey } from './AccessKeySecretKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateAccessKeyResponse + */ +export interface CreateAccessKeyResponse { + /** + * + * @type {AccessKeySecretKey} + * @memberof CreateAccessKeyResponse + */ + accessKey?: AccessKeySecretKey; + /** + * + * @type {ModelResponseContext} + * @memberof CreateAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateAccessKeyResponseFromJSON(json: any): CreateAccessKeyResponse; +export declare function CreateAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccessKeyResponse; +export declare function CreateAccessKeyResponseToJSON(value?: CreateAccessKeyResponse | null): any; diff --git a/dist/esm/models/CreateAccessKeyResponse.js b/dist/esm/models/CreateAccessKeyResponse.js new file mode 100644 index 00000000..054851ba --- /dev/null +++ b/dist/esm/models/CreateAccessKeyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccessKeySecretKeyFromJSON, AccessKeySecretKeyToJSON, } from './AccessKeySecretKey'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateAccessKeyResponseFromJSON(json) { + return CreateAccessKeyResponseFromJSONTyped(json, false); +} +export function CreateAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKey': !exists(json, 'AccessKey') ? undefined : AccessKeySecretKeyFromJSON(json['AccessKey']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKey': AccessKeySecretKeyToJSON(value.accessKey), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateAccountRequest.d.ts b/dist/esm/models/CreateAccountRequest.d.ts new file mode 100644 index 00000000..1599b96b --- /dev/null +++ b/dist/esm/models/CreateAccountRequest.d.ts @@ -0,0 +1,111 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateAccountRequest + */ +export interface CreateAccountRequest { + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. If you already have a list of additional emails registered, you cannot add to it, only replace it. To remove all registered additional emails, specify an empty list. + * @type {Array} + * @memberof CreateAccountRequest + */ + additionalEmails?: Array; + /** + * The city of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + city: string; + /** + * The name of the company for the account. + * @type {string} + * @memberof CreateAccountRequest + */ + companyName: string; + /** + * The country of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + country: string; + /** + * The ID of the customer. It must be 8 digits. + * @type {string} + * @memberof CreateAccountRequest + */ + customerId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateAccountRequest + */ + dryRun?: boolean; + /** + * The main email address for the account. This address is used for your credentials and notifications. + * @type {string} + * @memberof CreateAccountRequest + */ + email: string; + /** + * The first name of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + firstName: string; + /** + * The job title of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + jobTitle?: string; + /** + * The last name of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + lastName: string; + /** + * The mobile phone number of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + mobileNumber?: string; + /** + * The landline phone number of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + phoneNumber?: string; + /** + * The state/province of the account. + * @type {string} + * @memberof CreateAccountRequest + */ + stateProvince?: string; + /** + * The value added tax (VAT) number for the account. + * @type {string} + * @memberof CreateAccountRequest + */ + vatNumber?: string; + /** + * The ZIP code of the city. + * @type {string} + * @memberof CreateAccountRequest + */ + zipCode: string; +} +export declare function CreateAccountRequestFromJSON(json: any): CreateAccountRequest; +export declare function CreateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountRequest; +export declare function CreateAccountRequestToJSON(value?: CreateAccountRequest | null): any; diff --git a/dist/esm/models/CreateAccountRequest.js b/dist/esm/models/CreateAccountRequest.js new file mode 100644 index 00000000..7f44bf11 --- /dev/null +++ b/dist/esm/models/CreateAccountRequest.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateAccountRequestFromJSON(json) { + return CreateAccountRequestFromJSONTyped(json, false); +} +export function CreateAccountRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'additionalEmails': !exists(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': json['City'], + 'companyName': json['CompanyName'], + 'country': json['Country'], + 'customerId': json['CustomerId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'email': json['Email'], + 'firstName': json['FirstName'], + 'jobTitle': !exists(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': json['LastName'], + 'mobileNumber': !exists(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !exists(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !exists(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !exists(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': json['ZipCode'], + }; +} +export function CreateAccountRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'CustomerId': value.customerId, + 'DryRun': value.dryRun, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} diff --git a/dist/esm/models/CreateAccountResponse.d.ts b/dist/esm/models/CreateAccountResponse.d.ts new file mode 100644 index 00000000..34f5b63f --- /dev/null +++ b/dist/esm/models/CreateAccountResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Account } from './Account'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateAccountResponse + */ +export interface CreateAccountResponse { + /** + * + * @type {Account} + * @memberof CreateAccountResponse + */ + account?: Account; + /** + * + * @type {ModelResponseContext} + * @memberof CreateAccountResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateAccountResponseFromJSON(json: any): CreateAccountResponse; +export declare function CreateAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountResponse; +export declare function CreateAccountResponseToJSON(value?: CreateAccountResponse | null): any; diff --git a/dist/esm/models/CreateAccountResponse.js b/dist/esm/models/CreateAccountResponse.js new file mode 100644 index 00000000..c2cb18a4 --- /dev/null +++ b/dist/esm/models/CreateAccountResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccountFromJSON, AccountToJSON, } from './Account'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateAccountResponseFromJSON(json) { + return CreateAccountResponseFromJSONTyped(json, false); +} +export function CreateAccountResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'account': !exists(json, 'Account') ? undefined : AccountFromJSON(json['Account']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateAccountResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Account': AccountToJSON(value.account), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateApiAccessRuleRequest.d.ts b/dist/esm/models/CreateApiAccessRuleRequest.d.ts new file mode 100644 index 00000000..60f9f453 --- /dev/null +++ b/dist/esm/models/CreateApiAccessRuleRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateApiAccessRuleRequest + */ +export interface CreateApiAccessRuleRequest { + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). If this parameter is specified, you must also specify the `CaIds` parameter. + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + cns?: Array; + /** + * A description for the API access rule. + * @type {string} + * @memberof CreateApiAccessRuleRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateApiAccessRuleRequest + */ + dryRun?: boolean; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + ipRanges?: Array; +} +export declare function CreateApiAccessRuleRequestFromJSON(json: any): CreateApiAccessRuleRequest; +export declare function CreateApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiAccessRuleRequest; +export declare function CreateApiAccessRuleRequestToJSON(value?: CreateApiAccessRuleRequest | null): any; diff --git a/dist/esm/models/CreateApiAccessRuleRequest.js b/dist/esm/models/CreateApiAccessRuleRequest.js new file mode 100644 index 00000000..935c83e2 --- /dev/null +++ b/dist/esm/models/CreateApiAccessRuleRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateApiAccessRuleRequestFromJSON(json) { + return CreateApiAccessRuleRequestFromJSONTyped(json, false); +} +export function CreateApiAccessRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +export function CreateApiAccessRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'DryRun': value.dryRun, + 'IpRanges': value.ipRanges, + }; +} diff --git a/dist/esm/models/CreateApiAccessRuleResponse.d.ts b/dist/esm/models/CreateApiAccessRuleResponse.d.ts new file mode 100644 index 00000000..5ec536b8 --- /dev/null +++ b/dist/esm/models/CreateApiAccessRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessRule } from './ApiAccessRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateApiAccessRuleResponse + */ +export interface CreateApiAccessRuleResponse { + /** + * + * @type {ApiAccessRule} + * @memberof CreateApiAccessRuleResponse + */ + apiAccessRule?: ApiAccessRule; + /** + * + * @type {ModelResponseContext} + * @memberof CreateApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateApiAccessRuleResponseFromJSON(json: any): CreateApiAccessRuleResponse; +export declare function CreateApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiAccessRuleResponse; +export declare function CreateApiAccessRuleResponseToJSON(value?: CreateApiAccessRuleResponse | null): any; diff --git a/dist/esm/models/CreateApiAccessRuleResponse.js b/dist/esm/models/CreateApiAccessRuleResponse.js new file mode 100644 index 00000000..cce5e35f --- /dev/null +++ b/dist/esm/models/CreateApiAccessRuleResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ApiAccessRuleFromJSON, ApiAccessRuleToJSON, } from './ApiAccessRule'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateApiAccessRuleResponseFromJSON(json) { + return CreateApiAccessRuleResponseFromJSONTyped(json, false); +} +export function CreateApiAccessRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRule': !exists(json, 'ApiAccessRule') ? undefined : ApiAccessRuleFromJSON(json['ApiAccessRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateApiAccessRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRule': ApiAccessRuleToJSON(value.apiAccessRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateCaRequest.d.ts b/dist/esm/models/CreateCaRequest.d.ts new file mode 100644 index 00000000..04e3f23d --- /dev/null +++ b/dist/esm/models/CreateCaRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateCaRequest + */ +export interface CreateCaRequest { + /** + * The CA in PEM format. It must be a single-line string, containing literal line breaks (`\n`). + * @type {string} + * @memberof CreateCaRequest + */ + caPem: string; + /** + * The description of the CA. + * @type {string} + * @memberof CreateCaRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateCaRequest + */ + dryRun?: boolean; +} +export declare function CreateCaRequestFromJSON(json: any): CreateCaRequest; +export declare function CreateCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCaRequest; +export declare function CreateCaRequestToJSON(value?: CreateCaRequest | null): any; diff --git a/dist/esm/models/CreateCaRequest.js b/dist/esm/models/CreateCaRequest.js new file mode 100644 index 00000000..da14dbea --- /dev/null +++ b/dist/esm/models/CreateCaRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateCaRequestFromJSON(json) { + return CreateCaRequestFromJSONTyped(json, false); +} +export function CreateCaRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caPem': json['CaPem'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function CreateCaRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaPem': value.caPem, + 'Description': value.description, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/CreateCaResponse.d.ts b/dist/esm/models/CreateCaResponse.d.ts new file mode 100644 index 00000000..c523acd1 --- /dev/null +++ b/dist/esm/models/CreateCaResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Ca } from './Ca'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateCaResponse + */ +export interface CreateCaResponse { + /** + * + * @type {Ca} + * @memberof CreateCaResponse + */ + ca?: Ca; + /** + * + * @type {ModelResponseContext} + * @memberof CreateCaResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateCaResponseFromJSON(json: any): CreateCaResponse; +export declare function CreateCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCaResponse; +export declare function CreateCaResponseToJSON(value?: CreateCaResponse | null): any; diff --git a/dist/esm/models/CreateCaResponse.js b/dist/esm/models/CreateCaResponse.js new file mode 100644 index 00000000..ad9cb960 --- /dev/null +++ b/dist/esm/models/CreateCaResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { CaFromJSON, CaToJSON, } from './Ca'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateCaResponseFromJSON(json) { + return CreateCaResponseFromJSONTyped(json, false); +} +export function CreateCaResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'ca': !exists(json, 'Ca') ? undefined : CaFromJSON(json['Ca']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateCaResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Ca': CaToJSON(value.ca), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateClientGatewayRequest.d.ts b/dist/esm/models/CreateClientGatewayRequest.d.ts new file mode 100644 index 00000000..b4424542 --- /dev/null +++ b/dist/esm/models/CreateClientGatewayRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateClientGatewayRequest + */ +export interface CreateClientGatewayRequest { + /** + * The Autonomous System Number (ASN) used by the Border Gateway Protocol (BGP) to find the path to your client gateway through the Internet. This number must be between 1 and 4294967295. + * @type {number} + * @memberof CreateClientGatewayRequest + */ + bgpAsn: number; + /** + * The communication protocol used to establish tunnel with your client gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateClientGatewayRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateClientGatewayRequest + */ + dryRun?: boolean; + /** + * The public fixed IPv4 address of your client gateway. + * @type {string} + * @memberof CreateClientGatewayRequest + */ + publicIp: string; +} +export declare function CreateClientGatewayRequestFromJSON(json: any): CreateClientGatewayRequest; +export declare function CreateClientGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientGatewayRequest; +export declare function CreateClientGatewayRequestToJSON(value?: CreateClientGatewayRequest | null): any; diff --git a/dist/esm/models/CreateClientGatewayRequest.js b/dist/esm/models/CreateClientGatewayRequest.js new file mode 100644 index 00000000..1956171d --- /dev/null +++ b/dist/esm/models/CreateClientGatewayRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateClientGatewayRequestFromJSON(json) { + return CreateClientGatewayRequestFromJSONTyped(json, false); +} +export function CreateClientGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsn': json['BgpAsn'], + 'connectionType': json['ConnectionType'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIp': json['PublicIp'], + }; +} +export function CreateClientGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsn': value.bgpAsn, + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + 'PublicIp': value.publicIp, + }; +} diff --git a/dist/esm/models/CreateClientGatewayResponse.d.ts b/dist/esm/models/CreateClientGatewayResponse.d.ts new file mode 100644 index 00000000..25e3817c --- /dev/null +++ b/dist/esm/models/CreateClientGatewayResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ClientGateway } from './ClientGateway'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateClientGatewayResponse + */ +export interface CreateClientGatewayResponse { + /** + * + * @type {ClientGateway} + * @memberof CreateClientGatewayResponse + */ + clientGateway?: ClientGateway; + /** + * + * @type {ModelResponseContext} + * @memberof CreateClientGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateClientGatewayResponseFromJSON(json: any): CreateClientGatewayResponse; +export declare function CreateClientGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientGatewayResponse; +export declare function CreateClientGatewayResponseToJSON(value?: CreateClientGatewayResponse | null): any; diff --git a/dist/esm/models/CreateClientGatewayResponse.js b/dist/esm/models/CreateClientGatewayResponse.js new file mode 100644 index 00000000..a4f3f40d --- /dev/null +++ b/dist/esm/models/CreateClientGatewayResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ClientGatewayFromJSON, ClientGatewayToJSON, } from './ClientGateway'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateClientGatewayResponseFromJSON(json) { + return CreateClientGatewayResponseFromJSONTyped(json, false); +} +export function CreateClientGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGateway': !exists(json, 'ClientGateway') ? undefined : ClientGatewayFromJSON(json['ClientGateway']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateClientGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGateway': ClientGatewayToJSON(value.clientGateway), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateDhcpOptionsRequest.d.ts b/dist/esm/models/CreateDhcpOptionsRequest.d.ts new file mode 100644 index 00000000..cbc6c3a3 --- /dev/null +++ b/dist/esm/models/CreateDhcpOptionsRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateDhcpOptionsRequest + */ +export interface CreateDhcpOptionsRequest { + /** + * Specify a domain name (for example, MyCompany.com). You can specify only one domain name. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {string} + * @memberof CreateDhcpOptionsRequest + */ + domainName?: string; + /** + * The IPs of domain name servers. If no IPs are specified, the `OutscaleProvidedDNS` value is set by default. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {Array} + * @memberof CreateDhcpOptionsRequest + */ + domainNameServers?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDhcpOptionsRequest + */ + dryRun?: boolean; + /** + * The IPs of the Network Time Protocol (NTP) servers. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {Array} + * @memberof CreateDhcpOptionsRequest + */ + ntpServers?: Array; +} +export declare function CreateDhcpOptionsRequestFromJSON(json: any): CreateDhcpOptionsRequest; +export declare function CreateDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDhcpOptionsRequest; +export declare function CreateDhcpOptionsRequestToJSON(value?: CreateDhcpOptionsRequest | null): any; diff --git a/dist/esm/models/CreateDhcpOptionsRequest.js b/dist/esm/models/CreateDhcpOptionsRequest.js new file mode 100644 index 00000000..cbbb29f3 --- /dev/null +++ b/dist/esm/models/CreateDhcpOptionsRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateDhcpOptionsRequestFromJSON(json) { + return CreateDhcpOptionsRequestFromJSONTyped(json, false); +} +export function CreateDhcpOptionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'domainName': !exists(json, 'DomainName') ? undefined : json['DomainName'], + 'domainNameServers': !exists(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ntpServers': !exists(json, 'NtpServers') ? undefined : json['NtpServers'], + }; +} +export function CreateDhcpOptionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DomainName': value.domainName, + 'DomainNameServers': value.domainNameServers, + 'DryRun': value.dryRun, + 'NtpServers': value.ntpServers, + }; +} diff --git a/dist/esm/models/CreateDhcpOptionsResponse.d.ts b/dist/esm/models/CreateDhcpOptionsResponse.d.ts new file mode 100644 index 00000000..497bb8f1 --- /dev/null +++ b/dist/esm/models/CreateDhcpOptionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DhcpOptionsSet } from './DhcpOptionsSet'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateDhcpOptionsResponse + */ +export interface CreateDhcpOptionsResponse { + /** + * + * @type {DhcpOptionsSet} + * @memberof CreateDhcpOptionsResponse + */ + dhcpOptionsSet?: DhcpOptionsSet; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateDhcpOptionsResponseFromJSON(json: any): CreateDhcpOptionsResponse; +export declare function CreateDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDhcpOptionsResponse; +export declare function CreateDhcpOptionsResponseToJSON(value?: CreateDhcpOptionsResponse | null): any; diff --git a/dist/esm/models/CreateDhcpOptionsResponse.js b/dist/esm/models/CreateDhcpOptionsResponse.js new file mode 100644 index 00000000..25c60133 --- /dev/null +++ b/dist/esm/models/CreateDhcpOptionsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DhcpOptionsSetFromJSON, DhcpOptionsSetToJSON, } from './DhcpOptionsSet'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateDhcpOptionsResponseFromJSON(json) { + return CreateDhcpOptionsResponseFromJSONTyped(json, false); +} +export function CreateDhcpOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSet': !exists(json, 'DhcpOptionsSet') ? undefined : DhcpOptionsSetFromJSON(json['DhcpOptionsSet']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateDhcpOptionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSet': DhcpOptionsSetToJSON(value.dhcpOptionsSet), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateDirectLinkInterfaceRequest.d.ts b/dist/esm/models/CreateDirectLinkInterfaceRequest.d.ts new file mode 100644 index 00000000..a7b27a83 --- /dev/null +++ b/dist/esm/models/CreateDirectLinkInterfaceRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLinkInterface } from './DirectLinkInterface'; +/** + * + * @export + * @interface CreateDirectLinkInterfaceRequest + */ +export interface CreateDirectLinkInterfaceRequest { + /** + * The ID of the existing DirectLink for which you want to create the DirectLink interface. + * @type {string} + * @memberof CreateDirectLinkInterfaceRequest + */ + directLinkId: string; + /** + * + * @type {DirectLinkInterface} + * @memberof CreateDirectLinkInterfaceRequest + */ + directLinkInterface: DirectLinkInterface; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDirectLinkInterfaceRequest + */ + dryRun?: boolean; +} +export declare function CreateDirectLinkInterfaceRequestFromJSON(json: any): CreateDirectLinkInterfaceRequest; +export declare function CreateDirectLinkInterfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkInterfaceRequest; +export declare function CreateDirectLinkInterfaceRequestToJSON(value?: CreateDirectLinkInterfaceRequest | null): any; diff --git a/dist/esm/models/CreateDirectLinkInterfaceRequest.js b/dist/esm/models/CreateDirectLinkInterfaceRequest.js new file mode 100644 index 00000000..ece5db6d --- /dev/null +++ b/dist/esm/models/CreateDirectLinkInterfaceRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DirectLinkInterfaceFromJSON, DirectLinkInterfaceToJSON, } from './DirectLinkInterface'; +export function CreateDirectLinkInterfaceRequestFromJSON(json) { + return CreateDirectLinkInterfaceRequestFromJSONTyped(json, false); +} +export function CreateDirectLinkInterfaceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkId': json['DirectLinkId'], + 'directLinkInterface': DirectLinkInterfaceFromJSON(json['DirectLinkInterface']), + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function CreateDirectLinkInterfaceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkId': value.directLinkId, + 'DirectLinkInterface': DirectLinkInterfaceToJSON(value.directLinkInterface), + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/CreateDirectLinkInterfaceResponse.d.ts b/dist/esm/models/CreateDirectLinkInterfaceResponse.d.ts new file mode 100644 index 00000000..4c5fbe0a --- /dev/null +++ b/dist/esm/models/CreateDirectLinkInterfaceResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLinkInterfaces } from './DirectLinkInterfaces'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateDirectLinkInterfaceResponse + */ +export interface CreateDirectLinkInterfaceResponse { + /** + * + * @type {DirectLinkInterfaces} + * @memberof CreateDirectLinkInterfaceResponse + */ + directLinkInterface?: DirectLinkInterfaces; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDirectLinkInterfaceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateDirectLinkInterfaceResponseFromJSON(json: any): CreateDirectLinkInterfaceResponse; +export declare function CreateDirectLinkInterfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkInterfaceResponse; +export declare function CreateDirectLinkInterfaceResponseToJSON(value?: CreateDirectLinkInterfaceResponse | null): any; diff --git a/dist/esm/models/CreateDirectLinkInterfaceResponse.js b/dist/esm/models/CreateDirectLinkInterfaceResponse.js new file mode 100644 index 00000000..322cb3fd --- /dev/null +++ b/dist/esm/models/CreateDirectLinkInterfaceResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DirectLinkInterfacesFromJSON, DirectLinkInterfacesToJSON, } from './DirectLinkInterfaces'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateDirectLinkInterfaceResponseFromJSON(json) { + return CreateDirectLinkInterfaceResponseFromJSONTyped(json, false); +} +export function CreateDirectLinkInterfaceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkInterface': !exists(json, 'DirectLinkInterface') ? undefined : DirectLinkInterfacesFromJSON(json['DirectLinkInterface']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateDirectLinkInterfaceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkInterface': DirectLinkInterfacesToJSON(value.directLinkInterface), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateDirectLinkRequest.d.ts b/dist/esm/models/CreateDirectLinkRequest.d.ts new file mode 100644 index 00000000..635706a6 --- /dev/null +++ b/dist/esm/models/CreateDirectLinkRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateDirectLinkRequest + */ +export interface CreateDirectLinkRequest { + /** + * The bandwidth of the DirectLink (`1Gbps` \| `10Gbps`). + * @type {string} + * @memberof CreateDirectLinkRequest + */ + bandwidth: string; + /** + * The name of the DirectLink. + * @type {string} + * @memberof CreateDirectLinkRequest + */ + directLinkName: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDirectLinkRequest + */ + dryRun?: boolean; + /** + * The code of the requested location for the DirectLink, returned by the [ReadLocations](#readlocations) method. + * @type {string} + * @memberof CreateDirectLinkRequest + */ + location: string; +} +export declare function CreateDirectLinkRequestFromJSON(json: any): CreateDirectLinkRequest; +export declare function CreateDirectLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkRequest; +export declare function CreateDirectLinkRequestToJSON(value?: CreateDirectLinkRequest | null): any; diff --git a/dist/esm/models/CreateDirectLinkRequest.js b/dist/esm/models/CreateDirectLinkRequest.js new file mode 100644 index 00000000..5f5f11bc --- /dev/null +++ b/dist/esm/models/CreateDirectLinkRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateDirectLinkRequestFromJSON(json) { + return CreateDirectLinkRequestFromJSONTyped(json, false); +} +export function CreateDirectLinkRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bandwidth': json['Bandwidth'], + 'directLinkName': json['DirectLinkName'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'location': json['Location'], + }; +} +export function CreateDirectLinkRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Bandwidth': value.bandwidth, + 'DirectLinkName': value.directLinkName, + 'DryRun': value.dryRun, + 'Location': value.location, + }; +} diff --git a/dist/esm/models/CreateDirectLinkResponse.d.ts b/dist/esm/models/CreateDirectLinkResponse.d.ts new file mode 100644 index 00000000..60059585 --- /dev/null +++ b/dist/esm/models/CreateDirectLinkResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLink } from './DirectLink'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateDirectLinkResponse + */ +export interface CreateDirectLinkResponse { + /** + * + * @type {DirectLink} + * @memberof CreateDirectLinkResponse + */ + directLink?: DirectLink; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDirectLinkResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateDirectLinkResponseFromJSON(json: any): CreateDirectLinkResponse; +export declare function CreateDirectLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkResponse; +export declare function CreateDirectLinkResponseToJSON(value?: CreateDirectLinkResponse | null): any; diff --git a/dist/esm/models/CreateDirectLinkResponse.js b/dist/esm/models/CreateDirectLinkResponse.js new file mode 100644 index 00000000..51f168ed --- /dev/null +++ b/dist/esm/models/CreateDirectLinkResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DirectLinkFromJSON, DirectLinkToJSON, } from './DirectLink'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateDirectLinkResponseFromJSON(json) { + return CreateDirectLinkResponseFromJSONTyped(json, false); +} +export function CreateDirectLinkResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLink': !exists(json, 'DirectLink') ? undefined : DirectLinkFromJSON(json['DirectLink']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateDirectLinkResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLink': DirectLinkToJSON(value.directLink), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateFlexibleGpuRequest.d.ts b/dist/esm/models/CreateFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..ccba4144 --- /dev/null +++ b/dist/esm/models/CreateFlexibleGpuRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateFlexibleGpuRequest + */ +export interface CreateFlexibleGpuRequest { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof CreateFlexibleGpuRequest + */ + deleteOnVmDeletion?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by [ReadFlexibleGpuCatalog](#readflexiblegpucatalog) for the specified model of fGPU). + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + generation?: string; + /** + * The model of fGPU you want to allocate. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + modelName: string; + /** + * The Subregion in which you want to create the fGPU. + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + subregionName: string; +} +export declare function CreateFlexibleGpuRequestFromJSON(json: any): CreateFlexibleGpuRequest; +export declare function CreateFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFlexibleGpuRequest; +export declare function CreateFlexibleGpuRequestToJSON(value?: CreateFlexibleGpuRequest | null): any; diff --git a/dist/esm/models/CreateFlexibleGpuRequest.js b/dist/esm/models/CreateFlexibleGpuRequest.js new file mode 100644 index 00000000..98197bd3 --- /dev/null +++ b/dist/esm/models/CreateFlexibleGpuRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateFlexibleGpuRequestFromJSON(json) { + return CreateFlexibleGpuRequestFromJSONTyped(json, false); +} +export function CreateFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'generation': !exists(json, 'Generation') ? undefined : json['Generation'], + 'modelName': json['ModelName'], + 'subregionName': json['SubregionName'], + }; +} +export function CreateFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DryRun': value.dryRun, + 'Generation': value.generation, + 'ModelName': value.modelName, + 'SubregionName': value.subregionName, + }; +} diff --git a/dist/esm/models/CreateFlexibleGpuResponse.d.ts b/dist/esm/models/CreateFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..9cfdd5a0 --- /dev/null +++ b/dist/esm/models/CreateFlexibleGpuResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpu } from './FlexibleGpu'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateFlexibleGpuResponse + */ +export interface CreateFlexibleGpuResponse { + /** + * + * @type {FlexibleGpu} + * @memberof CreateFlexibleGpuResponse + */ + flexibleGpu?: FlexibleGpu; + /** + * + * @type {ModelResponseContext} + * @memberof CreateFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateFlexibleGpuResponseFromJSON(json: any): CreateFlexibleGpuResponse; +export declare function CreateFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFlexibleGpuResponse; +export declare function CreateFlexibleGpuResponseToJSON(value?: CreateFlexibleGpuResponse | null): any; diff --git a/dist/esm/models/CreateFlexibleGpuResponse.js b/dist/esm/models/CreateFlexibleGpuResponse.js new file mode 100644 index 00000000..987fe10e --- /dev/null +++ b/dist/esm/models/CreateFlexibleGpuResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FlexibleGpuFromJSON, FlexibleGpuToJSON, } from './FlexibleGpu'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateFlexibleGpuResponseFromJSON(json) { + return CreateFlexibleGpuResponseFromJSONTyped(json, false); +} +export function CreateFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpu': !exists(json, 'FlexibleGpu') ? undefined : FlexibleGpuFromJSON(json['FlexibleGpu']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpu': FlexibleGpuToJSON(value.flexibleGpu), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateImageExportTaskRequest.d.ts b/dist/esm/models/CreateImageExportTaskRequest.d.ts new file mode 100644 index 00000000..014de9f5 --- /dev/null +++ b/dist/esm/models/CreateImageExportTaskRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportToCreate } from './OsuExportToCreate'; +/** + * + * @export + * @interface CreateImageExportTaskRequest + */ +export interface CreateImageExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateImageExportTaskRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI to export. + * @type {string} + * @memberof CreateImageExportTaskRequest + */ + imageId: string; + /** + * + * @type {OsuExportToCreate} + * @memberof CreateImageExportTaskRequest + */ + osuExport: OsuExportToCreate; +} +export declare function CreateImageExportTaskRequestFromJSON(json: any): CreateImageExportTaskRequest; +export declare function CreateImageExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageExportTaskRequest; +export declare function CreateImageExportTaskRequestToJSON(value?: CreateImageExportTaskRequest | null): any; diff --git a/dist/esm/models/CreateImageExportTaskRequest.js b/dist/esm/models/CreateImageExportTaskRequest.js new file mode 100644 index 00000000..8d75a5cb --- /dev/null +++ b/dist/esm/models/CreateImageExportTaskRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { OsuExportToCreateFromJSON, OsuExportToCreateToJSON, } from './OsuExportToCreate'; +export function CreateImageExportTaskRequestFromJSON(json) { + return CreateImageExportTaskRequestFromJSONTyped(json, false); +} +export function CreateImageExportTaskRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'osuExport': OsuExportToCreateFromJSON(json['OsuExport']), + }; +} +export function CreateImageExportTaskRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'OsuExport': OsuExportToCreateToJSON(value.osuExport), + }; +} diff --git a/dist/esm/models/CreateImageExportTaskResponse.d.ts b/dist/esm/models/CreateImageExportTaskResponse.d.ts new file mode 100644 index 00000000..402f17a8 --- /dev/null +++ b/dist/esm/models/CreateImageExportTaskResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ImageExportTask } from './ImageExportTask'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateImageExportTaskResponse + */ +export interface CreateImageExportTaskResponse { + /** + * + * @type {ImageExportTask} + * @memberof CreateImageExportTaskResponse + */ + imageExportTask?: ImageExportTask; + /** + * + * @type {ModelResponseContext} + * @memberof CreateImageExportTaskResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateImageExportTaskResponseFromJSON(json: any): CreateImageExportTaskResponse; +export declare function CreateImageExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageExportTaskResponse; +export declare function CreateImageExportTaskResponseToJSON(value?: CreateImageExportTaskResponse | null): any; diff --git a/dist/esm/models/CreateImageExportTaskResponse.js b/dist/esm/models/CreateImageExportTaskResponse.js new file mode 100644 index 00000000..9720d313 --- /dev/null +++ b/dist/esm/models/CreateImageExportTaskResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ImageExportTaskFromJSON, ImageExportTaskToJSON, } from './ImageExportTask'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateImageExportTaskResponseFromJSON(json) { + return CreateImageExportTaskResponseFromJSONTyped(json, false); +} +export function CreateImageExportTaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'imageExportTask': !exists(json, 'ImageExportTask') ? undefined : ImageExportTaskFromJSON(json['ImageExportTask']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateImageExportTaskResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ImageExportTask': ImageExportTaskToJSON(value.imageExportTask), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateImageRequest.d.ts b/dist/esm/models/CreateImageRequest.d.ts new file mode 100644 index 00000000..0856041b --- /dev/null +++ b/dist/esm/models/CreateImageRequest.d.ts @@ -0,0 +1,89 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingImage } from './BlockDeviceMappingImage'; +/** + * + * @export + * @interface CreateImageRequest + */ +export interface CreateImageRequest { + /** + * The architecture of the OMI (by default, `i386` if you specified the `FileLocation` or `RootDeviceName` parameter). + * @type {string} + * @memberof CreateImageRequest + */ + architecture?: string; + /** + * One or more block device mappings. + * @type {Array} + * @memberof CreateImageRequest + */ + blockDeviceMappings?: Array; + /** + * A description for the new OMI. + * @type {string} + * @memberof CreateImageRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateImageRequest + */ + dryRun?: boolean; + /** + * The pre-signed URL of the OMI manifest file, or the full path to the OMI stored in a bucket. If you specify this parameter, a copy of the OMI is created in your account. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + fileLocation?: string; + /** + * A unique name for the new OMI.
+ * Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-). + * @type {string} + * @memberof CreateImageRequest + */ + imageName?: string; + /** + * If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not. + * @type {boolean} + * @memberof CreateImageRequest + */ + noReboot?: boolean; + /** + * The name of the root device. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + rootDeviceName?: string; + /** + * The ID of the OMI you want to copy. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + sourceImageId?: string; + /** + * The name of the source Region, which must be the same as the Region of your account. + * @type {string} + * @memberof CreateImageRequest + */ + sourceRegionName?: string; + /** + * The ID of the VM from which you want to create the OMI. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + vmId?: string; +} +export declare function CreateImageRequestFromJSON(json: any): CreateImageRequest; +export declare function CreateImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageRequest; +export declare function CreateImageRequestToJSON(value?: CreateImageRequest | null): any; diff --git a/dist/esm/models/CreateImageRequest.js b/dist/esm/models/CreateImageRequest.js new file mode 100644 index 00000000..fcdc42fa --- /dev/null +++ b/dist/esm/models/CreateImageRequest.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BlockDeviceMappingImageFromJSON, BlockDeviceMappingImageToJSON, } from './BlockDeviceMappingImage'; +export function CreateImageRequestFromJSON(json) { + return CreateImageRequestFromJSONTyped(json, false); +} +export function CreateImageRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'architecture': !exists(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingImageFromJSON)), + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'fileLocation': !exists(json, 'FileLocation') ? undefined : json['FileLocation'], + 'imageName': !exists(json, 'ImageName') ? undefined : json['ImageName'], + 'noReboot': !exists(json, 'NoReboot') ? undefined : json['NoReboot'], + 'rootDeviceName': !exists(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'sourceImageId': !exists(json, 'SourceImageId') ? undefined : json['SourceImageId'], + 'sourceRegionName': !exists(json, 'SourceRegionName') ? undefined : json['SourceRegionName'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function CreateImageRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingImageToJSON)), + 'Description': value.description, + 'DryRun': value.dryRun, + 'FileLocation': value.fileLocation, + 'ImageName': value.imageName, + 'NoReboot': value.noReboot, + 'RootDeviceName': value.rootDeviceName, + 'SourceImageId': value.sourceImageId, + 'SourceRegionName': value.sourceRegionName, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/CreateImageResponse.d.ts b/dist/esm/models/CreateImageResponse.d.ts new file mode 100644 index 00000000..99a8bf85 --- /dev/null +++ b/dist/esm/models/CreateImageResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Image } from './Image'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateImageResponse + */ +export interface CreateImageResponse { + /** + * + * @type {Image} + * @memberof CreateImageResponse + */ + image?: Image; + /** + * + * @type {ModelResponseContext} + * @memberof CreateImageResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateImageResponseFromJSON(json: any): CreateImageResponse; +export declare function CreateImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageResponse; +export declare function CreateImageResponseToJSON(value?: CreateImageResponse | null): any; diff --git a/dist/esm/models/CreateImageResponse.js b/dist/esm/models/CreateImageResponse.js new file mode 100644 index 00000000..257a933c --- /dev/null +++ b/dist/esm/models/CreateImageResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ImageFromJSON, ImageToJSON, } from './Image'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateImageResponseFromJSON(json) { + return CreateImageResponseFromJSONTyped(json, false); +} +export function CreateImageResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'image': !exists(json, 'Image') ? undefined : ImageFromJSON(json['Image']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateImageResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Image': ImageToJSON(value.image), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateInternetServiceRequest.d.ts b/dist/esm/models/CreateInternetServiceRequest.d.ts new file mode 100644 index 00000000..fff1cd57 --- /dev/null +++ b/dist/esm/models/CreateInternetServiceRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateInternetServiceRequest + */ +export interface CreateInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateInternetServiceRequest + */ + dryRun?: boolean; +} +export declare function CreateInternetServiceRequestFromJSON(json: any): CreateInternetServiceRequest; +export declare function CreateInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInternetServiceRequest; +export declare function CreateInternetServiceRequestToJSON(value?: CreateInternetServiceRequest | null): any; diff --git a/dist/esm/models/CreateInternetServiceRequest.js b/dist/esm/models/CreateInternetServiceRequest.js new file mode 100644 index 00000000..9db5d20b --- /dev/null +++ b/dist/esm/models/CreateInternetServiceRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateInternetServiceRequestFromJSON(json) { + return CreateInternetServiceRequestFromJSONTyped(json, false); +} +export function CreateInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function CreateInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/CreateInternetServiceResponse.d.ts b/dist/esm/models/CreateInternetServiceResponse.d.ts new file mode 100644 index 00000000..15664e98 --- /dev/null +++ b/dist/esm/models/CreateInternetServiceResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { InternetService } from './InternetService'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateInternetServiceResponse + */ +export interface CreateInternetServiceResponse { + /** + * + * @type {InternetService} + * @memberof CreateInternetServiceResponse + */ + internetService?: InternetService; + /** + * + * @type {ModelResponseContext} + * @memberof CreateInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateInternetServiceResponseFromJSON(json: any): CreateInternetServiceResponse; +export declare function CreateInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInternetServiceResponse; +export declare function CreateInternetServiceResponseToJSON(value?: CreateInternetServiceResponse | null): any; diff --git a/dist/esm/models/CreateInternetServiceResponse.js b/dist/esm/models/CreateInternetServiceResponse.js new file mode 100644 index 00000000..1a0b7e68 --- /dev/null +++ b/dist/esm/models/CreateInternetServiceResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { InternetServiceFromJSON, InternetServiceToJSON, } from './InternetService'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateInternetServiceResponseFromJSON(json) { + return CreateInternetServiceResponseFromJSONTyped(json, false); +} +export function CreateInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetService': !exists(json, 'InternetService') ? undefined : InternetServiceFromJSON(json['InternetService']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetService': InternetServiceToJSON(value.internetService), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateKeypairRequest.d.ts b/dist/esm/models/CreateKeypairRequest.d.ts new file mode 100644 index 00000000..a180877a --- /dev/null +++ b/dist/esm/models/CreateKeypairRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateKeypairRequest + */ +export interface CreateKeypairRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateKeypairRequest + */ + dryRun?: boolean; + /** + * A unique name for the keypair, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). + * @type {string} + * @memberof CreateKeypairRequest + */ + keypairName: string; + /** + * The public key. It must be Base64-encoded. + * @type {string} + * @memberof CreateKeypairRequest + */ + publicKey?: string; +} +export declare function CreateKeypairRequestFromJSON(json: any): CreateKeypairRequest; +export declare function CreateKeypairRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeypairRequest; +export declare function CreateKeypairRequestToJSON(value?: CreateKeypairRequest | null): any; diff --git a/dist/esm/models/CreateKeypairRequest.js b/dist/esm/models/CreateKeypairRequest.js new file mode 100644 index 00000000..6afc5641 --- /dev/null +++ b/dist/esm/models/CreateKeypairRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateKeypairRequestFromJSON(json) { + return CreateKeypairRequestFromJSONTyped(json, false); +} +export function CreateKeypairRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'keypairName': json['KeypairName'], + 'publicKey': !exists(json, 'PublicKey') ? undefined : json['PublicKey'], + }; +} +export function CreateKeypairRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'KeypairName': value.keypairName, + 'PublicKey': value.publicKey, + }; +} diff --git a/dist/esm/models/CreateKeypairResponse.d.ts b/dist/esm/models/CreateKeypairResponse.d.ts new file mode 100644 index 00000000..fe481746 --- /dev/null +++ b/dist/esm/models/CreateKeypairResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { KeypairCreated } from './KeypairCreated'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateKeypairResponse + */ +export interface CreateKeypairResponse { + /** + * + * @type {KeypairCreated} + * @memberof CreateKeypairResponse + */ + keypair?: KeypairCreated; + /** + * + * @type {ModelResponseContext} + * @memberof CreateKeypairResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateKeypairResponseFromJSON(json: any): CreateKeypairResponse; +export declare function CreateKeypairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeypairResponse; +export declare function CreateKeypairResponseToJSON(value?: CreateKeypairResponse | null): any; diff --git a/dist/esm/models/CreateKeypairResponse.js b/dist/esm/models/CreateKeypairResponse.js new file mode 100644 index 00000000..54688f02 --- /dev/null +++ b/dist/esm/models/CreateKeypairResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { KeypairCreatedFromJSON, KeypairCreatedToJSON, } from './KeypairCreated'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateKeypairResponseFromJSON(json) { + return CreateKeypairResponseFromJSONTyped(json, false); +} +export function CreateKeypairResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypair': !exists(json, 'Keypair') ? undefined : KeypairCreatedFromJSON(json['Keypair']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateKeypairResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Keypair': KeypairCreatedToJSON(value.keypair), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateListenerRuleRequest.d.ts b/dist/esm/models/CreateListenerRuleRequest.d.ts new file mode 100644 index 00000000..615f1db5 --- /dev/null +++ b/dist/esm/models/CreateListenerRuleRequest.d.ts @@ -0,0 +1,47 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRuleForCreation } from './ListenerRuleForCreation'; +import { LoadBalancerLight } from './LoadBalancerLight'; +/** + * + * @export + * @interface CreateListenerRuleRequest + */ +export interface CreateListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateListenerRuleRequest + */ + dryRun?: boolean; + /** + * + * @type {LoadBalancerLight} + * @memberof CreateListenerRuleRequest + */ + listener: LoadBalancerLight; + /** + * + * @type {ListenerRuleForCreation} + * @memberof CreateListenerRuleRequest + */ + listenerRule: ListenerRuleForCreation; + /** + * The IDs of the backend VMs. + * @type {Array} + * @memberof CreateListenerRuleRequest + */ + vmIds: Array; +} +export declare function CreateListenerRuleRequestFromJSON(json: any): CreateListenerRuleRequest; +export declare function CreateListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateListenerRuleRequest; +export declare function CreateListenerRuleRequestToJSON(value?: CreateListenerRuleRequest | null): any; diff --git a/dist/esm/models/CreateListenerRuleRequest.js b/dist/esm/models/CreateListenerRuleRequest.js new file mode 100644 index 00000000..1595d908 --- /dev/null +++ b/dist/esm/models/CreateListenerRuleRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ListenerRuleForCreationFromJSON, ListenerRuleForCreationToJSON, } from './ListenerRuleForCreation'; +import { LoadBalancerLightFromJSON, LoadBalancerLightToJSON, } from './LoadBalancerLight'; +export function CreateListenerRuleRequestFromJSON(json) { + return CreateListenerRuleRequestFromJSONTyped(json, false); +} +export function CreateListenerRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listener': LoadBalancerLightFromJSON(json['Listener']), + 'listenerRule': ListenerRuleForCreationFromJSON(json['ListenerRule']), + 'vmIds': json['VmIds'], + }; +} +export function CreateListenerRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Listener': LoadBalancerLightToJSON(value.listener), + 'ListenerRule': ListenerRuleForCreationToJSON(value.listenerRule), + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/CreateListenerRuleResponse.d.ts b/dist/esm/models/CreateListenerRuleResponse.d.ts new file mode 100644 index 00000000..e8288f24 --- /dev/null +++ b/dist/esm/models/CreateListenerRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRule } from './ListenerRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateListenerRuleResponse + */ +export interface CreateListenerRuleResponse { + /** + * + * @type {ListenerRule} + * @memberof CreateListenerRuleResponse + */ + listenerRule?: ListenerRule; + /** + * + * @type {ModelResponseContext} + * @memberof CreateListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateListenerRuleResponseFromJSON(json: any): CreateListenerRuleResponse; +export declare function CreateListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateListenerRuleResponse; +export declare function CreateListenerRuleResponseToJSON(value?: CreateListenerRuleResponse | null): any; diff --git a/dist/esm/models/CreateListenerRuleResponse.js b/dist/esm/models/CreateListenerRuleResponse.js new file mode 100644 index 00000000..36661e9b --- /dev/null +++ b/dist/esm/models/CreateListenerRuleResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ListenerRuleFromJSON, ListenerRuleToJSON, } from './ListenerRule'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateListenerRuleResponseFromJSON(json) { + return CreateListenerRuleResponseFromJSONTyped(json, false); +} +export function CreateListenerRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRule': !exists(json, 'ListenerRule') ? undefined : ListenerRuleFromJSON(json['ListenerRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateListenerRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRule': ListenerRuleToJSON(value.listenerRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateLoadBalancerListenersRequest.d.ts b/dist/esm/models/CreateLoadBalancerListenersRequest.d.ts new file mode 100644 index 00000000..d9732f17 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerListenersRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerForCreation } from './ListenerForCreation'; +/** + * + * @export + * @interface CreateLoadBalancerListenersRequest + */ +export interface CreateLoadBalancerListenersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerListenersRequest + */ + dryRun?: boolean; + /** + * One or more listeners for the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerListenersRequest + */ + listeners: Array; + /** + * The name of the load balancer for which you want to create listeners. + * @type {string} + * @memberof CreateLoadBalancerListenersRequest + */ + loadBalancerName: string; +} +export declare function CreateLoadBalancerListenersRequestFromJSON(json: any): CreateLoadBalancerListenersRequest; +export declare function CreateLoadBalancerListenersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerListenersRequest; +export declare function CreateLoadBalancerListenersRequestToJSON(value?: CreateLoadBalancerListenersRequest | null): any; diff --git a/dist/esm/models/CreateLoadBalancerListenersRequest.js b/dist/esm/models/CreateLoadBalancerListenersRequest.js new file mode 100644 index 00000000..79fdc3ee --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerListenersRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ListenerForCreationFromJSON, ListenerForCreationToJSON, } from './ListenerForCreation'; +export function CreateLoadBalancerListenersRequestFromJSON(json) { + return CreateLoadBalancerListenersRequestFromJSONTyped(json, false); +} +export function CreateLoadBalancerListenersRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listeners': (json['Listeners'].map(ListenerForCreationFromJSON)), + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function CreateLoadBalancerListenersRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Listeners': (value.listeners.map(ListenerForCreationToJSON)), + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/CreateLoadBalancerListenersResponse.d.ts b/dist/esm/models/CreateLoadBalancerListenersResponse.d.ts new file mode 100644 index 00000000..b4da3e39 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerListenersResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerListenersResponse + */ +export interface CreateLoadBalancerListenersResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerListenersResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerListenersResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerListenersResponseFromJSON(json: any): CreateLoadBalancerListenersResponse; +export declare function CreateLoadBalancerListenersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerListenersResponse; +export declare function CreateLoadBalancerListenersResponseToJSON(value?: CreateLoadBalancerListenersResponse | null): any; diff --git a/dist/esm/models/CreateLoadBalancerListenersResponse.js b/dist/esm/models/CreateLoadBalancerListenersResponse.js new file mode 100644 index 00000000..a367f01a --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerListenersResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateLoadBalancerListenersResponseFromJSON(json) { + return CreateLoadBalancerListenersResponseFromJSONTyped(json, false); +} +export function CreateLoadBalancerListenersResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateLoadBalancerListenersResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateLoadBalancerPolicyRequest.d.ts b/dist/esm/models/CreateLoadBalancerPolicyRequest.d.ts new file mode 100644 index 00000000..94046299 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerPolicyRequest.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateLoadBalancerPolicyRequest + */ +export interface CreateLoadBalancerPolicyRequest { + /** + * The lifetime of the cookie, in seconds. If not specified, the default value of this parameter is 1, which means that the sticky session lasts for the duration of the browser session. + * @type {number} + * @memberof CreateLoadBalancerPolicyRequest + */ + cookieExpirationPeriod?: number; + /** + * The name of the application cookie used for stickiness. This parameter is required if you create a stickiness policy based on an application-generated cookie. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + cookieName?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerPolicyRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to create a policy. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + loadBalancerName: string; + /** + * The name of the policy. This name must be unique and consist of alphanumeric characters and dashes (-). + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + policyName: string; + /** + * The type of stickiness policy you want to create: `app` or `load_balancer`. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + policyType: string; +} +export declare function CreateLoadBalancerPolicyRequestFromJSON(json: any): CreateLoadBalancerPolicyRequest; +export declare function CreateLoadBalancerPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerPolicyRequest; +export declare function CreateLoadBalancerPolicyRequestToJSON(value?: CreateLoadBalancerPolicyRequest | null): any; diff --git a/dist/esm/models/CreateLoadBalancerPolicyRequest.js b/dist/esm/models/CreateLoadBalancerPolicyRequest.js new file mode 100644 index 00000000..0730881e --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerPolicyRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateLoadBalancerPolicyRequestFromJSON(json) { + return CreateLoadBalancerPolicyRequestFromJSONTyped(json, false); +} +export function CreateLoadBalancerPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cookieExpirationPeriod': !exists(json, 'CookieExpirationPeriod') ? undefined : json['CookieExpirationPeriod'], + 'cookieName': !exists(json, 'CookieName') ? undefined : json['CookieName'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'policyName': json['PolicyName'], + 'policyType': json['PolicyType'], + }; +} +export function CreateLoadBalancerPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CookieExpirationPeriod': value.cookieExpirationPeriod, + 'CookieName': value.cookieName, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'PolicyName': value.policyName, + 'PolicyType': value.policyType, + }; +} diff --git a/dist/esm/models/CreateLoadBalancerPolicyResponse.d.ts b/dist/esm/models/CreateLoadBalancerPolicyResponse.d.ts new file mode 100644 index 00000000..cc125e83 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerPolicyResponse + */ +export interface CreateLoadBalancerPolicyResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerPolicyResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerPolicyResponseFromJSON(json: any): CreateLoadBalancerPolicyResponse; +export declare function CreateLoadBalancerPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerPolicyResponse; +export declare function CreateLoadBalancerPolicyResponseToJSON(value?: CreateLoadBalancerPolicyResponse | null): any; diff --git a/dist/esm/models/CreateLoadBalancerPolicyResponse.js b/dist/esm/models/CreateLoadBalancerPolicyResponse.js new file mode 100644 index 00000000..85c9a55d --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerPolicyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateLoadBalancerPolicyResponseFromJSON(json) { + return CreateLoadBalancerPolicyResponseFromJSONTyped(json, false); +} +export function CreateLoadBalancerPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateLoadBalancerPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateLoadBalancerRequest.d.ts b/dist/esm/models/CreateLoadBalancerRequest.d.ts new file mode 100644 index 00000000..fb291971 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerRequest.d.ts @@ -0,0 +1,77 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerForCreation } from './ListenerForCreation'; +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface CreateLoadBalancerRequest + */ +export interface CreateLoadBalancerRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerRequest + */ + dryRun?: boolean; + /** + * One or more listeners to create. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + listeners: Array; + /** + * The unique name of the load balancer (32 alphanumeric or hyphen characters maximum, but cannot start or end with a hyphen). + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + loadBalancerName: string; + /** + * The type of load balancer: `internet-facing` or `internal`. Use this parameter only for load balancers in a Net. + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + loadBalancerType?: string; + /** + * (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated. + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + publicIp?: string; + /** + * (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + securityGroups?: Array; + /** + * (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + subnets?: Array; + /** + * (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + subregionNames?: Array; + /** + * One or more tags assigned to the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + tags?: Array; +} +export declare function CreateLoadBalancerRequestFromJSON(json: any): CreateLoadBalancerRequest; +export declare function CreateLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerRequest; +export declare function CreateLoadBalancerRequestToJSON(value?: CreateLoadBalancerRequest | null): any; diff --git a/dist/esm/models/CreateLoadBalancerRequest.js b/dist/esm/models/CreateLoadBalancerRequest.js new file mode 100644 index 00000000..46070a85 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerRequest.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ListenerForCreationFromJSON, ListenerForCreationToJSON, } from './ListenerForCreation'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function CreateLoadBalancerRequestFromJSON(json) { + return CreateLoadBalancerRequestFromJSONTyped(json, false); +} +export function CreateLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listeners': (json['Listeners'].map(ListenerForCreationFromJSON)), + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerType': !exists(json, 'LoadBalancerType') ? undefined : json['LoadBalancerType'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'subnets': !exists(json, 'Subnets') ? undefined : json['Subnets'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function CreateLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Listeners': (value.listeners.map(ListenerForCreationToJSON)), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerType': value.loadBalancerType, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'Subnets': value.subnets, + 'SubregionNames': value.subregionNames, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/CreateLoadBalancerResponse.d.ts b/dist/esm/models/CreateLoadBalancerResponse.d.ts new file mode 100644 index 00000000..786282b9 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerResponse + */ +export interface CreateLoadBalancerResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerResponseFromJSON(json: any): CreateLoadBalancerResponse; +export declare function CreateLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerResponse; +export declare function CreateLoadBalancerResponseToJSON(value?: CreateLoadBalancerResponse | null): any; diff --git a/dist/esm/models/CreateLoadBalancerResponse.js b/dist/esm/models/CreateLoadBalancerResponse.js new file mode 100644 index 00000000..08fd1774 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateLoadBalancerResponseFromJSON(json) { + return CreateLoadBalancerResponseFromJSONTyped(json, false); +} +export function CreateLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateLoadBalancerTagsRequest.d.ts b/dist/esm/models/CreateLoadBalancerTagsRequest.d.ts new file mode 100644 index 00000000..fbf41a1d --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface CreateLoadBalancerTagsRequest + */ +export interface CreateLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof CreateLoadBalancerTagsRequest + */ + loadBalancerNames: Array; + /** + * One or more tags to add to the specified load balancers. + * @type {Array} + * @memberof CreateLoadBalancerTagsRequest + */ + tags: Array; +} +export declare function CreateLoadBalancerTagsRequestFromJSON(json: any): CreateLoadBalancerTagsRequest; +export declare function CreateLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerTagsRequest; +export declare function CreateLoadBalancerTagsRequestToJSON(value?: CreateLoadBalancerTagsRequest | null): any; diff --git a/dist/esm/models/CreateLoadBalancerTagsRequest.js b/dist/esm/models/CreateLoadBalancerTagsRequest.js new file mode 100644 index 00000000..939ea8bd --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerTagsRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function CreateLoadBalancerTagsRequestFromJSON(json) { + return CreateLoadBalancerTagsRequestFromJSONTyped(json, false); +} +export function CreateLoadBalancerTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + 'tags': (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function CreateLoadBalancerTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + 'Tags': (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/CreateLoadBalancerTagsResponse.d.ts b/dist/esm/models/CreateLoadBalancerTagsResponse.d.ts new file mode 100644 index 00000000..9297bab0 --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateLoadBalancerTagsResponse + */ +export interface CreateLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateLoadBalancerTagsResponseFromJSON(json: any): CreateLoadBalancerTagsResponse; +export declare function CreateLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerTagsResponse; +export declare function CreateLoadBalancerTagsResponseToJSON(value?: CreateLoadBalancerTagsResponse | null): any; diff --git a/dist/esm/models/CreateLoadBalancerTagsResponse.js b/dist/esm/models/CreateLoadBalancerTagsResponse.js new file mode 100644 index 00000000..e5a21b4f --- /dev/null +++ b/dist/esm/models/CreateLoadBalancerTagsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateLoadBalancerTagsResponseFromJSON(json) { + return CreateLoadBalancerTagsResponseFromJSONTyped(json, false); +} +export function CreateLoadBalancerTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateLoadBalancerTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateNatServiceRequest.d.ts b/dist/esm/models/CreateNatServiceRequest.d.ts new file mode 100644 index 00000000..528e76d2 --- /dev/null +++ b/dist/esm/models/CreateNatServiceRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNatServiceRequest + */ +export interface CreateNatServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNatServiceRequest + */ + dryRun?: boolean; + /** + * The allocation ID of the public IP to associate with the NAT service.
+ * If the public IP is already associated with another resource, you must first disassociate it. + * @type {string} + * @memberof CreateNatServiceRequest + */ + publicIpId: string; + /** + * The ID of the Subnet in which you want to create the NAT service. + * @type {string} + * @memberof CreateNatServiceRequest + */ + subnetId: string; +} +export declare function CreateNatServiceRequestFromJSON(json: any): CreateNatServiceRequest; +export declare function CreateNatServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNatServiceRequest; +export declare function CreateNatServiceRequestToJSON(value?: CreateNatServiceRequest | null): any; diff --git a/dist/esm/models/CreateNatServiceRequest.js b/dist/esm/models/CreateNatServiceRequest.js new file mode 100644 index 00000000..541b42fe --- /dev/null +++ b/dist/esm/models/CreateNatServiceRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateNatServiceRequestFromJSON(json) { + return CreateNatServiceRequestFromJSONTyped(json, false); +} +export function CreateNatServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIpId': json['PublicIpId'], + 'subnetId': json['SubnetId'], + }; +} +export function CreateNatServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'PublicIpId': value.publicIpId, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/CreateNatServiceResponse.d.ts b/dist/esm/models/CreateNatServiceResponse.d.ts new file mode 100644 index 00000000..bce05f0a --- /dev/null +++ b/dist/esm/models/CreateNatServiceResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NatService } from './NatService'; +/** + * + * @export + * @interface CreateNatServiceResponse + */ +export interface CreateNatServiceResponse { + /** + * + * @type {NatService} + * @memberof CreateNatServiceResponse + */ + natService?: NatService; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNatServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNatServiceResponseFromJSON(json: any): CreateNatServiceResponse; +export declare function CreateNatServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNatServiceResponse; +export declare function CreateNatServiceResponseToJSON(value?: CreateNatServiceResponse | null): any; diff --git a/dist/esm/models/CreateNatServiceResponse.js b/dist/esm/models/CreateNatServiceResponse.js new file mode 100644 index 00000000..4787c436 --- /dev/null +++ b/dist/esm/models/CreateNatServiceResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NatServiceFromJSON, NatServiceToJSON, } from './NatService'; +export function CreateNatServiceResponseFromJSON(json) { + return CreateNatServiceResponseFromJSONTyped(json, false); +} +export function CreateNatServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natService': !exists(json, 'NatService') ? undefined : NatServiceFromJSON(json['NatService']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateNatServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatService': NatServiceToJSON(value.natService), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateNetAccessPointRequest.d.ts b/dist/esm/models/CreateNetAccessPointRequest.d.ts new file mode 100644 index 00000000..2218b05e --- /dev/null +++ b/dist/esm/models/CreateNetAccessPointRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNetAccessPointRequest + */ +export interface CreateNetAccessPointRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net. + * @type {string} + * @memberof CreateNetAccessPointRequest + */ + netId: string; + /** + * One or more IDs of route tables to use for the connection. + * @type {Array} + * @memberof CreateNetAccessPointRequest + */ + routeTableIds?: Array; + /** + * The name of the service (in the format `com.outscale.region.service`). + * @type {string} + * @memberof CreateNetAccessPointRequest + */ + serviceName: string; +} +export declare function CreateNetAccessPointRequestFromJSON(json: any): CreateNetAccessPointRequest; +export declare function CreateNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetAccessPointRequest; +export declare function CreateNetAccessPointRequestToJSON(value?: CreateNetAccessPointRequest | null): any; diff --git a/dist/esm/models/CreateNetAccessPointRequest.js b/dist/esm/models/CreateNetAccessPointRequest.js new file mode 100644 index 00000000..21f4e16b --- /dev/null +++ b/dist/esm/models/CreateNetAccessPointRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateNetAccessPointRequestFromJSON(json) { + return CreateNetAccessPointRequestFromJSONTyped(json, false); +} +export function CreateNetAccessPointRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'routeTableIds': !exists(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'serviceName': json['ServiceName'], + }; +} +export function CreateNetAccessPointRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'RouteTableIds': value.routeTableIds, + 'ServiceName': value.serviceName, + }; +} diff --git a/dist/esm/models/CreateNetAccessPointResponse.d.ts b/dist/esm/models/CreateNetAccessPointResponse.d.ts new file mode 100644 index 00000000..b58cc9a1 --- /dev/null +++ b/dist/esm/models/CreateNetAccessPointResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetAccessPoint } from './NetAccessPoint'; +/** + * + * @export + * @interface CreateNetAccessPointResponse + */ +export interface CreateNetAccessPointResponse { + /** + * + * @type {NetAccessPoint} + * @memberof CreateNetAccessPointResponse + */ + netAccessPoint?: NetAccessPoint; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNetAccessPointResponseFromJSON(json: any): CreateNetAccessPointResponse; +export declare function CreateNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetAccessPointResponse; +export declare function CreateNetAccessPointResponseToJSON(value?: CreateNetAccessPointResponse | null): any; diff --git a/dist/esm/models/CreateNetAccessPointResponse.js b/dist/esm/models/CreateNetAccessPointResponse.js new file mode 100644 index 00000000..a49d49c1 --- /dev/null +++ b/dist/esm/models/CreateNetAccessPointResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetAccessPointFromJSON, NetAccessPointToJSON, } from './NetAccessPoint'; +export function CreateNetAccessPointResponseFromJSON(json) { + return CreateNetAccessPointResponseFromJSONTyped(json, false); +} +export function CreateNetAccessPointResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPoint': !exists(json, 'NetAccessPoint') ? undefined : NetAccessPointFromJSON(json['NetAccessPoint']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateNetAccessPointResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPoint': NetAccessPointToJSON(value.netAccessPoint), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateNetPeeringRequest.d.ts b/dist/esm/models/CreateNetPeeringRequest.d.ts new file mode 100644 index 00000000..b7f4a51e --- /dev/null +++ b/dist/esm/models/CreateNetPeeringRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNetPeeringRequest + */ +export interface CreateNetPeeringRequest { + /** + * The ID of the Net you want to connect with. + * @type {string} + * @memberof CreateNetPeeringRequest + */ + accepterNetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net you send the peering request from. + * @type {string} + * @memberof CreateNetPeeringRequest + */ + sourceNetId: string; +} +export declare function CreateNetPeeringRequestFromJSON(json: any): CreateNetPeeringRequest; +export declare function CreateNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetPeeringRequest; +export declare function CreateNetPeeringRequestToJSON(value?: CreateNetPeeringRequest | null): any; diff --git a/dist/esm/models/CreateNetPeeringRequest.js b/dist/esm/models/CreateNetPeeringRequest.js new file mode 100644 index 00000000..a8ce6601 --- /dev/null +++ b/dist/esm/models/CreateNetPeeringRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateNetPeeringRequestFromJSON(json) { + return CreateNetPeeringRequestFromJSONTyped(json, false); +} +export function CreateNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accepterNetId': json['AccepterNetId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'sourceNetId': json['SourceNetId'], + }; +} +export function CreateNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccepterNetId': value.accepterNetId, + 'DryRun': value.dryRun, + 'SourceNetId': value.sourceNetId, + }; +} diff --git a/dist/esm/models/CreateNetPeeringResponse.d.ts b/dist/esm/models/CreateNetPeeringResponse.d.ts new file mode 100644 index 00000000..bdc1d124 --- /dev/null +++ b/dist/esm/models/CreateNetPeeringResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetPeering } from './NetPeering'; +/** + * + * @export + * @interface CreateNetPeeringResponse + */ +export interface CreateNetPeeringResponse { + /** + * + * @type {NetPeering} + * @memberof CreateNetPeeringResponse + */ + netPeering?: NetPeering; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNetPeeringResponseFromJSON(json: any): CreateNetPeeringResponse; +export declare function CreateNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetPeeringResponse; +export declare function CreateNetPeeringResponseToJSON(value?: CreateNetPeeringResponse | null): any; diff --git a/dist/esm/models/CreateNetPeeringResponse.js b/dist/esm/models/CreateNetPeeringResponse.js new file mode 100644 index 00000000..673cc3c4 --- /dev/null +++ b/dist/esm/models/CreateNetPeeringResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetPeeringFromJSON, NetPeeringToJSON, } from './NetPeering'; +export function CreateNetPeeringResponseFromJSON(json) { + return CreateNetPeeringResponseFromJSONTyped(json, false); +} +export function CreateNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netPeering': !exists(json, 'NetPeering') ? undefined : NetPeeringFromJSON(json['NetPeering']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetPeering': NetPeeringToJSON(value.netPeering), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateNetRequest.d.ts b/dist/esm/models/CreateNetRequest.d.ts new file mode 100644 index 00000000..02b2207b --- /dev/null +++ b/dist/esm/models/CreateNetRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateNetRequest + */ +export interface CreateNetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetRequest + */ + dryRun?: boolean; + /** + * The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof CreateNetRequest + */ + ipRange: string; + /** + * The tenancy options for the VMs (`default` if a VM created in a Net can be launched with any tenancy, `dedicated` if it can be launched with dedicated tenancy VMs running on single-tenant hardware). + * @type {string} + * @memberof CreateNetRequest + */ + tenancy?: string; +} +export declare function CreateNetRequestFromJSON(json: any): CreateNetRequest; +export declare function CreateNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetRequest; +export declare function CreateNetRequestToJSON(value?: CreateNetRequest | null): any; diff --git a/dist/esm/models/CreateNetRequest.js b/dist/esm/models/CreateNetRequest.js new file mode 100644 index 00000000..649a6cac --- /dev/null +++ b/dist/esm/models/CreateNetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateNetRequestFromJSON(json) { + return CreateNetRequestFromJSONTyped(json, false); +} +export function CreateNetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRange': json['IpRange'], + 'tenancy': !exists(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} +export function CreateNetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'IpRange': value.ipRange, + 'Tenancy': value.tenancy, + }; +} diff --git a/dist/esm/models/CreateNetResponse.d.ts b/dist/esm/models/CreateNetResponse.d.ts new file mode 100644 index 00000000..33556dbe --- /dev/null +++ b/dist/esm/models/CreateNetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Net } from './Net'; +/** + * + * @export + * @interface CreateNetResponse + */ +export interface CreateNetResponse { + /** + * + * @type {Net} + * @memberof CreateNetResponse + */ + net?: Net; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNetResponseFromJSON(json: any): CreateNetResponse; +export declare function CreateNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetResponse; +export declare function CreateNetResponseToJSON(value?: CreateNetResponse | null): any; diff --git a/dist/esm/models/CreateNetResponse.js b/dist/esm/models/CreateNetResponse.js new file mode 100644 index 00000000..7518cd5c --- /dev/null +++ b/dist/esm/models/CreateNetResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetFromJSON, NetToJSON, } from './Net'; +export function CreateNetResponseFromJSON(json) { + return CreateNetResponseFromJSONTyped(json, false); +} +export function CreateNetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'net': !exists(json, 'Net') ? undefined : NetFromJSON(json['Net']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateNetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Net': NetToJSON(value.net), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateNicRequest.d.ts b/dist/esm/models/CreateNicRequest.d.ts new file mode 100644 index 00000000..cd224dc7 --- /dev/null +++ b/dist/esm/models/CreateNicRequest.d.ts @@ -0,0 +1,54 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PrivateIpLight } from './PrivateIpLight'; +/** + * + * @export + * @interface CreateNicRequest + */ +export interface CreateNicRequest { + /** + * A description for the NIC. + * @type {string} + * @memberof CreateNicRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNicRequest + */ + dryRun?: boolean; + /** + * The primary private IP for the NIC.
+ * This IP must be within the IP range of the Subnet that you specify with the `SubnetId` attribute.
+ * If you do not specify this attribute, a random private IP is selected within the IP range of the Subnet. + * @type {Array} + * @memberof CreateNicRequest + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof CreateNicRequest + */ + securityGroupIds?: Array; + /** + * The ID of the Subnet in which you want to create the NIC. + * @type {string} + * @memberof CreateNicRequest + */ + subnetId: string; +} +export declare function CreateNicRequestFromJSON(json: any): CreateNicRequest; +export declare function CreateNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNicRequest; +export declare function CreateNicRequestToJSON(value?: CreateNicRequest | null): any; diff --git a/dist/esm/models/CreateNicRequest.js b/dist/esm/models/CreateNicRequest.js new file mode 100644 index 00000000..0f4425f0 --- /dev/null +++ b/dist/esm/models/CreateNicRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PrivateIpLightFromJSON, PrivateIpLightToJSON, } from './PrivateIpLight'; +export function CreateNicRequestFromJSON(json) { + return CreateNicRequestFromJSONTyped(json, false); +} +export function CreateNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpLightFromJSON)), + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'subnetId': json['SubnetId'], + }; +} +export function CreateNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpLightToJSON)), + 'SecurityGroupIds': value.securityGroupIds, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/CreateNicResponse.d.ts b/dist/esm/models/CreateNicResponse.d.ts new file mode 100644 index 00000000..fa42b499 --- /dev/null +++ b/dist/esm/models/CreateNicResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Nic } from './Nic'; +/** + * + * @export + * @interface CreateNicResponse + */ +export interface CreateNicResponse { + /** + * + * @type {Nic} + * @memberof CreateNicResponse + */ + nic?: Nic; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateNicResponseFromJSON(json: any): CreateNicResponse; +export declare function CreateNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNicResponse; +export declare function CreateNicResponseToJSON(value?: CreateNicResponse | null): any; diff --git a/dist/esm/models/CreateNicResponse.js b/dist/esm/models/CreateNicResponse.js new file mode 100644 index 00000000..6e359f4a --- /dev/null +++ b/dist/esm/models/CreateNicResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NicFromJSON, NicToJSON, } from './Nic'; +export function CreateNicResponseFromJSON(json) { + return CreateNicResponseFromJSONTyped(json, false); +} +export function CreateNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nic': !exists(json, 'Nic') ? undefined : NicFromJSON(json['Nic']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nic': NicToJSON(value.nic), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreatePublicIpRequest.d.ts b/dist/esm/models/CreatePublicIpRequest.d.ts new file mode 100644 index 00000000..cdf8d204 --- /dev/null +++ b/dist/esm/models/CreatePublicIpRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreatePublicIpRequest + */ +export interface CreatePublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreatePublicIpRequest + */ + dryRun?: boolean; +} +export declare function CreatePublicIpRequestFromJSON(json: any): CreatePublicIpRequest; +export declare function CreatePublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePublicIpRequest; +export declare function CreatePublicIpRequestToJSON(value?: CreatePublicIpRequest | null): any; diff --git a/dist/esm/models/CreatePublicIpRequest.js b/dist/esm/models/CreatePublicIpRequest.js new file mode 100644 index 00000000..9c47f469 --- /dev/null +++ b/dist/esm/models/CreatePublicIpRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreatePublicIpRequestFromJSON(json) { + return CreatePublicIpRequestFromJSONTyped(json, false); +} +export function CreatePublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function CreatePublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/CreatePublicIpResponse.d.ts b/dist/esm/models/CreatePublicIpResponse.d.ts new file mode 100644 index 00000000..fd509a86 --- /dev/null +++ b/dist/esm/models/CreatePublicIpResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { PublicIp } from './PublicIp'; +/** + * + * @export + * @interface CreatePublicIpResponse + */ +export interface CreatePublicIpResponse { + /** + * + * @type {PublicIp} + * @memberof CreatePublicIpResponse + */ + publicIp?: PublicIp; + /** + * + * @type {ModelResponseContext} + * @memberof CreatePublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreatePublicIpResponseFromJSON(json: any): CreatePublicIpResponse; +export declare function CreatePublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePublicIpResponse; +export declare function CreatePublicIpResponseToJSON(value?: CreatePublicIpResponse | null): any; diff --git a/dist/esm/models/CreatePublicIpResponse.js b/dist/esm/models/CreatePublicIpResponse.js new file mode 100644 index 00000000..d38f145e --- /dev/null +++ b/dist/esm/models/CreatePublicIpResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { PublicIpFromJSON, PublicIpToJSON, } from './PublicIp'; +export function CreatePublicIpResponseFromJSON(json) { + return CreatePublicIpResponseFromJSONTyped(json, false); +} +export function CreatePublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIp': !exists(json, 'PublicIp') ? undefined : PublicIpFromJSON(json['PublicIp']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreatePublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIp': PublicIpToJSON(value.publicIp), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateRouteRequest.d.ts b/dist/esm/models/CreateRouteRequest.d.ts new file mode 100644 index 00000000..80f5af61 --- /dev/null +++ b/dist/esm/models/CreateRouteRequest.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateRouteRequest + */ +export interface CreateRouteRequest { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof CreateRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateRouteRequest + */ + dryRun?: boolean; + /** + * The ID of an Internet service or virtual gateway attached to your Net. + * @type {string} + * @memberof CreateRouteRequest + */ + gatewayId?: string; + /** + * The ID of a NAT service. + * @type {string} + * @memberof CreateRouteRequest + */ + natServiceId?: string; + /** + * The ID of a Net peering connection. + * @type {string} + * @memberof CreateRouteRequest + */ + netPeeringId?: string; + /** + * The ID of a NIC. + * @type {string} + * @memberof CreateRouteRequest + */ + nicId?: string; + /** + * The ID of the route table for which you want to create a route. + * @type {string} + * @memberof CreateRouteRequest + */ + routeTableId: string; + /** + * The ID of a NAT VM in your Net (attached to exactly one NIC). + * @type {string} + * @memberof CreateRouteRequest + */ + vmId?: string; +} +export declare function CreateRouteRequestFromJSON(json: any): CreateRouteRequest; +export declare function CreateRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteRequest; +export declare function CreateRouteRequestToJSON(value?: CreateRouteRequest | null): any; diff --git a/dist/esm/models/CreateRouteRequest.js b/dist/esm/models/CreateRouteRequest.js new file mode 100644 index 00000000..f6265299 --- /dev/null +++ b/dist/esm/models/CreateRouteRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateRouteRequestFromJSON(json) { + return CreateRouteRequestFromJSONTyped(json, false); +} +export function CreateRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'gatewayId': !exists(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'routeTableId': json['RouteTableId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function CreateRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'RouteTableId': value.routeTableId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/CreateRouteResponse.d.ts b/dist/esm/models/CreateRouteResponse.d.ts new file mode 100644 index 00000000..05c0b647 --- /dev/null +++ b/dist/esm/models/CreateRouteResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface CreateRouteResponse + */ +export interface CreateRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof CreateRouteResponse + */ + routeTable?: RouteTable; +} +export declare function CreateRouteResponseFromJSON(json: any): CreateRouteResponse; +export declare function CreateRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteResponse; +export declare function CreateRouteResponseToJSON(value?: CreateRouteResponse | null): any; diff --git a/dist/esm/models/CreateRouteResponse.js b/dist/esm/models/CreateRouteResponse.js new file mode 100644 index 00000000..9ffd1150 --- /dev/null +++ b/dist/esm/models/CreateRouteResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RouteTableFromJSON, RouteTableToJSON, } from './RouteTable'; +export function CreateRouteResponseFromJSON(json) { + return CreateRouteResponseFromJSONTyped(json, false); +} +export function CreateRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} +export function CreateRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} diff --git a/dist/esm/models/CreateRouteTableRequest.d.ts b/dist/esm/models/CreateRouteTableRequest.d.ts new file mode 100644 index 00000000..88ce01e1 --- /dev/null +++ b/dist/esm/models/CreateRouteTableRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateRouteTableRequest + */ +export interface CreateRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the Net for which you want to create a route table. + * @type {string} + * @memberof CreateRouteTableRequest + */ + netId: string; +} +export declare function CreateRouteTableRequestFromJSON(json: any): CreateRouteTableRequest; +export declare function CreateRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteTableRequest; +export declare function CreateRouteTableRequestToJSON(value?: CreateRouteTableRequest | null): any; diff --git a/dist/esm/models/CreateRouteTableRequest.js b/dist/esm/models/CreateRouteTableRequest.js new file mode 100644 index 00000000..30fbd68d --- /dev/null +++ b/dist/esm/models/CreateRouteTableRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateRouteTableRequestFromJSON(json) { + return CreateRouteTableRequestFromJSONTyped(json, false); +} +export function CreateRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} +export function CreateRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/CreateRouteTableResponse.d.ts b/dist/esm/models/CreateRouteTableResponse.d.ts new file mode 100644 index 00000000..a448c859 --- /dev/null +++ b/dist/esm/models/CreateRouteTableResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface CreateRouteTableResponse + */ +export interface CreateRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateRouteTableResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof CreateRouteTableResponse + */ + routeTable?: RouteTable; +} +export declare function CreateRouteTableResponseFromJSON(json: any): CreateRouteTableResponse; +export declare function CreateRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteTableResponse; +export declare function CreateRouteTableResponseToJSON(value?: CreateRouteTableResponse | null): any; diff --git a/dist/esm/models/CreateRouteTableResponse.js b/dist/esm/models/CreateRouteTableResponse.js new file mode 100644 index 00000000..1eb6982d --- /dev/null +++ b/dist/esm/models/CreateRouteTableResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RouteTableFromJSON, RouteTableToJSON, } from './RouteTable'; +export function CreateRouteTableResponseFromJSON(json) { + return CreateRouteTableResponseFromJSONTyped(json, false); +} +export function CreateRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} +export function CreateRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} diff --git a/dist/esm/models/CreateSecurityGroupRequest.d.ts b/dist/esm/models/CreateSecurityGroupRequest.d.ts new file mode 100644 index 00000000..54fe68a6 --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupRequest.d.ts @@ -0,0 +1,47 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateSecurityGroupRequest + */ +export interface CreateSecurityGroupRequest { + /** + * A description for the security group, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + description: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSecurityGroupRequest + */ + dryRun?: boolean; + /** + * The ID of the Net for the security group. + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + netId?: string; + /** + * The name of the security group.
+ * This name must not start with `sg-`.
+ * This name must be unique and contain between 1 and 255 ASCII characters. Accented letters are not allowed. + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + securityGroupName: string; +} +export declare function CreateSecurityGroupRequestFromJSON(json: any): CreateSecurityGroupRequest; +export declare function CreateSecurityGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRequest; +export declare function CreateSecurityGroupRequestToJSON(value?: CreateSecurityGroupRequest | null): any; diff --git a/dist/esm/models/CreateSecurityGroupRequest.js b/dist/esm/models/CreateSecurityGroupRequest.js new file mode 100644 index 00000000..3fb96e41 --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateSecurityGroupRequestFromJSON(json) { + return CreateSecurityGroupRequestFromJSONTyped(json, false); +} +export function CreateSecurityGroupRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'securityGroupName': json['SecurityGroupName'], + }; +} +export function CreateSecurityGroupRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'SecurityGroupName': value.securityGroupName, + }; +} diff --git a/dist/esm/models/CreateSecurityGroupResponse.d.ts b/dist/esm/models/CreateSecurityGroupResponse.d.ts new file mode 100644 index 00000000..6e214722 --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface CreateSecurityGroupResponse + */ +export interface CreateSecurityGroupResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSecurityGroupResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof CreateSecurityGroupResponse + */ + securityGroup?: SecurityGroup; +} +export declare function CreateSecurityGroupResponseFromJSON(json: any): CreateSecurityGroupResponse; +export declare function CreateSecurityGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupResponse; +export declare function CreateSecurityGroupResponseToJSON(value?: CreateSecurityGroupResponse | null): any; diff --git a/dist/esm/models/CreateSecurityGroupResponse.js b/dist/esm/models/CreateSecurityGroupResponse.js new file mode 100644 index 00000000..5d9ae3ce --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SecurityGroupFromJSON, SecurityGroupToJSON, } from './SecurityGroup'; +export function CreateSecurityGroupResponseFromJSON(json) { + return CreateSecurityGroupResponseFromJSONTyped(json, false); +} +export function CreateSecurityGroupResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroup': !exists(json, 'SecurityGroup') ? undefined : SecurityGroupFromJSON(json['SecurityGroup']), + }; +} +export function CreateSecurityGroupResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroup': SecurityGroupToJSON(value.securityGroup), + }; +} diff --git a/dist/esm/models/CreateSecurityGroupRuleRequest.d.ts b/dist/esm/models/CreateSecurityGroupRuleRequest.d.ts new file mode 100644 index 00000000..98711b95 --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupRuleRequest.d.ts @@ -0,0 +1,82 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SecurityGroupRule } from './SecurityGroupRule'; +/** + * + * @export + * @interface CreateSecurityGroupRuleRequest + */ +export interface CreateSecurityGroupRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSecurityGroupRuleRequest + */ + dryRun?: boolean; + /** + * The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + flow: string; + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {number} + * @memberof CreateSecurityGroupRuleRequest + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + ipProtocol?: string; + /** + * The IP range for the security group rule, in CIDR notation (for example, 10.0.0.0/16). If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + ipRange?: string; + /** + * Information about the security group rule to create. If you specify this parent parameter and its subparameters, you cannot specify the following parent parameters: `FromPortRange`, `IpProtocol`, `IpRange`, and `ToPortRange`. + * @type {Array} + * @memberof CreateSecurityGroupRuleRequest + */ + rules?: Array; + /** + * The account ID of the owner of the security group for which you want to create a rule. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupAccountIdToLink?: string; + /** + * The ID of the security group for which you want to create a rule. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupId: string; + /** + * The ID of the source security group. If you are in the Public Cloud, you can also specify the name of the source security group. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupNameToLink?: string; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {number} + * @memberof CreateSecurityGroupRuleRequest + */ + toPortRange?: number; +} +export declare function CreateSecurityGroupRuleRequestFromJSON(json: any): CreateSecurityGroupRuleRequest; +export declare function CreateSecurityGroupRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRuleRequest; +export declare function CreateSecurityGroupRuleRequestToJSON(value?: CreateSecurityGroupRuleRequest | null): any; diff --git a/dist/esm/models/CreateSecurityGroupRuleRequest.js b/dist/esm/models/CreateSecurityGroupRuleRequest.js new file mode 100644 index 00000000..78f6350c --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupRuleRequest.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { SecurityGroupRuleFromJSON, SecurityGroupRuleToJSON, } from './SecurityGroupRule'; +export function CreateSecurityGroupRuleRequestFromJSON(json) { + return CreateSecurityGroupRuleRequestFromJSONTyped(json, false); +} +export function CreateSecurityGroupRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flow': json['Flow'], + 'fromPortRange': !exists(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !exists(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'rules': !exists(json, 'Rules') ? undefined : (json['Rules'].map(SecurityGroupRuleFromJSON)), + 'securityGroupAccountIdToLink': !exists(json, 'SecurityGroupAccountIdToLink') ? undefined : json['SecurityGroupAccountIdToLink'], + 'securityGroupId': json['SecurityGroupId'], + 'securityGroupNameToLink': !exists(json, 'SecurityGroupNameToLink') ? undefined : json['SecurityGroupNameToLink'], + 'toPortRange': !exists(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} +export function CreateSecurityGroupRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Flow': value.flow, + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRange': value.ipRange, + 'Rules': value.rules === undefined ? undefined : (value.rules.map(SecurityGroupRuleToJSON)), + 'SecurityGroupAccountIdToLink': value.securityGroupAccountIdToLink, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupNameToLink': value.securityGroupNameToLink, + 'ToPortRange': value.toPortRange, + }; +} diff --git a/dist/esm/models/CreateSecurityGroupRuleResponse.d.ts b/dist/esm/models/CreateSecurityGroupRuleResponse.d.ts new file mode 100644 index 00000000..6adfe350 --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface CreateSecurityGroupRuleResponse + */ +export interface CreateSecurityGroupRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSecurityGroupRuleResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof CreateSecurityGroupRuleResponse + */ + securityGroup?: SecurityGroup; +} +export declare function CreateSecurityGroupRuleResponseFromJSON(json: any): CreateSecurityGroupRuleResponse; +export declare function CreateSecurityGroupRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRuleResponse; +export declare function CreateSecurityGroupRuleResponseToJSON(value?: CreateSecurityGroupRuleResponse | null): any; diff --git a/dist/esm/models/CreateSecurityGroupRuleResponse.js b/dist/esm/models/CreateSecurityGroupRuleResponse.js new file mode 100644 index 00000000..fdd655c6 --- /dev/null +++ b/dist/esm/models/CreateSecurityGroupRuleResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SecurityGroupFromJSON, SecurityGroupToJSON, } from './SecurityGroup'; +export function CreateSecurityGroupRuleResponseFromJSON(json) { + return CreateSecurityGroupRuleResponseFromJSONTyped(json, false); +} +export function CreateSecurityGroupRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroup': !exists(json, 'SecurityGroup') ? undefined : SecurityGroupFromJSON(json['SecurityGroup']), + }; +} +export function CreateSecurityGroupRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroup': SecurityGroupToJSON(value.securityGroup), + }; +} diff --git a/dist/esm/models/CreateServerCertificateRequest.d.ts b/dist/esm/models/CreateServerCertificateRequest.d.ts new file mode 100644 index 00000000..af3dc573 --- /dev/null +++ b/dist/esm/models/CreateServerCertificateRequest.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateServerCertificateRequest + */ +export interface CreateServerCertificateRequest { + /** + * The PEM-encoded X509 certificate. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + body: string; + /** + * The PEM-encoded intermediate certification authorities. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + chain?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateServerCertificateRequest + */ + dryRun?: boolean; + /** + * A unique name for the certificate. Constraints: 1-128 alphanumeric characters, pluses (+), equals (=), commas (,), periods (.), at signs (@), minuses (-), or underscores (_). + * @type {string} + * @memberof CreateServerCertificateRequest + */ + name: string; + /** + * The path to the server certificate, set to a slash (/) if not specified. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + path?: string; + /** + * The PEM-encoded private key matching the certificate. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + privateKey: string; +} +export declare function CreateServerCertificateRequestFromJSON(json: any): CreateServerCertificateRequest; +export declare function CreateServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServerCertificateRequest; +export declare function CreateServerCertificateRequestToJSON(value?: CreateServerCertificateRequest | null): any; diff --git a/dist/esm/models/CreateServerCertificateRequest.js b/dist/esm/models/CreateServerCertificateRequest.js new file mode 100644 index 00000000..24393790 --- /dev/null +++ b/dist/esm/models/CreateServerCertificateRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateServerCertificateRequestFromJSON(json) { + return CreateServerCertificateRequestFromJSONTyped(json, false); +} +export function CreateServerCertificateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'body': json['Body'], + 'chain': !exists(json, 'Chain') ? undefined : json['Chain'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + 'path': !exists(json, 'Path') ? undefined : json['Path'], + 'privateKey': json['PrivateKey'], + }; +} +export function CreateServerCertificateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Body': value.body, + 'Chain': value.chain, + 'DryRun': value.dryRun, + 'Name': value.name, + 'Path': value.path, + 'PrivateKey': value.privateKey, + }; +} diff --git a/dist/esm/models/CreateServerCertificateResponse.d.ts b/dist/esm/models/CreateServerCertificateResponse.d.ts new file mode 100644 index 00000000..8f8be4a3 --- /dev/null +++ b/dist/esm/models/CreateServerCertificateResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ServerCertificate } from './ServerCertificate'; +/** + * + * @export + * @interface CreateServerCertificateResponse + */ +export interface CreateServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateServerCertificateResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {ServerCertificate} + * @memberof CreateServerCertificateResponse + */ + serverCertificate?: ServerCertificate; +} +export declare function CreateServerCertificateResponseFromJSON(json: any): CreateServerCertificateResponse; +export declare function CreateServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServerCertificateResponse; +export declare function CreateServerCertificateResponseToJSON(value?: CreateServerCertificateResponse | null): any; diff --git a/dist/esm/models/CreateServerCertificateResponse.js b/dist/esm/models/CreateServerCertificateResponse.js new file mode 100644 index 00000000..d47a2e1a --- /dev/null +++ b/dist/esm/models/CreateServerCertificateResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { ServerCertificateFromJSON, ServerCertificateToJSON, } from './ServerCertificate'; +export function CreateServerCertificateResponseFromJSON(json) { + return CreateServerCertificateResponseFromJSONTyped(json, false); +} +export function CreateServerCertificateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'serverCertificate': !exists(json, 'ServerCertificate') ? undefined : ServerCertificateFromJSON(json['ServerCertificate']), + }; +} +export function CreateServerCertificateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'ServerCertificate': ServerCertificateToJSON(value.serverCertificate), + }; +} diff --git a/dist/esm/models/CreateSnapshotExportTaskRequest.d.ts b/dist/esm/models/CreateSnapshotExportTaskRequest.d.ts new file mode 100644 index 00000000..428061f0 --- /dev/null +++ b/dist/esm/models/CreateSnapshotExportTaskRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportToCreate } from './OsuExportToCreate'; +/** + * + * @export + * @interface CreateSnapshotExportTaskRequest + */ +export interface CreateSnapshotExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSnapshotExportTaskRequest + */ + dryRun?: boolean; + /** + * + * @type {OsuExportToCreate} + * @memberof CreateSnapshotExportTaskRequest + */ + osuExport: OsuExportToCreate; + /** + * The ID of the snapshot to export. + * @type {string} + * @memberof CreateSnapshotExportTaskRequest + */ + snapshotId: string; +} +export declare function CreateSnapshotExportTaskRequestFromJSON(json: any): CreateSnapshotExportTaskRequest; +export declare function CreateSnapshotExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotExportTaskRequest; +export declare function CreateSnapshotExportTaskRequestToJSON(value?: CreateSnapshotExportTaskRequest | null): any; diff --git a/dist/esm/models/CreateSnapshotExportTaskRequest.js b/dist/esm/models/CreateSnapshotExportTaskRequest.js new file mode 100644 index 00000000..24e0aa36 --- /dev/null +++ b/dist/esm/models/CreateSnapshotExportTaskRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { OsuExportToCreateFromJSON, OsuExportToCreateToJSON, } from './OsuExportToCreate'; +export function CreateSnapshotExportTaskRequestFromJSON(json) { + return CreateSnapshotExportTaskRequestFromJSONTyped(json, false); +} +export function CreateSnapshotExportTaskRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'osuExport': OsuExportToCreateFromJSON(json['OsuExport']), + 'snapshotId': json['SnapshotId'], + }; +} +export function CreateSnapshotExportTaskRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'OsuExport': OsuExportToCreateToJSON(value.osuExport), + 'SnapshotId': value.snapshotId, + }; +} diff --git a/dist/esm/models/CreateSnapshotExportTaskResponse.d.ts b/dist/esm/models/CreateSnapshotExportTaskResponse.d.ts new file mode 100644 index 00000000..11cee29a --- /dev/null +++ b/dist/esm/models/CreateSnapshotExportTaskResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SnapshotExportTask } from './SnapshotExportTask'; +/** + * + * @export + * @interface CreateSnapshotExportTaskResponse + */ +export interface CreateSnapshotExportTaskResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSnapshotExportTaskResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SnapshotExportTask} + * @memberof CreateSnapshotExportTaskResponse + */ + snapshotExportTask?: SnapshotExportTask; +} +export declare function CreateSnapshotExportTaskResponseFromJSON(json: any): CreateSnapshotExportTaskResponse; +export declare function CreateSnapshotExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotExportTaskResponse; +export declare function CreateSnapshotExportTaskResponseToJSON(value?: CreateSnapshotExportTaskResponse | null): any; diff --git a/dist/esm/models/CreateSnapshotExportTaskResponse.js b/dist/esm/models/CreateSnapshotExportTaskResponse.js new file mode 100644 index 00000000..d9a6782f --- /dev/null +++ b/dist/esm/models/CreateSnapshotExportTaskResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SnapshotExportTaskFromJSON, SnapshotExportTaskToJSON, } from './SnapshotExportTask'; +export function CreateSnapshotExportTaskResponseFromJSON(json) { + return CreateSnapshotExportTaskResponseFromJSONTyped(json, false); +} +export function CreateSnapshotExportTaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshotExportTask': !exists(json, 'SnapshotExportTask') ? undefined : SnapshotExportTaskFromJSON(json['SnapshotExportTask']), + }; +} +export function CreateSnapshotExportTaskResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SnapshotExportTask': SnapshotExportTaskToJSON(value.snapshotExportTask), + }; +} diff --git a/dist/esm/models/CreateSnapshotRequest.d.ts b/dist/esm/models/CreateSnapshotRequest.d.ts new file mode 100644 index 00000000..7d901877 --- /dev/null +++ b/dist/esm/models/CreateSnapshotRequest.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateSnapshotRequest + */ +export interface CreateSnapshotRequest { + /** + * A description for the snapshot. + * @type {string} + * @memberof CreateSnapshotRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSnapshotRequest + */ + dryRun?: boolean; + /** + * The pre-signed URL of the snapshot you want to import from the bucket. + * @type {string} + * @memberof CreateSnapshotRequest + */ + fileLocation?: string; + /** + * The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot. + * @type {number} + * @memberof CreateSnapshotRequest + */ + snapshotSize?: number; + /** + * The name of the source Region, which must be the same as the Region of your account. + * @type {string} + * @memberof CreateSnapshotRequest + */ + sourceRegionName?: string; + /** + * The ID of the snapshot you want to copy. + * @type {string} + * @memberof CreateSnapshotRequest + */ + sourceSnapshotId?: string; + /** + * The ID of the volume you want to create a snapshot of. + * @type {string} + * @memberof CreateSnapshotRequest + */ + volumeId?: string; +} +export declare function CreateSnapshotRequestFromJSON(json: any): CreateSnapshotRequest; +export declare function CreateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotRequest; +export declare function CreateSnapshotRequestToJSON(value?: CreateSnapshotRequest | null): any; diff --git a/dist/esm/models/CreateSnapshotRequest.js b/dist/esm/models/CreateSnapshotRequest.js new file mode 100644 index 00000000..0c7d8860 --- /dev/null +++ b/dist/esm/models/CreateSnapshotRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateSnapshotRequestFromJSON(json) { + return CreateSnapshotRequestFromJSONTyped(json, false); +} +export function CreateSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'fileLocation': !exists(json, 'FileLocation') ? undefined : json['FileLocation'], + 'snapshotSize': !exists(json, 'SnapshotSize') ? undefined : json['SnapshotSize'], + 'sourceRegionName': !exists(json, 'SourceRegionName') ? undefined : json['SourceRegionName'], + 'sourceSnapshotId': !exists(json, 'SourceSnapshotId') ? undefined : json['SourceSnapshotId'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +export function CreateSnapshotRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'FileLocation': value.fileLocation, + 'SnapshotSize': value.snapshotSize, + 'SourceRegionName': value.sourceRegionName, + 'SourceSnapshotId': value.sourceSnapshotId, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/CreateSnapshotResponse.d.ts b/dist/esm/models/CreateSnapshotResponse.d.ts new file mode 100644 index 00000000..b375d765 --- /dev/null +++ b/dist/esm/models/CreateSnapshotResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Snapshot } from './Snapshot'; +/** + * + * @export + * @interface CreateSnapshotResponse + */ +export interface CreateSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSnapshotResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Snapshot} + * @memberof CreateSnapshotResponse + */ + snapshot?: Snapshot; +} +export declare function CreateSnapshotResponseFromJSON(json: any): CreateSnapshotResponse; +export declare function CreateSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotResponse; +export declare function CreateSnapshotResponseToJSON(value?: CreateSnapshotResponse | null): any; diff --git a/dist/esm/models/CreateSnapshotResponse.js b/dist/esm/models/CreateSnapshotResponse.js new file mode 100644 index 00000000..b662ff30 --- /dev/null +++ b/dist/esm/models/CreateSnapshotResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot'; +export function CreateSnapshotResponseFromJSON(json) { + return CreateSnapshotResponseFromJSONTyped(json, false); +} +export function CreateSnapshotResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshot': !exists(json, 'Snapshot') ? undefined : SnapshotFromJSON(json['Snapshot']), + }; +} +export function CreateSnapshotResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Snapshot': SnapshotToJSON(value.snapshot), + }; +} diff --git a/dist/esm/models/CreateSubnetRequest.d.ts b/dist/esm/models/CreateSubnetRequest.d.ts new file mode 100644 index 00000000..68ce43b0 --- /dev/null +++ b/dist/esm/models/CreateSubnetRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateSubnetRequest + */ +export interface CreateSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSubnetRequest + */ + dryRun?: boolean; + /** + * The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof CreateSubnetRequest + */ + ipRange: string; + /** + * The ID of the Net for which you want to create a Subnet. + * @type {string} + * @memberof CreateSubnetRequest + */ + netId: string; + /** + * The name of the Subregion in which you want to create the Subnet. + * @type {string} + * @memberof CreateSubnetRequest + */ + subregionName?: string; +} +export declare function CreateSubnetRequestFromJSON(json: any): CreateSubnetRequest; +export declare function CreateSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubnetRequest; +export declare function CreateSubnetRequestToJSON(value?: CreateSubnetRequest | null): any; diff --git a/dist/esm/models/CreateSubnetRequest.js b/dist/esm/models/CreateSubnetRequest.js new file mode 100644 index 00000000..3635f860 --- /dev/null +++ b/dist/esm/models/CreateSubnetRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateSubnetRequestFromJSON(json) { + return CreateSubnetRequestFromJSONTyped(json, false); +} +export function CreateSubnetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRange': json['IpRange'], + 'netId': json['NetId'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + }; +} +export function CreateSubnetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'IpRange': value.ipRange, + 'NetId': value.netId, + 'SubregionName': value.subregionName, + }; +} diff --git a/dist/esm/models/CreateSubnetResponse.d.ts b/dist/esm/models/CreateSubnetResponse.d.ts new file mode 100644 index 00000000..7096d24b --- /dev/null +++ b/dist/esm/models/CreateSubnetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subnet } from './Subnet'; +/** + * + * @export + * @interface CreateSubnetResponse + */ +export interface CreateSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSubnetResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Subnet} + * @memberof CreateSubnetResponse + */ + subnet?: Subnet; +} +export declare function CreateSubnetResponseFromJSON(json: any): CreateSubnetResponse; +export declare function CreateSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubnetResponse; +export declare function CreateSubnetResponseToJSON(value?: CreateSubnetResponse | null): any; diff --git a/dist/esm/models/CreateSubnetResponse.js b/dist/esm/models/CreateSubnetResponse.js new file mode 100644 index 00000000..fca14a4e --- /dev/null +++ b/dist/esm/models/CreateSubnetResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SubnetFromJSON, SubnetToJSON, } from './Subnet'; +export function CreateSubnetResponseFromJSON(json) { + return CreateSubnetResponseFromJSONTyped(json, false); +} +export function CreateSubnetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subnet': !exists(json, 'Subnet') ? undefined : SubnetFromJSON(json['Subnet']), + }; +} +export function CreateSubnetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subnet': SubnetToJSON(value.subnet), + }; +} diff --git a/dist/esm/models/CreateTagsRequest.d.ts b/dist/esm/models/CreateTagsRequest.d.ts new file mode 100644 index 00000000..8ed76dbb --- /dev/null +++ b/dist/esm/models/CreateTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface CreateTagsRequest + */ +export interface CreateTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateTagsRequest + */ + dryRun?: boolean; + /** + * One or more resource IDs. + * @type {Array} + * @memberof CreateTagsRequest + */ + resourceIds: Array; + /** + * One or more tags to add to the specified resources. + * @type {Array} + * @memberof CreateTagsRequest + */ + tags: Array; +} +export declare function CreateTagsRequestFromJSON(json: any): CreateTagsRequest; +export declare function CreateTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagsRequest; +export declare function CreateTagsRequestToJSON(value?: CreateTagsRequest | null): any; diff --git a/dist/esm/models/CreateTagsRequest.js b/dist/esm/models/CreateTagsRequest.js new file mode 100644 index 00000000..4001b7a0 --- /dev/null +++ b/dist/esm/models/CreateTagsRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function CreateTagsRequestFromJSON(json) { + return CreateTagsRequestFromJSONTyped(json, false); +} +export function CreateTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'resourceIds': json['ResourceIds'], + 'tags': (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function CreateTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ResourceIds': value.resourceIds, + 'Tags': (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/CreateTagsResponse.d.ts b/dist/esm/models/CreateTagsResponse.d.ts new file mode 100644 index 00000000..194285ee --- /dev/null +++ b/dist/esm/models/CreateTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateTagsResponse + */ +export interface CreateTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateTagsResponseFromJSON(json: any): CreateTagsResponse; +export declare function CreateTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagsResponse; +export declare function CreateTagsResponseToJSON(value?: CreateTagsResponse | null): any; diff --git a/dist/esm/models/CreateTagsResponse.js b/dist/esm/models/CreateTagsResponse.js new file mode 100644 index 00000000..4f689a7a --- /dev/null +++ b/dist/esm/models/CreateTagsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateTagsResponseFromJSON(json) { + return CreateTagsResponseFromJSONTyped(json, false); +} +export function CreateTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/CreateVirtualGatewayRequest.d.ts b/dist/esm/models/CreateVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..6b717879 --- /dev/null +++ b/dist/esm/models/CreateVirtualGatewayRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVirtualGatewayRequest + */ +export interface CreateVirtualGatewayRequest { + /** + * The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateVirtualGatewayRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVirtualGatewayRequest + */ + dryRun?: boolean; +} +export declare function CreateVirtualGatewayRequestFromJSON(json: any): CreateVirtualGatewayRequest; +export declare function CreateVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVirtualGatewayRequest; +export declare function CreateVirtualGatewayRequestToJSON(value?: CreateVirtualGatewayRequest | null): any; diff --git a/dist/esm/models/CreateVirtualGatewayRequest.js b/dist/esm/models/CreateVirtualGatewayRequest.js new file mode 100644 index 00000000..4cc8f2bc --- /dev/null +++ b/dist/esm/models/CreateVirtualGatewayRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateVirtualGatewayRequestFromJSON(json) { + return CreateVirtualGatewayRequestFromJSONTyped(json, false); +} +export function CreateVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'connectionType': json['ConnectionType'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function CreateVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/CreateVirtualGatewayResponse.d.ts b/dist/esm/models/CreateVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..ed019fcc --- /dev/null +++ b/dist/esm/models/CreateVirtualGatewayResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VirtualGateway } from './VirtualGateway'; +/** + * + * @export + * @interface CreateVirtualGatewayResponse + */ +export interface CreateVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VirtualGateway} + * @memberof CreateVirtualGatewayResponse + */ + virtualGateway?: VirtualGateway; +} +export declare function CreateVirtualGatewayResponseFromJSON(json: any): CreateVirtualGatewayResponse; +export declare function CreateVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVirtualGatewayResponse; +export declare function CreateVirtualGatewayResponseToJSON(value?: CreateVirtualGatewayResponse | null): any; diff --git a/dist/esm/models/CreateVirtualGatewayResponse.js b/dist/esm/models/CreateVirtualGatewayResponse.js new file mode 100644 index 00000000..8a2db5f4 --- /dev/null +++ b/dist/esm/models/CreateVirtualGatewayResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VirtualGatewayFromJSON, VirtualGatewayToJSON, } from './VirtualGateway'; +export function CreateVirtualGatewayResponseFromJSON(json) { + return CreateVirtualGatewayResponseFromJSONTyped(json, false); +} +export function CreateVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'virtualGateway': !exists(json, 'VirtualGateway') ? undefined : VirtualGatewayFromJSON(json['VirtualGateway']), + }; +} +export function CreateVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VirtualGateway': VirtualGatewayToJSON(value.virtualGateway), + }; +} diff --git a/dist/esm/models/CreateVmsRequest.d.ts b/dist/esm/models/CreateVmsRequest.d.ts new file mode 100644 index 00000000..f639e78b --- /dev/null +++ b/dist/esm/models/CreateVmsRequest.d.ts @@ -0,0 +1,154 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingVmCreation } from './BlockDeviceMappingVmCreation'; +import { NicForVmCreation } from './NicForVmCreation'; +import { Placement } from './Placement'; +/** + * + * @export + * @interface CreateVmsRequest + */ +export interface CreateVmsRequest { + /** + * One or more block device mappings. + * @type {Array} + * @memberof CreateVmsRequest + */ + blockDeviceMappings?: Array; + /** + * By default or if true, the VM is started on creation. If false, the VM is stopped on creation. + * @type {boolean} + * @memberof CreateVmsRequest + */ + bootOnCreation?: boolean; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof CreateVmsRequest + */ + bsuOptimized?: boolean; + /** + * A unique identifier which enables you to manage the idempotency. + * @type {string} + * @memberof CreateVmsRequest + */ + clientToken?: string; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof CreateVmsRequest + */ + deletionProtection?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVmsRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI used to create the VM. You can find the list of OMIs by calling the [ReadImages](#readimages) method. + * @type {string} + * @memberof CreateVmsRequest + */ + imageId: string; + /** + * The name of the keypair. + * @type {string} + * @memberof CreateVmsRequest + */ + keypairName?: string; + /** + * The maximum number of VMs you want to create. If all the VMs cannot be created, the largest possible number of VMs above MinVmsCount is created. + * @type {number} + * @memberof CreateVmsRequest + */ + maxVmsCount?: number; + /** + * The minimum number of VMs you want to create. If this number of VMs cannot be created, no VMs are created. + * @type {number} + * @memberof CreateVmsRequest + */ + minVmsCount?: number; + /** + * One or more NICs. If you specify this parameter, you must not specify the `SubnetId` and `SubregionName` parameters. You also must define one NIC as the primary network interface of the VM with `0` as its device number. + * @type {Array} + * @memberof CreateVmsRequest + */ + nics?: Array; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof CreateVmsRequest + */ + performance?: CreateVmsRequestPerformanceEnum; + /** + * + * @type {Placement} + * @memberof CreateVmsRequest + */ + placement?: Placement; + /** + * One or more private IPs of the VM. + * @type {Array} + * @memberof CreateVmsRequest + */ + privateIps?: Array; + /** + * One or more IDs of security group for the VMs. + * @type {Array} + * @memberof CreateVmsRequest + */ + securityGroupIds?: Array; + /** + * One or more names of security groups for the VMs. + * @type {Array} + * @memberof CreateVmsRequest + */ + securityGroups?: Array; + /** + * The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the `Nics` parameter. + * @type {string} + * @memberof CreateVmsRequest + */ + subnetId?: string; + /** + * Data or script used to add a specific configuration to the VM. It must be Base64-encoded and is limited to 500 kibibytes (KiB). + * @type {string} + * @memberof CreateVmsRequest + */ + userData?: string; + /** + * The VM behavior when you stop it. By default or if set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. + * @type {string} + * @memberof CreateVmsRequest + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM (`t2.small` by default).
+ * For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof CreateVmsRequest + */ + vmType?: string; +} +/** + * @export + */ +export declare const CreateVmsRequestPerformanceEnum: { + readonly Medium: "medium"; + readonly High: "high"; + readonly Highest: "highest"; +}; +export declare type CreateVmsRequestPerformanceEnum = typeof CreateVmsRequestPerformanceEnum[keyof typeof CreateVmsRequestPerformanceEnum]; +export declare function CreateVmsRequestFromJSON(json: any): CreateVmsRequest; +export declare function CreateVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVmsRequest; +export declare function CreateVmsRequestToJSON(value?: CreateVmsRequest | null): any; diff --git a/dist/esm/models/CreateVmsRequest.js b/dist/esm/models/CreateVmsRequest.js new file mode 100644 index 00000000..61acffaa --- /dev/null +++ b/dist/esm/models/CreateVmsRequest.js @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BlockDeviceMappingVmCreationFromJSON, BlockDeviceMappingVmCreationToJSON, } from './BlockDeviceMappingVmCreation'; +import { NicForVmCreationFromJSON, NicForVmCreationToJSON, } from './NicForVmCreation'; +import { PlacementFromJSON, PlacementToJSON, } from './Placement'; +/** + * @export + */ +export const CreateVmsRequestPerformanceEnum = { + Medium: 'medium', + High: 'high', + Highest: 'highest' +}; +export function CreateVmsRequestFromJSON(json) { + return CreateVmsRequestFromJSONTyped(json, false); +} +export function CreateVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingVmCreationFromJSON)), + 'bootOnCreation': !exists(json, 'BootOnCreation') ? undefined : json['BootOnCreation'], + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'clientToken': !exists(json, 'ClientToken') ? undefined : json['ClientToken'], + 'deletionProtection': !exists(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'maxVmsCount': !exists(json, 'MaxVmsCount') ? undefined : json['MaxVmsCount'], + 'minVmsCount': !exists(json, 'MinVmsCount') ? undefined : json['MinVmsCount'], + 'nics': !exists(json, 'Nics') ? undefined : (json['Nics'].map(NicForVmCreationFromJSON)), + 'performance': !exists(json, 'Performance') ? undefined : json['Performance'], + 'placement': !exists(json, 'Placement') ? undefined : PlacementFromJSON(json['Placement']), + 'privateIps': !exists(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'userData': !exists(json, 'UserData') ? undefined : json['UserData'], + 'vmInitiatedShutdownBehavior': !exists(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !exists(json, 'VmType') ? undefined : json['VmType'], + }; +} +export function CreateVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingVmCreationToJSON)), + 'BootOnCreation': value.bootOnCreation, + 'BsuOptimized': value.bsuOptimized, + 'ClientToken': value.clientToken, + 'DeletionProtection': value.deletionProtection, + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'KeypairName': value.keypairName, + 'MaxVmsCount': value.maxVmsCount, + 'MinVmsCount': value.minVmsCount, + 'Nics': value.nics === undefined ? undefined : (value.nics.map(NicForVmCreationToJSON)), + 'Performance': value.performance, + 'Placement': PlacementToJSON(value.placement), + 'PrivateIps': value.privateIps, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroups': value.securityGroups, + 'SubnetId': value.subnetId, + 'UserData': value.userData, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} diff --git a/dist/esm/models/CreateVmsResponse.d.ts b/dist/esm/models/CreateVmsResponse.d.ts new file mode 100644 index 00000000..bcf3638d --- /dev/null +++ b/dist/esm/models/CreateVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Vm } from './Vm'; +/** + * + * @export + * @interface CreateVmsResponse + */ +export interface CreateVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more created VMs. + * @type {Array} + * @memberof CreateVmsResponse + */ + vms?: Array; +} +export declare function CreateVmsResponseFromJSON(json: any): CreateVmsResponse; +export declare function CreateVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVmsResponse; +export declare function CreateVmsResponseToJSON(value?: CreateVmsResponse | null): any; diff --git a/dist/esm/models/CreateVmsResponse.js b/dist/esm/models/CreateVmsResponse.js new file mode 100644 index 00000000..c46b22ae --- /dev/null +++ b/dist/esm/models/CreateVmsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmFromJSON, VmToJSON, } from './Vm'; +export function CreateVmsResponseFromJSON(json) { + return CreateVmsResponseFromJSONTyped(json, false); +} +export function CreateVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : (json['Vms'].map(VmFromJSON)), + }; +} +export function CreateVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmToJSON)), + }; +} diff --git a/dist/esm/models/CreateVolumeRequest.d.ts b/dist/esm/models/CreateVolumeRequest.d.ts new file mode 100644 index 00000000..2d7c539f --- /dev/null +++ b/dist/esm/models/CreateVolumeRequest.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVolumeRequest + */ +export interface CreateVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVolumeRequest + */ + dryRun?: boolean; + /** + * The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. + * @type {number} + * @memberof CreateVolumeRequest + */ + iops?: number; + /** + * The size of the volume, in gibibytes (GiB). The maximum allowed size for a volume is 14901 GiB. This parameter is required if the volume is not created from a snapshot (`SnapshotId` unspecified). + * @type {number} + * @memberof CreateVolumeRequest + */ + size?: number; + /** + * The ID of the snapshot from which you want to create the volume. + * @type {string} + * @memberof CreateVolumeRequest + */ + snapshotId?: string; + /** + * The Subregion in which you want to create the volume. + * @type {string} + * @memberof CreateVolumeRequest + */ + subregionName: string; + /** + * The type of volume you want to create (`io1` \| `gp2` \| `standard`). If not specified, a `standard` volume is created.
+ * For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). + * @type {string} + * @memberof CreateVolumeRequest + */ + volumeType?: string; +} +export declare function CreateVolumeRequestFromJSON(json: any): CreateVolumeRequest; +export declare function CreateVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVolumeRequest; +export declare function CreateVolumeRequestToJSON(value?: CreateVolumeRequest | null): any; diff --git a/dist/esm/models/CreateVolumeRequest.js b/dist/esm/models/CreateVolumeRequest.js new file mode 100644 index 00000000..67922acd --- /dev/null +++ b/dist/esm/models/CreateVolumeRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateVolumeRequestFromJSON(json) { + return CreateVolumeRequestFromJSONTyped(json, false); +} +export function CreateVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'size': !exists(json, 'Size') ? undefined : json['Size'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'subregionName': json['SubregionName'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +export function CreateVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Iops': value.iops, + 'Size': value.size, + 'SnapshotId': value.snapshotId, + 'SubregionName': value.subregionName, + 'VolumeType': value.volumeType, + }; +} diff --git a/dist/esm/models/CreateVolumeResponse.d.ts b/dist/esm/models/CreateVolumeResponse.d.ts new file mode 100644 index 00000000..2096e84f --- /dev/null +++ b/dist/esm/models/CreateVolumeResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Volume } from './Volume'; +/** + * + * @export + * @interface CreateVolumeResponse + */ +export interface CreateVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVolumeResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Volume} + * @memberof CreateVolumeResponse + */ + volume?: Volume; +} +export declare function CreateVolumeResponseFromJSON(json: any): CreateVolumeResponse; +export declare function CreateVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVolumeResponse; +export declare function CreateVolumeResponseToJSON(value?: CreateVolumeResponse | null): any; diff --git a/dist/esm/models/CreateVolumeResponse.js b/dist/esm/models/CreateVolumeResponse.js new file mode 100644 index 00000000..00c7570d --- /dev/null +++ b/dist/esm/models/CreateVolumeResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VolumeFromJSON, VolumeToJSON, } from './Volume'; +export function CreateVolumeResponseFromJSON(json) { + return CreateVolumeResponseFromJSONTyped(json, false); +} +export function CreateVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'volume': !exists(json, 'Volume') ? undefined : VolumeFromJSON(json['Volume']), + }; +} +export function CreateVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Volume': VolumeToJSON(value.volume), + }; +} diff --git a/dist/esm/models/CreateVpnConnectionRequest.d.ts b/dist/esm/models/CreateVpnConnectionRequest.d.ts new file mode 100644 index 00000000..c8e75ae5 --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVpnConnectionRequest + */ +export interface CreateVpnConnectionRequest { + /** + * The ID of the client gateway. + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + clientGatewayId: string; + /** + * The type of VPN connection (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVpnConnectionRequest + */ + dryRun?: boolean; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof CreateVpnConnectionRequest + */ + staticRoutesOnly?: boolean; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + virtualGatewayId: string; +} +export declare function CreateVpnConnectionRequestFromJSON(json: any): CreateVpnConnectionRequest; +export declare function CreateVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRequest; +export declare function CreateVpnConnectionRequestToJSON(value?: CreateVpnConnectionRequest | null): any; diff --git a/dist/esm/models/CreateVpnConnectionRequest.js b/dist/esm/models/CreateVpnConnectionRequest.js new file mode 100644 index 00000000..42594bbf --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateVpnConnectionRequestFromJSON(json) { + return CreateVpnConnectionRequestFromJSONTyped(json, false); +} +export function CreateVpnConnectionRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayId': json['ClientGatewayId'], + 'connectionType': json['ConnectionType'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'staticRoutesOnly': !exists(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +export function CreateVpnConnectionRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/CreateVpnConnectionResponse.d.ts b/dist/esm/models/CreateVpnConnectionResponse.d.ts new file mode 100644 index 00000000..8d0c09d0 --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VpnConnection } from './VpnConnection'; +/** + * + * @export + * @interface CreateVpnConnectionResponse + */ +export interface CreateVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVpnConnectionResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VpnConnection} + * @memberof CreateVpnConnectionResponse + */ + vpnConnection?: VpnConnection; +} +export declare function CreateVpnConnectionResponseFromJSON(json: any): CreateVpnConnectionResponse; +export declare function CreateVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionResponse; +export declare function CreateVpnConnectionResponseToJSON(value?: CreateVpnConnectionResponse | null): any; diff --git a/dist/esm/models/CreateVpnConnectionResponse.js b/dist/esm/models/CreateVpnConnectionResponse.js new file mode 100644 index 00000000..067d6676 --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VpnConnectionFromJSON, VpnConnectionToJSON, } from './VpnConnection'; +export function CreateVpnConnectionResponseFromJSON(json) { + return CreateVpnConnectionResponseFromJSONTyped(json, false); +} +export function CreateVpnConnectionResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vpnConnection': !exists(json, 'VpnConnection') ? undefined : VpnConnectionFromJSON(json['VpnConnection']), + }; +} +export function CreateVpnConnectionResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VpnConnection': VpnConnectionToJSON(value.vpnConnection), + }; +} diff --git a/dist/esm/models/CreateVpnConnectionRouteRequest.d.ts b/dist/esm/models/CreateVpnConnectionRouteRequest.d.ts new file mode 100644 index 00000000..2297a7a5 --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionRouteRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateVpnConnectionRouteRequest + */ +export interface CreateVpnConnectionRouteRequest { + /** + * The network prefix of the route, in CIDR notation (for example, 10.12.0.0/16). + * @type {string} + * @memberof CreateVpnConnectionRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVpnConnectionRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the target VPN connection of the static route. + * @type {string} + * @memberof CreateVpnConnectionRouteRequest + */ + vpnConnectionId: string; +} +export declare function CreateVpnConnectionRouteRequestFromJSON(json: any): CreateVpnConnectionRouteRequest; +export declare function CreateVpnConnectionRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRouteRequest; +export declare function CreateVpnConnectionRouteRequestToJSON(value?: CreateVpnConnectionRouteRequest | null): any; diff --git a/dist/esm/models/CreateVpnConnectionRouteRequest.js b/dist/esm/models/CreateVpnConnectionRouteRequest.js new file mode 100644 index 00000000..f04690db --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionRouteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function CreateVpnConnectionRouteRequestFromJSON(json) { + return CreateVpnConnectionRouteRequestFromJSONTyped(json, false); +} +export function CreateVpnConnectionRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} +export function CreateVpnConnectionRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} diff --git a/dist/esm/models/CreateVpnConnectionRouteResponse.d.ts b/dist/esm/models/CreateVpnConnectionRouteResponse.d.ts new file mode 100644 index 00000000..b88eaf75 --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionRouteResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface CreateVpnConnectionRouteResponse + */ +export interface CreateVpnConnectionRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVpnConnectionRouteResponse + */ + responseContext?: ModelResponseContext; +} +export declare function CreateVpnConnectionRouteResponseFromJSON(json: any): CreateVpnConnectionRouteResponse; +export declare function CreateVpnConnectionRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRouteResponse; +export declare function CreateVpnConnectionRouteResponseToJSON(value?: CreateVpnConnectionRouteResponse | null): any; diff --git a/dist/esm/models/CreateVpnConnectionRouteResponse.js b/dist/esm/models/CreateVpnConnectionRouteResponse.js new file mode 100644 index 00000000..e20da889 --- /dev/null +++ b/dist/esm/models/CreateVpnConnectionRouteResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function CreateVpnConnectionRouteResponseFromJSON(json) { + return CreateVpnConnectionRouteResponseFromJSONTyped(json, false); +} +export function CreateVpnConnectionRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function CreateVpnConnectionRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteAccessKeyRequest.d.ts b/dist/esm/models/DeleteAccessKeyRequest.d.ts new file mode 100644 index 00000000..0618d35d --- /dev/null +++ b/dist/esm/models/DeleteAccessKeyRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteAccessKeyRequest + */ +export interface DeleteAccessKeyRequest { + /** + * The ID of the access key you want to delete. + * @type {string} + * @memberof DeleteAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteAccessKeyRequest + */ + dryRun?: boolean; +} +export declare function DeleteAccessKeyRequestFromJSON(json: any): DeleteAccessKeyRequest; +export declare function DeleteAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccessKeyRequest; +export declare function DeleteAccessKeyRequestToJSON(value?: DeleteAccessKeyRequest | null): any; diff --git a/dist/esm/models/DeleteAccessKeyRequest.js b/dist/esm/models/DeleteAccessKeyRequest.js new file mode 100644 index 00000000..3c12a51a --- /dev/null +++ b/dist/esm/models/DeleteAccessKeyRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteAccessKeyRequestFromJSON(json) { + return DeleteAccessKeyRequestFromJSONTyped(json, false); +} +export function DeleteAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteAccessKeyResponse.d.ts b/dist/esm/models/DeleteAccessKeyResponse.d.ts new file mode 100644 index 00000000..fcd9f47b --- /dev/null +++ b/dist/esm/models/DeleteAccessKeyResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteAccessKeyResponse + */ +export interface DeleteAccessKeyResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteAccessKeyResponseFromJSON(json: any): DeleteAccessKeyResponse; +export declare function DeleteAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccessKeyResponse; +export declare function DeleteAccessKeyResponseToJSON(value?: DeleteAccessKeyResponse | null): any; diff --git a/dist/esm/models/DeleteAccessKeyResponse.js b/dist/esm/models/DeleteAccessKeyResponse.js new file mode 100644 index 00000000..fa6c8b98 --- /dev/null +++ b/dist/esm/models/DeleteAccessKeyResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteAccessKeyResponseFromJSON(json) { + return DeleteAccessKeyResponseFromJSONTyped(json, false); +} +export function DeleteAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteApiAccessRuleRequest.d.ts b/dist/esm/models/DeleteApiAccessRuleRequest.d.ts new file mode 100644 index 00000000..64e39569 --- /dev/null +++ b/dist/esm/models/DeleteApiAccessRuleRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteApiAccessRuleRequest + */ +export interface DeleteApiAccessRuleRequest { + /** + * The ID of the API access rule you want to delete. + * @type {string} + * @memberof DeleteApiAccessRuleRequest + */ + apiAccessRuleId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteApiAccessRuleRequest + */ + dryRun?: boolean; +} +export declare function DeleteApiAccessRuleRequestFromJSON(json: any): DeleteApiAccessRuleRequest; +export declare function DeleteApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteApiAccessRuleRequest; +export declare function DeleteApiAccessRuleRequestToJSON(value?: DeleteApiAccessRuleRequest | null): any; diff --git a/dist/esm/models/DeleteApiAccessRuleRequest.js b/dist/esm/models/DeleteApiAccessRuleRequest.js new file mode 100644 index 00000000..8493666a --- /dev/null +++ b/dist/esm/models/DeleteApiAccessRuleRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteApiAccessRuleRequestFromJSON(json) { + return DeleteApiAccessRuleRequestFromJSONTyped(json, false); +} +export function DeleteApiAccessRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleId': json['ApiAccessRuleId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteApiAccessRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleId': value.apiAccessRuleId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteApiAccessRuleResponse.d.ts b/dist/esm/models/DeleteApiAccessRuleResponse.d.ts new file mode 100644 index 00000000..2e1f94a5 --- /dev/null +++ b/dist/esm/models/DeleteApiAccessRuleResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteApiAccessRuleResponse + */ +export interface DeleteApiAccessRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteApiAccessRuleResponseFromJSON(json: any): DeleteApiAccessRuleResponse; +export declare function DeleteApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteApiAccessRuleResponse; +export declare function DeleteApiAccessRuleResponseToJSON(value?: DeleteApiAccessRuleResponse | null): any; diff --git a/dist/esm/models/DeleteApiAccessRuleResponse.js b/dist/esm/models/DeleteApiAccessRuleResponse.js new file mode 100644 index 00000000..0eea373f --- /dev/null +++ b/dist/esm/models/DeleteApiAccessRuleResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteApiAccessRuleResponseFromJSON(json) { + return DeleteApiAccessRuleResponseFromJSONTyped(json, false); +} +export function DeleteApiAccessRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteApiAccessRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteCaRequest.d.ts b/dist/esm/models/DeleteCaRequest.d.ts new file mode 100644 index 00000000..d5a5ac44 --- /dev/null +++ b/dist/esm/models/DeleteCaRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteCaRequest + */ +export interface DeleteCaRequest { + /** + * The ID of the CA you want to delete. + * @type {string} + * @memberof DeleteCaRequest + */ + caId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteCaRequest + */ + dryRun?: boolean; +} +export declare function DeleteCaRequestFromJSON(json: any): DeleteCaRequest; +export declare function DeleteCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteCaRequest; +export declare function DeleteCaRequestToJSON(value?: DeleteCaRequest | null): any; diff --git a/dist/esm/models/DeleteCaRequest.js b/dist/esm/models/DeleteCaRequest.js new file mode 100644 index 00000000..853bc676 --- /dev/null +++ b/dist/esm/models/DeleteCaRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteCaRequestFromJSON(json) { + return DeleteCaRequestFromJSONTyped(json, false); +} +export function DeleteCaRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caId': json['CaId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteCaRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaId': value.caId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteCaResponse.d.ts b/dist/esm/models/DeleteCaResponse.d.ts new file mode 100644 index 00000000..d22842a2 --- /dev/null +++ b/dist/esm/models/DeleteCaResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteCaResponse + */ +export interface DeleteCaResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteCaResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteCaResponseFromJSON(json: any): DeleteCaResponse; +export declare function DeleteCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteCaResponse; +export declare function DeleteCaResponseToJSON(value?: DeleteCaResponse | null): any; diff --git a/dist/esm/models/DeleteCaResponse.js b/dist/esm/models/DeleteCaResponse.js new file mode 100644 index 00000000..d2e48595 --- /dev/null +++ b/dist/esm/models/DeleteCaResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteCaResponseFromJSON(json) { + return DeleteCaResponseFromJSONTyped(json, false); +} +export function DeleteCaResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteCaResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteClientGatewayRequest.d.ts b/dist/esm/models/DeleteClientGatewayRequest.d.ts new file mode 100644 index 00000000..13282f87 --- /dev/null +++ b/dist/esm/models/DeleteClientGatewayRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteClientGatewayRequest + */ +export interface DeleteClientGatewayRequest { + /** + * The ID of the client gateway you want to delete. + * @type {string} + * @memberof DeleteClientGatewayRequest + */ + clientGatewayId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteClientGatewayRequest + */ + dryRun?: boolean; +} +export declare function DeleteClientGatewayRequestFromJSON(json: any): DeleteClientGatewayRequest; +export declare function DeleteClientGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteClientGatewayRequest; +export declare function DeleteClientGatewayRequestToJSON(value?: DeleteClientGatewayRequest | null): any; diff --git a/dist/esm/models/DeleteClientGatewayRequest.js b/dist/esm/models/DeleteClientGatewayRequest.js new file mode 100644 index 00000000..9beec9cd --- /dev/null +++ b/dist/esm/models/DeleteClientGatewayRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteClientGatewayRequestFromJSON(json) { + return DeleteClientGatewayRequestFromJSONTyped(json, false); +} +export function DeleteClientGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayId': json['ClientGatewayId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteClientGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayId': value.clientGatewayId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteClientGatewayResponse.d.ts b/dist/esm/models/DeleteClientGatewayResponse.d.ts new file mode 100644 index 00000000..4f3f6904 --- /dev/null +++ b/dist/esm/models/DeleteClientGatewayResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteClientGatewayResponse + */ +export interface DeleteClientGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteClientGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteClientGatewayResponseFromJSON(json: any): DeleteClientGatewayResponse; +export declare function DeleteClientGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteClientGatewayResponse; +export declare function DeleteClientGatewayResponseToJSON(value?: DeleteClientGatewayResponse | null): any; diff --git a/dist/esm/models/DeleteClientGatewayResponse.js b/dist/esm/models/DeleteClientGatewayResponse.js new file mode 100644 index 00000000..7721fbf4 --- /dev/null +++ b/dist/esm/models/DeleteClientGatewayResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteClientGatewayResponseFromJSON(json) { + return DeleteClientGatewayResponseFromJSONTyped(json, false); +} +export function DeleteClientGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteClientGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteDhcpOptionsRequest.d.ts b/dist/esm/models/DeleteDhcpOptionsRequest.d.ts new file mode 100644 index 00000000..c1858bec --- /dev/null +++ b/dist/esm/models/DeleteDhcpOptionsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteDhcpOptionsRequest + */ +export interface DeleteDhcpOptionsRequest { + /** + * The ID of the DHCP options set you want to delete. + * @type {string} + * @memberof DeleteDhcpOptionsRequest + */ + dhcpOptionsSetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDhcpOptionsRequest + */ + dryRun?: boolean; +} +export declare function DeleteDhcpOptionsRequestFromJSON(json: any): DeleteDhcpOptionsRequest; +export declare function DeleteDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDhcpOptionsRequest; +export declare function DeleteDhcpOptionsRequestToJSON(value?: DeleteDhcpOptionsRequest | null): any; diff --git a/dist/esm/models/DeleteDhcpOptionsRequest.js b/dist/esm/models/DeleteDhcpOptionsRequest.js new file mode 100644 index 00000000..98773394 --- /dev/null +++ b/dist/esm/models/DeleteDhcpOptionsRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteDhcpOptionsRequestFromJSON(json) { + return DeleteDhcpOptionsRequestFromJSONTyped(json, false); +} +export function DeleteDhcpOptionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetId': json['DhcpOptionsSetId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteDhcpOptionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteDhcpOptionsResponse.d.ts b/dist/esm/models/DeleteDhcpOptionsResponse.d.ts new file mode 100644 index 00000000..89b57f90 --- /dev/null +++ b/dist/esm/models/DeleteDhcpOptionsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteDhcpOptionsResponse + */ +export interface DeleteDhcpOptionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteDhcpOptionsResponseFromJSON(json: any): DeleteDhcpOptionsResponse; +export declare function DeleteDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDhcpOptionsResponse; +export declare function DeleteDhcpOptionsResponseToJSON(value?: DeleteDhcpOptionsResponse | null): any; diff --git a/dist/esm/models/DeleteDhcpOptionsResponse.js b/dist/esm/models/DeleteDhcpOptionsResponse.js new file mode 100644 index 00000000..3d0e0f8c --- /dev/null +++ b/dist/esm/models/DeleteDhcpOptionsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteDhcpOptionsResponseFromJSON(json) { + return DeleteDhcpOptionsResponseFromJSONTyped(json, false); +} +export function DeleteDhcpOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteDhcpOptionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteDirectLinkInterfaceRequest.d.ts b/dist/esm/models/DeleteDirectLinkInterfaceRequest.d.ts new file mode 100644 index 00000000..3cd137ee --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkInterfaceRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteDirectLinkInterfaceRequest + */ +export interface DeleteDirectLinkInterfaceRequest { + /** + * The ID of the DirectLink interface you want to delete. + * @type {string} + * @memberof DeleteDirectLinkInterfaceRequest + */ + directLinkInterfaceId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDirectLinkInterfaceRequest + */ + dryRun?: boolean; +} +export declare function DeleteDirectLinkInterfaceRequestFromJSON(json: any): DeleteDirectLinkInterfaceRequest; +export declare function DeleteDirectLinkInterfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkInterfaceRequest; +export declare function DeleteDirectLinkInterfaceRequestToJSON(value?: DeleteDirectLinkInterfaceRequest | null): any; diff --git a/dist/esm/models/DeleteDirectLinkInterfaceRequest.js b/dist/esm/models/DeleteDirectLinkInterfaceRequest.js new file mode 100644 index 00000000..dfdb86bc --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkInterfaceRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteDirectLinkInterfaceRequestFromJSON(json) { + return DeleteDirectLinkInterfaceRequestFromJSONTyped(json, false); +} +export function DeleteDirectLinkInterfaceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkInterfaceId': json['DirectLinkInterfaceId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteDirectLinkInterfaceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkInterfaceId': value.directLinkInterfaceId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteDirectLinkInterfaceResponse.d.ts b/dist/esm/models/DeleteDirectLinkInterfaceResponse.d.ts new file mode 100644 index 00000000..4f9b1a55 --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkInterfaceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteDirectLinkInterfaceResponse + */ +export interface DeleteDirectLinkInterfaceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDirectLinkInterfaceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteDirectLinkInterfaceResponseFromJSON(json: any): DeleteDirectLinkInterfaceResponse; +export declare function DeleteDirectLinkInterfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkInterfaceResponse; +export declare function DeleteDirectLinkInterfaceResponseToJSON(value?: DeleteDirectLinkInterfaceResponse | null): any; diff --git a/dist/esm/models/DeleteDirectLinkInterfaceResponse.js b/dist/esm/models/DeleteDirectLinkInterfaceResponse.js new file mode 100644 index 00000000..f3809247 --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkInterfaceResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteDirectLinkInterfaceResponseFromJSON(json) { + return DeleteDirectLinkInterfaceResponseFromJSONTyped(json, false); +} +export function DeleteDirectLinkInterfaceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteDirectLinkInterfaceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteDirectLinkRequest.d.ts b/dist/esm/models/DeleteDirectLinkRequest.d.ts new file mode 100644 index 00000000..d6838b9f --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteDirectLinkRequest + */ +export interface DeleteDirectLinkRequest { + /** + * The ID of the DirectLink you want to delete. + * @type {string} + * @memberof DeleteDirectLinkRequest + */ + directLinkId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDirectLinkRequest + */ + dryRun?: boolean; +} +export declare function DeleteDirectLinkRequestFromJSON(json: any): DeleteDirectLinkRequest; +export declare function DeleteDirectLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkRequest; +export declare function DeleteDirectLinkRequestToJSON(value?: DeleteDirectLinkRequest | null): any; diff --git a/dist/esm/models/DeleteDirectLinkRequest.js b/dist/esm/models/DeleteDirectLinkRequest.js new file mode 100644 index 00000000..9edb548d --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteDirectLinkRequestFromJSON(json) { + return DeleteDirectLinkRequestFromJSONTyped(json, false); +} +export function DeleteDirectLinkRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkId': json['DirectLinkId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function DeleteDirectLinkRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkId': value.directLinkId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/DeleteDirectLinkResponse.d.ts b/dist/esm/models/DeleteDirectLinkResponse.d.ts new file mode 100644 index 00000000..5d835206 --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteDirectLinkResponse + */ +export interface DeleteDirectLinkResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDirectLinkResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteDirectLinkResponseFromJSON(json: any): DeleteDirectLinkResponse; +export declare function DeleteDirectLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkResponse; +export declare function DeleteDirectLinkResponseToJSON(value?: DeleteDirectLinkResponse | null): any; diff --git a/dist/esm/models/DeleteDirectLinkResponse.js b/dist/esm/models/DeleteDirectLinkResponse.js new file mode 100644 index 00000000..eb16d4c6 --- /dev/null +++ b/dist/esm/models/DeleteDirectLinkResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteDirectLinkResponseFromJSON(json) { + return DeleteDirectLinkResponseFromJSONTyped(json, false); +} +export function DeleteDirectLinkResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteDirectLinkResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteExportTaskRequest.d.ts b/dist/esm/models/DeleteExportTaskRequest.d.ts new file mode 100644 index 00000000..4ae5ca3d --- /dev/null +++ b/dist/esm/models/DeleteExportTaskRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteExportTaskRequest + */ +export interface DeleteExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteExportTaskRequest + */ + dryRun?: boolean; + /** + * The ID of the export task to delete. + * @type {string} + * @memberof DeleteExportTaskRequest + */ + exportTaskId: string; +} +export declare function DeleteExportTaskRequestFromJSON(json: any): DeleteExportTaskRequest; +export declare function DeleteExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteExportTaskRequest; +export declare function DeleteExportTaskRequestToJSON(value?: DeleteExportTaskRequest | null): any; diff --git a/dist/esm/models/DeleteExportTaskRequest.js b/dist/esm/models/DeleteExportTaskRequest.js new file mode 100644 index 00000000..71d93737 --- /dev/null +++ b/dist/esm/models/DeleteExportTaskRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteExportTaskRequestFromJSON(json) { + return DeleteExportTaskRequestFromJSONTyped(json, false); +} +export function DeleteExportTaskRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'exportTaskId': json['ExportTaskId'], + }; +} +export function DeleteExportTaskRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ExportTaskId': value.exportTaskId, + }; +} diff --git a/dist/esm/models/DeleteExportTaskResponse.d.ts b/dist/esm/models/DeleteExportTaskResponse.d.ts new file mode 100644 index 00000000..aaa613ad --- /dev/null +++ b/dist/esm/models/DeleteExportTaskResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteExportTaskResponse + */ +export interface DeleteExportTaskResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteExportTaskResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteExportTaskResponseFromJSON(json: any): DeleteExportTaskResponse; +export declare function DeleteExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteExportTaskResponse; +export declare function DeleteExportTaskResponseToJSON(value?: DeleteExportTaskResponse | null): any; diff --git a/dist/esm/models/DeleteExportTaskResponse.js b/dist/esm/models/DeleteExportTaskResponse.js new file mode 100644 index 00000000..5a076857 --- /dev/null +++ b/dist/esm/models/DeleteExportTaskResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteExportTaskResponseFromJSON(json) { + return DeleteExportTaskResponseFromJSONTyped(json, false); +} +export function DeleteExportTaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteExportTaskResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteFlexibleGpuRequest.d.ts b/dist/esm/models/DeleteFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..f75b2875 --- /dev/null +++ b/dist/esm/models/DeleteFlexibleGpuRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteFlexibleGpuRequest + */ +export interface DeleteFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to delete. + * @type {string} + * @memberof DeleteFlexibleGpuRequest + */ + flexibleGpuId: string; +} +export declare function DeleteFlexibleGpuRequestFromJSON(json: any): DeleteFlexibleGpuRequest; +export declare function DeleteFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteFlexibleGpuRequest; +export declare function DeleteFlexibleGpuRequestToJSON(value?: DeleteFlexibleGpuRequest | null): any; diff --git a/dist/esm/models/DeleteFlexibleGpuRequest.js b/dist/esm/models/DeleteFlexibleGpuRequest.js new file mode 100644 index 00000000..5740a56f --- /dev/null +++ b/dist/esm/models/DeleteFlexibleGpuRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteFlexibleGpuRequestFromJSON(json) { + return DeleteFlexibleGpuRequestFromJSONTyped(json, false); +} +export function DeleteFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} +export function DeleteFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} diff --git a/dist/esm/models/DeleteFlexibleGpuResponse.d.ts b/dist/esm/models/DeleteFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..81810929 --- /dev/null +++ b/dist/esm/models/DeleteFlexibleGpuResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteFlexibleGpuResponse + */ +export interface DeleteFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteFlexibleGpuResponseFromJSON(json: any): DeleteFlexibleGpuResponse; +export declare function DeleteFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteFlexibleGpuResponse; +export declare function DeleteFlexibleGpuResponseToJSON(value?: DeleteFlexibleGpuResponse | null): any; diff --git a/dist/esm/models/DeleteFlexibleGpuResponse.js b/dist/esm/models/DeleteFlexibleGpuResponse.js new file mode 100644 index 00000000..7e4a763c --- /dev/null +++ b/dist/esm/models/DeleteFlexibleGpuResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteFlexibleGpuResponseFromJSON(json) { + return DeleteFlexibleGpuResponseFromJSONTyped(json, false); +} +export function DeleteFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteImageRequest.d.ts b/dist/esm/models/DeleteImageRequest.d.ts new file mode 100644 index 00000000..d925180d --- /dev/null +++ b/dist/esm/models/DeleteImageRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteImageRequest + */ +export interface DeleteImageRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteImageRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI you want to delete. + * @type {string} + * @memberof DeleteImageRequest + */ + imageId: string; +} +export declare function DeleteImageRequestFromJSON(json: any): DeleteImageRequest; +export declare function DeleteImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteImageRequest; +export declare function DeleteImageRequestToJSON(value?: DeleteImageRequest | null): any; diff --git a/dist/esm/models/DeleteImageRequest.js b/dist/esm/models/DeleteImageRequest.js new file mode 100644 index 00000000..96699a7a --- /dev/null +++ b/dist/esm/models/DeleteImageRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteImageRequestFromJSON(json) { + return DeleteImageRequestFromJSONTyped(json, false); +} +export function DeleteImageRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + }; +} +export function DeleteImageRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + }; +} diff --git a/dist/esm/models/DeleteImageResponse.d.ts b/dist/esm/models/DeleteImageResponse.d.ts new file mode 100644 index 00000000..0203d10a --- /dev/null +++ b/dist/esm/models/DeleteImageResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteImageResponse + */ +export interface DeleteImageResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteImageResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteImageResponseFromJSON(json: any): DeleteImageResponse; +export declare function DeleteImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteImageResponse; +export declare function DeleteImageResponseToJSON(value?: DeleteImageResponse | null): any; diff --git a/dist/esm/models/DeleteImageResponse.js b/dist/esm/models/DeleteImageResponse.js new file mode 100644 index 00000000..c323843d --- /dev/null +++ b/dist/esm/models/DeleteImageResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteImageResponseFromJSON(json) { + return DeleteImageResponseFromJSONTyped(json, false); +} +export function DeleteImageResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteImageResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteInternetServiceRequest.d.ts b/dist/esm/models/DeleteInternetServiceRequest.d.ts new file mode 100644 index 00000000..9e5c14e3 --- /dev/null +++ b/dist/esm/models/DeleteInternetServiceRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteInternetServiceRequest + */ +export interface DeleteInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to delete. + * @type {string} + * @memberof DeleteInternetServiceRequest + */ + internetServiceId: string; +} +export declare function DeleteInternetServiceRequestFromJSON(json: any): DeleteInternetServiceRequest; +export declare function DeleteInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteInternetServiceRequest; +export declare function DeleteInternetServiceRequestToJSON(value?: DeleteInternetServiceRequest | null): any; diff --git a/dist/esm/models/DeleteInternetServiceRequest.js b/dist/esm/models/DeleteInternetServiceRequest.js new file mode 100644 index 00000000..26602041 --- /dev/null +++ b/dist/esm/models/DeleteInternetServiceRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteInternetServiceRequestFromJSON(json) { + return DeleteInternetServiceRequestFromJSONTyped(json, false); +} +export function DeleteInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + }; +} +export function DeleteInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + }; +} diff --git a/dist/esm/models/DeleteInternetServiceResponse.d.ts b/dist/esm/models/DeleteInternetServiceResponse.d.ts new file mode 100644 index 00000000..e1a69f71 --- /dev/null +++ b/dist/esm/models/DeleteInternetServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteInternetServiceResponse + */ +export interface DeleteInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteInternetServiceResponseFromJSON(json: any): DeleteInternetServiceResponse; +export declare function DeleteInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteInternetServiceResponse; +export declare function DeleteInternetServiceResponseToJSON(value?: DeleteInternetServiceResponse | null): any; diff --git a/dist/esm/models/DeleteInternetServiceResponse.js b/dist/esm/models/DeleteInternetServiceResponse.js new file mode 100644 index 00000000..a55d20f3 --- /dev/null +++ b/dist/esm/models/DeleteInternetServiceResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteInternetServiceResponseFromJSON(json) { + return DeleteInternetServiceResponseFromJSONTyped(json, false); +} +export function DeleteInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteKeypairRequest.d.ts b/dist/esm/models/DeleteKeypairRequest.d.ts new file mode 100644 index 00000000..af27278c --- /dev/null +++ b/dist/esm/models/DeleteKeypairRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteKeypairRequest + */ +export interface DeleteKeypairRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteKeypairRequest + */ + dryRun?: boolean; + /** + * The name of the keypair you want to delete. + * @type {string} + * @memberof DeleteKeypairRequest + */ + keypairName: string; +} +export declare function DeleteKeypairRequestFromJSON(json: any): DeleteKeypairRequest; +export declare function DeleteKeypairRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKeypairRequest; +export declare function DeleteKeypairRequestToJSON(value?: DeleteKeypairRequest | null): any; diff --git a/dist/esm/models/DeleteKeypairRequest.js b/dist/esm/models/DeleteKeypairRequest.js new file mode 100644 index 00000000..6aa447eb --- /dev/null +++ b/dist/esm/models/DeleteKeypairRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteKeypairRequestFromJSON(json) { + return DeleteKeypairRequestFromJSONTyped(json, false); +} +export function DeleteKeypairRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'keypairName': json['KeypairName'], + }; +} +export function DeleteKeypairRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'KeypairName': value.keypairName, + }; +} diff --git a/dist/esm/models/DeleteKeypairResponse.d.ts b/dist/esm/models/DeleteKeypairResponse.d.ts new file mode 100644 index 00000000..35157b9d --- /dev/null +++ b/dist/esm/models/DeleteKeypairResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteKeypairResponse + */ +export interface DeleteKeypairResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteKeypairResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteKeypairResponseFromJSON(json: any): DeleteKeypairResponse; +export declare function DeleteKeypairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKeypairResponse; +export declare function DeleteKeypairResponseToJSON(value?: DeleteKeypairResponse | null): any; diff --git a/dist/esm/models/DeleteKeypairResponse.js b/dist/esm/models/DeleteKeypairResponse.js new file mode 100644 index 00000000..2f4bb20f --- /dev/null +++ b/dist/esm/models/DeleteKeypairResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteKeypairResponseFromJSON(json) { + return DeleteKeypairResponseFromJSONTyped(json, false); +} +export function DeleteKeypairResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteKeypairResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteListenerRuleRequest.d.ts b/dist/esm/models/DeleteListenerRuleRequest.d.ts new file mode 100644 index 00000000..8bb287f4 --- /dev/null +++ b/dist/esm/models/DeleteListenerRuleRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteListenerRuleRequest + */ +export interface DeleteListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteListenerRuleRequest + */ + dryRun?: boolean; + /** + * The name of the rule you want to delete. + * @type {string} + * @memberof DeleteListenerRuleRequest + */ + listenerRuleName: string; +} +export declare function DeleteListenerRuleRequestFromJSON(json: any): DeleteListenerRuleRequest; +export declare function DeleteListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteListenerRuleRequest; +export declare function DeleteListenerRuleRequestToJSON(value?: DeleteListenerRuleRequest | null): any; diff --git a/dist/esm/models/DeleteListenerRuleRequest.js b/dist/esm/models/DeleteListenerRuleRequest.js new file mode 100644 index 00000000..01a3936c --- /dev/null +++ b/dist/esm/models/DeleteListenerRuleRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteListenerRuleRequestFromJSON(json) { + return DeleteListenerRuleRequestFromJSONTyped(json, false); +} +export function DeleteListenerRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listenerRuleName': json['ListenerRuleName'], + }; +} +export function DeleteListenerRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ListenerRuleName': value.listenerRuleName, + }; +} diff --git a/dist/esm/models/DeleteListenerRuleResponse.d.ts b/dist/esm/models/DeleteListenerRuleResponse.d.ts new file mode 100644 index 00000000..6bae831b --- /dev/null +++ b/dist/esm/models/DeleteListenerRuleResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteListenerRuleResponse + */ +export interface DeleteListenerRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteListenerRuleResponseFromJSON(json: any): DeleteListenerRuleResponse; +export declare function DeleteListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteListenerRuleResponse; +export declare function DeleteListenerRuleResponseToJSON(value?: DeleteListenerRuleResponse | null): any; diff --git a/dist/esm/models/DeleteListenerRuleResponse.js b/dist/esm/models/DeleteListenerRuleResponse.js new file mode 100644 index 00000000..7d4c8e45 --- /dev/null +++ b/dist/esm/models/DeleteListenerRuleResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteListenerRuleResponseFromJSON(json) { + return DeleteListenerRuleResponseFromJSONTyped(json, false); +} +export function DeleteListenerRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteListenerRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerListenersRequest.d.ts b/dist/esm/models/DeleteLoadBalancerListenersRequest.d.ts new file mode 100644 index 00000000..0f9b02f5 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerListenersRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteLoadBalancerListenersRequest + */ +export interface DeleteLoadBalancerListenersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerListenersRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to delete listeners. + * @type {string} + * @memberof DeleteLoadBalancerListenersRequest + */ + loadBalancerName: string; + /** + * One or more port numbers of the listeners you want to delete. + * @type {Array} + * @memberof DeleteLoadBalancerListenersRequest + */ + loadBalancerPorts: Array; +} +export declare function DeleteLoadBalancerListenersRequestFromJSON(json: any): DeleteLoadBalancerListenersRequest; +export declare function DeleteLoadBalancerListenersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerListenersRequest; +export declare function DeleteLoadBalancerListenersRequestToJSON(value?: DeleteLoadBalancerListenersRequest | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerListenersRequest.js b/dist/esm/models/DeleteLoadBalancerListenersRequest.js new file mode 100644 index 00000000..3a6ef625 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerListenersRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteLoadBalancerListenersRequestFromJSON(json) { + return DeleteLoadBalancerListenersRequestFromJSONTyped(json, false); +} +export function DeleteLoadBalancerListenersRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPorts': json['LoadBalancerPorts'], + }; +} +export function DeleteLoadBalancerListenersRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPorts': value.loadBalancerPorts, + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerListenersResponse.d.ts b/dist/esm/models/DeleteLoadBalancerListenersResponse.d.ts new file mode 100644 index 00000000..7e1e3f11 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerListenersResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerListenersResponse + */ +export interface DeleteLoadBalancerListenersResponse { + /** + * + * @type {LoadBalancer} + * @memberof DeleteLoadBalancerListenersResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerListenersResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerListenersResponseFromJSON(json: any): DeleteLoadBalancerListenersResponse; +export declare function DeleteLoadBalancerListenersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerListenersResponse; +export declare function DeleteLoadBalancerListenersResponseToJSON(value?: DeleteLoadBalancerListenersResponse | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerListenersResponse.js b/dist/esm/models/DeleteLoadBalancerListenersResponse.js new file mode 100644 index 00000000..16558f3a --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerListenersResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteLoadBalancerListenersResponseFromJSON(json) { + return DeleteLoadBalancerListenersResponseFromJSONTyped(json, false); +} +export function DeleteLoadBalancerListenersResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteLoadBalancerListenersResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerPolicyRequest.d.ts b/dist/esm/models/DeleteLoadBalancerPolicyRequest.d.ts new file mode 100644 index 00000000..8dc14243 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerPolicyRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteLoadBalancerPolicyRequest + */ +export interface DeleteLoadBalancerPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerPolicyRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to delete a policy. + * @type {string} + * @memberof DeleteLoadBalancerPolicyRequest + */ + loadBalancerName: string; + /** + * The name of the policy you want to delete. + * @type {string} + * @memberof DeleteLoadBalancerPolicyRequest + */ + policyName: string; +} +export declare function DeleteLoadBalancerPolicyRequestFromJSON(json: any): DeleteLoadBalancerPolicyRequest; +export declare function DeleteLoadBalancerPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerPolicyRequest; +export declare function DeleteLoadBalancerPolicyRequestToJSON(value?: DeleteLoadBalancerPolicyRequest | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerPolicyRequest.js b/dist/esm/models/DeleteLoadBalancerPolicyRequest.js new file mode 100644 index 00000000..b4df1b56 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerPolicyRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteLoadBalancerPolicyRequestFromJSON(json) { + return DeleteLoadBalancerPolicyRequestFromJSONTyped(json, false); +} +export function DeleteLoadBalancerPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'policyName': json['PolicyName'], + }; +} +export function DeleteLoadBalancerPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'PolicyName': value.policyName, + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerPolicyResponse.d.ts b/dist/esm/models/DeleteLoadBalancerPolicyResponse.d.ts new file mode 100644 index 00000000..6a033352 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerPolicyResponse + */ +export interface DeleteLoadBalancerPolicyResponse { + /** + * + * @type {LoadBalancer} + * @memberof DeleteLoadBalancerPolicyResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerPolicyResponseFromJSON(json: any): DeleteLoadBalancerPolicyResponse; +export declare function DeleteLoadBalancerPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerPolicyResponse; +export declare function DeleteLoadBalancerPolicyResponseToJSON(value?: DeleteLoadBalancerPolicyResponse | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerPolicyResponse.js b/dist/esm/models/DeleteLoadBalancerPolicyResponse.js new file mode 100644 index 00000000..0517815d --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerPolicyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteLoadBalancerPolicyResponseFromJSON(json) { + return DeleteLoadBalancerPolicyResponseFromJSONTyped(json, false); +} +export function DeleteLoadBalancerPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteLoadBalancerPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerRequest.d.ts b/dist/esm/models/DeleteLoadBalancerRequest.d.ts new file mode 100644 index 00000000..5a267ae9 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteLoadBalancerRequest + */ +export interface DeleteLoadBalancerRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer you want to delete. + * @type {string} + * @memberof DeleteLoadBalancerRequest + */ + loadBalancerName: string; +} +export declare function DeleteLoadBalancerRequestFromJSON(json: any): DeleteLoadBalancerRequest; +export declare function DeleteLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerRequest; +export declare function DeleteLoadBalancerRequestToJSON(value?: DeleteLoadBalancerRequest | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerRequest.js b/dist/esm/models/DeleteLoadBalancerRequest.js new file mode 100644 index 00000000..d2019194 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteLoadBalancerRequestFromJSON(json) { + return DeleteLoadBalancerRequestFromJSONTyped(json, false); +} +export function DeleteLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function DeleteLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerResponse.d.ts b/dist/esm/models/DeleteLoadBalancerResponse.d.ts new file mode 100644 index 00000000..504e9dab --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerResponse + */ +export interface DeleteLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerResponseFromJSON(json: any): DeleteLoadBalancerResponse; +export declare function DeleteLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerResponse; +export declare function DeleteLoadBalancerResponseToJSON(value?: DeleteLoadBalancerResponse | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerResponse.js b/dist/esm/models/DeleteLoadBalancerResponse.js new file mode 100644 index 00000000..581eb496 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteLoadBalancerResponseFromJSON(json) { + return DeleteLoadBalancerResponseFromJSONTyped(json, false); +} +export function DeleteLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerTagsRequest.d.ts b/dist/esm/models/DeleteLoadBalancerTagsRequest.d.ts new file mode 100644 index 00000000..65687e1b --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceLoadBalancerTag } from './ResourceLoadBalancerTag'; +/** + * + * @export + * @interface DeleteLoadBalancerTagsRequest + */ +export interface DeleteLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof DeleteLoadBalancerTagsRequest + */ + loadBalancerNames: Array; + /** + * One or more tags to delete from the load balancers. + * @type {Array} + * @memberof DeleteLoadBalancerTagsRequest + */ + tags: Array; +} +export declare function DeleteLoadBalancerTagsRequestFromJSON(json: any): DeleteLoadBalancerTagsRequest; +export declare function DeleteLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerTagsRequest; +export declare function DeleteLoadBalancerTagsRequestToJSON(value?: DeleteLoadBalancerTagsRequest | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerTagsRequest.js b/dist/esm/models/DeleteLoadBalancerTagsRequest.js new file mode 100644 index 00000000..6f9ee393 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerTagsRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceLoadBalancerTagFromJSON, ResourceLoadBalancerTagToJSON, } from './ResourceLoadBalancerTag'; +export function DeleteLoadBalancerTagsRequestFromJSON(json) { + return DeleteLoadBalancerTagsRequestFromJSONTyped(json, false); +} +export function DeleteLoadBalancerTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + 'tags': (json['Tags'].map(ResourceLoadBalancerTagFromJSON)), + }; +} +export function DeleteLoadBalancerTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + 'Tags': (value.tags.map(ResourceLoadBalancerTagToJSON)), + }; +} diff --git a/dist/esm/models/DeleteLoadBalancerTagsResponse.d.ts b/dist/esm/models/DeleteLoadBalancerTagsResponse.d.ts new file mode 100644 index 00000000..adb3a713 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteLoadBalancerTagsResponse + */ +export interface DeleteLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteLoadBalancerTagsResponseFromJSON(json: any): DeleteLoadBalancerTagsResponse; +export declare function DeleteLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerTagsResponse; +export declare function DeleteLoadBalancerTagsResponseToJSON(value?: DeleteLoadBalancerTagsResponse | null): any; diff --git a/dist/esm/models/DeleteLoadBalancerTagsResponse.js b/dist/esm/models/DeleteLoadBalancerTagsResponse.js new file mode 100644 index 00000000..22fabc12 --- /dev/null +++ b/dist/esm/models/DeleteLoadBalancerTagsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteLoadBalancerTagsResponseFromJSON(json) { + return DeleteLoadBalancerTagsResponseFromJSONTyped(json, false); +} +export function DeleteLoadBalancerTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteLoadBalancerTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteNatServiceRequest.d.ts b/dist/esm/models/DeleteNatServiceRequest.d.ts new file mode 100644 index 00000000..91d7f36c --- /dev/null +++ b/dist/esm/models/DeleteNatServiceRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNatServiceRequest + */ +export interface DeleteNatServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNatServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the NAT service you want to delete. + * @type {string} + * @memberof DeleteNatServiceRequest + */ + natServiceId: string; +} +export declare function DeleteNatServiceRequestFromJSON(json: any): DeleteNatServiceRequest; +export declare function DeleteNatServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNatServiceRequest; +export declare function DeleteNatServiceRequestToJSON(value?: DeleteNatServiceRequest | null): any; diff --git a/dist/esm/models/DeleteNatServiceRequest.js b/dist/esm/models/DeleteNatServiceRequest.js new file mode 100644 index 00000000..41300671 --- /dev/null +++ b/dist/esm/models/DeleteNatServiceRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteNatServiceRequestFromJSON(json) { + return DeleteNatServiceRequestFromJSONTyped(json, false); +} +export function DeleteNatServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'natServiceId': json['NatServiceId'], + }; +} +export function DeleteNatServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NatServiceId': value.natServiceId, + }; +} diff --git a/dist/esm/models/DeleteNatServiceResponse.d.ts b/dist/esm/models/DeleteNatServiceResponse.d.ts new file mode 100644 index 00000000..56eecb13 --- /dev/null +++ b/dist/esm/models/DeleteNatServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNatServiceResponse + */ +export interface DeleteNatServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNatServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNatServiceResponseFromJSON(json: any): DeleteNatServiceResponse; +export declare function DeleteNatServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNatServiceResponse; +export declare function DeleteNatServiceResponseToJSON(value?: DeleteNatServiceResponse | null): any; diff --git a/dist/esm/models/DeleteNatServiceResponse.js b/dist/esm/models/DeleteNatServiceResponse.js new file mode 100644 index 00000000..db068fc7 --- /dev/null +++ b/dist/esm/models/DeleteNatServiceResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteNatServiceResponseFromJSON(json) { + return DeleteNatServiceResponseFromJSONTyped(json, false); +} +export function DeleteNatServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteNatServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteNetAccessPointRequest.d.ts b/dist/esm/models/DeleteNetAccessPointRequest.d.ts new file mode 100644 index 00000000..b1571a8a --- /dev/null +++ b/dist/esm/models/DeleteNetAccessPointRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNetAccessPointRequest + */ +export interface DeleteNetAccessPointRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net access point. + * @type {string} + * @memberof DeleteNetAccessPointRequest + */ + netAccessPointId: string; +} +export declare function DeleteNetAccessPointRequestFromJSON(json: any): DeleteNetAccessPointRequest; +export declare function DeleteNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetAccessPointRequest; +export declare function DeleteNetAccessPointRequestToJSON(value?: DeleteNetAccessPointRequest | null): any; diff --git a/dist/esm/models/DeleteNetAccessPointRequest.js b/dist/esm/models/DeleteNetAccessPointRequest.js new file mode 100644 index 00000000..a9c8dbad --- /dev/null +++ b/dist/esm/models/DeleteNetAccessPointRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteNetAccessPointRequestFromJSON(json) { + return DeleteNetAccessPointRequestFromJSONTyped(json, false); +} +export function DeleteNetAccessPointRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netAccessPointId': json['NetAccessPointId'], + }; +} +export function DeleteNetAccessPointRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetAccessPointId': value.netAccessPointId, + }; +} diff --git a/dist/esm/models/DeleteNetAccessPointResponse.d.ts b/dist/esm/models/DeleteNetAccessPointResponse.d.ts new file mode 100644 index 00000000..978f46b1 --- /dev/null +++ b/dist/esm/models/DeleteNetAccessPointResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNetAccessPointResponse + */ +export interface DeleteNetAccessPointResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNetAccessPointResponseFromJSON(json: any): DeleteNetAccessPointResponse; +export declare function DeleteNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetAccessPointResponse; +export declare function DeleteNetAccessPointResponseToJSON(value?: DeleteNetAccessPointResponse | null): any; diff --git a/dist/esm/models/DeleteNetAccessPointResponse.js b/dist/esm/models/DeleteNetAccessPointResponse.js new file mode 100644 index 00000000..f024dbc1 --- /dev/null +++ b/dist/esm/models/DeleteNetAccessPointResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteNetAccessPointResponseFromJSON(json) { + return DeleteNetAccessPointResponseFromJSONTyped(json, false); +} +export function DeleteNetAccessPointResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteNetAccessPointResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteNetPeeringRequest.d.ts b/dist/esm/models/DeleteNetPeeringRequest.d.ts new file mode 100644 index 00000000..a98f8644 --- /dev/null +++ b/dist/esm/models/DeleteNetPeeringRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNetPeeringRequest + */ +export interface DeleteNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to delete. + * @type {string} + * @memberof DeleteNetPeeringRequest + */ + netPeeringId: string; +} +export declare function DeleteNetPeeringRequestFromJSON(json: any): DeleteNetPeeringRequest; +export declare function DeleteNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetPeeringRequest; +export declare function DeleteNetPeeringRequestToJSON(value?: DeleteNetPeeringRequest | null): any; diff --git a/dist/esm/models/DeleteNetPeeringRequest.js b/dist/esm/models/DeleteNetPeeringRequest.js new file mode 100644 index 00000000..c58617f2 --- /dev/null +++ b/dist/esm/models/DeleteNetPeeringRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteNetPeeringRequestFromJSON(json) { + return DeleteNetPeeringRequestFromJSONTyped(json, false); +} +export function DeleteNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} +export function DeleteNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} diff --git a/dist/esm/models/DeleteNetPeeringResponse.d.ts b/dist/esm/models/DeleteNetPeeringResponse.d.ts new file mode 100644 index 00000000..732bb475 --- /dev/null +++ b/dist/esm/models/DeleteNetPeeringResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNetPeeringResponse + */ +export interface DeleteNetPeeringResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNetPeeringResponseFromJSON(json: any): DeleteNetPeeringResponse; +export declare function DeleteNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetPeeringResponse; +export declare function DeleteNetPeeringResponseToJSON(value?: DeleteNetPeeringResponse | null): any; diff --git a/dist/esm/models/DeleteNetPeeringResponse.js b/dist/esm/models/DeleteNetPeeringResponse.js new file mode 100644 index 00000000..c30e31c4 --- /dev/null +++ b/dist/esm/models/DeleteNetPeeringResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteNetPeeringResponseFromJSON(json) { + return DeleteNetPeeringResponseFromJSONTyped(json, false); +} +export function DeleteNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteNetRequest.d.ts b/dist/esm/models/DeleteNetRequest.d.ts new file mode 100644 index 00000000..eb26908c --- /dev/null +++ b/dist/esm/models/DeleteNetRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNetRequest + */ +export interface DeleteNetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetRequest + */ + dryRun?: boolean; + /** + * The ID of the Net you want to delete. + * @type {string} + * @memberof DeleteNetRequest + */ + netId: string; +} +export declare function DeleteNetRequestFromJSON(json: any): DeleteNetRequest; +export declare function DeleteNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetRequest; +export declare function DeleteNetRequestToJSON(value?: DeleteNetRequest | null): any; diff --git a/dist/esm/models/DeleteNetRequest.js b/dist/esm/models/DeleteNetRequest.js new file mode 100644 index 00000000..cfe766fc --- /dev/null +++ b/dist/esm/models/DeleteNetRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteNetRequestFromJSON(json) { + return DeleteNetRequestFromJSONTyped(json, false); +} +export function DeleteNetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} +export function DeleteNetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/DeleteNetResponse.d.ts b/dist/esm/models/DeleteNetResponse.d.ts new file mode 100644 index 00000000..45dbc5b6 --- /dev/null +++ b/dist/esm/models/DeleteNetResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNetResponse + */ +export interface DeleteNetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNetResponseFromJSON(json: any): DeleteNetResponse; +export declare function DeleteNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetResponse; +export declare function DeleteNetResponseToJSON(value?: DeleteNetResponse | null): any; diff --git a/dist/esm/models/DeleteNetResponse.js b/dist/esm/models/DeleteNetResponse.js new file mode 100644 index 00000000..7acc9a15 --- /dev/null +++ b/dist/esm/models/DeleteNetResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteNetResponseFromJSON(json) { + return DeleteNetResponseFromJSONTyped(json, false); +} +export function DeleteNetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteNetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteNicRequest.d.ts b/dist/esm/models/DeleteNicRequest.d.ts new file mode 100644 index 00000000..d5cfc44a --- /dev/null +++ b/dist/esm/models/DeleteNicRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteNicRequest + */ +export interface DeleteNicRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNicRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC you want to delete. + * @type {string} + * @memberof DeleteNicRequest + */ + nicId: string; +} +export declare function DeleteNicRequestFromJSON(json: any): DeleteNicRequest; +export declare function DeleteNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNicRequest; +export declare function DeleteNicRequestToJSON(value?: DeleteNicRequest | null): any; diff --git a/dist/esm/models/DeleteNicRequest.js b/dist/esm/models/DeleteNicRequest.js new file mode 100644 index 00000000..fbc68630 --- /dev/null +++ b/dist/esm/models/DeleteNicRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteNicRequestFromJSON(json) { + return DeleteNicRequestFromJSONTyped(json, false); +} +export function DeleteNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + }; +} +export function DeleteNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NicId': value.nicId, + }; +} diff --git a/dist/esm/models/DeleteNicResponse.d.ts b/dist/esm/models/DeleteNicResponse.d.ts new file mode 100644 index 00000000..ac0fc104 --- /dev/null +++ b/dist/esm/models/DeleteNicResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteNicResponse + */ +export interface DeleteNicResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteNicResponseFromJSON(json: any): DeleteNicResponse; +export declare function DeleteNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNicResponse; +export declare function DeleteNicResponseToJSON(value?: DeleteNicResponse | null): any; diff --git a/dist/esm/models/DeleteNicResponse.js b/dist/esm/models/DeleteNicResponse.js new file mode 100644 index 00000000..672ddf76 --- /dev/null +++ b/dist/esm/models/DeleteNicResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteNicResponseFromJSON(json) { + return DeleteNicResponseFromJSONTyped(json, false); +} +export function DeleteNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeletePublicIpRequest.d.ts b/dist/esm/models/DeletePublicIpRequest.d.ts new file mode 100644 index 00000000..ae64d9fc --- /dev/null +++ b/dist/esm/models/DeletePublicIpRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeletePublicIpRequest + */ +export interface DeletePublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeletePublicIpRequest + */ + dryRun?: boolean; + /** + * The public IP. In the public Cloud, this parameter is required. + * @type {string} + * @memberof DeletePublicIpRequest + */ + publicIp?: string; + /** + * The ID representing the association of the public IP with the VM or the NIC. In a Net, this parameter is required. + * @type {string} + * @memberof DeletePublicIpRequest + */ + publicIpId?: string; +} +export declare function DeletePublicIpRequestFromJSON(json: any): DeletePublicIpRequest; +export declare function DeletePublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePublicIpRequest; +export declare function DeletePublicIpRequestToJSON(value?: DeletePublicIpRequest | null): any; diff --git a/dist/esm/models/DeletePublicIpRequest.js b/dist/esm/models/DeletePublicIpRequest.js new file mode 100644 index 00000000..fe2ad703 --- /dev/null +++ b/dist/esm/models/DeletePublicIpRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeletePublicIpRequestFromJSON(json) { + return DeletePublicIpRequestFromJSONTyped(json, false); +} +export function DeletePublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} +export function DeletePublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + }; +} diff --git a/dist/esm/models/DeletePublicIpResponse.d.ts b/dist/esm/models/DeletePublicIpResponse.d.ts new file mode 100644 index 00000000..98d8405a --- /dev/null +++ b/dist/esm/models/DeletePublicIpResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeletePublicIpResponse + */ +export interface DeletePublicIpResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeletePublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeletePublicIpResponseFromJSON(json: any): DeletePublicIpResponse; +export declare function DeletePublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePublicIpResponse; +export declare function DeletePublicIpResponseToJSON(value?: DeletePublicIpResponse | null): any; diff --git a/dist/esm/models/DeletePublicIpResponse.js b/dist/esm/models/DeletePublicIpResponse.js new file mode 100644 index 00000000..1fc2836b --- /dev/null +++ b/dist/esm/models/DeletePublicIpResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeletePublicIpResponseFromJSON(json) { + return DeletePublicIpResponseFromJSONTyped(json, false); +} +export function DeletePublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeletePublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteRouteRequest.d.ts b/dist/esm/models/DeleteRouteRequest.d.ts new file mode 100644 index 00000000..9d2793b7 --- /dev/null +++ b/dist/esm/models/DeleteRouteRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteRouteRequest + */ +export interface DeleteRouteRequest { + /** + * The exact IP range for the route. + * @type {string} + * @memberof DeleteRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the route table from which you want to delete a route. + * @type {string} + * @memberof DeleteRouteRequest + */ + routeTableId: string; +} +export declare function DeleteRouteRequestFromJSON(json: any): DeleteRouteRequest; +export declare function DeleteRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteRequest; +export declare function DeleteRouteRequestToJSON(value?: DeleteRouteRequest | null): any; diff --git a/dist/esm/models/DeleteRouteRequest.js b/dist/esm/models/DeleteRouteRequest.js new file mode 100644 index 00000000..cadc5b16 --- /dev/null +++ b/dist/esm/models/DeleteRouteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteRouteRequestFromJSON(json) { + return DeleteRouteRequestFromJSONTyped(json, false); +} +export function DeleteRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + }; +} +export function DeleteRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + }; +} diff --git a/dist/esm/models/DeleteRouteResponse.d.ts b/dist/esm/models/DeleteRouteResponse.d.ts new file mode 100644 index 00000000..0b70ac67 --- /dev/null +++ b/dist/esm/models/DeleteRouteResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface DeleteRouteResponse + */ +export interface DeleteRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof DeleteRouteResponse + */ + routeTable?: RouteTable; +} +export declare function DeleteRouteResponseFromJSON(json: any): DeleteRouteResponse; +export declare function DeleteRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteResponse; +export declare function DeleteRouteResponseToJSON(value?: DeleteRouteResponse | null): any; diff --git a/dist/esm/models/DeleteRouteResponse.js b/dist/esm/models/DeleteRouteResponse.js new file mode 100644 index 00000000..663fc159 --- /dev/null +++ b/dist/esm/models/DeleteRouteResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RouteTableFromJSON, RouteTableToJSON, } from './RouteTable'; +export function DeleteRouteResponseFromJSON(json) { + return DeleteRouteResponseFromJSONTyped(json, false); +} +export function DeleteRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} +export function DeleteRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} diff --git a/dist/esm/models/DeleteRouteTableRequest.d.ts b/dist/esm/models/DeleteRouteTableRequest.d.ts new file mode 100644 index 00000000..7e1cdb85 --- /dev/null +++ b/dist/esm/models/DeleteRouteTableRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteRouteTableRequest + */ +export interface DeleteRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the route table you want to delete. + * @type {string} + * @memberof DeleteRouteTableRequest + */ + routeTableId: string; +} +export declare function DeleteRouteTableRequestFromJSON(json: any): DeleteRouteTableRequest; +export declare function DeleteRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteTableRequest; +export declare function DeleteRouteTableRequestToJSON(value?: DeleteRouteTableRequest | null): any; diff --git a/dist/esm/models/DeleteRouteTableRequest.js b/dist/esm/models/DeleteRouteTableRequest.js new file mode 100644 index 00000000..04317ab6 --- /dev/null +++ b/dist/esm/models/DeleteRouteTableRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteRouteTableRequestFromJSON(json) { + return DeleteRouteTableRequestFromJSONTyped(json, false); +} +export function DeleteRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + }; +} +export function DeleteRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + }; +} diff --git a/dist/esm/models/DeleteRouteTableResponse.d.ts b/dist/esm/models/DeleteRouteTableResponse.d.ts new file mode 100644 index 00000000..c14b3ce8 --- /dev/null +++ b/dist/esm/models/DeleteRouteTableResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteRouteTableResponse + */ +export interface DeleteRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteRouteTableResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteRouteTableResponseFromJSON(json: any): DeleteRouteTableResponse; +export declare function DeleteRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteTableResponse; +export declare function DeleteRouteTableResponseToJSON(value?: DeleteRouteTableResponse | null): any; diff --git a/dist/esm/models/DeleteRouteTableResponse.js b/dist/esm/models/DeleteRouteTableResponse.js new file mode 100644 index 00000000..e39b62bb --- /dev/null +++ b/dist/esm/models/DeleteRouteTableResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteRouteTableResponseFromJSON(json) { + return DeleteRouteTableResponseFromJSONTyped(json, false); +} +export function DeleteRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteSecurityGroupRequest.d.ts b/dist/esm/models/DeleteSecurityGroupRequest.d.ts new file mode 100644 index 00000000..25bb837e --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteSecurityGroupRequest + */ +export interface DeleteSecurityGroupRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSecurityGroupRequest + */ + dryRun?: boolean; + /** + * The ID of the security group you want to delete. + * @type {string} + * @memberof DeleteSecurityGroupRequest + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof DeleteSecurityGroupRequest + */ + securityGroupName?: string; +} +export declare function DeleteSecurityGroupRequestFromJSON(json: any): DeleteSecurityGroupRequest; +export declare function DeleteSecurityGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRequest; +export declare function DeleteSecurityGroupRequestToJSON(value?: DeleteSecurityGroupRequest | null): any; diff --git a/dist/esm/models/DeleteSecurityGroupRequest.js b/dist/esm/models/DeleteSecurityGroupRequest.js new file mode 100644 index 00000000..340e5104 --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteSecurityGroupRequestFromJSON(json) { + return DeleteSecurityGroupRequestFromJSONTyped(json, false); +} +export function DeleteSecurityGroupRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +export function DeleteSecurityGroupRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} diff --git a/dist/esm/models/DeleteSecurityGroupResponse.d.ts b/dist/esm/models/DeleteSecurityGroupResponse.d.ts new file mode 100644 index 00000000..5611e33d --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteSecurityGroupResponse + */ +export interface DeleteSecurityGroupResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSecurityGroupResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteSecurityGroupResponseFromJSON(json: any): DeleteSecurityGroupResponse; +export declare function DeleteSecurityGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupResponse; +export declare function DeleteSecurityGroupResponseToJSON(value?: DeleteSecurityGroupResponse | null): any; diff --git a/dist/esm/models/DeleteSecurityGroupResponse.js b/dist/esm/models/DeleteSecurityGroupResponse.js new file mode 100644 index 00000000..a102452d --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteSecurityGroupResponseFromJSON(json) { + return DeleteSecurityGroupResponseFromJSONTyped(json, false); +} +export function DeleteSecurityGroupResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteSecurityGroupResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteSecurityGroupRuleRequest.d.ts b/dist/esm/models/DeleteSecurityGroupRuleRequest.d.ts new file mode 100644 index 00000000..512345f8 --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupRuleRequest.d.ts @@ -0,0 +1,82 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SecurityGroupRule } from './SecurityGroupRule'; +/** + * + * @export + * @interface DeleteSecurityGroupRuleRequest + */ +export interface DeleteSecurityGroupRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSecurityGroupRuleRequest + */ + dryRun?: boolean; + /** + * The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + flow: string; + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof DeleteSecurityGroupRuleRequest + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + ipProtocol?: string; + /** + * The IP range for the security group rule, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + ipRange?: string; + /** + * One or more rules you want to delete from the security group. + * @type {Array} + * @memberof DeleteSecurityGroupRuleRequest + */ + rules?: Array; + /** + * The account ID of the owner of the security group you want to delete a rule from. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupAccountIdToUnlink?: string; + /** + * The ID of the security group you want to delete a rule from. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupId: string; + /** + * The ID of the source security group. If you are in the Public Cloud, you can also specify the name of the source security group. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupNameToUnlink?: string; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof DeleteSecurityGroupRuleRequest + */ + toPortRange?: number; +} +export declare function DeleteSecurityGroupRuleRequestFromJSON(json: any): DeleteSecurityGroupRuleRequest; +export declare function DeleteSecurityGroupRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRuleRequest; +export declare function DeleteSecurityGroupRuleRequestToJSON(value?: DeleteSecurityGroupRuleRequest | null): any; diff --git a/dist/esm/models/DeleteSecurityGroupRuleRequest.js b/dist/esm/models/DeleteSecurityGroupRuleRequest.js new file mode 100644 index 00000000..402033e5 --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupRuleRequest.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { SecurityGroupRuleFromJSON, SecurityGroupRuleToJSON, } from './SecurityGroupRule'; +export function DeleteSecurityGroupRuleRequestFromJSON(json) { + return DeleteSecurityGroupRuleRequestFromJSONTyped(json, false); +} +export function DeleteSecurityGroupRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flow': json['Flow'], + 'fromPortRange': !exists(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !exists(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'rules': !exists(json, 'Rules') ? undefined : (json['Rules'].map(SecurityGroupRuleFromJSON)), + 'securityGroupAccountIdToUnlink': !exists(json, 'SecurityGroupAccountIdToUnlink') ? undefined : json['SecurityGroupAccountIdToUnlink'], + 'securityGroupId': json['SecurityGroupId'], + 'securityGroupNameToUnlink': !exists(json, 'SecurityGroupNameToUnlink') ? undefined : json['SecurityGroupNameToUnlink'], + 'toPortRange': !exists(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} +export function DeleteSecurityGroupRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Flow': value.flow, + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRange': value.ipRange, + 'Rules': value.rules === undefined ? undefined : (value.rules.map(SecurityGroupRuleToJSON)), + 'SecurityGroupAccountIdToUnlink': value.securityGroupAccountIdToUnlink, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupNameToUnlink': value.securityGroupNameToUnlink, + 'ToPortRange': value.toPortRange, + }; +} diff --git a/dist/esm/models/DeleteSecurityGroupRuleResponse.d.ts b/dist/esm/models/DeleteSecurityGroupRuleResponse.d.ts new file mode 100644 index 00000000..c535c621 --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface DeleteSecurityGroupRuleResponse + */ +export interface DeleteSecurityGroupRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSecurityGroupRuleResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof DeleteSecurityGroupRuleResponse + */ + securityGroup?: SecurityGroup; +} +export declare function DeleteSecurityGroupRuleResponseFromJSON(json: any): DeleteSecurityGroupRuleResponse; +export declare function DeleteSecurityGroupRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRuleResponse; +export declare function DeleteSecurityGroupRuleResponseToJSON(value?: DeleteSecurityGroupRuleResponse | null): any; diff --git a/dist/esm/models/DeleteSecurityGroupRuleResponse.js b/dist/esm/models/DeleteSecurityGroupRuleResponse.js new file mode 100644 index 00000000..903233a3 --- /dev/null +++ b/dist/esm/models/DeleteSecurityGroupRuleResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SecurityGroupFromJSON, SecurityGroupToJSON, } from './SecurityGroup'; +export function DeleteSecurityGroupRuleResponseFromJSON(json) { + return DeleteSecurityGroupRuleResponseFromJSONTyped(json, false); +} +export function DeleteSecurityGroupRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroup': !exists(json, 'SecurityGroup') ? undefined : SecurityGroupFromJSON(json['SecurityGroup']), + }; +} +export function DeleteSecurityGroupRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroup': SecurityGroupToJSON(value.securityGroup), + }; +} diff --git a/dist/esm/models/DeleteServerCertificateRequest.d.ts b/dist/esm/models/DeleteServerCertificateRequest.d.ts new file mode 100644 index 00000000..50880a62 --- /dev/null +++ b/dist/esm/models/DeleteServerCertificateRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteServerCertificateRequest + */ +export interface DeleteServerCertificateRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteServerCertificateRequest + */ + dryRun?: boolean; + /** + * The name of the server certificate you want to delete. + * @type {string} + * @memberof DeleteServerCertificateRequest + */ + name: string; +} +export declare function DeleteServerCertificateRequestFromJSON(json: any): DeleteServerCertificateRequest; +export declare function DeleteServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteServerCertificateRequest; +export declare function DeleteServerCertificateRequestToJSON(value?: DeleteServerCertificateRequest | null): any; diff --git a/dist/esm/models/DeleteServerCertificateRequest.js b/dist/esm/models/DeleteServerCertificateRequest.js new file mode 100644 index 00000000..e541d061 --- /dev/null +++ b/dist/esm/models/DeleteServerCertificateRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteServerCertificateRequestFromJSON(json) { + return DeleteServerCertificateRequestFromJSONTyped(json, false); +} +export function DeleteServerCertificateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + }; +} +export function DeleteServerCertificateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Name': value.name, + }; +} diff --git a/dist/esm/models/DeleteServerCertificateResponse.d.ts b/dist/esm/models/DeleteServerCertificateResponse.d.ts new file mode 100644 index 00000000..2b400b72 --- /dev/null +++ b/dist/esm/models/DeleteServerCertificateResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteServerCertificateResponse + */ +export interface DeleteServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteServerCertificateResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteServerCertificateResponseFromJSON(json: any): DeleteServerCertificateResponse; +export declare function DeleteServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteServerCertificateResponse; +export declare function DeleteServerCertificateResponseToJSON(value?: DeleteServerCertificateResponse | null): any; diff --git a/dist/esm/models/DeleteServerCertificateResponse.js b/dist/esm/models/DeleteServerCertificateResponse.js new file mode 100644 index 00000000..9c9330da --- /dev/null +++ b/dist/esm/models/DeleteServerCertificateResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteServerCertificateResponseFromJSON(json) { + return DeleteServerCertificateResponseFromJSONTyped(json, false); +} +export function DeleteServerCertificateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteServerCertificateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteSnapshotRequest.d.ts b/dist/esm/models/DeleteSnapshotRequest.d.ts new file mode 100644 index 00000000..685ccc85 --- /dev/null +++ b/dist/esm/models/DeleteSnapshotRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteSnapshotRequest + */ +export interface DeleteSnapshotRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSnapshotRequest + */ + dryRun?: boolean; + /** + * The ID of the snapshot you want to delete. + * @type {string} + * @memberof DeleteSnapshotRequest + */ + snapshotId: string; +} +export declare function DeleteSnapshotRequestFromJSON(json: any): DeleteSnapshotRequest; +export declare function DeleteSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSnapshotRequest; +export declare function DeleteSnapshotRequestToJSON(value?: DeleteSnapshotRequest | null): any; diff --git a/dist/esm/models/DeleteSnapshotRequest.js b/dist/esm/models/DeleteSnapshotRequest.js new file mode 100644 index 00000000..adaafdc1 --- /dev/null +++ b/dist/esm/models/DeleteSnapshotRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteSnapshotRequestFromJSON(json) { + return DeleteSnapshotRequestFromJSONTyped(json, false); +} +export function DeleteSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'snapshotId': json['SnapshotId'], + }; +} +export function DeleteSnapshotRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'SnapshotId': value.snapshotId, + }; +} diff --git a/dist/esm/models/DeleteSnapshotResponse.d.ts b/dist/esm/models/DeleteSnapshotResponse.d.ts new file mode 100644 index 00000000..56d8d191 --- /dev/null +++ b/dist/esm/models/DeleteSnapshotResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteSnapshotResponse + */ +export interface DeleteSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSnapshotResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteSnapshotResponseFromJSON(json: any): DeleteSnapshotResponse; +export declare function DeleteSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSnapshotResponse; +export declare function DeleteSnapshotResponseToJSON(value?: DeleteSnapshotResponse | null): any; diff --git a/dist/esm/models/DeleteSnapshotResponse.js b/dist/esm/models/DeleteSnapshotResponse.js new file mode 100644 index 00000000..eb96a10f --- /dev/null +++ b/dist/esm/models/DeleteSnapshotResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteSnapshotResponseFromJSON(json) { + return DeleteSnapshotResponseFromJSONTyped(json, false); +} +export function DeleteSnapshotResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteSnapshotResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteSubnetRequest.d.ts b/dist/esm/models/DeleteSubnetRequest.d.ts new file mode 100644 index 00000000..643f9f1e --- /dev/null +++ b/dist/esm/models/DeleteSubnetRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteSubnetRequest + */ +export interface DeleteSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSubnetRequest + */ + dryRun?: boolean; + /** + * The ID of the Subnet you want to delete. + * @type {string} + * @memberof DeleteSubnetRequest + */ + subnetId: string; +} +export declare function DeleteSubnetRequestFromJSON(json: any): DeleteSubnetRequest; +export declare function DeleteSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSubnetRequest; +export declare function DeleteSubnetRequestToJSON(value?: DeleteSubnetRequest | null): any; diff --git a/dist/esm/models/DeleteSubnetRequest.js b/dist/esm/models/DeleteSubnetRequest.js new file mode 100644 index 00000000..1d0cd2c5 --- /dev/null +++ b/dist/esm/models/DeleteSubnetRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteSubnetRequestFromJSON(json) { + return DeleteSubnetRequestFromJSONTyped(json, false); +} +export function DeleteSubnetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'subnetId': json['SubnetId'], + }; +} +export function DeleteSubnetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/DeleteSubnetResponse.d.ts b/dist/esm/models/DeleteSubnetResponse.d.ts new file mode 100644 index 00000000..b7f91b21 --- /dev/null +++ b/dist/esm/models/DeleteSubnetResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteSubnetResponse + */ +export interface DeleteSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSubnetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteSubnetResponseFromJSON(json: any): DeleteSubnetResponse; +export declare function DeleteSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSubnetResponse; +export declare function DeleteSubnetResponseToJSON(value?: DeleteSubnetResponse | null): any; diff --git a/dist/esm/models/DeleteSubnetResponse.js b/dist/esm/models/DeleteSubnetResponse.js new file mode 100644 index 00000000..71663568 --- /dev/null +++ b/dist/esm/models/DeleteSubnetResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteSubnetResponseFromJSON(json) { + return DeleteSubnetResponseFromJSONTyped(json, false); +} +export function DeleteSubnetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteSubnetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteTagsRequest.d.ts b/dist/esm/models/DeleteTagsRequest.d.ts new file mode 100644 index 00000000..9e001974 --- /dev/null +++ b/dist/esm/models/DeleteTagsRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * + * @export + * @interface DeleteTagsRequest + */ +export interface DeleteTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteTagsRequest + */ + dryRun?: boolean; + /** + * One or more resource IDs. + * @type {Array} + * @memberof DeleteTagsRequest + */ + resourceIds: Array; + /** + * One or more tags to delete (if you set a tag value, only the tags matching exactly this value are deleted). + * @type {Array} + * @memberof DeleteTagsRequest + */ + tags: Array; +} +export declare function DeleteTagsRequestFromJSON(json: any): DeleteTagsRequest; +export declare function DeleteTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTagsRequest; +export declare function DeleteTagsRequestToJSON(value?: DeleteTagsRequest | null): any; diff --git a/dist/esm/models/DeleteTagsRequest.js b/dist/esm/models/DeleteTagsRequest.js new file mode 100644 index 00000000..1b5126fc --- /dev/null +++ b/dist/esm/models/DeleteTagsRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function DeleteTagsRequestFromJSON(json) { + return DeleteTagsRequestFromJSONTyped(json, false); +} +export function DeleteTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'resourceIds': json['ResourceIds'], + 'tags': (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function DeleteTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ResourceIds': value.resourceIds, + 'Tags': (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/DeleteTagsResponse.d.ts b/dist/esm/models/DeleteTagsResponse.d.ts new file mode 100644 index 00000000..d91dea1b --- /dev/null +++ b/dist/esm/models/DeleteTagsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteTagsResponse + */ +export interface DeleteTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteTagsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteTagsResponseFromJSON(json: any): DeleteTagsResponse; +export declare function DeleteTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTagsResponse; +export declare function DeleteTagsResponseToJSON(value?: DeleteTagsResponse | null): any; diff --git a/dist/esm/models/DeleteTagsResponse.js b/dist/esm/models/DeleteTagsResponse.js new file mode 100644 index 00000000..cc158391 --- /dev/null +++ b/dist/esm/models/DeleteTagsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteTagsResponseFromJSON(json) { + return DeleteTagsResponseFromJSONTyped(json, false); +} +export function DeleteTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteVirtualGatewayRequest.d.ts b/dist/esm/models/DeleteVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..f7051cee --- /dev/null +++ b/dist/esm/models/DeleteVirtualGatewayRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVirtualGatewayRequest + */ +export interface DeleteVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the virtual gateway you want to delete. + * @type {string} + * @memberof DeleteVirtualGatewayRequest + */ + virtualGatewayId: string; +} +export declare function DeleteVirtualGatewayRequestFromJSON(json: any): DeleteVirtualGatewayRequest; +export declare function DeleteVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVirtualGatewayRequest; +export declare function DeleteVirtualGatewayRequestToJSON(value?: DeleteVirtualGatewayRequest | null): any; diff --git a/dist/esm/models/DeleteVirtualGatewayRequest.js b/dist/esm/models/DeleteVirtualGatewayRequest.js new file mode 100644 index 00000000..a419a32a --- /dev/null +++ b/dist/esm/models/DeleteVirtualGatewayRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteVirtualGatewayRequestFromJSON(json) { + return DeleteVirtualGatewayRequestFromJSONTyped(json, false); +} +export function DeleteVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +export function DeleteVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/DeleteVirtualGatewayResponse.d.ts b/dist/esm/models/DeleteVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..fc6ead48 --- /dev/null +++ b/dist/esm/models/DeleteVirtualGatewayResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVirtualGatewayResponse + */ +export interface DeleteVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVirtualGatewayResponseFromJSON(json: any): DeleteVirtualGatewayResponse; +export declare function DeleteVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVirtualGatewayResponse; +export declare function DeleteVirtualGatewayResponseToJSON(value?: DeleteVirtualGatewayResponse | null): any; diff --git a/dist/esm/models/DeleteVirtualGatewayResponse.js b/dist/esm/models/DeleteVirtualGatewayResponse.js new file mode 100644 index 00000000..842a6e56 --- /dev/null +++ b/dist/esm/models/DeleteVirtualGatewayResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteVirtualGatewayResponseFromJSON(json) { + return DeleteVirtualGatewayResponseFromJSONTyped(json, false); +} +export function DeleteVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteVmsRequest.d.ts b/dist/esm/models/DeleteVmsRequest.d.ts new file mode 100644 index 00000000..ba73bd06 --- /dev/null +++ b/dist/esm/models/DeleteVmsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVmsRequest + */ +export interface DeleteVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof DeleteVmsRequest + */ + vmIds: Array; +} +export declare function DeleteVmsRequestFromJSON(json: any): DeleteVmsRequest; +export declare function DeleteVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVmsRequest; +export declare function DeleteVmsRequestToJSON(value?: DeleteVmsRequest | null): any; diff --git a/dist/esm/models/DeleteVmsRequest.js b/dist/esm/models/DeleteVmsRequest.js new file mode 100644 index 00000000..a6227433 --- /dev/null +++ b/dist/esm/models/DeleteVmsRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteVmsRequestFromJSON(json) { + return DeleteVmsRequestFromJSONTyped(json, false); +} +export function DeleteVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} +export function DeleteVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/DeleteVmsResponse.d.ts b/dist/esm/models/DeleteVmsResponse.d.ts new file mode 100644 index 00000000..ffa1e3c0 --- /dev/null +++ b/dist/esm/models/DeleteVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmState } from './VmState'; +/** + * + * @export + * @interface DeleteVmsResponse + */ +export interface DeleteVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more terminated VMs. + * @type {Array} + * @memberof DeleteVmsResponse + */ + vms?: Array; +} +export declare function DeleteVmsResponseFromJSON(json: any): DeleteVmsResponse; +export declare function DeleteVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVmsResponse; +export declare function DeleteVmsResponseToJSON(value?: DeleteVmsResponse | null): any; diff --git a/dist/esm/models/DeleteVmsResponse.js b/dist/esm/models/DeleteVmsResponse.js new file mode 100644 index 00000000..6e6203f5 --- /dev/null +++ b/dist/esm/models/DeleteVmsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmStateFromJSON, VmStateToJSON, } from './VmState'; +export function DeleteVmsResponseFromJSON(json) { + return DeleteVmsResponseFromJSONTyped(json, false); +} +export function DeleteVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : (json['Vms'].map(VmStateFromJSON)), + }; +} +export function DeleteVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmStateToJSON)), + }; +} diff --git a/dist/esm/models/DeleteVolumeRequest.d.ts b/dist/esm/models/DeleteVolumeRequest.d.ts new file mode 100644 index 00000000..0c8bb5ea --- /dev/null +++ b/dist/esm/models/DeleteVolumeRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVolumeRequest + */ +export interface DeleteVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVolumeRequest + */ + dryRun?: boolean; + /** + * The ID of the volume you want to delete. + * @type {string} + * @memberof DeleteVolumeRequest + */ + volumeId: string; +} +export declare function DeleteVolumeRequestFromJSON(json: any): DeleteVolumeRequest; +export declare function DeleteVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVolumeRequest; +export declare function DeleteVolumeRequestToJSON(value?: DeleteVolumeRequest | null): any; diff --git a/dist/esm/models/DeleteVolumeRequest.js b/dist/esm/models/DeleteVolumeRequest.js new file mode 100644 index 00000000..ddaed744 --- /dev/null +++ b/dist/esm/models/DeleteVolumeRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteVolumeRequestFromJSON(json) { + return DeleteVolumeRequestFromJSONTyped(json, false); +} +export function DeleteVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'volumeId': json['VolumeId'], + }; +} +export function DeleteVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/DeleteVolumeResponse.d.ts b/dist/esm/models/DeleteVolumeResponse.d.ts new file mode 100644 index 00000000..01388489 --- /dev/null +++ b/dist/esm/models/DeleteVolumeResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVolumeResponse + */ +export interface DeleteVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVolumeResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVolumeResponseFromJSON(json: any): DeleteVolumeResponse; +export declare function DeleteVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVolumeResponse; +export declare function DeleteVolumeResponseToJSON(value?: DeleteVolumeResponse | null): any; diff --git a/dist/esm/models/DeleteVolumeResponse.js b/dist/esm/models/DeleteVolumeResponse.js new file mode 100644 index 00000000..f926a599 --- /dev/null +++ b/dist/esm/models/DeleteVolumeResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteVolumeResponseFromJSON(json) { + return DeleteVolumeResponseFromJSONTyped(json, false); +} +export function DeleteVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteVpnConnectionRequest.d.ts b/dist/esm/models/DeleteVpnConnectionRequest.d.ts new file mode 100644 index 00000000..80d78a92 --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVpnConnectionRequest + */ +export interface DeleteVpnConnectionRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVpnConnectionRequest + */ + dryRun?: boolean; + /** + * The ID of the VPN connection you want to delete. + * @type {string} + * @memberof DeleteVpnConnectionRequest + */ + vpnConnectionId: string; +} +export declare function DeleteVpnConnectionRequestFromJSON(json: any): DeleteVpnConnectionRequest; +export declare function DeleteVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRequest; +export declare function DeleteVpnConnectionRequestToJSON(value?: DeleteVpnConnectionRequest | null): any; diff --git a/dist/esm/models/DeleteVpnConnectionRequest.js b/dist/esm/models/DeleteVpnConnectionRequest.js new file mode 100644 index 00000000..24113f1c --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteVpnConnectionRequestFromJSON(json) { + return DeleteVpnConnectionRequestFromJSONTyped(json, false); +} +export function DeleteVpnConnectionRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} +export function DeleteVpnConnectionRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} diff --git a/dist/esm/models/DeleteVpnConnectionResponse.d.ts b/dist/esm/models/DeleteVpnConnectionResponse.d.ts new file mode 100644 index 00000000..76e9cb69 --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVpnConnectionResponse + */ +export interface DeleteVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVpnConnectionResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVpnConnectionResponseFromJSON(json: any): DeleteVpnConnectionResponse; +export declare function DeleteVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionResponse; +export declare function DeleteVpnConnectionResponseToJSON(value?: DeleteVpnConnectionResponse | null): any; diff --git a/dist/esm/models/DeleteVpnConnectionResponse.js b/dist/esm/models/DeleteVpnConnectionResponse.js new file mode 100644 index 00000000..606694b3 --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteVpnConnectionResponseFromJSON(json) { + return DeleteVpnConnectionResponseFromJSONTyped(json, false); +} +export function DeleteVpnConnectionResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteVpnConnectionResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeleteVpnConnectionRouteRequest.d.ts b/dist/esm/models/DeleteVpnConnectionRouteRequest.d.ts new file mode 100644 index 00000000..5eea48b6 --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionRouteRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteVpnConnectionRouteRequest + */ +export interface DeleteVpnConnectionRouteRequest { + /** + * The network prefix of the route to delete, in CIDR notation (for example, 10.12.0.0/16). + * @type {string} + * @memberof DeleteVpnConnectionRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVpnConnectionRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the target VPN connection of the static route to delete. + * @type {string} + * @memberof DeleteVpnConnectionRouteRequest + */ + vpnConnectionId: string; +} +export declare function DeleteVpnConnectionRouteRequestFromJSON(json: any): DeleteVpnConnectionRouteRequest; +export declare function DeleteVpnConnectionRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRouteRequest; +export declare function DeleteVpnConnectionRouteRequestToJSON(value?: DeleteVpnConnectionRouteRequest | null): any; diff --git a/dist/esm/models/DeleteVpnConnectionRouteRequest.js b/dist/esm/models/DeleteVpnConnectionRouteRequest.js new file mode 100644 index 00000000..a78bd8b1 --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionRouteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeleteVpnConnectionRouteRequestFromJSON(json) { + return DeleteVpnConnectionRouteRequestFromJSONTyped(json, false); +} +export function DeleteVpnConnectionRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} +export function DeleteVpnConnectionRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} diff --git a/dist/esm/models/DeleteVpnConnectionRouteResponse.d.ts b/dist/esm/models/DeleteVpnConnectionRouteResponse.d.ts new file mode 100644 index 00000000..77677299 --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionRouteResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeleteVpnConnectionRouteResponse + */ +export interface DeleteVpnConnectionRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVpnConnectionRouteResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeleteVpnConnectionRouteResponseFromJSON(json: any): DeleteVpnConnectionRouteResponse; +export declare function DeleteVpnConnectionRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRouteResponse; +export declare function DeleteVpnConnectionRouteResponseToJSON(value?: DeleteVpnConnectionRouteResponse | null): any; diff --git a/dist/esm/models/DeleteVpnConnectionRouteResponse.js b/dist/esm/models/DeleteVpnConnectionRouteResponse.js new file mode 100644 index 00000000..1a9f7beb --- /dev/null +++ b/dist/esm/models/DeleteVpnConnectionRouteResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeleteVpnConnectionRouteResponseFromJSON(json) { + return DeleteVpnConnectionRouteResponseFromJSONTyped(json, false); +} +export function DeleteVpnConnectionRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeleteVpnConnectionRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DeregisterVmsInLoadBalancerRequest.d.ts b/dist/esm/models/DeregisterVmsInLoadBalancerRequest.d.ts new file mode 100644 index 00000000..54056803 --- /dev/null +++ b/dist/esm/models/DeregisterVmsInLoadBalancerRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeregisterVmsInLoadBalancerRequest + */ +export interface DeregisterVmsInLoadBalancerRequest { + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + backendVmIds: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + loadBalancerName: string; +} +export declare function DeregisterVmsInLoadBalancerRequestFromJSON(json: any): DeregisterVmsInLoadBalancerRequest; +export declare function DeregisterVmsInLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeregisterVmsInLoadBalancerRequest; +export declare function DeregisterVmsInLoadBalancerRequestToJSON(value?: DeregisterVmsInLoadBalancerRequest | null): any; diff --git a/dist/esm/models/DeregisterVmsInLoadBalancerRequest.js b/dist/esm/models/DeregisterVmsInLoadBalancerRequest.js new file mode 100644 index 00000000..58eb73a9 --- /dev/null +++ b/dist/esm/models/DeregisterVmsInLoadBalancerRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DeregisterVmsInLoadBalancerRequestFromJSON(json) { + return DeregisterVmsInLoadBalancerRequestFromJSONTyped(json, false); +} +export function DeregisterVmsInLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmIds': json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function DeregisterVmsInLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/DeregisterVmsInLoadBalancerResponse.d.ts b/dist/esm/models/DeregisterVmsInLoadBalancerResponse.d.ts new file mode 100644 index 00000000..1363a51f --- /dev/null +++ b/dist/esm/models/DeregisterVmsInLoadBalancerResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface DeregisterVmsInLoadBalancerResponse + */ +export interface DeregisterVmsInLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeregisterVmsInLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function DeregisterVmsInLoadBalancerResponseFromJSON(json: any): DeregisterVmsInLoadBalancerResponse; +export declare function DeregisterVmsInLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeregisterVmsInLoadBalancerResponse; +export declare function DeregisterVmsInLoadBalancerResponseToJSON(value?: DeregisterVmsInLoadBalancerResponse | null): any; diff --git a/dist/esm/models/DeregisterVmsInLoadBalancerResponse.js b/dist/esm/models/DeregisterVmsInLoadBalancerResponse.js new file mode 100644 index 00000000..99de6f45 --- /dev/null +++ b/dist/esm/models/DeregisterVmsInLoadBalancerResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function DeregisterVmsInLoadBalancerResponseFromJSON(json) { + return DeregisterVmsInLoadBalancerResponseFromJSONTyped(json, false); +} +export function DeregisterVmsInLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function DeregisterVmsInLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/DhcpOptionsSet.d.ts b/dist/esm/models/DhcpOptionsSet.d.ts new file mode 100644 index 00000000..3f21a3be --- /dev/null +++ b/dist/esm/models/DhcpOptionsSet.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the DHCP options set. + * @export + * @interface DhcpOptionsSet + */ +export interface DhcpOptionsSet { + /** + * If true, the DHCP options set is a default one. If false, it is not. + * @type {boolean} + * @memberof DhcpOptionsSet + */ + _default?: boolean; + /** + * The ID of the DHCP options set. + * @type {string} + * @memberof DhcpOptionsSet + */ + dhcpOptionsSetId?: string; + /** + * The domain name. + * @type {string} + * @memberof DhcpOptionsSet + */ + domainName?: string; + /** + * One or more IPs for the domain name servers. + * @type {Array} + * @memberof DhcpOptionsSet + */ + domainNameServers?: Array; + /** + * One or more IPs for the NTP servers. + * @type {Array} + * @memberof DhcpOptionsSet + */ + ntpServers?: Array; + /** + * One or more tags associated with the DHCP options set. + * @type {Array} + * @memberof DhcpOptionsSet + */ + tags?: Array; +} +export declare function DhcpOptionsSetFromJSON(json: any): DhcpOptionsSet; +export declare function DhcpOptionsSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): DhcpOptionsSet; +export declare function DhcpOptionsSetToJSON(value?: DhcpOptionsSet | null): any; diff --git a/dist/esm/models/DhcpOptionsSet.js b/dist/esm/models/DhcpOptionsSet.js new file mode 100644 index 00000000..3cb8daf6 --- /dev/null +++ b/dist/esm/models/DhcpOptionsSet.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function DhcpOptionsSetFromJSON(json) { + return DhcpOptionsSetFromJSONTyped(json, false); +} +export function DhcpOptionsSetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + '_default': !exists(json, 'Default') ? undefined : json['Default'], + 'dhcpOptionsSetId': !exists(json, 'DhcpOptionsSetId') ? undefined : json['DhcpOptionsSetId'], + 'domainName': !exists(json, 'DomainName') ? undefined : json['DomainName'], + 'domainNameServers': !exists(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'ntpServers': !exists(json, 'NtpServers') ? undefined : json['NtpServers'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function DhcpOptionsSetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Default': value._default, + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DomainName': value.domainName, + 'DomainNameServers': value.domainNameServers, + 'NtpServers': value.ntpServers, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/DirectLink.d.ts b/dist/esm/models/DirectLink.d.ts new file mode 100644 index 00000000..c0375d90 --- /dev/null +++ b/dist/esm/models/DirectLink.d.ts @@ -0,0 +1,68 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink. + * @export + * @interface DirectLink + */ +export interface DirectLink { + /** + * The account ID of the owner of the DirectLink. + * @type {string} + * @memberof DirectLink + */ + accountId?: string; + /** + * The physical link bandwidth (either 1 Gbps or 10 Gbps). + * @type {string} + * @memberof DirectLink + */ + bandwidth?: string; + /** + * The ID of the DirectLink (for example, dxcon-xxxxxxxx). + * @type {string} + * @memberof DirectLink + */ + directLinkId?: string; + /** + * The name of the DirectLink. + * @type {string} + * @memberof DirectLink + */ + directLinkName?: string; + /** + * The datacenter where the DirectLink is located. + * @type {string} + * @memberof DirectLink + */ + location?: string; + /** + * The Region in which the DirectLink has been created. + * @type {string} + * @memberof DirectLink + */ + regionName?: string; + /** + * The state of the DirectLink.
+ * * `requested`: The DirectLink is requested but the request has not been validated yet.
+ * * `pending`: The DirectLink request has been validated. It remains in the `pending` state until you establish the physical link.
+ * * `available`: The physical link is established and the connection is ready to use.
+ * * `deleting`: The deletion process is in progress.
+ * * `deleted`: The DirectLink is deleted. + * @type {string} + * @memberof DirectLink + */ + state?: string; +} +export declare function DirectLinkFromJSON(json: any): DirectLink; +export declare function DirectLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLink; +export declare function DirectLinkToJSON(value?: DirectLink | null): any; diff --git a/dist/esm/models/DirectLink.js b/dist/esm/models/DirectLink.js new file mode 100644 index 00000000..dcbb0579 --- /dev/null +++ b/dist/esm/models/DirectLink.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DirectLinkFromJSON(json) { + return DirectLinkFromJSONTyped(json, false); +} +export function DirectLinkFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'bandwidth': !exists(json, 'Bandwidth') ? undefined : json['Bandwidth'], + 'directLinkId': !exists(json, 'DirectLinkId') ? undefined : json['DirectLinkId'], + 'directLinkName': !exists(json, 'DirectLinkName') ? undefined : json['DirectLinkName'], + 'location': !exists(json, 'Location') ? undefined : json['Location'], + 'regionName': !exists(json, 'RegionName') ? undefined : json['RegionName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} +export function DirectLinkToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Bandwidth': value.bandwidth, + 'DirectLinkId': value.directLinkId, + 'DirectLinkName': value.directLinkName, + 'Location': value.location, + 'RegionName': value.regionName, + 'State': value.state, + }; +} diff --git a/dist/esm/models/DirectLinkInterface.d.ts b/dist/esm/models/DirectLinkInterface.d.ts new file mode 100644 index 00000000..19e24db6 --- /dev/null +++ b/dist/esm/models/DirectLinkInterface.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink interface. + * @export + * @interface DirectLinkInterface + */ +export interface DirectLinkInterface { + /** + * The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer's side of the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterface + */ + bgpAsn: number; + /** + * The BGP authentication key. + * @type {string} + * @memberof DirectLinkInterface + */ + bgpKey?: string; + /** + * The IP on the customer's side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + clientPrivateIp?: string; + /** + * The name of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + directLinkInterfaceName: string; + /** + * The IP on the OUTSCALE side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + outscalePrivateIp?: string; + /** + * The ID of the target virtual gateway. + * @type {string} + * @memberof DirectLinkInterface + */ + virtualGatewayId: string; + /** + * The VLAN number associated with the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterface + */ + vlan: number; +} +export declare function DirectLinkInterfaceFromJSON(json: any): DirectLinkInterface; +export declare function DirectLinkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLinkInterface; +export declare function DirectLinkInterfaceToJSON(value?: DirectLinkInterface | null): any; diff --git a/dist/esm/models/DirectLinkInterface.js b/dist/esm/models/DirectLinkInterface.js new file mode 100644 index 00000000..18b639e7 --- /dev/null +++ b/dist/esm/models/DirectLinkInterface.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DirectLinkInterfaceFromJSON(json) { + return DirectLinkInterfaceFromJSONTyped(json, false); +} +export function DirectLinkInterfaceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsn': json['BgpAsn'], + 'bgpKey': !exists(json, 'BgpKey') ? undefined : json['BgpKey'], + 'clientPrivateIp': !exists(json, 'ClientPrivateIp') ? undefined : json['ClientPrivateIp'], + 'directLinkInterfaceName': json['DirectLinkInterfaceName'], + 'outscalePrivateIp': !exists(json, 'OutscalePrivateIp') ? undefined : json['OutscalePrivateIp'], + 'virtualGatewayId': json['VirtualGatewayId'], + 'vlan': json['Vlan'], + }; +} +export function DirectLinkInterfaceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsn': value.bgpAsn, + 'BgpKey': value.bgpKey, + 'ClientPrivateIp': value.clientPrivateIp, + 'DirectLinkInterfaceName': value.directLinkInterfaceName, + 'OutscalePrivateIp': value.outscalePrivateIp, + 'VirtualGatewayId': value.virtualGatewayId, + 'Vlan': value.vlan, + }; +} diff --git a/dist/esm/models/DirectLinkInterfaces.d.ts b/dist/esm/models/DirectLinkInterfaces.d.ts new file mode 100644 index 00000000..f34c49a0 --- /dev/null +++ b/dist/esm/models/DirectLinkInterfaces.d.ts @@ -0,0 +1,99 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink interfaces. + * @export + * @interface DirectLinkInterfaces + */ +export interface DirectLinkInterfaces { + /** + * The account ID of the owner of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + accountId?: string; + /** + * The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer's side of the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterfaces + */ + bgpAsn?: number; + /** + * The BGP authentication key. + * @type {string} + * @memberof DirectLinkInterfaces + */ + bgpKey?: string; + /** + * The IP on the customer's side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + clientPrivateIp?: string; + /** + * The ID of the DirectLink. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkId?: string; + /** + * The ID of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkInterfaceId?: string; + /** + * The name of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkInterfaceName?: string; + /** + * The type of the DirectLink interface (always `private`). + * @type {string} + * @memberof DirectLinkInterfaces + */ + interfaceType?: string; + /** + * The datacenter where the DirectLink interface is located. + * @type {string} + * @memberof DirectLinkInterfaces + */ + location?: string; + /** + * The IP on the OUTSCALE side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + outscalePrivateIp?: string; + /** + * The state of the DirectLink interface (`pending` \| `available` \| `deleting` \| `deleted` \| `confirming` \| `rejected` \| `expired`). + * @type {string} + * @memberof DirectLinkInterfaces + */ + state?: string; + /** + * The ID of the target virtual gateway. + * @type {string} + * @memberof DirectLinkInterfaces + */ + virtualGatewayId?: string; + /** + * The VLAN number associated with the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterfaces + */ + vlan?: number; +} +export declare function DirectLinkInterfacesFromJSON(json: any): DirectLinkInterfaces; +export declare function DirectLinkInterfacesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLinkInterfaces; +export declare function DirectLinkInterfacesToJSON(value?: DirectLinkInterfaces | null): any; diff --git a/dist/esm/models/DirectLinkInterfaces.js b/dist/esm/models/DirectLinkInterfaces.js new file mode 100644 index 00000000..8750cd9e --- /dev/null +++ b/dist/esm/models/DirectLinkInterfaces.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function DirectLinkInterfacesFromJSON(json) { + return DirectLinkInterfacesFromJSONTyped(json, false); +} +export function DirectLinkInterfacesFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'bgpAsn': !exists(json, 'BgpAsn') ? undefined : json['BgpAsn'], + 'bgpKey': !exists(json, 'BgpKey') ? undefined : json['BgpKey'], + 'clientPrivateIp': !exists(json, 'ClientPrivateIp') ? undefined : json['ClientPrivateIp'], + 'directLinkId': !exists(json, 'DirectLinkId') ? undefined : json['DirectLinkId'], + 'directLinkInterfaceId': !exists(json, 'DirectLinkInterfaceId') ? undefined : json['DirectLinkInterfaceId'], + 'directLinkInterfaceName': !exists(json, 'DirectLinkInterfaceName') ? undefined : json['DirectLinkInterfaceName'], + 'interfaceType': !exists(json, 'InterfaceType') ? undefined : json['InterfaceType'], + 'location': !exists(json, 'Location') ? undefined : json['Location'], + 'outscalePrivateIp': !exists(json, 'OutscalePrivateIp') ? undefined : json['OutscalePrivateIp'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vlan': !exists(json, 'Vlan') ? undefined : json['Vlan'], + }; +} +export function DirectLinkInterfacesToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'BgpAsn': value.bgpAsn, + 'BgpKey': value.bgpKey, + 'ClientPrivateIp': value.clientPrivateIp, + 'DirectLinkId': value.directLinkId, + 'DirectLinkInterfaceId': value.directLinkInterfaceId, + 'DirectLinkInterfaceName': value.directLinkInterfaceName, + 'InterfaceType': value.interfaceType, + 'Location': value.location, + 'OutscalePrivateIp': value.outscalePrivateIp, + 'State': value.state, + 'VirtualGatewayId': value.virtualGatewayId, + 'Vlan': value.vlan, + }; +} diff --git a/dist/esm/models/ErrorResponse.d.ts b/dist/esm/models/ErrorResponse.d.ts new file mode 100644 index 00000000..53fb8784 --- /dev/null +++ b/dist/esm/models/ErrorResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Errors } from './Errors'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ErrorResponse + */ +export interface ErrorResponse { + /** + * One or more errors. + * @type {Array} + * @memberof ErrorResponse + */ + errors?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ErrorResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ErrorResponseFromJSON(json: any): ErrorResponse; +export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse; +export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any; diff --git a/dist/esm/models/ErrorResponse.js b/dist/esm/models/ErrorResponse.js new file mode 100644 index 00000000..b9091318 --- /dev/null +++ b/dist/esm/models/ErrorResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ErrorsFromJSON, ErrorsToJSON, } from './Errors'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ErrorResponseFromJSON(json) { + return ErrorResponseFromJSONTyped(json, false); +} +export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'errors': !exists(json, 'Errors') ? undefined : (json['Errors'].map(ErrorsFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ErrorResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Errors': value.errors === undefined ? undefined : (value.errors.map(ErrorsToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/Errors.d.ts b/dist/esm/models/Errors.d.ts new file mode 100644 index 00000000..dd46224b --- /dev/null +++ b/dist/esm/models/Errors.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the errors. + * @export + * @interface Errors + */ +export interface Errors { + /** + * The code of the error. + * @type {string} + * @memberof Errors + */ + code?: string; + /** + * The details of the error. + * @type {string} + * @memberof Errors + */ + details?: string; + /** + * The type of the error. + * @type {string} + * @memberof Errors + */ + type?: string; +} +export declare function ErrorsFromJSON(json: any): Errors; +export declare function ErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Errors; +export declare function ErrorsToJSON(value?: Errors | null): any; diff --git a/dist/esm/models/Errors.js b/dist/esm/models/Errors.js new file mode 100644 index 00000000..1384a9a8 --- /dev/null +++ b/dist/esm/models/Errors.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ErrorsFromJSON(json) { + return ErrorsFromJSONTyped(json, false); +} +export function ErrorsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'code': !exists(json, 'Code') ? undefined : json['Code'], + 'details': !exists(json, 'Details') ? undefined : json['Details'], + 'type': !exists(json, 'Type') ? undefined : json['Type'], + }; +} +export function ErrorsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Code': value.code, + 'Details': value.details, + 'Type': value.type, + }; +} diff --git a/dist/esm/models/FiltersAccessKeys.d.ts b/dist/esm/models/FiltersAccessKeys.d.ts new file mode 100644 index 00000000..6ca9dd9c --- /dev/null +++ b/dist/esm/models/FiltersAccessKeys.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersAccessKeys + */ +export interface FiltersAccessKeys { + /** + * The IDs of the access keys. + * @type {Array} + * @memberof FiltersAccessKeys + */ + accessKeyIds?: Array; + /** + * The states of the access keys (`ACTIVE` \| `INACTIVE`). + * @type {Array} + * @memberof FiltersAccessKeys + */ + states?: Array; +} +export declare function FiltersAccessKeysFromJSON(json: any): FiltersAccessKeys; +export declare function FiltersAccessKeysFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersAccessKeys; +export declare function FiltersAccessKeysToJSON(value?: FiltersAccessKeys | null): any; diff --git a/dist/esm/models/FiltersAccessKeys.js b/dist/esm/models/FiltersAccessKeys.js new file mode 100644 index 00000000..cde47177 --- /dev/null +++ b/dist/esm/models/FiltersAccessKeys.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersAccessKeysFromJSON(json) { + return FiltersAccessKeysFromJSONTyped(json, false); +} +export function FiltersAccessKeysFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyIds': !exists(json, 'AccessKeyIds') ? undefined : json['AccessKeyIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + }; +} +export function FiltersAccessKeysToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyIds': value.accessKeyIds, + 'States': value.states, + }; +} diff --git a/dist/esm/models/FiltersApiAccessRule.d.ts b/dist/esm/models/FiltersApiAccessRule.d.ts new file mode 100644 index 00000000..24302d56 --- /dev/null +++ b/dist/esm/models/FiltersApiAccessRule.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersApiAccessRule + */ +export interface FiltersApiAccessRule { + /** + * One or more IDs of API access rules. + * @type {Array} + * @memberof FiltersApiAccessRule + */ + apiAccessRuleIds?: Array; + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + cns?: Array; + /** + * One or more descriptions of API access rules. + * @type {Array} + * @memberof FiltersApiAccessRule + */ + descriptions?: Array; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + ipRanges?: Array; +} +export declare function FiltersApiAccessRuleFromJSON(json: any): FiltersApiAccessRule; +export declare function FiltersApiAccessRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersApiAccessRule; +export declare function FiltersApiAccessRuleToJSON(value?: FiltersApiAccessRule | null): any; diff --git a/dist/esm/models/FiltersApiAccessRule.js b/dist/esm/models/FiltersApiAccessRule.js new file mode 100644 index 00000000..ea3e24df --- /dev/null +++ b/dist/esm/models/FiltersApiAccessRule.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersApiAccessRuleFromJSON(json) { + return FiltersApiAccessRuleFromJSONTyped(json, false); +} +export function FiltersApiAccessRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleIds': !exists(json, 'ApiAccessRuleIds') ? undefined : json['ApiAccessRuleIds'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +export function FiltersApiAccessRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleIds': value.apiAccessRuleIds, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Descriptions': value.descriptions, + 'IpRanges': value.ipRanges, + }; +} diff --git a/dist/esm/models/FiltersApiLog.d.ts b/dist/esm/models/FiltersApiLog.d.ts new file mode 100644 index 00000000..4bb7de9f --- /dev/null +++ b/dist/esm/models/FiltersApiLog.d.ts @@ -0,0 +1,75 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersApiLog + */ +export interface FiltersApiLog { + /** + * The access keys used for the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryAccessKeys?: Array; + /** + * The names of the APIs of the logged calls (always `oapi` for the OUTSCALE API). + * @type {Array} + * @memberof FiltersApiLog + */ + queryApiNames?: Array; + /** + * The names of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryCallNames?: Array; + /** + * The date after which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-14`). By default, this date is set to 48 hours before the `QueryDateBefore` parameter value. + * @type {Date} + * @memberof FiltersApiLog + */ + queryDateAfter?: Date; + /** + * The date before which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-30`). By default, this date is set to now, or 48 hours after the `QueryDateAfter` parameter value. + * @type {Date} + * @memberof FiltersApiLog + */ + queryDateBefore?: Date; + /** + * The IPs used for the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryIpAddresses?: Array; + /** + * The user agents of the HTTP requests of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryUserAgents?: Array; + /** + * The request IDs provided in the responses of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + requestIds?: Array; + /** + * The HTTP status codes of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + responseStatusCodes?: Array; +} +export declare function FiltersApiLogFromJSON(json: any): FiltersApiLog; +export declare function FiltersApiLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersApiLog; +export declare function FiltersApiLogToJSON(value?: FiltersApiLog | null): any; diff --git a/dist/esm/models/FiltersApiLog.js b/dist/esm/models/FiltersApiLog.js new file mode 100644 index 00000000..d775c13d --- /dev/null +++ b/dist/esm/models/FiltersApiLog.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersApiLogFromJSON(json) { + return FiltersApiLogFromJSONTyped(json, false); +} +export function FiltersApiLogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'queryAccessKeys': !exists(json, 'QueryAccessKeys') ? undefined : json['QueryAccessKeys'], + 'queryApiNames': !exists(json, 'QueryApiNames') ? undefined : json['QueryApiNames'], + 'queryCallNames': !exists(json, 'QueryCallNames') ? undefined : json['QueryCallNames'], + 'queryDateAfter': !exists(json, 'QueryDateAfter') ? undefined : (new Date(json['QueryDateAfter'])), + 'queryDateBefore': !exists(json, 'QueryDateBefore') ? undefined : (new Date(json['QueryDateBefore'])), + 'queryIpAddresses': !exists(json, 'QueryIpAddresses') ? undefined : json['QueryIpAddresses'], + 'queryUserAgents': !exists(json, 'QueryUserAgents') ? undefined : json['QueryUserAgents'], + 'requestIds': !exists(json, 'RequestIds') ? undefined : json['RequestIds'], + 'responseStatusCodes': !exists(json, 'ResponseStatusCodes') ? undefined : json['ResponseStatusCodes'], + }; +} +export function FiltersApiLogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'QueryAccessKeys': value.queryAccessKeys, + 'QueryApiNames': value.queryApiNames, + 'QueryCallNames': value.queryCallNames, + 'QueryDateAfter': value.queryDateAfter === undefined ? undefined : (value.queryDateAfter.toISOString().substr(0, 10)), + 'QueryDateBefore': value.queryDateBefore === undefined ? undefined : (value.queryDateBefore.toISOString().substr(0, 10)), + 'QueryIpAddresses': value.queryIpAddresses, + 'QueryUserAgents': value.queryUserAgents, + 'RequestIds': value.requestIds, + 'ResponseStatusCodes': value.responseStatusCodes, + }; +} diff --git a/dist/esm/models/FiltersCa.d.ts b/dist/esm/models/FiltersCa.d.ts new file mode 100644 index 00000000..0660e37c --- /dev/null +++ b/dist/esm/models/FiltersCa.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersCa + */ +export interface FiltersCa { + /** + * The fingerprints of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + caFingerprints?: Array; + /** + * The IDs of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + caIds?: Array; + /** + * The descriptions of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + descriptions?: Array; +} +export declare function FiltersCaFromJSON(json: any): FiltersCa; +export declare function FiltersCaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersCa; +export declare function FiltersCaToJSON(value?: FiltersCa | null): any; diff --git a/dist/esm/models/FiltersCa.js b/dist/esm/models/FiltersCa.js new file mode 100644 index 00000000..1d50fa91 --- /dev/null +++ b/dist/esm/models/FiltersCa.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersCaFromJSON(json) { + return FiltersCaFromJSONTyped(json, false); +} +export function FiltersCaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caFingerprints': !exists(json, 'CaFingerprints') ? undefined : json['CaFingerprints'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + }; +} +export function FiltersCaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaFingerprints': value.caFingerprints, + 'CaIds': value.caIds, + 'Descriptions': value.descriptions, + }; +} diff --git a/dist/esm/models/FiltersClientGateway.d.ts b/dist/esm/models/FiltersClientGateway.d.ts new file mode 100644 index 00000000..6e6bf0ae --- /dev/null +++ b/dist/esm/models/FiltersClientGateway.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersClientGateway + */ +export interface FiltersClientGateway { + /** + * The Border Gateway Protocol (BGP) Autonomous System Numbers (ASNs) of the connections. + * @type {Array} + * @memberof FiltersClientGateway + */ + bgpAsns?: Array; + /** + * The IDs of the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + clientGatewayIds?: Array; + /** + * The types of communication tunnels used by the client gateways (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersClientGateway + */ + connectionTypes?: Array; + /** + * The public IPv4 addresses of the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + publicIps?: Array; + /** + * The states of the client gateways (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersClientGateway + */ + states?: Array; + /** + * The keys of the tags associated with the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + tagKeys?: Array; + /** + * The values of the tags associated with the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the client gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersClientGateway + */ + tags?: Array; +} +export declare function FiltersClientGatewayFromJSON(json: any): FiltersClientGateway; +export declare function FiltersClientGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersClientGateway; +export declare function FiltersClientGatewayToJSON(value?: FiltersClientGateway | null): any; diff --git a/dist/esm/models/FiltersClientGateway.js b/dist/esm/models/FiltersClientGateway.js new file mode 100644 index 00000000..3c4cb888 --- /dev/null +++ b/dist/esm/models/FiltersClientGateway.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersClientGatewayFromJSON(json) { + return FiltersClientGatewayFromJSONTyped(json, false); +} +export function FiltersClientGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsns': !exists(json, 'BgpAsns') ? undefined : json['BgpAsns'], + 'clientGatewayIds': !exists(json, 'ClientGatewayIds') ? undefined : json['ClientGatewayIds'], + 'connectionTypes': !exists(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'publicIps': !exists(json, 'PublicIps') ? undefined : json['PublicIps'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersClientGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsns': value.bgpAsns, + 'ClientGatewayIds': value.clientGatewayIds, + 'ConnectionTypes': value.connectionTypes, + 'PublicIps': value.publicIps, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersDhcpOptions.d.ts b/dist/esm/models/FiltersDhcpOptions.d.ts new file mode 100644 index 00000000..e0aa9436 --- /dev/null +++ b/dist/esm/models/FiltersDhcpOptions.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersDhcpOptions + */ +export interface FiltersDhcpOptions { + /** + * If true, lists all default DHCP options set. If false, lists all non-default DHCP options set. + * @type {boolean} + * @memberof FiltersDhcpOptions + */ + _default?: boolean; + /** + * The IDs of the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + dhcpOptionsSetIds?: Array; + /** + * The domain name servers used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + domainNameServers?: Array; + /** + * The domain names used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + domainNames?: Array; + /** + * The Network Time Protocol (NTP) servers used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + ntpServers?: Array; + /** + * The keys of the tags associated with the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tagKeys?: Array; + /** + * The values of the tags associated with the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the DHCP options sets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tags?: Array; +} +export declare function FiltersDhcpOptionsFromJSON(json: any): FiltersDhcpOptions; +export declare function FiltersDhcpOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDhcpOptions; +export declare function FiltersDhcpOptionsToJSON(value?: FiltersDhcpOptions | null): any; diff --git a/dist/esm/models/FiltersDhcpOptions.js b/dist/esm/models/FiltersDhcpOptions.js new file mode 100644 index 00000000..effd44af --- /dev/null +++ b/dist/esm/models/FiltersDhcpOptions.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersDhcpOptionsFromJSON(json) { + return FiltersDhcpOptionsFromJSONTyped(json, false); +} +export function FiltersDhcpOptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + '_default': !exists(json, 'Default') ? undefined : json['Default'], + 'dhcpOptionsSetIds': !exists(json, 'DhcpOptionsSetIds') ? undefined : json['DhcpOptionsSetIds'], + 'domainNameServers': !exists(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'domainNames': !exists(json, 'DomainNames') ? undefined : json['DomainNames'], + 'ntpServers': !exists(json, 'NtpServers') ? undefined : json['NtpServers'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersDhcpOptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Default': value._default, + 'DhcpOptionsSetIds': value.dhcpOptionsSetIds, + 'DomainNameServers': value.domainNameServers, + 'DomainNames': value.domainNames, + 'NtpServers': value.ntpServers, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersDirectLink.d.ts b/dist/esm/models/FiltersDirectLink.d.ts new file mode 100644 index 00000000..0a87d2c4 --- /dev/null +++ b/dist/esm/models/FiltersDirectLink.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersDirectLink + */ +export interface FiltersDirectLink { + /** + * The IDs of the DirectLinks. + * @type {Array} + * @memberof FiltersDirectLink + */ + directLinkIds?: Array; +} +export declare function FiltersDirectLinkFromJSON(json: any): FiltersDirectLink; +export declare function FiltersDirectLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDirectLink; +export declare function FiltersDirectLinkToJSON(value?: FiltersDirectLink | null): any; diff --git a/dist/esm/models/FiltersDirectLink.js b/dist/esm/models/FiltersDirectLink.js new file mode 100644 index 00000000..a152a356 --- /dev/null +++ b/dist/esm/models/FiltersDirectLink.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersDirectLinkFromJSON(json) { + return FiltersDirectLinkFromJSONTyped(json, false); +} +export function FiltersDirectLinkFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkIds': !exists(json, 'DirectLinkIds') ? undefined : json['DirectLinkIds'], + }; +} +export function FiltersDirectLinkToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkIds': value.directLinkIds, + }; +} diff --git a/dist/esm/models/FiltersDirectLinkInterface.d.ts b/dist/esm/models/FiltersDirectLinkInterface.d.ts new file mode 100644 index 00000000..7657cb85 --- /dev/null +++ b/dist/esm/models/FiltersDirectLinkInterface.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersDirectLinkInterface + */ +export interface FiltersDirectLinkInterface { + /** + * The IDs of the DirectLinks. + * @type {Array} + * @memberof FiltersDirectLinkInterface + */ + directLinkIds?: Array; + /** + * The IDs of the DirectLink interfaces. + * @type {Array} + * @memberof FiltersDirectLinkInterface + */ + directLinkInterfaceIds?: Array; +} +export declare function FiltersDirectLinkInterfaceFromJSON(json: any): FiltersDirectLinkInterface; +export declare function FiltersDirectLinkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDirectLinkInterface; +export declare function FiltersDirectLinkInterfaceToJSON(value?: FiltersDirectLinkInterface | null): any; diff --git a/dist/esm/models/FiltersDirectLinkInterface.js b/dist/esm/models/FiltersDirectLinkInterface.js new file mode 100644 index 00000000..84c4045c --- /dev/null +++ b/dist/esm/models/FiltersDirectLinkInterface.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersDirectLinkInterfaceFromJSON(json) { + return FiltersDirectLinkInterfaceFromJSONTyped(json, false); +} +export function FiltersDirectLinkInterfaceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkIds': !exists(json, 'DirectLinkIds') ? undefined : json['DirectLinkIds'], + 'directLinkInterfaceIds': !exists(json, 'DirectLinkInterfaceIds') ? undefined : json['DirectLinkInterfaceIds'], + }; +} +export function FiltersDirectLinkInterfaceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkIds': value.directLinkIds, + 'DirectLinkInterfaceIds': value.directLinkInterfaceIds, + }; +} diff --git a/dist/esm/models/FiltersExportTask.d.ts b/dist/esm/models/FiltersExportTask.d.ts new file mode 100644 index 00000000..9ad618c1 --- /dev/null +++ b/dist/esm/models/FiltersExportTask.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersExportTask + */ +export interface FiltersExportTask { + /** + * The IDs of the export tasks. + * @type {Array} + * @memberof FiltersExportTask + */ + taskIds?: Array; +} +export declare function FiltersExportTaskFromJSON(json: any): FiltersExportTask; +export declare function FiltersExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersExportTask; +export declare function FiltersExportTaskToJSON(value?: FiltersExportTask | null): any; diff --git a/dist/esm/models/FiltersExportTask.js b/dist/esm/models/FiltersExportTask.js new file mode 100644 index 00000000..e45063c5 --- /dev/null +++ b/dist/esm/models/FiltersExportTask.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersExportTaskFromJSON(json) { + return FiltersExportTaskFromJSONTyped(json, false); +} +export function FiltersExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'taskIds': !exists(json, 'TaskIds') ? undefined : json['TaskIds'], + }; +} +export function FiltersExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'TaskIds': value.taskIds, + }; +} diff --git a/dist/esm/models/FiltersFlexibleGpu.d.ts b/dist/esm/models/FiltersFlexibleGpu.d.ts new file mode 100644 index 00000000..4d64c81c --- /dev/null +++ b/dist/esm/models/FiltersFlexibleGpu.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersFlexibleGpu + */ +export interface FiltersFlexibleGpu { + /** + * Indicates whether the fGPU is deleted when terminating the VM. + * @type {boolean} + * @memberof FiltersFlexibleGpu + */ + deleteOnVmDeletion?: boolean; + /** + * One or more IDs of fGPUs. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + flexibleGpuIds?: Array; + /** + * The processor generations that the fGPUs are compatible with. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + generations?: Array; + /** + * One or more models of fGPUs. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + modelNames?: Array; + /** + * The states of the fGPUs (`allocated` \| `attaching` \| `attached` \| `detaching`). + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + states?: Array; + /** + * The Subregions where the fGPUs are located. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + subregionNames?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + vmIds?: Array; +} +export declare function FiltersFlexibleGpuFromJSON(json: any): FiltersFlexibleGpu; +export declare function FiltersFlexibleGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersFlexibleGpu; +export declare function FiltersFlexibleGpuToJSON(value?: FiltersFlexibleGpu | null): any; diff --git a/dist/esm/models/FiltersFlexibleGpu.js b/dist/esm/models/FiltersFlexibleGpu.js new file mode 100644 index 00000000..12c6fa4a --- /dev/null +++ b/dist/esm/models/FiltersFlexibleGpu.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersFlexibleGpuFromJSON(json) { + return FiltersFlexibleGpuFromJSONTyped(json, false); +} +export function FiltersFlexibleGpuFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'flexibleGpuIds': !exists(json, 'FlexibleGpuIds') ? undefined : json['FlexibleGpuIds'], + 'generations': !exists(json, 'Generations') ? undefined : json['Generations'], + 'modelNames': !exists(json, 'ModelNames') ? undefined : json['ModelNames'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +export function FiltersFlexibleGpuToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'FlexibleGpuIds': value.flexibleGpuIds, + 'Generations': value.generations, + 'ModelNames': value.modelNames, + 'States': value.states, + 'SubregionNames': value.subregionNames, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/FiltersImage.d.ts b/dist/esm/models/FiltersImage.d.ts new file mode 100644 index 00000000..ac5724d5 --- /dev/null +++ b/dist/esm/models/FiltersImage.d.ts @@ -0,0 +1,159 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersImage + */ +export interface FiltersImage { + /** + * The account aliases of the owners of the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + accountAliases?: Array; + /** + * The account IDs of the owners of the OMIs. By default, all the OMIs for which you have launch permissions are described. + * @type {Array} + * @memberof FiltersImage + */ + accountIds?: Array; + /** + * The architectures of the OMIs (`i386` \| `x86_64`). + * @type {Array} + * @memberof FiltersImage + */ + architectures?: Array; + /** + * Whether the volumes are deleted or not when terminating the VM. + * @type {boolean} + * @memberof FiltersImage + */ + blockDeviceMappingDeleteOnVmDeletion?: boolean; + /** + * The device names for the volumes. + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingDeviceNames?: Array; + /** + * The IDs of the snapshots used to create the volumes. + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingSnapshotIds?: Array; + /** + * The sizes of the volumes, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingVolumeSizes?: Array; + /** + * The types of volumes (`standard` \| `gp2` \| `io1`). + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingVolumeTypes?: Array; + /** + * The descriptions of the OMIs, provided when they were created. + * @type {Array} + * @memberof FiltersImage + */ + descriptions?: Array; + /** + * The locations of the buckets where the OMI files are stored. + * @type {Array} + * @memberof FiltersImage + */ + fileLocations?: Array; + /** + * The hypervisor type of the OMI (always `xen`). + * @type {Array} + * @memberof FiltersImage + */ + hypervisors?: Array; + /** + * The IDs of the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + imageIds?: Array; + /** + * The names of the OMIs, provided when they were created. + * @type {Array} + * @memberof FiltersImage + */ + imageNames?: Array; + /** + * The account IDs of the users who have launch permissions for the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + permissionsToLaunchAccountIds?: Array; + /** + * If true, lists all public OMIs. If false, lists all private OMIs. + * @type {boolean} + * @memberof FiltersImage + */ + permissionsToLaunchGlobalPermission?: boolean; + /** + * The product code associated with the OMI (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof FiltersImage + */ + productCodes?: Array; + /** + * The name of the root device. This value must be /dev/sda1. + * @type {Array} + * @memberof FiltersImage + */ + rootDeviceNames?: Array; + /** + * The types of root device used by the OMIs (always `bsu`). + * @type {Array} + * @memberof FiltersImage + */ + rootDeviceTypes?: Array; + /** + * The states of the OMIs (`pending` \| `available` \| `failed`). + * @type {Array} + * @memberof FiltersImage + */ + states?: Array; + /** + * The keys of the tags associated with the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + tagKeys?: Array; + /** + * The values of the tags associated with the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the OMIs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersImage + */ + tags?: Array; + /** + * The virtualization types (always `hvm`). + * @type {Array} + * @memberof FiltersImage + */ + virtualizationTypes?: Array; +} +export declare function FiltersImageFromJSON(json: any): FiltersImage; +export declare function FiltersImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersImage; +export declare function FiltersImageToJSON(value?: FiltersImage | null): any; diff --git a/dist/esm/models/FiltersImage.js b/dist/esm/models/FiltersImage.js new file mode 100644 index 00000000..4e1774de --- /dev/null +++ b/dist/esm/models/FiltersImage.js @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersImageFromJSON(json) { + return FiltersImageFromJSONTyped(json, false); +} +export function FiltersImageFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAliases': !exists(json, 'AccountAliases') ? undefined : json['AccountAliases'], + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'architectures': !exists(json, 'Architectures') ? undefined : json['Architectures'], + 'blockDeviceMappingDeleteOnVmDeletion': !exists(json, 'BlockDeviceMappingDeleteOnVmDeletion') ? undefined : json['BlockDeviceMappingDeleteOnVmDeletion'], + 'blockDeviceMappingDeviceNames': !exists(json, 'BlockDeviceMappingDeviceNames') ? undefined : json['BlockDeviceMappingDeviceNames'], + 'blockDeviceMappingSnapshotIds': !exists(json, 'BlockDeviceMappingSnapshotIds') ? undefined : json['BlockDeviceMappingSnapshotIds'], + 'blockDeviceMappingVolumeSizes': !exists(json, 'BlockDeviceMappingVolumeSizes') ? undefined : json['BlockDeviceMappingVolumeSizes'], + 'blockDeviceMappingVolumeTypes': !exists(json, 'BlockDeviceMappingVolumeTypes') ? undefined : json['BlockDeviceMappingVolumeTypes'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'fileLocations': !exists(json, 'FileLocations') ? undefined : json['FileLocations'], + 'hypervisors': !exists(json, 'Hypervisors') ? undefined : json['Hypervisors'], + 'imageIds': !exists(json, 'ImageIds') ? undefined : json['ImageIds'], + 'imageNames': !exists(json, 'ImageNames') ? undefined : json['ImageNames'], + 'permissionsToLaunchAccountIds': !exists(json, 'PermissionsToLaunchAccountIds') ? undefined : json['PermissionsToLaunchAccountIds'], + 'permissionsToLaunchGlobalPermission': !exists(json, 'PermissionsToLaunchGlobalPermission') ? undefined : json['PermissionsToLaunchGlobalPermission'], + 'productCodes': !exists(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'rootDeviceNames': !exists(json, 'RootDeviceNames') ? undefined : json['RootDeviceNames'], + 'rootDeviceTypes': !exists(json, 'RootDeviceTypes') ? undefined : json['RootDeviceTypes'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'virtualizationTypes': !exists(json, 'VirtualizationTypes') ? undefined : json['VirtualizationTypes'], + }; +} +export function FiltersImageToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAliases': value.accountAliases, + 'AccountIds': value.accountIds, + 'Architectures': value.architectures, + 'BlockDeviceMappingDeleteOnVmDeletion': value.blockDeviceMappingDeleteOnVmDeletion, + 'BlockDeviceMappingDeviceNames': value.blockDeviceMappingDeviceNames, + 'BlockDeviceMappingSnapshotIds': value.blockDeviceMappingSnapshotIds, + 'BlockDeviceMappingVolumeSizes': value.blockDeviceMappingVolumeSizes, + 'BlockDeviceMappingVolumeTypes': value.blockDeviceMappingVolumeTypes, + 'Descriptions': value.descriptions, + 'FileLocations': value.fileLocations, + 'Hypervisors': value.hypervisors, + 'ImageIds': value.imageIds, + 'ImageNames': value.imageNames, + 'PermissionsToLaunchAccountIds': value.permissionsToLaunchAccountIds, + 'PermissionsToLaunchGlobalPermission': value.permissionsToLaunchGlobalPermission, + 'ProductCodes': value.productCodes, + 'RootDeviceNames': value.rootDeviceNames, + 'RootDeviceTypes': value.rootDeviceTypes, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualizationTypes': value.virtualizationTypes, + }; +} diff --git a/dist/esm/models/FiltersInternetService.d.ts b/dist/esm/models/FiltersInternetService.d.ts new file mode 100644 index 00000000..2b06aa06 --- /dev/null +++ b/dist/esm/models/FiltersInternetService.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersInternetService + */ +export interface FiltersInternetService { + /** + * The IDs of the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + internetServiceIds?: Array; + /** + * The IDs of the Nets the Internet services are attached to. + * @type {Array} + * @memberof FiltersInternetService + */ + linkNetIds?: Array; + /** + * The current states of the attachments between the Internet services and the Nets (only `available`, if the Internet gateway is attached to a VPC). + * @type {Array} + * @memberof FiltersInternetService + */ + linkStates?: Array; + /** + * The keys of the tags associated with the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Internet services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersInternetService + */ + tags?: Array; +} +export declare function FiltersInternetServiceFromJSON(json: any): FiltersInternetService; +export declare function FiltersInternetServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersInternetService; +export declare function FiltersInternetServiceToJSON(value?: FiltersInternetService | null): any; diff --git a/dist/esm/models/FiltersInternetService.js b/dist/esm/models/FiltersInternetService.js new file mode 100644 index 00000000..412e6585 --- /dev/null +++ b/dist/esm/models/FiltersInternetService.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersInternetServiceFromJSON(json) { + return FiltersInternetServiceFromJSONTyped(json, false); +} +export function FiltersInternetServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetServiceIds': !exists(json, 'InternetServiceIds') ? undefined : json['InternetServiceIds'], + 'linkNetIds': !exists(json, 'LinkNetIds') ? undefined : json['LinkNetIds'], + 'linkStates': !exists(json, 'LinkStates') ? undefined : json['LinkStates'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersInternetServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetServiceIds': value.internetServiceIds, + 'LinkNetIds': value.linkNetIds, + 'LinkStates': value.linkStates, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersKeypair.d.ts b/dist/esm/models/FiltersKeypair.d.ts new file mode 100644 index 00000000..70a2a4a2 --- /dev/null +++ b/dist/esm/models/FiltersKeypair.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersKeypair + */ +export interface FiltersKeypair { + /** + * The fingerprints of the keypairs. + * @type {Array} + * @memberof FiltersKeypair + */ + keypairFingerprints?: Array; + /** + * The names of the keypairs. + * @type {Array} + * @memberof FiltersKeypair + */ + keypairNames?: Array; +} +export declare function FiltersKeypairFromJSON(json: any): FiltersKeypair; +export declare function FiltersKeypairFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersKeypair; +export declare function FiltersKeypairToJSON(value?: FiltersKeypair | null): any; diff --git a/dist/esm/models/FiltersKeypair.js b/dist/esm/models/FiltersKeypair.js new file mode 100644 index 00000000..a2b099c3 --- /dev/null +++ b/dist/esm/models/FiltersKeypair.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersKeypairFromJSON(json) { + return FiltersKeypairFromJSONTyped(json, false); +} +export function FiltersKeypairFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairFingerprints': !exists(json, 'KeypairFingerprints') ? undefined : json['KeypairFingerprints'], + 'keypairNames': !exists(json, 'KeypairNames') ? undefined : json['KeypairNames'], + }; +} +export function FiltersKeypairToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'KeypairFingerprints': value.keypairFingerprints, + 'KeypairNames': value.keypairNames, + }; +} diff --git a/dist/esm/models/FiltersListenerRule.d.ts b/dist/esm/models/FiltersListenerRule.d.ts new file mode 100644 index 00000000..d0dfc3f5 --- /dev/null +++ b/dist/esm/models/FiltersListenerRule.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersListenerRule + */ +export interface FiltersListenerRule { + /** + * The names of the listener rules. + * @type {Array} + * @memberof FiltersListenerRule + */ + listenerRuleNames?: Array; +} +export declare function FiltersListenerRuleFromJSON(json: any): FiltersListenerRule; +export declare function FiltersListenerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersListenerRule; +export declare function FiltersListenerRuleToJSON(value?: FiltersListenerRule | null): any; diff --git a/dist/esm/models/FiltersListenerRule.js b/dist/esm/models/FiltersListenerRule.js new file mode 100644 index 00000000..ca35d481 --- /dev/null +++ b/dist/esm/models/FiltersListenerRule.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersListenerRuleFromJSON(json) { + return FiltersListenerRuleFromJSONTyped(json, false); +} +export function FiltersListenerRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRuleNames': !exists(json, 'ListenerRuleNames') ? undefined : json['ListenerRuleNames'], + }; +} +export function FiltersListenerRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRuleNames': value.listenerRuleNames, + }; +} diff --git a/dist/esm/models/FiltersLoadBalancer.d.ts b/dist/esm/models/FiltersLoadBalancer.d.ts new file mode 100644 index 00000000..1ad5c2d3 --- /dev/null +++ b/dist/esm/models/FiltersLoadBalancer.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersLoadBalancer + */ +export interface FiltersLoadBalancer { + /** + * The names of the load balancers. + * @type {Array} + * @memberof FiltersLoadBalancer + */ + loadBalancerNames?: Array; +} +export declare function FiltersLoadBalancerFromJSON(json: any): FiltersLoadBalancer; +export declare function FiltersLoadBalancerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersLoadBalancer; +export declare function FiltersLoadBalancerToJSON(value?: FiltersLoadBalancer | null): any; diff --git a/dist/esm/models/FiltersLoadBalancer.js b/dist/esm/models/FiltersLoadBalancer.js new file mode 100644 index 00000000..067b7e8a --- /dev/null +++ b/dist/esm/models/FiltersLoadBalancer.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersLoadBalancerFromJSON(json) { + return FiltersLoadBalancerFromJSONTyped(json, false); +} +export function FiltersLoadBalancerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancerNames': !exists(json, 'LoadBalancerNames') ? undefined : json['LoadBalancerNames'], + }; +} +export function FiltersLoadBalancerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancerNames': value.loadBalancerNames, + }; +} diff --git a/dist/esm/models/FiltersNatService.d.ts b/dist/esm/models/FiltersNatService.d.ts new file mode 100644 index 00000000..95d9c891 --- /dev/null +++ b/dist/esm/models/FiltersNatService.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNatService + */ +export interface FiltersNatService { + /** + * The IDs of the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + natServiceIds?: Array; + /** + * The IDs of the Nets in which the NAT services are. + * @type {Array} + * @memberof FiltersNatService + */ + netIds?: Array; + /** + * The states of the NAT services (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersNatService + */ + states?: Array; + /** + * The IDs of the Subnets in which the NAT services are. + * @type {Array} + * @memberof FiltersNatService + */ + subnetIds?: Array; + /** + * The keys of the tags associated with the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + tagKeys?: Array; + /** + * The values of the tags associated with the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the NAT services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNatService + */ + tags?: Array; +} +export declare function FiltersNatServiceFromJSON(json: any): FiltersNatService; +export declare function FiltersNatServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNatService; +export declare function FiltersNatServiceToJSON(value?: FiltersNatService | null): any; diff --git a/dist/esm/models/FiltersNatService.js b/dist/esm/models/FiltersNatService.js new file mode 100644 index 00000000..da19b17c --- /dev/null +++ b/dist/esm/models/FiltersNatService.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersNatServiceFromJSON(json) { + return FiltersNatServiceFromJSONTyped(json, false); +} +export function FiltersNatServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natServiceIds': !exists(json, 'NatServiceIds') ? undefined : json['NatServiceIds'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subnetIds': !exists(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersNatServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatServiceIds': value.natServiceIds, + 'NetIds': value.netIds, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersNet.d.ts b/dist/esm/models/FiltersNet.d.ts new file mode 100644 index 00000000..9dea7106 --- /dev/null +++ b/dist/esm/models/FiltersNet.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNet + */ +export interface FiltersNet { + /** + * The IDs of the DHCP options sets. + * @type {Array} + * @memberof FiltersNet + */ + dhcpOptionsSetIds?: Array; + /** + * The IP ranges for the Nets, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof FiltersNet + */ + ipRanges?: Array; + /** + * If true, the Net used is the default one. + * @type {boolean} + * @memberof FiltersNet + */ + isDefault?: boolean; + /** + * The IDs of the Nets. + * @type {Array} + * @memberof FiltersNet + */ + netIds?: Array; + /** + * The states of the Nets (`pending` \| `available`). + * @type {Array} + * @memberof FiltersNet + */ + states?: Array; + /** + * The keys of the tags associated with the Nets. + * @type {Array} + * @memberof FiltersNet + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Nets. + * @type {Array} + * @memberof FiltersNet + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Nets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNet + */ + tags?: Array; +} +export declare function FiltersNetFromJSON(json: any): FiltersNet; +export declare function FiltersNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNet; +export declare function FiltersNetToJSON(value?: FiltersNet | null): any; diff --git a/dist/esm/models/FiltersNet.js b/dist/esm/models/FiltersNet.js new file mode 100644 index 00000000..c3f640d6 --- /dev/null +++ b/dist/esm/models/FiltersNet.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersNetFromJSON(json) { + return FiltersNetFromJSONTyped(json, false); +} +export function FiltersNetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetIds': !exists(json, 'DhcpOptionsSetIds') ? undefined : json['DhcpOptionsSetIds'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'isDefault': !exists(json, 'IsDefault') ? undefined : json['IsDefault'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersNetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetIds': value.dhcpOptionsSetIds, + 'IpRanges': value.ipRanges, + 'IsDefault': value.isDefault, + 'NetIds': value.netIds, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersNetAccessPoint.d.ts b/dist/esm/models/FiltersNetAccessPoint.d.ts new file mode 100644 index 00000000..1f26f42f --- /dev/null +++ b/dist/esm/models/FiltersNetAccessPoint.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNetAccessPoint + */ +export interface FiltersNetAccessPoint { + /** + * The IDs of the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + netAccessPointIds?: Array; + /** + * The IDs of the Nets. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + netIds?: Array; + /** + * The names of the services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + serviceNames?: Array; + /** + * The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + states?: Array; + /** + * The keys of the tags associated with the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tags?: Array; +} +export declare function FiltersNetAccessPointFromJSON(json: any): FiltersNetAccessPoint; +export declare function FiltersNetAccessPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNetAccessPoint; +export declare function FiltersNetAccessPointToJSON(value?: FiltersNetAccessPoint | null): any; diff --git a/dist/esm/models/FiltersNetAccessPoint.js b/dist/esm/models/FiltersNetAccessPoint.js new file mode 100644 index 00000000..9266503b --- /dev/null +++ b/dist/esm/models/FiltersNetAccessPoint.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersNetAccessPointFromJSON(json) { + return FiltersNetAccessPointFromJSONTyped(json, false); +} +export function FiltersNetAccessPointFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPointIds': !exists(json, 'NetAccessPointIds') ? undefined : json['NetAccessPointIds'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'serviceNames': !exists(json, 'ServiceNames') ? undefined : json['ServiceNames'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersNetAccessPointToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPointIds': value.netAccessPointIds, + 'NetIds': value.netIds, + 'ServiceNames': value.serviceNames, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersNetPeering.d.ts b/dist/esm/models/FiltersNetPeering.d.ts new file mode 100644 index 00000000..cb9115eb --- /dev/null +++ b/dist/esm/models/FiltersNetPeering.d.ts @@ -0,0 +1,93 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNetPeering + */ +export interface FiltersNetPeering { + /** + * The account IDs of the owners of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetAccountIds?: Array; + /** + * The IP ranges of the peer Nets, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetIpRanges?: Array; + /** + * The IDs of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetNetIds?: Array; + /** + * The IDs of the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + netPeeringIds?: Array; + /** + * The account IDs of the owners of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetAccountIds?: Array; + /** + * The IP ranges of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetIpRanges?: Array; + /** + * The IDs of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetNetIds?: Array; + /** + * Additional information about the states of the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + stateMessages?: Array; + /** + * The states of the Net peering connections (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). + * @type {Array} + * @memberof FiltersNetPeering + */ + stateNames?: Array; + /** + * The keys of the tags associated with the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Net peering connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNetPeering + */ + tags?: Array; +} +export declare function FiltersNetPeeringFromJSON(json: any): FiltersNetPeering; +export declare function FiltersNetPeeringFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNetPeering; +export declare function FiltersNetPeeringToJSON(value?: FiltersNetPeering | null): any; diff --git a/dist/esm/models/FiltersNetPeering.js b/dist/esm/models/FiltersNetPeering.js new file mode 100644 index 00000000..5ebb7d27 --- /dev/null +++ b/dist/esm/models/FiltersNetPeering.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersNetPeeringFromJSON(json) { + return FiltersNetPeeringFromJSONTyped(json, false); +} +export function FiltersNetPeeringFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accepterNetAccountIds': !exists(json, 'AccepterNetAccountIds') ? undefined : json['AccepterNetAccountIds'], + 'accepterNetIpRanges': !exists(json, 'AccepterNetIpRanges') ? undefined : json['AccepterNetIpRanges'], + 'accepterNetNetIds': !exists(json, 'AccepterNetNetIds') ? undefined : json['AccepterNetNetIds'], + 'netPeeringIds': !exists(json, 'NetPeeringIds') ? undefined : json['NetPeeringIds'], + 'sourceNetAccountIds': !exists(json, 'SourceNetAccountIds') ? undefined : json['SourceNetAccountIds'], + 'sourceNetIpRanges': !exists(json, 'SourceNetIpRanges') ? undefined : json['SourceNetIpRanges'], + 'sourceNetNetIds': !exists(json, 'SourceNetNetIds') ? undefined : json['SourceNetNetIds'], + 'stateMessages': !exists(json, 'StateMessages') ? undefined : json['StateMessages'], + 'stateNames': !exists(json, 'StateNames') ? undefined : json['StateNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersNetPeeringToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccepterNetAccountIds': value.accepterNetAccountIds, + 'AccepterNetIpRanges': value.accepterNetIpRanges, + 'AccepterNetNetIds': value.accepterNetNetIds, + 'NetPeeringIds': value.netPeeringIds, + 'SourceNetAccountIds': value.sourceNetAccountIds, + 'SourceNetIpRanges': value.sourceNetIpRanges, + 'SourceNetNetIds': value.sourceNetNetIds, + 'StateMessages': value.stateMessages, + 'StateNames': value.stateNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersNic.d.ts b/dist/esm/models/FiltersNic.d.ts new file mode 100644 index 00000000..f8043c44 --- /dev/null +++ b/dist/esm/models/FiltersNic.d.ts @@ -0,0 +1,189 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersNic + */ +export interface FiltersNic { + /** + * The descriptions of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + descriptions?: Array; + /** + * Whether the source/destination checking is enabled (true) or disabled (false). + * @type {boolean} + * @memberof FiltersNic + */ + isSourceDestCheck?: boolean; + /** + * Whether the NICs are deleted when the VMs they are attached to are terminated. + * @type {boolean} + * @memberof FiltersNic + */ + linkNicDeleteOnVmDeletion?: boolean; + /** + * The device numbers the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicDeviceNumbers?: Array; + /** + * The attachment IDs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkNicLinkNicIds?: Array; + /** + * The states of the attachments. + * @type {Array} + * @memberof FiltersNic + */ + linkNicStates?: Array; + /** + * The account IDs of the owners of the VMs the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicVmAccountIds?: Array; + /** + * The IDs of the VMs the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicVmIds?: Array; + /** + * The account IDs of the owners of the public IPs associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpAccountIds?: Array; + /** + * The association IDs returned when the public IPs were associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpLinkPublicIpIds?: Array; + /** + * The allocation IDs returned when the public IPs were allocated to their accounts. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpPublicIpIds?: Array; + /** + * The public IPs associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpPublicIps?: Array; + /** + * The Media Access Control (MAC) addresses of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + macAddresses?: Array; + /** + * The IDs of the Nets where the NICs are located. + * @type {Array} + * @memberof FiltersNic + */ + netIds?: Array; + /** + * The IDs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + nicIds?: Array; + /** + * The private DNS names associated with the primary private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateDnsNames?: Array; + /** + * The account IDs of the owner of the public IPs associated with the private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsLinkPublicIpAccountIds?: Array; + /** + * The public IPs associated with the private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsLinkPublicIpPublicIps?: Array; + /** + * Whether the private IP is the primary IP associated with the NIC. + * @type {boolean} + * @memberof FiltersNic + */ + privateIpsPrimaryIp?: boolean; + /** + * The private IPs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsPrivateIps?: Array; + /** + * The IDs of the security groups associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + securityGroupIds?: Array; + /** + * The names of the security groups associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + securityGroupNames?: Array; + /** + * The states of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + states?: Array; + /** + * The IDs of the Subnets for the NICs. + * @type {Array} + * @memberof FiltersNic + */ + subnetIds?: Array; + /** + * The Subregions where the NICs are located. + * @type {Array} + * @memberof FiltersNic + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + tagKeys?: Array; + /** + * The values of the tags associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the NICs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNic + */ + tags?: Array; +} +export declare function FiltersNicFromJSON(json: any): FiltersNic; +export declare function FiltersNicFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNic; +export declare function FiltersNicToJSON(value?: FiltersNic | null): any; diff --git a/dist/esm/models/FiltersNic.js b/dist/esm/models/FiltersNic.js new file mode 100644 index 00000000..193d02f1 --- /dev/null +++ b/dist/esm/models/FiltersNic.js @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersNicFromJSON(json) { + return FiltersNicFromJSONTyped(json, false); +} +export function FiltersNicFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'isSourceDestCheck': !exists(json, 'IsSourceDestCheck') ? undefined : json['IsSourceDestCheck'], + 'linkNicDeleteOnVmDeletion': !exists(json, 'LinkNicDeleteOnVmDeletion') ? undefined : json['LinkNicDeleteOnVmDeletion'], + 'linkNicDeviceNumbers': !exists(json, 'LinkNicDeviceNumbers') ? undefined : json['LinkNicDeviceNumbers'], + 'linkNicLinkNicIds': !exists(json, 'LinkNicLinkNicIds') ? undefined : json['LinkNicLinkNicIds'], + 'linkNicStates': !exists(json, 'LinkNicStates') ? undefined : json['LinkNicStates'], + 'linkNicVmAccountIds': !exists(json, 'LinkNicVmAccountIds') ? undefined : json['LinkNicVmAccountIds'], + 'linkNicVmIds': !exists(json, 'LinkNicVmIds') ? undefined : json['LinkNicVmIds'], + 'linkPublicIpAccountIds': !exists(json, 'LinkPublicIpAccountIds') ? undefined : json['LinkPublicIpAccountIds'], + 'linkPublicIpLinkPublicIpIds': !exists(json, 'LinkPublicIpLinkPublicIpIds') ? undefined : json['LinkPublicIpLinkPublicIpIds'], + 'linkPublicIpPublicIpIds': !exists(json, 'LinkPublicIpPublicIpIds') ? undefined : json['LinkPublicIpPublicIpIds'], + 'linkPublicIpPublicIps': !exists(json, 'LinkPublicIpPublicIps') ? undefined : json['LinkPublicIpPublicIps'], + 'macAddresses': !exists(json, 'MacAddresses') ? undefined : json['MacAddresses'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'nicIds': !exists(json, 'NicIds') ? undefined : json['NicIds'], + 'privateDnsNames': !exists(json, 'PrivateDnsNames') ? undefined : json['PrivateDnsNames'], + 'privateIpsLinkPublicIpAccountIds': !exists(json, 'PrivateIpsLinkPublicIpAccountIds') ? undefined : json['PrivateIpsLinkPublicIpAccountIds'], + 'privateIpsLinkPublicIpPublicIps': !exists(json, 'PrivateIpsLinkPublicIpPublicIps') ? undefined : json['PrivateIpsLinkPublicIpPublicIps'], + 'privateIpsPrimaryIp': !exists(json, 'PrivateIpsPrimaryIp') ? undefined : json['PrivateIpsPrimaryIp'], + 'privateIpsPrivateIps': !exists(json, 'PrivateIpsPrivateIps') ? undefined : json['PrivateIpsPrivateIps'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroupNames': !exists(json, 'SecurityGroupNames') ? undefined : json['SecurityGroupNames'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subnetIds': !exists(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersNicToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Descriptions': value.descriptions, + 'IsSourceDestCheck': value.isSourceDestCheck, + 'LinkNicDeleteOnVmDeletion': value.linkNicDeleteOnVmDeletion, + 'LinkNicDeviceNumbers': value.linkNicDeviceNumbers, + 'LinkNicLinkNicIds': value.linkNicLinkNicIds, + 'LinkNicStates': value.linkNicStates, + 'LinkNicVmAccountIds': value.linkNicVmAccountIds, + 'LinkNicVmIds': value.linkNicVmIds, + 'LinkPublicIpAccountIds': value.linkPublicIpAccountIds, + 'LinkPublicIpLinkPublicIpIds': value.linkPublicIpLinkPublicIpIds, + 'LinkPublicIpPublicIpIds': value.linkPublicIpPublicIpIds, + 'LinkPublicIpPublicIps': value.linkPublicIpPublicIps, + 'MacAddresses': value.macAddresses, + 'NetIds': value.netIds, + 'NicIds': value.nicIds, + 'PrivateDnsNames': value.privateDnsNames, + 'PrivateIpsLinkPublicIpAccountIds': value.privateIpsLinkPublicIpAccountIds, + 'PrivateIpsLinkPublicIpPublicIps': value.privateIpsLinkPublicIpPublicIps, + 'PrivateIpsPrimaryIp': value.privateIpsPrimaryIp, + 'PrivateIpsPrivateIps': value.privateIpsPrivateIps, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroupNames': value.securityGroupNames, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersProductType.d.ts b/dist/esm/models/FiltersProductType.d.ts new file mode 100644 index 00000000..08d66f01 --- /dev/null +++ b/dist/esm/models/FiltersProductType.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersProductType + */ +export interface FiltersProductType { + /** + * The IDs of the product types. + * @type {Array} + * @memberof FiltersProductType + */ + productTypeIds?: Array; +} +export declare function FiltersProductTypeFromJSON(json: any): FiltersProductType; +export declare function FiltersProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersProductType; +export declare function FiltersProductTypeToJSON(value?: FiltersProductType | null): any; diff --git a/dist/esm/models/FiltersProductType.js b/dist/esm/models/FiltersProductType.js new file mode 100644 index 00000000..7ea1707b --- /dev/null +++ b/dist/esm/models/FiltersProductType.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersProductTypeFromJSON(json) { + return FiltersProductTypeFromJSONTyped(json, false); +} +export function FiltersProductTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'productTypeIds': !exists(json, 'ProductTypeIds') ? undefined : json['ProductTypeIds'], + }; +} +export function FiltersProductTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ProductTypeIds': value.productTypeIds, + }; +} diff --git a/dist/esm/models/FiltersPublicIp.d.ts b/dist/esm/models/FiltersPublicIp.d.ts new file mode 100644 index 00000000..65b7fa4f --- /dev/null +++ b/dist/esm/models/FiltersPublicIp.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersPublicIp + */ +export interface FiltersPublicIp { + /** + * The IDs representing the associations of public IPs with VMs or NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + linkPublicIpIds?: Array; + /** + * The account IDs of the owners of the NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + nicAccountIds?: Array; + /** + * The IDs of the NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + nicIds?: Array; + /** + * Whether the public IPs are for use in the public Cloud or in a Net. + * @type {Array} + * @memberof FiltersPublicIp + */ + placements?: Array; + /** + * The private IPs associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + privateIps?: Array; + /** + * The IDs of the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + publicIpIds?: Array; + /** + * The public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + publicIps?: Array; + /** + * The keys of the tags associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + tagKeys?: Array; + /** + * The values of the tags associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the public IPs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersPublicIp + */ + tags?: Array; + /** + * The IDs of the VMs. + * @type {Array} + * @memberof FiltersPublicIp + */ + vmIds?: Array; +} +export declare function FiltersPublicIpFromJSON(json: any): FiltersPublicIp; +export declare function FiltersPublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersPublicIp; +export declare function FiltersPublicIpToJSON(value?: FiltersPublicIp | null): any; diff --git a/dist/esm/models/FiltersPublicIp.js b/dist/esm/models/FiltersPublicIp.js new file mode 100644 index 00000000..f8545017 --- /dev/null +++ b/dist/esm/models/FiltersPublicIp.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersPublicIpFromJSON(json) { + return FiltersPublicIpFromJSONTyped(json, false); +} +export function FiltersPublicIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpIds': !exists(json, 'LinkPublicIpIds') ? undefined : json['LinkPublicIpIds'], + 'nicAccountIds': !exists(json, 'NicAccountIds') ? undefined : json['NicAccountIds'], + 'nicIds': !exists(json, 'NicIds') ? undefined : json['NicIds'], + 'placements': !exists(json, 'Placements') ? undefined : json['Placements'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'publicIpIds': !exists(json, 'PublicIpIds') ? undefined : json['PublicIpIds'], + 'publicIps': !exists(json, 'PublicIps') ? undefined : json['PublicIps'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +export function FiltersPublicIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpIds': value.linkPublicIpIds, + 'NicAccountIds': value.nicAccountIds, + 'NicIds': value.nicIds, + 'Placements': value.placements, + 'PrivateIps': value.privateIps, + 'PublicIpIds': value.publicIpIds, + 'PublicIps': value.publicIps, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/FiltersQuota.d.ts b/dist/esm/models/FiltersQuota.d.ts new file mode 100644 index 00000000..73c92289 --- /dev/null +++ b/dist/esm/models/FiltersQuota.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersQuota + */ +export interface FiltersQuota { + /** + * The group names of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + collections?: Array; + /** + * The names of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + quotaNames?: Array; + /** + * The resource IDs if these are resource-specific quotas, `global` if they are not. + * @type {Array} + * @memberof FiltersQuota + */ + quotaTypes?: Array; + /** + * The description of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + shortDescriptions?: Array; +} +export declare function FiltersQuotaFromJSON(json: any): FiltersQuota; +export declare function FiltersQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersQuota; +export declare function FiltersQuotaToJSON(value?: FiltersQuota | null): any; diff --git a/dist/esm/models/FiltersQuota.js b/dist/esm/models/FiltersQuota.js new file mode 100644 index 00000000..a3d2d9ef --- /dev/null +++ b/dist/esm/models/FiltersQuota.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersQuotaFromJSON(json) { + return FiltersQuotaFromJSONTyped(json, false); +} +export function FiltersQuotaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'collections': !exists(json, 'Collections') ? undefined : json['Collections'], + 'quotaNames': !exists(json, 'QuotaNames') ? undefined : json['QuotaNames'], + 'quotaTypes': !exists(json, 'QuotaTypes') ? undefined : json['QuotaTypes'], + 'shortDescriptions': !exists(json, 'ShortDescriptions') ? undefined : json['ShortDescriptions'], + }; +} +export function FiltersQuotaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Collections': value.collections, + 'QuotaNames': value.quotaNames, + 'QuotaTypes': value.quotaTypes, + 'ShortDescriptions': value.shortDescriptions, + }; +} diff --git a/dist/esm/models/FiltersRouteTable.d.ts b/dist/esm/models/FiltersRouteTable.d.ts new file mode 100644 index 00000000..2a33fd06 --- /dev/null +++ b/dist/esm/models/FiltersRouteTable.d.ts @@ -0,0 +1,123 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersRouteTable + */ +export interface FiltersRouteTable { + /** + * The IDs of the route tables involved in the associations. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkRouteTableIds?: Array; + /** + * The IDs of the associations between the route tables and the Subnets. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkRouteTableLinkRouteTableIds?: Array; + /** + * If true, the route tables are the main ones for their Nets. + * @type {boolean} + * @memberof FiltersRouteTable + */ + linkRouteTableMain?: boolean; + /** + * The IDs of the Subnets involved in the associations. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkSubnetIds?: Array; + /** + * The IDs of the Nets for the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + netIds?: Array; + /** + * The methods used to create a route. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeCreationMethods?: Array; + /** + * The IP ranges specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeDestinationIpRanges?: Array; + /** + * The service IDs specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeDestinationServiceIds?: Array; + /** + * The IDs of the gateways specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeGatewayIds?: Array; + /** + * The IDs of the NAT services specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeNatServiceIds?: Array; + /** + * The IDs of the Net peering connections specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeNetPeeringIds?: Array; + /** + * The states of routes in the route tables (`active` \| `blackhole`). The `blackhole` state indicates that the target of the route is not available. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeStates?: Array; + /** + * The IDs of the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeTableIds?: Array; + /** + * The IDs of the VMs specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeVmIds?: Array; + /** + * The keys of the tags associated with the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + tagKeys?: Array; + /** + * The values of the tags associated with the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the route tables, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersRouteTable + */ + tags?: Array; +} +export declare function FiltersRouteTableFromJSON(json: any): FiltersRouteTable; +export declare function FiltersRouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersRouteTable; +export declare function FiltersRouteTableToJSON(value?: FiltersRouteTable | null): any; diff --git a/dist/esm/models/FiltersRouteTable.js b/dist/esm/models/FiltersRouteTable.js new file mode 100644 index 00000000..3fdf10cc --- /dev/null +++ b/dist/esm/models/FiltersRouteTable.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersRouteTableFromJSON(json) { + return FiltersRouteTableFromJSONTyped(json, false); +} +export function FiltersRouteTableFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTableIds': !exists(json, 'LinkRouteTableIds') ? undefined : json['LinkRouteTableIds'], + 'linkRouteTableLinkRouteTableIds': !exists(json, 'LinkRouteTableLinkRouteTableIds') ? undefined : json['LinkRouteTableLinkRouteTableIds'], + 'linkRouteTableMain': !exists(json, 'LinkRouteTableMain') ? undefined : json['LinkRouteTableMain'], + 'linkSubnetIds': !exists(json, 'LinkSubnetIds') ? undefined : json['LinkSubnetIds'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'routeCreationMethods': !exists(json, 'RouteCreationMethods') ? undefined : json['RouteCreationMethods'], + 'routeDestinationIpRanges': !exists(json, 'RouteDestinationIpRanges') ? undefined : json['RouteDestinationIpRanges'], + 'routeDestinationServiceIds': !exists(json, 'RouteDestinationServiceIds') ? undefined : json['RouteDestinationServiceIds'], + 'routeGatewayIds': !exists(json, 'RouteGatewayIds') ? undefined : json['RouteGatewayIds'], + 'routeNatServiceIds': !exists(json, 'RouteNatServiceIds') ? undefined : json['RouteNatServiceIds'], + 'routeNetPeeringIds': !exists(json, 'RouteNetPeeringIds') ? undefined : json['RouteNetPeeringIds'], + 'routeStates': !exists(json, 'RouteStates') ? undefined : json['RouteStates'], + 'routeTableIds': !exists(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'routeVmIds': !exists(json, 'RouteVmIds') ? undefined : json['RouteVmIds'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersRouteTableToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTableIds': value.linkRouteTableIds, + 'LinkRouteTableLinkRouteTableIds': value.linkRouteTableLinkRouteTableIds, + 'LinkRouteTableMain': value.linkRouteTableMain, + 'LinkSubnetIds': value.linkSubnetIds, + 'NetIds': value.netIds, + 'RouteCreationMethods': value.routeCreationMethods, + 'RouteDestinationIpRanges': value.routeDestinationIpRanges, + 'RouteDestinationServiceIds': value.routeDestinationServiceIds, + 'RouteGatewayIds': value.routeGatewayIds, + 'RouteNatServiceIds': value.routeNatServiceIds, + 'RouteNetPeeringIds': value.routeNetPeeringIds, + 'RouteStates': value.routeStates, + 'RouteTableIds': value.routeTableIds, + 'RouteVmIds': value.routeVmIds, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersSecurityGroup.d.ts b/dist/esm/models/FiltersSecurityGroup.d.ts new file mode 100644 index 00000000..70ba62b9 --- /dev/null +++ b/dist/esm/models/FiltersSecurityGroup.d.ts @@ -0,0 +1,153 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSecurityGroup + */ +export interface FiltersSecurityGroup { + /** + * The account IDs of the owners of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + accountIds?: Array; + /** + * The descriptions of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + descriptions?: Array; + /** + * The account IDs that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleAccountIds?: Array; + /** + * The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleFromPortRanges?: Array; + /** + * The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleIpRanges?: Array; + /** + * The IP protocols for the permissions (`tcp` \| `udp` \| `icmp`, or a protocol number, or `-1` for all protocols). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleProtocols?: Array; + /** + * The IDs of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleSecurityGroupIds?: Array; + /** + * The names of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleSecurityGroupNames?: Array; + /** + * The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleToPortRanges?: Array; + /** + * The IDs of the Nets specified when the security groups were created. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + netIds?: Array; + /** + * The account IDs that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleAccountIds?: Array; + /** + * The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleFromPortRanges?: Array; + /** + * The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleIpRanges?: Array; + /** + * The IP protocols for the permissions (`tcp` \| `udp` \| `icmp`, or a protocol number, or `-1` for all protocols). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleProtocols?: Array; + /** + * The IDs of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleSecurityGroupIds?: Array; + /** + * The names of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleSecurityGroupNames?: Array; + /** + * The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleToPortRanges?: Array; + /** + * The IDs of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + securityGroupIds?: Array; + /** + * The names of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + securityGroupNames?: Array; + /** + * The keys of the tags associated with the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tagKeys?: Array; + /** + * The values of the tags associated with the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the security groups, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tags?: Array; +} +export declare function FiltersSecurityGroupFromJSON(json: any): FiltersSecurityGroup; +export declare function FiltersSecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSecurityGroup; +export declare function FiltersSecurityGroupToJSON(value?: FiltersSecurityGroup | null): any; diff --git a/dist/esm/models/FiltersSecurityGroup.js b/dist/esm/models/FiltersSecurityGroup.js new file mode 100644 index 00000000..14df9132 --- /dev/null +++ b/dist/esm/models/FiltersSecurityGroup.js @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersSecurityGroupFromJSON(json) { + return FiltersSecurityGroupFromJSONTyped(json, false); +} +export function FiltersSecurityGroupFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'inboundRuleAccountIds': !exists(json, 'InboundRuleAccountIds') ? undefined : json['InboundRuleAccountIds'], + 'inboundRuleFromPortRanges': !exists(json, 'InboundRuleFromPortRanges') ? undefined : json['InboundRuleFromPortRanges'], + 'inboundRuleIpRanges': !exists(json, 'InboundRuleIpRanges') ? undefined : json['InboundRuleIpRanges'], + 'inboundRuleProtocols': !exists(json, 'InboundRuleProtocols') ? undefined : json['InboundRuleProtocols'], + 'inboundRuleSecurityGroupIds': !exists(json, 'InboundRuleSecurityGroupIds') ? undefined : json['InboundRuleSecurityGroupIds'], + 'inboundRuleSecurityGroupNames': !exists(json, 'InboundRuleSecurityGroupNames') ? undefined : json['InboundRuleSecurityGroupNames'], + 'inboundRuleToPortRanges': !exists(json, 'InboundRuleToPortRanges') ? undefined : json['InboundRuleToPortRanges'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'outboundRuleAccountIds': !exists(json, 'OutboundRuleAccountIds') ? undefined : json['OutboundRuleAccountIds'], + 'outboundRuleFromPortRanges': !exists(json, 'OutboundRuleFromPortRanges') ? undefined : json['OutboundRuleFromPortRanges'], + 'outboundRuleIpRanges': !exists(json, 'OutboundRuleIpRanges') ? undefined : json['OutboundRuleIpRanges'], + 'outboundRuleProtocols': !exists(json, 'OutboundRuleProtocols') ? undefined : json['OutboundRuleProtocols'], + 'outboundRuleSecurityGroupIds': !exists(json, 'OutboundRuleSecurityGroupIds') ? undefined : json['OutboundRuleSecurityGroupIds'], + 'outboundRuleSecurityGroupNames': !exists(json, 'OutboundRuleSecurityGroupNames') ? undefined : json['OutboundRuleSecurityGroupNames'], + 'outboundRuleToPortRanges': !exists(json, 'OutboundRuleToPortRanges') ? undefined : json['OutboundRuleToPortRanges'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroupNames': !exists(json, 'SecurityGroupNames') ? undefined : json['SecurityGroupNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersSecurityGroupToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountIds': value.accountIds, + 'Descriptions': value.descriptions, + 'InboundRuleAccountIds': value.inboundRuleAccountIds, + 'InboundRuleFromPortRanges': value.inboundRuleFromPortRanges, + 'InboundRuleIpRanges': value.inboundRuleIpRanges, + 'InboundRuleProtocols': value.inboundRuleProtocols, + 'InboundRuleSecurityGroupIds': value.inboundRuleSecurityGroupIds, + 'InboundRuleSecurityGroupNames': value.inboundRuleSecurityGroupNames, + 'InboundRuleToPortRanges': value.inboundRuleToPortRanges, + 'NetIds': value.netIds, + 'OutboundRuleAccountIds': value.outboundRuleAccountIds, + 'OutboundRuleFromPortRanges': value.outboundRuleFromPortRanges, + 'OutboundRuleIpRanges': value.outboundRuleIpRanges, + 'OutboundRuleProtocols': value.outboundRuleProtocols, + 'OutboundRuleSecurityGroupIds': value.outboundRuleSecurityGroupIds, + 'OutboundRuleSecurityGroupNames': value.outboundRuleSecurityGroupNames, + 'OutboundRuleToPortRanges': value.outboundRuleToPortRanges, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroupNames': value.securityGroupNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersServerCertificate.d.ts b/dist/esm/models/FiltersServerCertificate.d.ts new file mode 100644 index 00000000..ed5f6e9b --- /dev/null +++ b/dist/esm/models/FiltersServerCertificate.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersServerCertificate + */ +export interface FiltersServerCertificate { + /** + * The paths to the server certificates. + * @type {Array} + * @memberof FiltersServerCertificate + */ + paths?: Array; +} +export declare function FiltersServerCertificateFromJSON(json: any): FiltersServerCertificate; +export declare function FiltersServerCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersServerCertificate; +export declare function FiltersServerCertificateToJSON(value?: FiltersServerCertificate | null): any; diff --git a/dist/esm/models/FiltersServerCertificate.js b/dist/esm/models/FiltersServerCertificate.js new file mode 100644 index 00000000..9e3deb8d --- /dev/null +++ b/dist/esm/models/FiltersServerCertificate.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersServerCertificateFromJSON(json) { + return FiltersServerCertificateFromJSONTyped(json, false); +} +export function FiltersServerCertificateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'paths': !exists(json, 'Paths') ? undefined : json['Paths'], + }; +} +export function FiltersServerCertificateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Paths': value.paths, + }; +} diff --git a/dist/esm/models/FiltersService.d.ts b/dist/esm/models/FiltersService.d.ts new file mode 100644 index 00000000..d70f8634 --- /dev/null +++ b/dist/esm/models/FiltersService.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersService + */ +export interface FiltersService { + /** + * The IDs of the services. + * @type {Array} + * @memberof FiltersService + */ + serviceIds?: Array; + /** + * The names of the services. + * @type {Array} + * @memberof FiltersService + */ + serviceNames?: Array; +} +export declare function FiltersServiceFromJSON(json: any): FiltersService; +export declare function FiltersServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersService; +export declare function FiltersServiceToJSON(value?: FiltersService | null): any; diff --git a/dist/esm/models/FiltersService.js b/dist/esm/models/FiltersService.js new file mode 100644 index 00000000..8b2f9e13 --- /dev/null +++ b/dist/esm/models/FiltersService.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersServiceFromJSON(json) { + return FiltersServiceFromJSONTyped(json, false); +} +export function FiltersServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'serviceIds': !exists(json, 'ServiceIds') ? undefined : json['ServiceIds'], + 'serviceNames': !exists(json, 'ServiceNames') ? undefined : json['ServiceNames'], + }; +} +export function FiltersServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ServiceIds': value.serviceIds, + 'ServiceNames': value.serviceNames, + }; +} diff --git a/dist/esm/models/FiltersSnapshot.d.ts b/dist/esm/models/FiltersSnapshot.d.ts new file mode 100644 index 00000000..b4853712 --- /dev/null +++ b/dist/esm/models/FiltersSnapshot.d.ts @@ -0,0 +1,99 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSnapshot + */ +export interface FiltersSnapshot { + /** + * The account aliases of the owners of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + accountAliases?: Array; + /** + * The account IDs of the owners of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + accountIds?: Array; + /** + * The descriptions of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + descriptions?: Array; + /** + * The account IDs of one or more users who have permissions to create volumes. + * @type {Array} + * @memberof FiltersSnapshot + */ + permissionsToCreateVolumeAccountIds?: Array; + /** + * If true, lists all public volumes. If false, lists all private volumes. + * @type {boolean} + * @memberof FiltersSnapshot + */ + permissionsToCreateVolumeGlobalPermission?: boolean; + /** + * The progresses of the snapshots, as a percentage. + * @type {Array} + * @memberof FiltersSnapshot + */ + progresses?: Array; + /** + * The IDs of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + snapshotIds?: Array; + /** + * The states of the snapshots (`in-queue` \| `completed` \| `error`). + * @type {Array} + * @memberof FiltersSnapshot + */ + states?: Array; + /** + * The keys of the tags associated with the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + tagKeys?: Array; + /** + * The values of the tags associated with the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the snapshots, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSnapshot + */ + tags?: Array; + /** + * The IDs of the volumes used to create the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + volumeIds?: Array; + /** + * The sizes of the volumes used to create the snapshots, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersSnapshot + */ + volumeSizes?: Array; +} +export declare function FiltersSnapshotFromJSON(json: any): FiltersSnapshot; +export declare function FiltersSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSnapshot; +export declare function FiltersSnapshotToJSON(value?: FiltersSnapshot | null): any; diff --git a/dist/esm/models/FiltersSnapshot.js b/dist/esm/models/FiltersSnapshot.js new file mode 100644 index 00000000..13eb815f --- /dev/null +++ b/dist/esm/models/FiltersSnapshot.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersSnapshotFromJSON(json) { + return FiltersSnapshotFromJSONTyped(json, false); +} +export function FiltersSnapshotFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAliases': !exists(json, 'AccountAliases') ? undefined : json['AccountAliases'], + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'permissionsToCreateVolumeAccountIds': !exists(json, 'PermissionsToCreateVolumeAccountIds') ? undefined : json['PermissionsToCreateVolumeAccountIds'], + 'permissionsToCreateVolumeGlobalPermission': !exists(json, 'PermissionsToCreateVolumeGlobalPermission') ? undefined : json['PermissionsToCreateVolumeGlobalPermission'], + 'progresses': !exists(json, 'Progresses') ? undefined : json['Progresses'], + 'snapshotIds': !exists(json, 'SnapshotIds') ? undefined : json['SnapshotIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'volumeIds': !exists(json, 'VolumeIds') ? undefined : json['VolumeIds'], + 'volumeSizes': !exists(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + }; +} +export function FiltersSnapshotToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAliases': value.accountAliases, + 'AccountIds': value.accountIds, + 'Descriptions': value.descriptions, + 'PermissionsToCreateVolumeAccountIds': value.permissionsToCreateVolumeAccountIds, + 'PermissionsToCreateVolumeGlobalPermission': value.permissionsToCreateVolumeGlobalPermission, + 'Progresses': value.progresses, + 'SnapshotIds': value.snapshotIds, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VolumeIds': value.volumeIds, + 'VolumeSizes': value.volumeSizes, + }; +} diff --git a/dist/esm/models/FiltersSubnet.d.ts b/dist/esm/models/FiltersSubnet.d.ts new file mode 100644 index 00000000..bb71cbe5 --- /dev/null +++ b/dist/esm/models/FiltersSubnet.d.ts @@ -0,0 +1,75 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSubnet + */ +export interface FiltersSubnet { + /** + * The number of available IPs. + * @type {Array} + * @memberof FiltersSubnet + */ + availableIpsCounts?: Array; + /** + * The IP ranges in the Subnets, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof FiltersSubnet + */ + ipRanges?: Array; + /** + * The IDs of the Nets in which the Subnets are. + * @type {Array} + * @memberof FiltersSubnet + */ + netIds?: Array; + /** + * The states of the Subnets (`pending` \| `available`). + * @type {Array} + * @memberof FiltersSubnet + */ + states?: Array; + /** + * The IDs of the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + subnetIds?: Array; + /** + * The names of the Subregions in which the Subnets are located. + * @type {Array} + * @memberof FiltersSubnet + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Subnets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSubnet + */ + tags?: Array; +} +export declare function FiltersSubnetFromJSON(json: any): FiltersSubnet; +export declare function FiltersSubnetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSubnet; +export declare function FiltersSubnetToJSON(value?: FiltersSubnet | null): any; diff --git a/dist/esm/models/FiltersSubnet.js b/dist/esm/models/FiltersSubnet.js new file mode 100644 index 00000000..6818689a --- /dev/null +++ b/dist/esm/models/FiltersSubnet.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersSubnetFromJSON(json) { + return FiltersSubnetFromJSONTyped(json, false); +} +export function FiltersSubnetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'availableIpsCounts': !exists(json, 'AvailableIpsCounts') ? undefined : json['AvailableIpsCounts'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subnetIds': !exists(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} +export function FiltersSubnetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AvailableIpsCounts': value.availableIpsCounts, + 'IpRanges': value.ipRanges, + 'NetIds': value.netIds, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} diff --git a/dist/esm/models/FiltersSubregion.d.ts b/dist/esm/models/FiltersSubregion.d.ts new file mode 100644 index 00000000..b2873a9f --- /dev/null +++ b/dist/esm/models/FiltersSubregion.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersSubregion + */ +export interface FiltersSubregion { + /** + * The names of the Subregions. + * @type {Array} + * @memberof FiltersSubregion + */ + subregionNames?: Array; +} +export declare function FiltersSubregionFromJSON(json: any): FiltersSubregion; +export declare function FiltersSubregionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSubregion; +export declare function FiltersSubregionToJSON(value?: FiltersSubregion | null): any; diff --git a/dist/esm/models/FiltersSubregion.js b/dist/esm/models/FiltersSubregion.js new file mode 100644 index 00000000..f5fff7ae --- /dev/null +++ b/dist/esm/models/FiltersSubregion.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersSubregionFromJSON(json) { + return FiltersSubregionFromJSONTyped(json, false); +} +export function FiltersSubregionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + }; +} +export function FiltersSubregionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SubregionNames': value.subregionNames, + }; +} diff --git a/dist/esm/models/FiltersTag.d.ts b/dist/esm/models/FiltersTag.d.ts new file mode 100644 index 00000000..86936a00 --- /dev/null +++ b/dist/esm/models/FiltersTag.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersTag + */ +export interface FiltersTag { + /** + * The keys of the tags that are assigned to the resources. You can use this filter alongside the `Values` filter. In that case, you filter the resources corresponding to each tag, regardless of the other filter. + * @type {Array} + * @memberof FiltersTag + */ + keys?: Array; + /** + * The IDs of the resources with which the tags are associated. + * @type {Array} + * @memberof FiltersTag + */ + resourceIds?: Array; + /** + * The resource type (`vm` \| `image` \| `volume` \| `snapshot` \| `public-ip` \| `security-group` \| `route-table` \| `nic` \| `net` \| `subnet` \| `net-peering` \| `net-access-point` \| `nat-service` \| `internet-service` \| `client-gateway` \| `virtual-gateway` \| `vpn-connection` \| `dhcp-options` \| `task`). + * @type {Array} + * @memberof FiltersTag + */ + resourceTypes?: Array; + /** + * The values of the tags that are assigned to the resources. You can use this filter alongside the `TagKeys` filter. In that case, you filter the resources corresponding to each tag, regardless of the other filter. + * @type {Array} + * @memberof FiltersTag + */ + values?: Array; +} +export declare function FiltersTagFromJSON(json: any): FiltersTag; +export declare function FiltersTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersTag; +export declare function FiltersTagToJSON(value?: FiltersTag | null): any; diff --git a/dist/esm/models/FiltersTag.js b/dist/esm/models/FiltersTag.js new file mode 100644 index 00000000..21046489 --- /dev/null +++ b/dist/esm/models/FiltersTag.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersTagFromJSON(json) { + return FiltersTagFromJSONTyped(json, false); +} +export function FiltersTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keys': !exists(json, 'Keys') ? undefined : json['Keys'], + 'resourceIds': !exists(json, 'ResourceIds') ? undefined : json['ResourceIds'], + 'resourceTypes': !exists(json, 'ResourceTypes') ? undefined : json['ResourceTypes'], + 'values': !exists(json, 'Values') ? undefined : json['Values'], + }; +} +export function FiltersTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Keys': value.keys, + 'ResourceIds': value.resourceIds, + 'ResourceTypes': value.resourceTypes, + 'Values': value.values, + }; +} diff --git a/dist/esm/models/FiltersVirtualGateway.d.ts b/dist/esm/models/FiltersVirtualGateway.d.ts new file mode 100644 index 00000000..7f41fffd --- /dev/null +++ b/dist/esm/models/FiltersVirtualGateway.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVirtualGateway + */ +export interface FiltersVirtualGateway { + /** + * The types of the virtual gateways (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + connectionTypes?: Array; + /** + * The IDs of the Nets the virtual gateways are attached to. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + linkNetIds?: Array; + /** + * The current states of the attachments between the virtual gateways and the Nets (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + linkStates?: Array; + /** + * The states of the virtual gateways (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + states?: Array; + /** + * The keys of the tags associated with the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tagKeys?: Array; + /** + * The values of the tags associated with the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the virtual gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tags?: Array; + /** + * The IDs of the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + virtualGatewayIds?: Array; +} +export declare function FiltersVirtualGatewayFromJSON(json: any): FiltersVirtualGateway; +export declare function FiltersVirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVirtualGateway; +export declare function FiltersVirtualGatewayToJSON(value?: FiltersVirtualGateway | null): any; diff --git a/dist/esm/models/FiltersVirtualGateway.js b/dist/esm/models/FiltersVirtualGateway.js new file mode 100644 index 00000000..036f5ce5 --- /dev/null +++ b/dist/esm/models/FiltersVirtualGateway.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersVirtualGatewayFromJSON(json) { + return FiltersVirtualGatewayFromJSONTyped(json, false); +} +export function FiltersVirtualGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'connectionTypes': !exists(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'linkNetIds': !exists(json, 'LinkNetIds') ? undefined : json['LinkNetIds'], + 'linkStates': !exists(json, 'LinkStates') ? undefined : json['LinkStates'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'virtualGatewayIds': !exists(json, 'VirtualGatewayIds') ? undefined : json['VirtualGatewayIds'], + }; +} +export function FiltersVirtualGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConnectionTypes': value.connectionTypes, + 'LinkNetIds': value.linkNetIds, + 'LinkStates': value.linkStates, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualGatewayIds': value.virtualGatewayIds, + }; +} diff --git a/dist/esm/models/FiltersVm.d.ts b/dist/esm/models/FiltersVm.d.ts new file mode 100644 index 00000000..4abd63d1 --- /dev/null +++ b/dist/esm/models/FiltersVm.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVm + */ +export interface FiltersVm { + /** + * The keys of the tags associated with the VMs. + * @type {Array} + * @memberof FiltersVm + */ + tagKeys?: Array; + /** + * The values of the tags associated with the VMs. + * @type {Array} + * @memberof FiltersVm + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the VMs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVm + */ + tags?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVm + */ + vmIds?: Array; +} +export declare function FiltersVmFromJSON(json: any): FiltersVm; +export declare function FiltersVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVm; +export declare function FiltersVmToJSON(value?: FiltersVm | null): any; diff --git a/dist/esm/models/FiltersVm.js b/dist/esm/models/FiltersVm.js new file mode 100644 index 00000000..53f8b61e --- /dev/null +++ b/dist/esm/models/FiltersVm.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersVmFromJSON(json) { + return FiltersVmFromJSONTyped(json, false); +} +export function FiltersVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +export function FiltersVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/FiltersVmType.d.ts b/dist/esm/models/FiltersVmType.d.ts new file mode 100644 index 00000000..3f8da068 --- /dev/null +++ b/dist/esm/models/FiltersVmType.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVmType + */ +export interface FiltersVmType { + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof FiltersVmType + */ + bsuOptimized?: boolean; + /** + * The amounts of memory, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVmType + */ + memorySizes?: Array; + /** + * The numbers of vCores. + * @type {Array} + * @memberof FiltersVmType + */ + vcoreCounts?: Array; + /** + * The names of the VM types. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {Array} + * @memberof FiltersVmType + */ + vmTypeNames?: Array; + /** + * The maximum number of ephemeral storage disks. + * @type {Array} + * @memberof FiltersVmType + */ + volumeCounts?: Array; + /** + * The size of one ephemeral storage disk, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVmType + */ + volumeSizes?: Array; +} +export declare function FiltersVmTypeFromJSON(json: any): FiltersVmType; +export declare function FiltersVmTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVmType; +export declare function FiltersVmTypeToJSON(value?: FiltersVmType | null): any; diff --git a/dist/esm/models/FiltersVmType.js b/dist/esm/models/FiltersVmType.js new file mode 100644 index 00000000..c7ab595f --- /dev/null +++ b/dist/esm/models/FiltersVmType.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersVmTypeFromJSON(json) { + return FiltersVmTypeFromJSONTyped(json, false); +} +export function FiltersVmTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'memorySizes': !exists(json, 'MemorySizes') ? undefined : json['MemorySizes'], + 'vcoreCounts': !exists(json, 'VcoreCounts') ? undefined : json['VcoreCounts'], + 'vmTypeNames': !exists(json, 'VmTypeNames') ? undefined : json['VmTypeNames'], + 'volumeCounts': !exists(json, 'VolumeCounts') ? undefined : json['VolumeCounts'], + 'volumeSizes': !exists(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + }; +} +export function FiltersVmTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BsuOptimized': value.bsuOptimized, + 'MemorySizes': value.memorySizes, + 'VcoreCounts': value.vcoreCounts, + 'VmTypeNames': value.vmTypeNames, + 'VolumeCounts': value.volumeCounts, + 'VolumeSizes': value.volumeSizes, + }; +} diff --git a/dist/esm/models/FiltersVmsState.d.ts b/dist/esm/models/FiltersVmsState.d.ts new file mode 100644 index 00000000..203af45a --- /dev/null +++ b/dist/esm/models/FiltersVmsState.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVmsState + */ +export interface FiltersVmsState { + /** + * The code for the scheduled event (`system-reboot` \| `system-maintenance`). + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventCodes?: Array; + /** + * The description of the scheduled event. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventDescriptions?: Array; + /** + * The latest time the event can end. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventsNotAfter?: Array; + /** + * The earliest time the event can start. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventsNotBefore?: Array; + /** + * The names of the Subregions of the VMs. + * @type {Array} + * @memberof FiltersVmsState + */ + subregionNames?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVmsState + */ + vmIds?: Array; + /** + * The states of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {Array} + * @memberof FiltersVmsState + */ + vmStates?: Array; +} +export declare function FiltersVmsStateFromJSON(json: any): FiltersVmsState; +export declare function FiltersVmsStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVmsState; +export declare function FiltersVmsStateToJSON(value?: FiltersVmsState | null): any; diff --git a/dist/esm/models/FiltersVmsState.js b/dist/esm/models/FiltersVmsState.js new file mode 100644 index 00000000..b777b072 --- /dev/null +++ b/dist/esm/models/FiltersVmsState.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersVmsStateFromJSON(json) { + return FiltersVmsStateFromJSONTyped(json, false); +} +export function FiltersVmsStateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'maintenanceEventCodes': !exists(json, 'MaintenanceEventCodes') ? undefined : json['MaintenanceEventCodes'], + 'maintenanceEventDescriptions': !exists(json, 'MaintenanceEventDescriptions') ? undefined : json['MaintenanceEventDescriptions'], + 'maintenanceEventsNotAfter': !exists(json, 'MaintenanceEventsNotAfter') ? undefined : json['MaintenanceEventsNotAfter'], + 'maintenanceEventsNotBefore': !exists(json, 'MaintenanceEventsNotBefore') ? undefined : json['MaintenanceEventsNotBefore'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + 'vmStates': !exists(json, 'VmStates') ? undefined : json['VmStates'], + }; +} +export function FiltersVmsStateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'MaintenanceEventCodes': value.maintenanceEventCodes, + 'MaintenanceEventDescriptions': value.maintenanceEventDescriptions, + 'MaintenanceEventsNotAfter': value.maintenanceEventsNotAfter, + 'MaintenanceEventsNotBefore': value.maintenanceEventsNotBefore, + 'SubregionNames': value.subregionNames, + 'VmIds': value.vmIds, + 'VmStates': value.vmStates, + }; +} diff --git a/dist/esm/models/FiltersVolume.d.ts b/dist/esm/models/FiltersVolume.d.ts new file mode 100644 index 00000000..6059948d --- /dev/null +++ b/dist/esm/models/FiltersVolume.d.ts @@ -0,0 +1,111 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVolume + */ +export interface FiltersVolume { + /** + * The dates and times at which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + creationDates?: Array; + /** + * Whether the volumes are deleted or not when terminating the VMs. + * @type {boolean} + * @memberof FiltersVolume + */ + linkVolumeDeleteOnVmDeletion?: boolean; + /** + * The VM device names. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeDeviceNames?: Array; + /** + * The dates and times at which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeLinkDates?: Array; + /** + * The attachment states of the volumes (`attaching` \| `detaching` \| `attached` \| `detached`). + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeLinkStates?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeVmIds?: Array; + /** + * The snapshots from which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + snapshotIds?: Array; + /** + * The names of the Subregions in which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + tagKeys?: Array; + /** + * The values of the tags associated with the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the volumes, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVolume + */ + tags?: Array; + /** + * The IDs of the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + volumeIds?: Array; + /** + * The sizes of the volumes, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVolume + */ + volumeSizes?: Array; + /** + * The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). + * @type {Array} + * @memberof FiltersVolume + */ + volumeStates?: Array; + /** + * The types of the volumes (`standard` \| `gp2` \| `io1`). + * @type {Array} + * @memberof FiltersVolume + */ + volumeTypes?: Array; +} +export declare function FiltersVolumeFromJSON(json: any): FiltersVolume; +export declare function FiltersVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVolume; +export declare function FiltersVolumeToJSON(value?: FiltersVolume | null): any; diff --git a/dist/esm/models/FiltersVolume.js b/dist/esm/models/FiltersVolume.js new file mode 100644 index 00000000..7723afdc --- /dev/null +++ b/dist/esm/models/FiltersVolume.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersVolumeFromJSON(json) { + return FiltersVolumeFromJSONTyped(json, false); +} +export function FiltersVolumeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'creationDates': !exists(json, 'CreationDates') ? undefined : json['CreationDates'], + 'linkVolumeDeleteOnVmDeletion': !exists(json, 'LinkVolumeDeleteOnVmDeletion') ? undefined : json['LinkVolumeDeleteOnVmDeletion'], + 'linkVolumeDeviceNames': !exists(json, 'LinkVolumeDeviceNames') ? undefined : json['LinkVolumeDeviceNames'], + 'linkVolumeLinkDates': !exists(json, 'LinkVolumeLinkDates') ? undefined : json['LinkVolumeLinkDates'], + 'linkVolumeLinkStates': !exists(json, 'LinkVolumeLinkStates') ? undefined : json['LinkVolumeLinkStates'], + 'linkVolumeVmIds': !exists(json, 'LinkVolumeVmIds') ? undefined : json['LinkVolumeVmIds'], + 'snapshotIds': !exists(json, 'SnapshotIds') ? undefined : json['SnapshotIds'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'volumeIds': !exists(json, 'VolumeIds') ? undefined : json['VolumeIds'], + 'volumeSizes': !exists(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + 'volumeStates': !exists(json, 'VolumeStates') ? undefined : json['VolumeStates'], + 'volumeTypes': !exists(json, 'VolumeTypes') ? undefined : json['VolumeTypes'], + }; +} +export function FiltersVolumeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CreationDates': value.creationDates, + 'LinkVolumeDeleteOnVmDeletion': value.linkVolumeDeleteOnVmDeletion, + 'LinkVolumeDeviceNames': value.linkVolumeDeviceNames, + 'LinkVolumeLinkDates': value.linkVolumeLinkDates, + 'LinkVolumeLinkStates': value.linkVolumeLinkStates, + 'LinkVolumeVmIds': value.linkVolumeVmIds, + 'SnapshotIds': value.snapshotIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VolumeIds': value.volumeIds, + 'VolumeSizes': value.volumeSizes, + 'VolumeStates': value.volumeStates, + 'VolumeTypes': value.volumeTypes, + }; +} diff --git a/dist/esm/models/FiltersVpnConnection.d.ts b/dist/esm/models/FiltersVpnConnection.d.ts new file mode 100644 index 00000000..536e810d --- /dev/null +++ b/dist/esm/models/FiltersVpnConnection.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more filters. + * @export + * @interface FiltersVpnConnection + */ +export interface FiltersVpnConnection { + /** + * The Border Gateway Protocol (BGP) Autonomous System Numbers (ASNs) of the connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + bgpAsns?: Array; + /** + * The IDs of the client gateways. + * @type {Array} + * @memberof FiltersVpnConnection + */ + clientGatewayIds?: Array; + /** + * The types of the VPN connections (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersVpnConnection + */ + connectionTypes?: Array; + /** + * The destination IP ranges. + * @type {Array} + * @memberof FiltersVpnConnection + */ + routeDestinationIpRanges?: Array; + /** + * The states of the VPN connections (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersVpnConnection + */ + states?: Array; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof FiltersVpnConnection + */ + staticRoutesOnly?: boolean; + /** + * The keys of the tags associated with the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tagKeys?: Array; + /** + * The values of the tags associated with the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the VPN connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tags?: Array; + /** + * The IDs of the virtual gateways. + * @type {Array} + * @memberof FiltersVpnConnection + */ + virtualGatewayIds?: Array; + /** + * The IDs of the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + vpnConnectionIds?: Array; +} +export declare function FiltersVpnConnectionFromJSON(json: any): FiltersVpnConnection; +export declare function FiltersVpnConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVpnConnection; +export declare function FiltersVpnConnectionToJSON(value?: FiltersVpnConnection | null): any; diff --git a/dist/esm/models/FiltersVpnConnection.js b/dist/esm/models/FiltersVpnConnection.js new file mode 100644 index 00000000..750b87a8 --- /dev/null +++ b/dist/esm/models/FiltersVpnConnection.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FiltersVpnConnectionFromJSON(json) { + return FiltersVpnConnectionFromJSONTyped(json, false); +} +export function FiltersVpnConnectionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bgpAsns': !exists(json, 'BgpAsns') ? undefined : json['BgpAsns'], + 'clientGatewayIds': !exists(json, 'ClientGatewayIds') ? undefined : json['ClientGatewayIds'], + 'connectionTypes': !exists(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'routeDestinationIpRanges': !exists(json, 'RouteDestinationIpRanges') ? undefined : json['RouteDestinationIpRanges'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'staticRoutesOnly': !exists(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'virtualGatewayIds': !exists(json, 'VirtualGatewayIds') ? undefined : json['VirtualGatewayIds'], + 'vpnConnectionIds': !exists(json, 'VpnConnectionIds') ? undefined : json['VpnConnectionIds'], + }; +} +export function FiltersVpnConnectionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BgpAsns': value.bgpAsns, + 'ClientGatewayIds': value.clientGatewayIds, + 'ConnectionTypes': value.connectionTypes, + 'RouteDestinationIpRanges': value.routeDestinationIpRanges, + 'States': value.states, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualGatewayIds': value.virtualGatewayIds, + 'VpnConnectionIds': value.vpnConnectionIds, + }; +} diff --git a/dist/esm/models/FlexibleGpu.d.ts b/dist/esm/models/FlexibleGpu.d.ts new file mode 100644 index 00000000..83d481bf --- /dev/null +++ b/dist/esm/models/FlexibleGpu.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the flexible GPU (fGPU). + * @export + * @interface FlexibleGpu + */ +export interface FlexibleGpu { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof FlexibleGpu + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the fGPU. + * @type {string} + * @memberof FlexibleGpu + */ + flexibleGpuId?: string; + /** + * The compatible processor generation. + * @type {string} + * @memberof FlexibleGpu + */ + generation?: string; + /** + * The model of fGPU. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {string} + * @memberof FlexibleGpu + */ + modelName?: string; + /** + * The state of the fGPU (`allocated` \| `attaching` \| `attached` \| `detaching`). + * @type {string} + * @memberof FlexibleGpu + */ + state?: string; + /** + * The Subregion where the fGPU is located. + * @type {string} + * @memberof FlexibleGpu + */ + subregionName?: string; + /** + * The ID of the VM the fGPU is attached to, if any. + * @type {string} + * @memberof FlexibleGpu + */ + vmId?: string; +} +export declare function FlexibleGpuFromJSON(json: any): FlexibleGpu; +export declare function FlexibleGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlexibleGpu; +export declare function FlexibleGpuToJSON(value?: FlexibleGpu | null): any; diff --git a/dist/esm/models/FlexibleGpu.js b/dist/esm/models/FlexibleGpu.js new file mode 100644 index 00000000..6d053e74 --- /dev/null +++ b/dist/esm/models/FlexibleGpu.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FlexibleGpuFromJSON(json) { + return FlexibleGpuFromJSONTyped(json, false); +} +export function FlexibleGpuFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'flexibleGpuId': !exists(json, 'FlexibleGpuId') ? undefined : json['FlexibleGpuId'], + 'generation': !exists(json, 'Generation') ? undefined : json['Generation'], + 'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function FlexibleGpuToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'FlexibleGpuId': value.flexibleGpuId, + 'Generation': value.generation, + 'ModelName': value.modelName, + 'State': value.state, + 'SubregionName': value.subregionName, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/FlexibleGpuCatalog.d.ts b/dist/esm/models/FlexibleGpuCatalog.d.ts new file mode 100644 index 00000000..e5eee8c3 --- /dev/null +++ b/dist/esm/models/FlexibleGpuCatalog.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the flexible GPU (fGPU) that is available in the public catalog. + * @export + * @interface FlexibleGpuCatalog + */ +export interface FlexibleGpuCatalog { + /** + * The generations of VMs that the fGPU is compatible with. + * @type {Array} + * @memberof FlexibleGpuCatalog + */ + generations?: Array; + /** + * The maximum number of VM vCores that the fGPU is compatible with. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + maxCpu?: number; + /** + * The maximum amount of VM memory that the fGPU is compatible with. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + maxRam?: number; + /** + * The model of fGPU. + * @type {string} + * @memberof FlexibleGpuCatalog + */ + modelName?: string; + /** + * The amount of video RAM (VRAM) of the fGPU. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + vRam?: number; +} +export declare function FlexibleGpuCatalogFromJSON(json: any): FlexibleGpuCatalog; +export declare function FlexibleGpuCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlexibleGpuCatalog; +export declare function FlexibleGpuCatalogToJSON(value?: FlexibleGpuCatalog | null): any; diff --git a/dist/esm/models/FlexibleGpuCatalog.js b/dist/esm/models/FlexibleGpuCatalog.js new file mode 100644 index 00000000..9d0001d0 --- /dev/null +++ b/dist/esm/models/FlexibleGpuCatalog.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function FlexibleGpuCatalogFromJSON(json) { + return FlexibleGpuCatalogFromJSONTyped(json, false); +} +export function FlexibleGpuCatalogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'generations': !exists(json, 'Generations') ? undefined : json['Generations'], + 'maxCpu': !exists(json, 'MaxCpu') ? undefined : json['MaxCpu'], + 'maxRam': !exists(json, 'MaxRam') ? undefined : json['MaxRam'], + 'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'], + 'vRam': !exists(json, 'VRam') ? undefined : json['VRam'], + }; +} +export function FlexibleGpuCatalogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Generations': value.generations, + 'MaxCpu': value.maxCpu, + 'MaxRam': value.maxRam, + 'ModelName': value.modelName, + 'VRam': value.vRam, + }; +} diff --git a/dist/esm/models/HealthCheck.d.ts b/dist/esm/models/HealthCheck.d.ts new file mode 100644 index 00000000..e217f297 --- /dev/null +++ b/dist/esm/models/HealthCheck.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the health check configuration. + * @export + * @interface HealthCheck + */ +export interface HealthCheck { + /** + * The number of seconds between two pings (between `5` and `600` both included). + * @type {number} + * @memberof HealthCheck + */ + checkInterval: number; + /** + * The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). + * @type {number} + * @memberof HealthCheck + */ + healthyThreshold: number; + /** + * If you use the HTTP or HTTPS protocols, the ping path. + * @type {string} + * @memberof HealthCheck + */ + path?: string; + /** + * The port number (between `1` and `65535`, both included). + * @type {number} + * @memberof HealthCheck + */ + port: number; + /** + * The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof HealthCheck + */ + protocol: string; + /** + * The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). + * @type {number} + * @memberof HealthCheck + */ + timeout: number; + /** + * The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). + * @type {number} + * @memberof HealthCheck + */ + unhealthyThreshold: number; +} +export declare function HealthCheckFromJSON(json: any): HealthCheck; +export declare function HealthCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthCheck; +export declare function HealthCheckToJSON(value?: HealthCheck | null): any; diff --git a/dist/esm/models/HealthCheck.js b/dist/esm/models/HealthCheck.js new file mode 100644 index 00000000..dc9792b1 --- /dev/null +++ b/dist/esm/models/HealthCheck.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function HealthCheckFromJSON(json) { + return HealthCheckFromJSONTyped(json, false); +} +export function HealthCheckFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'checkInterval': json['CheckInterval'], + 'healthyThreshold': json['HealthyThreshold'], + 'path': !exists(json, 'Path') ? undefined : json['Path'], + 'port': json['Port'], + 'protocol': json['Protocol'], + 'timeout': json['Timeout'], + 'unhealthyThreshold': json['UnhealthyThreshold'], + }; +} +export function HealthCheckToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CheckInterval': value.checkInterval, + 'HealthyThreshold': value.healthyThreshold, + 'Path': value.path, + 'Port': value.port, + 'Protocol': value.protocol, + 'Timeout': value.timeout, + 'UnhealthyThreshold': value.unhealthyThreshold, + }; +} diff --git a/dist/esm/models/Image.d.ts b/dist/esm/models/Image.d.ts new file mode 100644 index 00000000..e4ded36e --- /dev/null +++ b/dist/esm/models/Image.d.ts @@ -0,0 +1,127 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingImage } from './BlockDeviceMappingImage'; +import { PermissionsOnResource } from './PermissionsOnResource'; +import { ResourceTag } from './ResourceTag'; +import { StateComment } from './StateComment'; +/** + * Information about the OMI. + * @export + * @interface Image + */ +export interface Image { + /** + * The account alias of the owner of the OMI. + * @type {string} + * @memberof Image + */ + accountAlias?: string; + /** + * The account ID of the owner of the OMI. + * @type {string} + * @memberof Image + */ + accountId?: string; + /** + * The architecture of the OMI (by default, `i386`). + * @type {string} + * @memberof Image + */ + architecture?: string; + /** + * One or more block device mappings. + * @type {Array} + * @memberof Image + */ + blockDeviceMappings?: Array; + /** + * The date and time at which the OMI was created. + * @type {Date} + * @memberof Image + */ + creationDate?: Date; + /** + * The description of the OMI. + * @type {string} + * @memberof Image + */ + description?: string; + /** + * The location of the bucket where the OMI files are stored. + * @type {string} + * @memberof Image + */ + fileLocation?: string; + /** + * The ID of the OMI. + * @type {string} + * @memberof Image + */ + imageId?: string; + /** + * The name of the OMI. + * @type {string} + * @memberof Image + */ + imageName?: string; + /** + * The type of the OMI. + * @type {string} + * @memberof Image + */ + imageType?: string; + /** + * + * @type {PermissionsOnResource} + * @memberof Image + */ + permissionsToLaunch?: PermissionsOnResource; + /** + * The product code associated with the OMI (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof Image + */ + productCodes?: Array; + /** + * The name of the root device. + * @type {string} + * @memberof Image + */ + rootDeviceName?: string; + /** + * The type of root device used by the OMI (always `bsu`). + * @type {string} + * @memberof Image + */ + rootDeviceType?: string; + /** + * The state of the OMI (`pending` \| `available` \| `failed`). + * @type {string} + * @memberof Image + */ + state?: string; + /** + * + * @type {StateComment} + * @memberof Image + */ + stateComment?: StateComment; + /** + * One or more tags associated with the OMI. + * @type {Array} + * @memberof Image + */ + tags?: Array; +} +export declare function ImageFromJSON(json: any): Image; +export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image; +export declare function ImageToJSON(value?: Image | null): any; diff --git a/dist/esm/models/Image.js b/dist/esm/models/Image.js new file mode 100644 index 00000000..4f4f74da --- /dev/null +++ b/dist/esm/models/Image.js @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BlockDeviceMappingImageFromJSON, BlockDeviceMappingImageToJSON, } from './BlockDeviceMappingImage'; +import { PermissionsOnResourceFromJSON, PermissionsOnResourceToJSON, } from './PermissionsOnResource'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { StateCommentFromJSON, StateCommentToJSON, } from './StateComment'; +export function ImageFromJSON(json) { + return ImageFromJSONTyped(json, false); +} +export function ImageFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAlias': !exists(json, 'AccountAlias') ? undefined : json['AccountAlias'], + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'architecture': !exists(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingImageFromJSON)), + 'creationDate': !exists(json, 'CreationDate') ? undefined : (new Date(json['CreationDate'])), + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'fileLocation': !exists(json, 'FileLocation') ? undefined : json['FileLocation'], + 'imageId': !exists(json, 'ImageId') ? undefined : json['ImageId'], + 'imageName': !exists(json, 'ImageName') ? undefined : json['ImageName'], + 'imageType': !exists(json, 'ImageType') ? undefined : json['ImageType'], + 'permissionsToLaunch': !exists(json, 'PermissionsToLaunch') ? undefined : PermissionsOnResourceFromJSON(json['PermissionsToLaunch']), + 'productCodes': !exists(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'rootDeviceName': !exists(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'rootDeviceType': !exists(json, 'RootDeviceType') ? undefined : json['RootDeviceType'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateComment': !exists(json, 'StateComment') ? undefined : StateCommentFromJSON(json['StateComment']), + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function ImageToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAlias': value.accountAlias, + 'AccountId': value.accountId, + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingImageToJSON)), + 'CreationDate': value.creationDate === undefined ? undefined : (value.creationDate.toISOString().substr(0, 10)), + 'Description': value.description, + 'FileLocation': value.fileLocation, + 'ImageId': value.imageId, + 'ImageName': value.imageName, + 'ImageType': value.imageType, + 'PermissionsToLaunch': PermissionsOnResourceToJSON(value.permissionsToLaunch), + 'ProductCodes': value.productCodes, + 'RootDeviceName': value.rootDeviceName, + 'RootDeviceType': value.rootDeviceType, + 'State': value.state, + 'StateComment': StateCommentToJSON(value.stateComment), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/ImageExportTask.d.ts b/dist/esm/models/ImageExportTask.d.ts new file mode 100644 index 00000000..772c2642 --- /dev/null +++ b/dist/esm/models/ImageExportTask.d.ts @@ -0,0 +1,65 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportImageExportTask } from './OsuExportImageExportTask'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the OMI export task. + * @export + * @interface ImageExportTask + */ +export interface ImageExportTask { + /** + * If the OMI export task fails, an error message appears. + * @type {string} + * @memberof ImageExportTask + */ + comment?: string; + /** + * The ID of the OMI to be exported. + * @type {string} + * @memberof ImageExportTask + */ + imageId?: string; + /** + * + * @type {OsuExportImageExportTask} + * @memberof ImageExportTask + */ + osuExport?: OsuExportImageExportTask; + /** + * The progress of the OMI export task, as a percentage. + * @type {number} + * @memberof ImageExportTask + */ + progress?: number; + /** + * The state of the OMI export task (`pending/queued` \| `pending` \| `completed` \| `failed` \| `cancelled`). + * @type {string} + * @memberof ImageExportTask + */ + state?: string; + /** + * One or more tags associated with the image export task. + * @type {Array} + * @memberof ImageExportTask + */ + tags?: Array; + /** + * The ID of the OMI export task. + * @type {string} + * @memberof ImageExportTask + */ + taskId?: string; +} +export declare function ImageExportTaskFromJSON(json: any): ImageExportTask; +export declare function ImageExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageExportTask; +export declare function ImageExportTaskToJSON(value?: ImageExportTask | null): any; diff --git a/dist/esm/models/ImageExportTask.js b/dist/esm/models/ImageExportTask.js new file mode 100644 index 00000000..c6b795c8 --- /dev/null +++ b/dist/esm/models/ImageExportTask.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { OsuExportImageExportTaskFromJSON, OsuExportImageExportTaskToJSON, } from './OsuExportImageExportTask'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function ImageExportTaskFromJSON(json) { + return ImageExportTaskFromJSONTyped(json, false); +} +export function ImageExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'comment': !exists(json, 'Comment') ? undefined : json['Comment'], + 'imageId': !exists(json, 'ImageId') ? undefined : json['ImageId'], + 'osuExport': !exists(json, 'OsuExport') ? undefined : OsuExportImageExportTaskFromJSON(json['OsuExport']), + 'progress': !exists(json, 'Progress') ? undefined : json['Progress'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'taskId': !exists(json, 'TaskId') ? undefined : json['TaskId'], + }; +} +export function ImageExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Comment': value.comment, + 'ImageId': value.imageId, + 'OsuExport': OsuExportImageExportTaskToJSON(value.osuExport), + 'Progress': value.progress, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'TaskId': value.taskId, + }; +} diff --git a/dist/esm/models/InternetService.d.ts b/dist/esm/models/InternetService.d.ts new file mode 100644 index 00000000..1a00c9c6 --- /dev/null +++ b/dist/esm/models/InternetService.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Internet service. + * @export + * @interface InternetService + */ +export interface InternetService { + /** + * The ID of the Internet service. + * @type {string} + * @memberof InternetService + */ + internetServiceId?: string; + /** + * The ID of the Net attached to the Internet service. + * @type {string} + * @memberof InternetService + */ + netId?: string; + /** + * The state of the attachment of the Internet service to the Net (always `available`). + * @type {string} + * @memberof InternetService + */ + state?: string; + /** + * One or more tags associated with the Internet service. + * @type {Array} + * @memberof InternetService + */ + tags?: Array; +} +export declare function InternetServiceFromJSON(json: any): InternetService; +export declare function InternetServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternetService; +export declare function InternetServiceToJSON(value?: InternetService | null): any; diff --git a/dist/esm/models/InternetService.js b/dist/esm/models/InternetService.js new file mode 100644 index 00000000..b746fa87 --- /dev/null +++ b/dist/esm/models/InternetService.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function InternetServiceFromJSON(json) { + return InternetServiceFromJSONTyped(json, false); +} +export function InternetServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetServiceId': !exists(json, 'InternetServiceId') ? undefined : json['InternetServiceId'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function InternetServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/Keypair.d.ts b/dist/esm/models/Keypair.d.ts new file mode 100644 index 00000000..2ea64a8a --- /dev/null +++ b/dist/esm/models/Keypair.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the keypair. + * @export + * @interface Keypair + */ +export interface Keypair { + /** + * The MD5 public key fingerprint as specified in section 4 of RFC 4716. + * @type {string} + * @memberof Keypair + */ + keypairFingerprint?: string; + /** + * The name of the keypair. + * @type {string} + * @memberof Keypair + */ + keypairName?: string; +} +export declare function KeypairFromJSON(json: any): Keypair; +export declare function KeypairFromJSONTyped(json: any, ignoreDiscriminator: boolean): Keypair; +export declare function KeypairToJSON(value?: Keypair | null): any; diff --git a/dist/esm/models/Keypair.js b/dist/esm/models/Keypair.js new file mode 100644 index 00000000..19a535de --- /dev/null +++ b/dist/esm/models/Keypair.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function KeypairFromJSON(json) { + return KeypairFromJSONTyped(json, false); +} +export function KeypairFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairFingerprint': !exists(json, 'KeypairFingerprint') ? undefined : json['KeypairFingerprint'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + }; +} +export function KeypairToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'KeypairFingerprint': value.keypairFingerprint, + 'KeypairName': value.keypairName, + }; +} diff --git a/dist/esm/models/KeypairCreated.d.ts b/dist/esm/models/KeypairCreated.d.ts new file mode 100644 index 00000000..e3ea7ac1 --- /dev/null +++ b/dist/esm/models/KeypairCreated.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the created keypair. + * @export + * @interface KeypairCreated + */ +export interface KeypairCreated { + /** + * The MD5 public key fingerprint as specified in section 4 of RFC 4716. + * @type {string} + * @memberof KeypairCreated + */ + keypairFingerprint?: string; + /** + * The name of the keypair. + * @type {string} + * @memberof KeypairCreated + */ + keypairName?: string; + /** + * The private key. When saving the private key in a .rsa file, replace the `\n` escape sequences with line breaks. + * @type {string} + * @memberof KeypairCreated + */ + privateKey?: string; +} +export declare function KeypairCreatedFromJSON(json: any): KeypairCreated; +export declare function KeypairCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeypairCreated; +export declare function KeypairCreatedToJSON(value?: KeypairCreated | null): any; diff --git a/dist/esm/models/KeypairCreated.js b/dist/esm/models/KeypairCreated.js new file mode 100644 index 00000000..1327aa2d --- /dev/null +++ b/dist/esm/models/KeypairCreated.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function KeypairCreatedFromJSON(json) { + return KeypairCreatedFromJSONTyped(json, false); +} +export function KeypairCreatedFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairFingerprint': !exists(json, 'KeypairFingerprint') ? undefined : json['KeypairFingerprint'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'privateKey': !exists(json, 'PrivateKey') ? undefined : json['PrivateKey'], + }; +} +export function KeypairCreatedToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'KeypairFingerprint': value.keypairFingerprint, + 'KeypairName': value.keypairName, + 'PrivateKey': value.privateKey, + }; +} diff --git a/dist/esm/models/LinkFlexibleGpuRequest.d.ts b/dist/esm/models/LinkFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..5a0950dc --- /dev/null +++ b/dist/esm/models/LinkFlexibleGpuRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkFlexibleGpuRequest + */ +export interface LinkFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to attach. + * @type {string} + * @memberof LinkFlexibleGpuRequest + */ + flexibleGpuId: string; + /** + * The ID of the VM you want to attach the fGPU to. + * @type {string} + * @memberof LinkFlexibleGpuRequest + */ + vmId: string; +} +export declare function LinkFlexibleGpuRequestFromJSON(json: any): LinkFlexibleGpuRequest; +export declare function LinkFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFlexibleGpuRequest; +export declare function LinkFlexibleGpuRequestToJSON(value?: LinkFlexibleGpuRequest | null): any; diff --git a/dist/esm/models/LinkFlexibleGpuRequest.js b/dist/esm/models/LinkFlexibleGpuRequest.js new file mode 100644 index 00000000..23b0aa2e --- /dev/null +++ b/dist/esm/models/LinkFlexibleGpuRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkFlexibleGpuRequestFromJSON(json) { + return LinkFlexibleGpuRequestFromJSONTyped(json, false); +} +export function LinkFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + 'vmId': json['VmId'], + }; +} +export function LinkFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/LinkFlexibleGpuResponse.d.ts b/dist/esm/models/LinkFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..393835c0 --- /dev/null +++ b/dist/esm/models/LinkFlexibleGpuResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkFlexibleGpuResponse + */ +export interface LinkFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkFlexibleGpuResponseFromJSON(json: any): LinkFlexibleGpuResponse; +export declare function LinkFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFlexibleGpuResponse; +export declare function LinkFlexibleGpuResponseToJSON(value?: LinkFlexibleGpuResponse | null): any; diff --git a/dist/esm/models/LinkFlexibleGpuResponse.js b/dist/esm/models/LinkFlexibleGpuResponse.js new file mode 100644 index 00000000..a9b23a1f --- /dev/null +++ b/dist/esm/models/LinkFlexibleGpuResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkFlexibleGpuResponseFromJSON(json) { + return LinkFlexibleGpuResponseFromJSONTyped(json, false); +} +export function LinkFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkInternetServiceRequest.d.ts b/dist/esm/models/LinkInternetServiceRequest.d.ts new file mode 100644 index 00000000..724a3605 --- /dev/null +++ b/dist/esm/models/LinkInternetServiceRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkInternetServiceRequest + */ +export interface LinkInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to attach. + * @type {string} + * @memberof LinkInternetServiceRequest + */ + internetServiceId: string; + /** + * The ID of the Net to which you want to attach the Internet service. + * @type {string} + * @memberof LinkInternetServiceRequest + */ + netId: string; +} +export declare function LinkInternetServiceRequestFromJSON(json: any): LinkInternetServiceRequest; +export declare function LinkInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkInternetServiceRequest; +export declare function LinkInternetServiceRequestToJSON(value?: LinkInternetServiceRequest | null): any; diff --git a/dist/esm/models/LinkInternetServiceRequest.js b/dist/esm/models/LinkInternetServiceRequest.js new file mode 100644 index 00000000..de425036 --- /dev/null +++ b/dist/esm/models/LinkInternetServiceRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkInternetServiceRequestFromJSON(json) { + return LinkInternetServiceRequestFromJSONTyped(json, false); +} +export function LinkInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + 'netId': json['NetId'], + }; +} +export function LinkInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/LinkInternetServiceResponse.d.ts b/dist/esm/models/LinkInternetServiceResponse.d.ts new file mode 100644 index 00000000..8f64c564 --- /dev/null +++ b/dist/esm/models/LinkInternetServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkInternetServiceResponse + */ +export interface LinkInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkInternetServiceResponseFromJSON(json: any): LinkInternetServiceResponse; +export declare function LinkInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkInternetServiceResponse; +export declare function LinkInternetServiceResponseToJSON(value?: LinkInternetServiceResponse | null): any; diff --git a/dist/esm/models/LinkInternetServiceResponse.js b/dist/esm/models/LinkInternetServiceResponse.js new file mode 100644 index 00000000..57a16f92 --- /dev/null +++ b/dist/esm/models/LinkInternetServiceResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkInternetServiceResponseFromJSON(json) { + return LinkInternetServiceResponseFromJSONTyped(json, false); +} +export function LinkInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkLoadBalancerBackendMachinesRequest.d.ts b/dist/esm/models/LinkLoadBalancerBackendMachinesRequest.d.ts new file mode 100644 index 00000000..ef9a74a6 --- /dev/null +++ b/dist/esm/models/LinkLoadBalancerBackendMachinesRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkLoadBalancerBackendMachinesRequest + */ +export interface LinkLoadBalancerBackendMachinesRequest { + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + loadBalancerName: string; +} +export declare function LinkLoadBalancerBackendMachinesRequestFromJSON(json: any): LinkLoadBalancerBackendMachinesRequest; +export declare function LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkLoadBalancerBackendMachinesRequest; +export declare function LinkLoadBalancerBackendMachinesRequestToJSON(value?: LinkLoadBalancerBackendMachinesRequest | null): any; diff --git a/dist/esm/models/LinkLoadBalancerBackendMachinesRequest.js b/dist/esm/models/LinkLoadBalancerBackendMachinesRequest.js new file mode 100644 index 00000000..14e5db93 --- /dev/null +++ b/dist/esm/models/LinkLoadBalancerBackendMachinesRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkLoadBalancerBackendMachinesRequestFromJSON(json) { + return LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, false); +} +export function LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendIps': !exists(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function LinkLoadBalancerBackendMachinesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/LinkLoadBalancerBackendMachinesResponse.d.ts b/dist/esm/models/LinkLoadBalancerBackendMachinesResponse.d.ts new file mode 100644 index 00000000..05be4e83 --- /dev/null +++ b/dist/esm/models/LinkLoadBalancerBackendMachinesResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkLoadBalancerBackendMachinesResponse + */ +export interface LinkLoadBalancerBackendMachinesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkLoadBalancerBackendMachinesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkLoadBalancerBackendMachinesResponseFromJSON(json: any): LinkLoadBalancerBackendMachinesResponse; +export declare function LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkLoadBalancerBackendMachinesResponse; +export declare function LinkLoadBalancerBackendMachinesResponseToJSON(value?: LinkLoadBalancerBackendMachinesResponse | null): any; diff --git a/dist/esm/models/LinkLoadBalancerBackendMachinesResponse.js b/dist/esm/models/LinkLoadBalancerBackendMachinesResponse.js new file mode 100644 index 00000000..50ba5000 --- /dev/null +++ b/dist/esm/models/LinkLoadBalancerBackendMachinesResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkLoadBalancerBackendMachinesResponseFromJSON(json) { + return LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, false); +} +export function LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkLoadBalancerBackendMachinesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkNic.d.ts b/dist/esm/models/LinkNic.d.ts new file mode 100644 index 00000000..bb0ca6cd --- /dev/null +++ b/dist/esm/models/LinkNic.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the NIC attachment. + * @export + * @interface LinkNic + */ +export interface LinkNic { + /** + * If true, the NIC is deleted when the VM is terminated. + * @type {boolean} + * @memberof LinkNic + */ + deleteOnVmDeletion?: boolean; + /** + * The device index for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNic + */ + deviceNumber?: number; + /** + * The ID of the NIC to attach. + * @type {string} + * @memberof LinkNic + */ + linkNicId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof LinkNic + */ + state?: string; + /** + * The account ID of the owner of the VM. + * @type {string} + * @memberof LinkNic + */ + vmAccountId?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof LinkNic + */ + vmId?: string; +} +export declare function LinkNicFromJSON(json: any): LinkNic; +export declare function LinkNicFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNic; +export declare function LinkNicToJSON(value?: LinkNic | null): any; diff --git a/dist/esm/models/LinkNic.js b/dist/esm/models/LinkNic.js new file mode 100644 index 00000000..a9932b50 --- /dev/null +++ b/dist/esm/models/LinkNic.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkNicFromJSON(json) { + return LinkNicFromJSONTyped(json, false); +} +export function LinkNicFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceNumber': !exists(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'vmAccountId': !exists(json, 'VmAccountId') ? undefined : json['VmAccountId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function LinkNicToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceNumber': value.deviceNumber, + 'LinkNicId': value.linkNicId, + 'State': value.state, + 'VmAccountId': value.vmAccountId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/LinkNicLight.d.ts b/dist/esm/models/LinkNicLight.d.ts new file mode 100644 index 00000000..1cd8f48c --- /dev/null +++ b/dist/esm/models/LinkNicLight.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the network interface card (NIC). + * @export + * @interface LinkNicLight + */ +export interface LinkNicLight { + /** + * If true, the NIC is deleted when the VM is terminated. + * @type {boolean} + * @memberof LinkNicLight + */ + deleteOnVmDeletion?: boolean; + /** + * The device index for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNicLight + */ + deviceNumber?: number; + /** + * The ID of the NIC to attach. + * @type {string} + * @memberof LinkNicLight + */ + linkNicId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof LinkNicLight + */ + state?: string; +} +export declare function LinkNicLightFromJSON(json: any): LinkNicLight; +export declare function LinkNicLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicLight; +export declare function LinkNicLightToJSON(value?: LinkNicLight | null): any; diff --git a/dist/esm/models/LinkNicLight.js b/dist/esm/models/LinkNicLight.js new file mode 100644 index 00000000..24edde5c --- /dev/null +++ b/dist/esm/models/LinkNicLight.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkNicLightFromJSON(json) { + return LinkNicLightFromJSONTyped(json, false); +} +export function LinkNicLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceNumber': !exists(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} +export function LinkNicLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceNumber': value.deviceNumber, + 'LinkNicId': value.linkNicId, + 'State': value.state, + }; +} diff --git a/dist/esm/models/LinkNicRequest.d.ts b/dist/esm/models/LinkNicRequest.d.ts new file mode 100644 index 00000000..8894da08 --- /dev/null +++ b/dist/esm/models/LinkNicRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkNicRequest + */ +export interface LinkNicRequest { + /** + * The index of the VM device for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNicRequest + */ + deviceNumber: number; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkNicRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC you want to attach. + * @type {string} + * @memberof LinkNicRequest + */ + nicId: string; + /** + * The ID of the VM to which you want to attach the NIC. + * @type {string} + * @memberof LinkNicRequest + */ + vmId: string; +} +export declare function LinkNicRequestFromJSON(json: any): LinkNicRequest; +export declare function LinkNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicRequest; +export declare function LinkNicRequestToJSON(value?: LinkNicRequest | null): any; diff --git a/dist/esm/models/LinkNicRequest.js b/dist/esm/models/LinkNicRequest.js new file mode 100644 index 00000000..8ece2580 --- /dev/null +++ b/dist/esm/models/LinkNicRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkNicRequestFromJSON(json) { + return LinkNicRequestFromJSONTyped(json, false); +} +export function LinkNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deviceNumber': json['DeviceNumber'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'vmId': json['VmId'], + }; +} +export function LinkNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeviceNumber': value.deviceNumber, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/LinkNicResponse.d.ts b/dist/esm/models/LinkNicResponse.d.ts new file mode 100644 index 00000000..a1366a1d --- /dev/null +++ b/dist/esm/models/LinkNicResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkNicResponse + */ +export interface LinkNicResponse { + /** + * The ID of the NIC attachment. + * @type {string} + * @memberof LinkNicResponse + */ + linkNicId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkNicResponseFromJSON(json: any): LinkNicResponse; +export declare function LinkNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicResponse; +export declare function LinkNicResponseToJSON(value?: LinkNicResponse | null): any; diff --git a/dist/esm/models/LinkNicResponse.js b/dist/esm/models/LinkNicResponse.js new file mode 100644 index 00000000..24508665 --- /dev/null +++ b/dist/esm/models/LinkNicResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkNicResponseFromJSON(json) { + return LinkNicResponseFromJSONTyped(json, false); +} +export function LinkNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkNicId': value.linkNicId, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkNicToUpdate.d.ts b/dist/esm/models/LinkNicToUpdate.d.ts new file mode 100644 index 00000000..c2eeebcc --- /dev/null +++ b/dist/esm/models/LinkNicToUpdate.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the NIC attachment. If you are modifying the `DeleteOnVmDeletion` attribute, you must specify the ID of the NIC attachment. + * @export + * @interface LinkNicToUpdate + */ +export interface LinkNicToUpdate { + /** + * If true, the NIC is deleted when the VM is terminated. If false, the NIC is detached from the VM. + * @type {boolean} + * @memberof LinkNicToUpdate + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the NIC attachment. + * @type {string} + * @memberof LinkNicToUpdate + */ + linkNicId?: string; +} +export declare function LinkNicToUpdateFromJSON(json: any): LinkNicToUpdate; +export declare function LinkNicToUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicToUpdate; +export declare function LinkNicToUpdateToJSON(value?: LinkNicToUpdate | null): any; diff --git a/dist/esm/models/LinkNicToUpdate.js b/dist/esm/models/LinkNicToUpdate.js new file mode 100644 index 00000000..d6607509 --- /dev/null +++ b/dist/esm/models/LinkNicToUpdate.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkNicToUpdateFromJSON(json) { + return LinkNicToUpdateFromJSONTyped(json, false); +} +export function LinkNicToUpdateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + }; +} +export function LinkNicToUpdateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'LinkNicId': value.linkNicId, + }; +} diff --git a/dist/esm/models/LinkPrivateIpsRequest.d.ts b/dist/esm/models/LinkPrivateIpsRequest.d.ts new file mode 100644 index 00000000..eb430e31 --- /dev/null +++ b/dist/esm/models/LinkPrivateIpsRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkPrivateIpsRequest + */ +export interface LinkPrivateIpsRequest { + /** + * If true, allows an IP that is already assigned to another NIC in the same Subnet to be assigned to the NIC you specified. + * @type {boolean} + * @memberof LinkPrivateIpsRequest + */ + allowRelink?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkPrivateIpsRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC. + * @type {string} + * @memberof LinkPrivateIpsRequest + */ + nicId: string; + /** + * The secondary private IP or IPs you want to assign to the NIC within the IP range of the Subnet. + * @type {Array} + * @memberof LinkPrivateIpsRequest + */ + privateIps?: Array; + /** + * The number of secondary private IPs to assign to the NIC. + * @type {number} + * @memberof LinkPrivateIpsRequest + */ + secondaryPrivateIpCount?: number; +} +export declare function LinkPrivateIpsRequestFromJSON(json: any): LinkPrivateIpsRequest; +export declare function LinkPrivateIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPrivateIpsRequest; +export declare function LinkPrivateIpsRequestToJSON(value?: LinkPrivateIpsRequest | null): any; diff --git a/dist/esm/models/LinkPrivateIpsRequest.js b/dist/esm/models/LinkPrivateIpsRequest.js new file mode 100644 index 00000000..6b735209 --- /dev/null +++ b/dist/esm/models/LinkPrivateIpsRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkPrivateIpsRequestFromJSON(json) { + return LinkPrivateIpsRequestFromJSONTyped(json, false); +} +export function LinkPrivateIpsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'allowRelink': !exists(json, 'AllowRelink') ? undefined : json['AllowRelink'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'secondaryPrivateIpCount': !exists(json, 'SecondaryPrivateIpCount') ? undefined : json['SecondaryPrivateIpCount'], + }; +} +export function LinkPrivateIpsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AllowRelink': value.allowRelink, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps, + 'SecondaryPrivateIpCount': value.secondaryPrivateIpCount, + }; +} diff --git a/dist/esm/models/LinkPrivateIpsResponse.d.ts b/dist/esm/models/LinkPrivateIpsResponse.d.ts new file mode 100644 index 00000000..1feee3d8 --- /dev/null +++ b/dist/esm/models/LinkPrivateIpsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkPrivateIpsResponse + */ +export interface LinkPrivateIpsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkPrivateIpsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkPrivateIpsResponseFromJSON(json: any): LinkPrivateIpsResponse; +export declare function LinkPrivateIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPrivateIpsResponse; +export declare function LinkPrivateIpsResponseToJSON(value?: LinkPrivateIpsResponse | null): any; diff --git a/dist/esm/models/LinkPrivateIpsResponse.js b/dist/esm/models/LinkPrivateIpsResponse.js new file mode 100644 index 00000000..6c0ce36f --- /dev/null +++ b/dist/esm/models/LinkPrivateIpsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkPrivateIpsResponseFromJSON(json) { + return LinkPrivateIpsResponseFromJSONTyped(json, false); +} +export function LinkPrivateIpsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkPrivateIpsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkPublicIp.d.ts b/dist/esm/models/LinkPublicIp.d.ts new file mode 100644 index 00000000..7723a635 --- /dev/null +++ b/dist/esm/models/LinkPublicIp.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the public IP association. + * @export + * @interface LinkPublicIp + */ +export interface LinkPublicIp { + /** + * (Required in a Net) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof LinkPublicIp + */ + linkPublicIpId?: string; + /** + * The name of the public DNS. + * @type {string} + * @memberof LinkPublicIp + */ + publicDnsName?: string; + /** + * The public IP associated with the NIC. + * @type {string} + * @memberof LinkPublicIp + */ + publicIp?: string; + /** + * The account ID of the owner of the public IP. + * @type {string} + * @memberof LinkPublicIp + */ + publicIpAccountId?: string; + /** + * The allocation ID of the public IP. + * @type {string} + * @memberof LinkPublicIp + */ + publicIpId?: string; +} +export declare function LinkPublicIpFromJSON(json: any): LinkPublicIp; +export declare function LinkPublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIp; +export declare function LinkPublicIpToJSON(value?: LinkPublicIp | null): any; diff --git a/dist/esm/models/LinkPublicIp.js b/dist/esm/models/LinkPublicIp.js new file mode 100644 index 00000000..daa30bb8 --- /dev/null +++ b/dist/esm/models/LinkPublicIp.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkPublicIpFromJSON(json) { + return LinkPublicIpFromJSONTyped(json, false); +} +export function LinkPublicIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'publicDnsName': !exists(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpAccountId': !exists(json, 'PublicIpAccountId') ? undefined : json['PublicIpAccountId'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} +export function LinkPublicIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpId': value.linkPublicIpId, + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'PublicIpAccountId': value.publicIpAccountId, + 'PublicIpId': value.publicIpId, + }; +} diff --git a/dist/esm/models/LinkPublicIpLightForVm.d.ts b/dist/esm/models/LinkPublicIpLightForVm.d.ts new file mode 100644 index 00000000..57745ca0 --- /dev/null +++ b/dist/esm/models/LinkPublicIpLightForVm.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the public IP associated with the NIC. + * @export + * @interface LinkPublicIpLightForVm + */ +export interface LinkPublicIpLightForVm { + /** + * The name of the public DNS. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicDnsName?: string; + /** + * The public IP associated with the NIC. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicIp?: string; + /** + * The account ID of the owner of the public IP. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicIpAccountId?: string; +} +export declare function LinkPublicIpLightForVmFromJSON(json: any): LinkPublicIpLightForVm; +export declare function LinkPublicIpLightForVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpLightForVm; +export declare function LinkPublicIpLightForVmToJSON(value?: LinkPublicIpLightForVm | null): any; diff --git a/dist/esm/models/LinkPublicIpLightForVm.js b/dist/esm/models/LinkPublicIpLightForVm.js new file mode 100644 index 00000000..4d19a7a2 --- /dev/null +++ b/dist/esm/models/LinkPublicIpLightForVm.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkPublicIpLightForVmFromJSON(json) { + return LinkPublicIpLightForVmFromJSONTyped(json, false); +} +export function LinkPublicIpLightForVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicDnsName': !exists(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpAccountId': !exists(json, 'PublicIpAccountId') ? undefined : json['PublicIpAccountId'], + }; +} +export function LinkPublicIpLightForVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'PublicIpAccountId': value.publicIpAccountId, + }; +} diff --git a/dist/esm/models/LinkPublicIpRequest.d.ts b/dist/esm/models/LinkPublicIpRequest.d.ts new file mode 100644 index 00000000..9e735182 --- /dev/null +++ b/dist/esm/models/LinkPublicIpRequest.d.ts @@ -0,0 +1,65 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkPublicIpRequest + */ +export interface LinkPublicIpRequest { + /** + * If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the EIP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.) + * @type {boolean} + * @memberof LinkPublicIpRequest + */ + allowRelink?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkPublicIpRequest + */ + dryRun?: boolean; + /** + * (Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the `VmId` parameter instead. You cannot specify both parameters at the same time. + * @type {string} + * @memberof LinkPublicIpRequest + */ + nicId?: string; + /** + * (Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP. + * @type {string} + * @memberof LinkPublicIpRequest + */ + privateIp?: string; + /** + * The public IP. This parameter is required unless you use the `PublicIpId` parameter. + * @type {string} + * @memberof LinkPublicIpRequest + */ + publicIp?: string; + /** + * The allocation ID of the public IP. This parameter is required unless you use the `PublicIp` parameter. + * @type {string} + * @memberof LinkPublicIpRequest + */ + publicIpId?: string; + /** + * The ID of the VM.
+ * - In the public Cloud, this parameter is required.
+ * - In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the `NicId` parameter instead. You cannot specify both parameters at the same time. + * @type {string} + * @memberof LinkPublicIpRequest + */ + vmId?: string; +} +export declare function LinkPublicIpRequestFromJSON(json: any): LinkPublicIpRequest; +export declare function LinkPublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpRequest; +export declare function LinkPublicIpRequestToJSON(value?: LinkPublicIpRequest | null): any; diff --git a/dist/esm/models/LinkPublicIpRequest.js b/dist/esm/models/LinkPublicIpRequest.js new file mode 100644 index 00000000..bd6f918e --- /dev/null +++ b/dist/esm/models/LinkPublicIpRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkPublicIpRequestFromJSON(json) { + return LinkPublicIpRequestFromJSONTyped(json, false); +} +export function LinkPublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'allowRelink': !exists(json, 'AllowRelink') ? undefined : json['AllowRelink'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function LinkPublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AllowRelink': value.allowRelink, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIp': value.privateIp, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/LinkPublicIpResponse.d.ts b/dist/esm/models/LinkPublicIpResponse.d.ts new file mode 100644 index 00000000..e8ef20e5 --- /dev/null +++ b/dist/esm/models/LinkPublicIpResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkPublicIpResponse + */ +export interface LinkPublicIpResponse { + /** + * (Net only) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof LinkPublicIpResponse + */ + linkPublicIpId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkPublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkPublicIpResponseFromJSON(json: any): LinkPublicIpResponse; +export declare function LinkPublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpResponse; +export declare function LinkPublicIpResponseToJSON(value?: LinkPublicIpResponse | null): any; diff --git a/dist/esm/models/LinkPublicIpResponse.js b/dist/esm/models/LinkPublicIpResponse.js new file mode 100644 index 00000000..5d8bc26f --- /dev/null +++ b/dist/esm/models/LinkPublicIpResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkPublicIpResponseFromJSON(json) { + return LinkPublicIpResponseFromJSONTyped(json, false); +} +export function LinkPublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkPublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpId': value.linkPublicIpId, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkRouteTable.d.ts b/dist/esm/models/LinkRouteTable.d.ts new file mode 100644 index 00000000..aeebc0bf --- /dev/null +++ b/dist/esm/models/LinkRouteTable.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * One or more associations between the route table and the Subnets. + * @export + * @interface LinkRouteTable + */ +export interface LinkRouteTable { + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof LinkRouteTable + */ + linkRouteTableId?: string; + /** + * If true, the route table is the main one. + * @type {boolean} + * @memberof LinkRouteTable + */ + main?: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof LinkRouteTable + */ + routeTableId?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof LinkRouteTable + */ + subnetId?: string; +} +export declare function LinkRouteTableFromJSON(json: any): LinkRouteTable; +export declare function LinkRouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTable; +export declare function LinkRouteTableToJSON(value?: LinkRouteTable | null): any; diff --git a/dist/esm/models/LinkRouteTable.js b/dist/esm/models/LinkRouteTable.js new file mode 100644 index 00000000..957cfc78 --- /dev/null +++ b/dist/esm/models/LinkRouteTable.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkRouteTableFromJSON(json) { + return LinkRouteTableFromJSONTyped(json, false); +} +export function LinkRouteTableFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTableId': !exists(json, 'LinkRouteTableId') ? undefined : json['LinkRouteTableId'], + 'main': !exists(json, 'Main') ? undefined : json['Main'], + 'routeTableId': !exists(json, 'RouteTableId') ? undefined : json['RouteTableId'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} +export function LinkRouteTableToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTableId': value.linkRouteTableId, + 'Main': value.main, + 'RouteTableId': value.routeTableId, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/LinkRouteTableRequest.d.ts b/dist/esm/models/LinkRouteTableRequest.d.ts new file mode 100644 index 00000000..9b282ca9 --- /dev/null +++ b/dist/esm/models/LinkRouteTableRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkRouteTableRequest + */ +export interface LinkRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof LinkRouteTableRequest + */ + routeTableId: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof LinkRouteTableRequest + */ + subnetId: string; +} +export declare function LinkRouteTableRequestFromJSON(json: any): LinkRouteTableRequest; +export declare function LinkRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTableRequest; +export declare function LinkRouteTableRequestToJSON(value?: LinkRouteTableRequest | null): any; diff --git a/dist/esm/models/LinkRouteTableRequest.js b/dist/esm/models/LinkRouteTableRequest.js new file mode 100644 index 00000000..2ff933b7 --- /dev/null +++ b/dist/esm/models/LinkRouteTableRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkRouteTableRequestFromJSON(json) { + return LinkRouteTableRequestFromJSONTyped(json, false); +} +export function LinkRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + 'subnetId': json['SubnetId'], + }; +} +export function LinkRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/LinkRouteTableResponse.d.ts b/dist/esm/models/LinkRouteTableResponse.d.ts new file mode 100644 index 00000000..013890ac --- /dev/null +++ b/dist/esm/models/LinkRouteTableResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkRouteTableResponse + */ +export interface LinkRouteTableResponse { + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof LinkRouteTableResponse + */ + linkRouteTableId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkRouteTableResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkRouteTableResponseFromJSON(json: any): LinkRouteTableResponse; +export declare function LinkRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTableResponse; +export declare function LinkRouteTableResponseToJSON(value?: LinkRouteTableResponse | null): any; diff --git a/dist/esm/models/LinkRouteTableResponse.js b/dist/esm/models/LinkRouteTableResponse.js new file mode 100644 index 00000000..f7a304fd --- /dev/null +++ b/dist/esm/models/LinkRouteTableResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkRouteTableResponseFromJSON(json) { + return LinkRouteTableResponseFromJSONTyped(json, false); +} +export function LinkRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTableId': !exists(json, 'LinkRouteTableId') ? undefined : json['LinkRouteTableId'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTableId': value.linkRouteTableId, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkVirtualGatewayRequest.d.ts b/dist/esm/models/LinkVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..aa5fc09d --- /dev/null +++ b/dist/esm/models/LinkVirtualGatewayRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkVirtualGatewayRequest + */ +export interface LinkVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the Net to which you want to attach the virtual gateway. + * @type {string} + * @memberof LinkVirtualGatewayRequest + */ + netId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof LinkVirtualGatewayRequest + */ + virtualGatewayId: string; +} +export declare function LinkVirtualGatewayRequestFromJSON(json: any): LinkVirtualGatewayRequest; +export declare function LinkVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVirtualGatewayRequest; +export declare function LinkVirtualGatewayRequestToJSON(value?: LinkVirtualGatewayRequest | null): any; diff --git a/dist/esm/models/LinkVirtualGatewayRequest.js b/dist/esm/models/LinkVirtualGatewayRequest.js new file mode 100644 index 00000000..847644f2 --- /dev/null +++ b/dist/esm/models/LinkVirtualGatewayRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkVirtualGatewayRequestFromJSON(json) { + return LinkVirtualGatewayRequestFromJSONTyped(json, false); +} +export function LinkVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +export function LinkVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/LinkVirtualGatewayResponse.d.ts b/dist/esm/models/LinkVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..e89349a2 --- /dev/null +++ b/dist/esm/models/LinkVirtualGatewayResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetToVirtualGatewayLink } from './NetToVirtualGatewayLink'; +/** + * + * @export + * @interface LinkVirtualGatewayResponse + */ +export interface LinkVirtualGatewayResponse { + /** + * + * @type {NetToVirtualGatewayLink} + * @memberof LinkVirtualGatewayResponse + */ + netToVirtualGatewayLink?: NetToVirtualGatewayLink; + /** + * + * @type {ModelResponseContext} + * @memberof LinkVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkVirtualGatewayResponseFromJSON(json: any): LinkVirtualGatewayResponse; +export declare function LinkVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVirtualGatewayResponse; +export declare function LinkVirtualGatewayResponseToJSON(value?: LinkVirtualGatewayResponse | null): any; diff --git a/dist/esm/models/LinkVirtualGatewayResponse.js b/dist/esm/models/LinkVirtualGatewayResponse.js new file mode 100644 index 00000000..afae6678 --- /dev/null +++ b/dist/esm/models/LinkVirtualGatewayResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetToVirtualGatewayLinkFromJSON, NetToVirtualGatewayLinkToJSON, } from './NetToVirtualGatewayLink'; +export function LinkVirtualGatewayResponseFromJSON(json) { + return LinkVirtualGatewayResponseFromJSONTyped(json, false); +} +export function LinkVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netToVirtualGatewayLink': !exists(json, 'NetToVirtualGatewayLink') ? undefined : NetToVirtualGatewayLinkFromJSON(json['NetToVirtualGatewayLink']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetToVirtualGatewayLink': NetToVirtualGatewayLinkToJSON(value.netToVirtualGatewayLink), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkVolumeRequest.d.ts b/dist/esm/models/LinkVolumeRequest.d.ts new file mode 100644 index 00000000..c175a2e5 --- /dev/null +++ b/dist/esm/models/LinkVolumeRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LinkVolumeRequest + */ +export interface LinkVolumeRequest { + /** + * The name of the device. + * @type {string} + * @memberof LinkVolumeRequest + */ + deviceName: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkVolumeRequest + */ + dryRun?: boolean; + /** + * The ID of the VM you want to attach the volume to. + * @type {string} + * @memberof LinkVolumeRequest + */ + vmId: string; + /** + * The ID of the volume you want to attach. + * @type {string} + * @memberof LinkVolumeRequest + */ + volumeId: string; +} +export declare function LinkVolumeRequestFromJSON(json: any): LinkVolumeRequest; +export declare function LinkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVolumeRequest; +export declare function LinkVolumeRequestToJSON(value?: LinkVolumeRequest | null): any; diff --git a/dist/esm/models/LinkVolumeRequest.js b/dist/esm/models/LinkVolumeRequest.js new file mode 100644 index 00000000..181c1681 --- /dev/null +++ b/dist/esm/models/LinkVolumeRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkVolumeRequestFromJSON(json) { + return LinkVolumeRequestFromJSONTyped(json, false); +} +export function LinkVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deviceName': json['DeviceName'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + 'volumeId': json['VolumeId'], + }; +} +export function LinkVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeviceName': value.deviceName, + 'DryRun': value.dryRun, + 'VmId': value.vmId, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/LinkVolumeResponse.d.ts b/dist/esm/models/LinkVolumeResponse.d.ts new file mode 100644 index 00000000..c3f4e5c4 --- /dev/null +++ b/dist/esm/models/LinkVolumeResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface LinkVolumeResponse + */ +export interface LinkVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkVolumeResponse + */ + responseContext?: ModelResponseContext; +} +export declare function LinkVolumeResponseFromJSON(json: any): LinkVolumeResponse; +export declare function LinkVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVolumeResponse; +export declare function LinkVolumeResponseToJSON(value?: LinkVolumeResponse | null): any; diff --git a/dist/esm/models/LinkVolumeResponse.js b/dist/esm/models/LinkVolumeResponse.js new file mode 100644 index 00000000..bdf75841 --- /dev/null +++ b/dist/esm/models/LinkVolumeResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function LinkVolumeResponseFromJSON(json) { + return LinkVolumeResponseFromJSONTyped(json, false); +} +export function LinkVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function LinkVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/LinkedVolume.d.ts b/dist/esm/models/LinkedVolume.d.ts new file mode 100644 index 00000000..b4ab4933 --- /dev/null +++ b/dist/esm/models/LinkedVolume.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about volume attachment. + * @export + * @interface LinkedVolume + */ +export interface LinkedVolume { + /** + * If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof LinkedVolume + */ + deleteOnVmDeletion?: boolean; + /** + * The name of the device. + * @type {string} + * @memberof LinkedVolume + */ + deviceName?: string; + /** + * The state of the attachment of the volume (`attaching` \| `detaching` \| `attached` \| `detached`). + * @type {string} + * @memberof LinkedVolume + */ + state?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof LinkedVolume + */ + vmId?: string; + /** + * The ID of the volume. + * @type {string} + * @memberof LinkedVolume + */ + volumeId?: string; +} +export declare function LinkedVolumeFromJSON(json: any): LinkedVolume; +export declare function LinkedVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkedVolume; +export declare function LinkedVolumeToJSON(value?: LinkedVolume | null): any; diff --git a/dist/esm/models/LinkedVolume.js b/dist/esm/models/LinkedVolume.js new file mode 100644 index 00000000..d87f2d83 --- /dev/null +++ b/dist/esm/models/LinkedVolume.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LinkedVolumeFromJSON(json) { + return LinkedVolumeFromJSONTyped(json, false); +} +export function LinkedVolumeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} +export function LinkedVolumeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceName': value.deviceName, + 'State': value.state, + 'VmId': value.vmId, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/Listener.d.ts b/dist/esm/models/Listener.d.ts new file mode 100644 index 00000000..58a807ae --- /dev/null +++ b/dist/esm/models/Listener.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener. + * @export + * @interface Listener + */ +export interface Listener { + /** + * The port on which the back-end VM is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof Listener + */ + backendPort?: number; + /** + * The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof Listener + */ + backendProtocol?: string; + /** + * The port on which the load balancer is listening (between 1 and `65535`, both included). + * @type {number} + * @memberof Listener + */ + loadBalancerPort?: number; + /** + * The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof Listener + */ + loadBalancerProtocol?: string; + /** + * The names of the policies. If there are no policies enabled, the list is empty. + * @type {Array} + * @memberof Listener + */ + policyNames?: Array; + /** + * The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). + * @type {string} + * @memberof Listener + */ + serverCertificateId?: string; +} +export declare function ListenerFromJSON(json: any): Listener; +export declare function ListenerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Listener; +export declare function ListenerToJSON(value?: Listener | null): any; diff --git a/dist/esm/models/Listener.js b/dist/esm/models/Listener.js new file mode 100644 index 00000000..f88b7461 --- /dev/null +++ b/dist/esm/models/Listener.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ListenerFromJSON(json) { + return ListenerFromJSONTyped(json, false); +} +export function ListenerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendPort': !exists(json, 'BackendPort') ? undefined : json['BackendPort'], + 'backendProtocol': !exists(json, 'BackendProtocol') ? undefined : json['BackendProtocol'], + 'loadBalancerPort': !exists(json, 'LoadBalancerPort') ? undefined : json['LoadBalancerPort'], + 'loadBalancerProtocol': !exists(json, 'LoadBalancerProtocol') ? undefined : json['LoadBalancerProtocol'], + 'policyNames': !exists(json, 'PolicyNames') ? undefined : json['PolicyNames'], + 'serverCertificateId': !exists(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} +export function ListenerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendPort': value.backendPort, + 'BackendProtocol': value.backendProtocol, + 'LoadBalancerPort': value.loadBalancerPort, + 'LoadBalancerProtocol': value.loadBalancerProtocol, + 'PolicyNames': value.policyNames, + 'ServerCertificateId': value.serverCertificateId, + }; +} diff --git a/dist/esm/models/ListenerForCreation.d.ts b/dist/esm/models/ListenerForCreation.d.ts new file mode 100644 index 00000000..93cbe552 --- /dev/null +++ b/dist/esm/models/ListenerForCreation.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener to create. + * @export + * @interface ListenerForCreation + */ +export interface ListenerForCreation { + /** + * The port on which the back-end VM is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof ListenerForCreation + */ + backendPort: number; + /** + * The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof ListenerForCreation + */ + backendProtocol?: string; + /** + * The port on which the load balancer is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof ListenerForCreation + */ + loadBalancerPort: number; + /** + * The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof ListenerForCreation + */ + loadBalancerProtocol: string; + /** + * The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). + * @type {string} + * @memberof ListenerForCreation + */ + serverCertificateId?: string; +} +export declare function ListenerForCreationFromJSON(json: any): ListenerForCreation; +export declare function ListenerForCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerForCreation; +export declare function ListenerForCreationToJSON(value?: ListenerForCreation | null): any; diff --git a/dist/esm/models/ListenerForCreation.js b/dist/esm/models/ListenerForCreation.js new file mode 100644 index 00000000..c7e11b7b --- /dev/null +++ b/dist/esm/models/ListenerForCreation.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ListenerForCreationFromJSON(json) { + return ListenerForCreationFromJSONTyped(json, false); +} +export function ListenerForCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendPort': json['BackendPort'], + 'backendProtocol': !exists(json, 'BackendProtocol') ? undefined : json['BackendProtocol'], + 'loadBalancerPort': json['LoadBalancerPort'], + 'loadBalancerProtocol': json['LoadBalancerProtocol'], + 'serverCertificateId': !exists(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} +export function ListenerForCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendPort': value.backendPort, + 'BackendProtocol': value.backendProtocol, + 'LoadBalancerPort': value.loadBalancerPort, + 'LoadBalancerProtocol': value.loadBalancerProtocol, + 'ServerCertificateId': value.serverCertificateId, + }; +} diff --git a/dist/esm/models/ListenerRule.d.ts b/dist/esm/models/ListenerRule.d.ts new file mode 100644 index 00000000..d63e2cb2 --- /dev/null +++ b/dist/esm/models/ListenerRule.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener rule. + * @export + * @interface ListenerRule + */ +export interface ListenerRule { + /** + * The type of action for the rule (always `forward`). + * @type {string} + * @memberof ListenerRule + */ + action?: string; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof ListenerRule + */ + hostNamePattern?: string; + /** + * The ID of the listener. + * @type {number} + * @memberof ListenerRule + */ + listenerId?: number; + /** + * The ID of the listener rule. + * @type {number} + * @memberof ListenerRule + */ + listenerRuleId?: number; + /** + * A human-readable name for the listener rule. + * @type {string} + * @memberof ListenerRule + */ + listenerRuleName?: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof ListenerRule + */ + pathPattern?: string; + /** + * The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. + * @type {number} + * @memberof ListenerRule + */ + priority?: number; + /** + * The IDs of the backend VMs. + * @type {Array} + * @memberof ListenerRule + */ + vmIds?: Array; +} +export declare function ListenerRuleFromJSON(json: any): ListenerRule; +export declare function ListenerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerRule; +export declare function ListenerRuleToJSON(value?: ListenerRule | null): any; diff --git a/dist/esm/models/ListenerRule.js b/dist/esm/models/ListenerRule.js new file mode 100644 index 00000000..6e098d3a --- /dev/null +++ b/dist/esm/models/ListenerRule.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ListenerRuleFromJSON(json) { + return ListenerRuleFromJSONTyped(json, false); +} +export function ListenerRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'action': !exists(json, 'Action') ? undefined : json['Action'], + 'hostNamePattern': !exists(json, 'HostNamePattern') ? undefined : json['HostNamePattern'], + 'listenerId': !exists(json, 'ListenerId') ? undefined : json['ListenerId'], + 'listenerRuleId': !exists(json, 'ListenerRuleId') ? undefined : json['ListenerRuleId'], + 'listenerRuleName': !exists(json, 'ListenerRuleName') ? undefined : json['ListenerRuleName'], + 'pathPattern': !exists(json, 'PathPattern') ? undefined : json['PathPattern'], + 'priority': !exists(json, 'Priority') ? undefined : json['Priority'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} +export function ListenerRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Action': value.action, + 'HostNamePattern': value.hostNamePattern, + 'ListenerId': value.listenerId, + 'ListenerRuleId': value.listenerRuleId, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + 'Priority': value.priority, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/ListenerRuleForCreation.d.ts b/dist/esm/models/ListenerRuleForCreation.d.ts new file mode 100644 index 00000000..1047880b --- /dev/null +++ b/dist/esm/models/ListenerRuleForCreation.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the listener rule. + * @export + * @interface ListenerRuleForCreation + */ +export interface ListenerRuleForCreation { + /** + * The type of action for the rule (always `forward`). + * @type {string} + * @memberof ListenerRuleForCreation + */ + action?: string; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof ListenerRuleForCreation + */ + hostNamePattern?: string; + /** + * A human-readable name for the listener rule. + * @type {string} + * @memberof ListenerRuleForCreation + */ + listenerRuleName: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof ListenerRuleForCreation + */ + pathPattern?: string; + /** + * The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. + * @type {number} + * @memberof ListenerRuleForCreation + */ + priority: number; +} +export declare function ListenerRuleForCreationFromJSON(json: any): ListenerRuleForCreation; +export declare function ListenerRuleForCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerRuleForCreation; +export declare function ListenerRuleForCreationToJSON(value?: ListenerRuleForCreation | null): any; diff --git a/dist/esm/models/ListenerRuleForCreation.js b/dist/esm/models/ListenerRuleForCreation.js new file mode 100644 index 00000000..596f8e9a --- /dev/null +++ b/dist/esm/models/ListenerRuleForCreation.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ListenerRuleForCreationFromJSON(json) { + return ListenerRuleForCreationFromJSONTyped(json, false); +} +export function ListenerRuleForCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'action': !exists(json, 'Action') ? undefined : json['Action'], + 'hostNamePattern': !exists(json, 'HostNamePattern') ? undefined : json['HostNamePattern'], + 'listenerRuleName': json['ListenerRuleName'], + 'pathPattern': !exists(json, 'PathPattern') ? undefined : json['PathPattern'], + 'priority': json['Priority'], + }; +} +export function ListenerRuleForCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Action': value.action, + 'HostNamePattern': value.hostNamePattern, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + 'Priority': value.priority, + }; +} diff --git a/dist/esm/models/LoadBalancer.d.ts b/dist/esm/models/LoadBalancer.d.ts new file mode 100644 index 00000000..e8c74d05 --- /dev/null +++ b/dist/esm/models/LoadBalancer.d.ts @@ -0,0 +1,132 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessLog } from './AccessLog'; +import { ApplicationStickyCookiePolicy } from './ApplicationStickyCookiePolicy'; +import { HealthCheck } from './HealthCheck'; +import { Listener } from './Listener'; +import { LoadBalancerStickyCookiePolicy } from './LoadBalancerStickyCookiePolicy'; +import { ResourceTag } from './ResourceTag'; +import { SourceSecurityGroup } from './SourceSecurityGroup'; +/** + * Information about the load balancer. + * @export + * @interface LoadBalancer + */ +export interface LoadBalancer { + /** + * + * @type {AccessLog} + * @memberof LoadBalancer + */ + accessLog?: AccessLog; + /** + * The stickiness policies defined for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + applicationStickyCookiePolicies?: Array; + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof LoadBalancer + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + backendVmIds?: Array; + /** + * The DNS name of the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + dnsName?: string; + /** + * + * @type {HealthCheck} + * @memberof LoadBalancer + */ + healthCheck?: HealthCheck; + /** + * The listeners for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + listeners?: Array; + /** + * The name of the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + loadBalancerName?: string; + /** + * The policies defined for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + loadBalancerStickyCookiePolicies?: Array; + /** + * The type of load balancer. Valid only for load balancers in a Net.
+ * If `LoadBalancerType` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP.
+ * If `LoadBalancerType` is `internal`, the load balancer has a public DNS name that resolves to a private IP. + * @type {string} + * @memberof LoadBalancer + */ + loadBalancerType?: string; + /** + * The ID of the Net for the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + netId?: string; + /** + * (internet-facing only) The public IP associated with the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + publicIp?: string; + /** + * One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. + * @type {Array} + * @memberof LoadBalancer + */ + securityGroups?: Array; + /** + * + * @type {SourceSecurityGroup} + * @memberof LoadBalancer + */ + sourceSecurityGroup?: SourceSecurityGroup; + /** + * The ID of the Subnet in which the load balancer was created. + * @type {Array} + * @memberof LoadBalancer + */ + subnets?: Array; + /** + * The ID of the Subregion in which the load balancer was created. + * @type {Array} + * @memberof LoadBalancer + */ + subregionNames?: Array; + /** + * One or more tags associated with the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + tags?: Array; +} +export declare function LoadBalancerFromJSON(json: any): LoadBalancer; +export declare function LoadBalancerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancer; +export declare function LoadBalancerToJSON(value?: LoadBalancer | null): any; diff --git a/dist/esm/models/LoadBalancer.js b/dist/esm/models/LoadBalancer.js new file mode 100644 index 00000000..3bf36cd7 --- /dev/null +++ b/dist/esm/models/LoadBalancer.js @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccessLogFromJSON, AccessLogToJSON, } from './AccessLog'; +import { ApplicationStickyCookiePolicyFromJSON, ApplicationStickyCookiePolicyToJSON, } from './ApplicationStickyCookiePolicy'; +import { HealthCheckFromJSON, HealthCheckToJSON, } from './HealthCheck'; +import { ListenerFromJSON, ListenerToJSON, } from './Listener'; +import { LoadBalancerStickyCookiePolicyFromJSON, LoadBalancerStickyCookiePolicyToJSON, } from './LoadBalancerStickyCookiePolicy'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { SourceSecurityGroupFromJSON, SourceSecurityGroupToJSON, } from './SourceSecurityGroup'; +export function LoadBalancerFromJSON(json) { + return LoadBalancerFromJSONTyped(json, false); +} +export function LoadBalancerFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessLog': !exists(json, 'AccessLog') ? undefined : AccessLogFromJSON(json['AccessLog']), + 'applicationStickyCookiePolicies': !exists(json, 'ApplicationStickyCookiePolicies') ? undefined : (json['ApplicationStickyCookiePolicies'].map(ApplicationStickyCookiePolicyFromJSON)), + 'backendIps': !exists(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dnsName': !exists(json, 'DnsName') ? undefined : json['DnsName'], + 'healthCheck': !exists(json, 'HealthCheck') ? undefined : HealthCheckFromJSON(json['HealthCheck']), + 'listeners': !exists(json, 'Listeners') ? undefined : (json['Listeners'].map(ListenerFromJSON)), + 'loadBalancerName': !exists(json, 'LoadBalancerName') ? undefined : json['LoadBalancerName'], + 'loadBalancerStickyCookiePolicies': !exists(json, 'LoadBalancerStickyCookiePolicies') ? undefined : (json['LoadBalancerStickyCookiePolicies'].map(LoadBalancerStickyCookiePolicyFromJSON)), + 'loadBalancerType': !exists(json, 'LoadBalancerType') ? undefined : json['LoadBalancerType'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'sourceSecurityGroup': !exists(json, 'SourceSecurityGroup') ? undefined : SourceSecurityGroupFromJSON(json['SourceSecurityGroup']), + 'subnets': !exists(json, 'Subnets') ? undefined : json['Subnets'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function LoadBalancerToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessLog': AccessLogToJSON(value.accessLog), + 'ApplicationStickyCookiePolicies': value.applicationStickyCookiePolicies === undefined ? undefined : (value.applicationStickyCookiePolicies.map(ApplicationStickyCookiePolicyToJSON)), + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DnsName': value.dnsName, + 'HealthCheck': HealthCheckToJSON(value.healthCheck), + 'Listeners': value.listeners === undefined ? undefined : (value.listeners.map(ListenerToJSON)), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerStickyCookiePolicies': value.loadBalancerStickyCookiePolicies === undefined ? undefined : (value.loadBalancerStickyCookiePolicies.map(LoadBalancerStickyCookiePolicyToJSON)), + 'LoadBalancerType': value.loadBalancerType, + 'NetId': value.netId, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'SourceSecurityGroup': SourceSecurityGroupToJSON(value.sourceSecurityGroup), + 'Subnets': value.subnets, + 'SubregionNames': value.subregionNames, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/LoadBalancerLight.d.ts b/dist/esm/models/LoadBalancerLight.d.ts new file mode 100644 index 00000000..3e707f00 --- /dev/null +++ b/dist/esm/models/LoadBalancerLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the load balancer. + * @export + * @interface LoadBalancerLight + */ +export interface LoadBalancerLight { + /** + * The name of the load balancer to which the listener is attached. + * @type {string} + * @memberof LoadBalancerLight + */ + loadBalancerName: string; + /** + * The port of load balancer on which the load balancer is listening (between `1` and `65535` both included). + * @type {number} + * @memberof LoadBalancerLight + */ + loadBalancerPort: number; +} +export declare function LoadBalancerLightFromJSON(json: any): LoadBalancerLight; +export declare function LoadBalancerLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerLight; +export declare function LoadBalancerLightToJSON(value?: LoadBalancerLight | null): any; diff --git a/dist/esm/models/LoadBalancerLight.js b/dist/esm/models/LoadBalancerLight.js new file mode 100644 index 00000000..6d1ce9fc --- /dev/null +++ b/dist/esm/models/LoadBalancerLight.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export function LoadBalancerLightFromJSON(json) { + return LoadBalancerLightFromJSONTyped(json, false); +} +export function LoadBalancerLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPort': json['LoadBalancerPort'], + }; +} +export function LoadBalancerLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPort': value.loadBalancerPort, + }; +} diff --git a/dist/esm/models/LoadBalancerStickyCookiePolicy.d.ts b/dist/esm/models/LoadBalancerStickyCookiePolicy.d.ts new file mode 100644 index 00000000..080b4af3 --- /dev/null +++ b/dist/esm/models/LoadBalancerStickyCookiePolicy.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the stickiness policy. + * @export + * @interface LoadBalancerStickyCookiePolicy + */ +export interface LoadBalancerStickyCookiePolicy { + /** + * The time period, in seconds, after which the cookie should be considered stale.
+ * If `1`, the stickiness session lasts for the duration of the browser session. + * @type {number} + * @memberof LoadBalancerStickyCookiePolicy + */ + cookieExpirationPeriod?: number; + /** + * The name of the stickiness policy. + * @type {string} + * @memberof LoadBalancerStickyCookiePolicy + */ + policyName?: string; +} +export declare function LoadBalancerStickyCookiePolicyFromJSON(json: any): LoadBalancerStickyCookiePolicy; +export declare function LoadBalancerStickyCookiePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerStickyCookiePolicy; +export declare function LoadBalancerStickyCookiePolicyToJSON(value?: LoadBalancerStickyCookiePolicy | null): any; diff --git a/dist/esm/models/LoadBalancerStickyCookiePolicy.js b/dist/esm/models/LoadBalancerStickyCookiePolicy.js new file mode 100644 index 00000000..4533371c --- /dev/null +++ b/dist/esm/models/LoadBalancerStickyCookiePolicy.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LoadBalancerStickyCookiePolicyFromJSON(json) { + return LoadBalancerStickyCookiePolicyFromJSONTyped(json, false); +} +export function LoadBalancerStickyCookiePolicyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cookieExpirationPeriod': !exists(json, 'CookieExpirationPeriod') ? undefined : json['CookieExpirationPeriod'], + 'policyName': !exists(json, 'PolicyName') ? undefined : json['PolicyName'], + }; +} +export function LoadBalancerStickyCookiePolicyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CookieExpirationPeriod': value.cookieExpirationPeriod, + 'PolicyName': value.policyName, + }; +} diff --git a/dist/esm/models/LoadBalancerTag.d.ts b/dist/esm/models/LoadBalancerTag.d.ts new file mode 100644 index 00000000..c58daf52 --- /dev/null +++ b/dist/esm/models/LoadBalancerTag.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the load balancer tag. + * @export + * @interface LoadBalancerTag + */ +export interface LoadBalancerTag { + /** + * The key of the tag. + * @type {string} + * @memberof LoadBalancerTag + */ + key?: string; + /** + * The name of the load balancer. + * @type {string} + * @memberof LoadBalancerTag + */ + loadBalancerName?: string; + /** + * The value of the tag. + * @type {string} + * @memberof LoadBalancerTag + */ + value?: string; +} +export declare function LoadBalancerTagFromJSON(json: any): LoadBalancerTag; +export declare function LoadBalancerTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerTag; +export declare function LoadBalancerTagToJSON(value?: LoadBalancerTag | null): any; diff --git a/dist/esm/models/LoadBalancerTag.js b/dist/esm/models/LoadBalancerTag.js new file mode 100644 index 00000000..07754d3b --- /dev/null +++ b/dist/esm/models/LoadBalancerTag.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LoadBalancerTagFromJSON(json) { + return LoadBalancerTagFromJSONTyped(json, false); +} +export function LoadBalancerTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': !exists(json, 'Key') ? undefined : json['Key'], + 'loadBalancerName': !exists(json, 'LoadBalancerName') ? undefined : json['LoadBalancerName'], + 'value': !exists(json, 'Value') ? undefined : json['Value'], + }; +} +export function LoadBalancerTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + 'LoadBalancerName': value.loadBalancerName, + 'Value': value.value, + }; +} diff --git a/dist/esm/models/Location.d.ts b/dist/esm/models/Location.d.ts new file mode 100644 index 00000000..fda2e949 --- /dev/null +++ b/dist/esm/models/Location.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the DirectLink location. + * @export + * @interface Location + */ +export interface Location { + /** + * The location code, to be set as the `Location` parameter of the *CreateDirectLink* method when creating a DirectLink. + * @type {string} + * @memberof Location + */ + code?: string; + /** + * The name and description of the location, corresponding to a datacenter. + * @type {string} + * @memberof Location + */ + name?: string; +} +export declare function LocationFromJSON(json: any): Location; +export declare function LocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Location; +export declare function LocationToJSON(value?: Location | null): any; diff --git a/dist/esm/models/Location.js b/dist/esm/models/Location.js new file mode 100644 index 00000000..2a1011e6 --- /dev/null +++ b/dist/esm/models/Location.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LocationFromJSON(json) { + return LocationFromJSONTyped(json, false); +} +export function LocationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'code': !exists(json, 'Code') ? undefined : json['Code'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + }; +} +export function LocationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Code': value.code, + 'Name': value.name, + }; +} diff --git a/dist/esm/models/Log.d.ts b/dist/esm/models/Log.d.ts new file mode 100644 index 00000000..6f1b4ba4 --- /dev/null +++ b/dist/esm/models/Log.d.ts @@ -0,0 +1,117 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the log. + * @export + * @interface Log + */ +export interface Log { + /** + * The account ID of the logged call. + * @type {string} + * @memberof Log + */ + accountId?: string; + /** + * The duration of the logged call, in microseconds. + * @type {number} + * @memberof Log + */ + callDuration?: number; + /** + * The access key used for the logged call. + * @type {string} + * @memberof Log + */ + queryAccessKey?: string; + /** + * The name of the API used by the logged call (always `oapi` for the OUTSCALE API). + * @type {string} + * @memberof Log + */ + queryApiName?: string; + /** + * The version of the API used by the logged call. + * @type {string} + * @memberof Log + */ + queryApiVersion?: string; + /** + * The name of the logged call. + * @type {string} + * @memberof Log + */ + queryCallName?: string; + /** + * The date of the logged call, in ISO 8601 format. + * @type {Date} + * @memberof Log + */ + queryDate?: Date; + /** + * The raw header of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryHeaderRaw?: string; + /** + * The size of the raw header of the HTTP request of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + queryHeaderSize?: number; + /** + * The IP used for the logged call. + * @type {string} + * @memberof Log + */ + queryIpAddress?: string; + /** + * The raw payload of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryPayloadRaw?: string; + /** + * The size of the raw payload of the HTTP request of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + queryPayloadSize?: number; + /** + * The user agent of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryUserAgent?: string; + /** + * The request ID provided in the response of the logged call. + * @type {string} + * @memberof Log + */ + requestId?: string; + /** + * The size of the response of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + responseSize?: number; + /** + * The HTTP status code of the response of the logged call. + * @type {number} + * @memberof Log + */ + responseStatusCode?: number; +} +export declare function LogFromJSON(json: any): Log; +export declare function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log; +export declare function LogToJSON(value?: Log | null): any; diff --git a/dist/esm/models/Log.js b/dist/esm/models/Log.js new file mode 100644 index 00000000..d3424013 --- /dev/null +++ b/dist/esm/models/Log.js @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function LogFromJSON(json) { + return LogFromJSONTyped(json, false); +} +export function LogFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'callDuration': !exists(json, 'CallDuration') ? undefined : json['CallDuration'], + 'queryAccessKey': !exists(json, 'QueryAccessKey') ? undefined : json['QueryAccessKey'], + 'queryApiName': !exists(json, 'QueryApiName') ? undefined : json['QueryApiName'], + 'queryApiVersion': !exists(json, 'QueryApiVersion') ? undefined : json['QueryApiVersion'], + 'queryCallName': !exists(json, 'QueryCallName') ? undefined : json['QueryCallName'], + 'queryDate': !exists(json, 'QueryDate') ? undefined : (new Date(json['QueryDate'])), + 'queryHeaderRaw': !exists(json, 'QueryHeaderRaw') ? undefined : json['QueryHeaderRaw'], + 'queryHeaderSize': !exists(json, 'QueryHeaderSize') ? undefined : json['QueryHeaderSize'], + 'queryIpAddress': !exists(json, 'QueryIpAddress') ? undefined : json['QueryIpAddress'], + 'queryPayloadRaw': !exists(json, 'QueryPayloadRaw') ? undefined : json['QueryPayloadRaw'], + 'queryPayloadSize': !exists(json, 'QueryPayloadSize') ? undefined : json['QueryPayloadSize'], + 'queryUserAgent': !exists(json, 'QueryUserAgent') ? undefined : json['QueryUserAgent'], + 'requestId': !exists(json, 'RequestId') ? undefined : json['RequestId'], + 'responseSize': !exists(json, 'ResponseSize') ? undefined : json['ResponseSize'], + 'responseStatusCode': !exists(json, 'ResponseStatusCode') ? undefined : json['ResponseStatusCode'], + }; +} +export function LogToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'CallDuration': value.callDuration, + 'QueryAccessKey': value.queryAccessKey, + 'QueryApiName': value.queryApiName, + 'QueryApiVersion': value.queryApiVersion, + 'QueryCallName': value.queryCallName, + 'QueryDate': value.queryDate === undefined ? undefined : (value.queryDate.toISOString().substr(0, 10)), + 'QueryHeaderRaw': value.queryHeaderRaw, + 'QueryHeaderSize': value.queryHeaderSize, + 'QueryIpAddress': value.queryIpAddress, + 'QueryPayloadRaw': value.queryPayloadRaw, + 'QueryPayloadSize': value.queryPayloadSize, + 'QueryUserAgent': value.queryUserAgent, + 'RequestId': value.requestId, + 'ResponseSize': value.responseSize, + 'ResponseStatusCode': value.responseStatusCode, + }; +} diff --git a/dist/esm/models/MaintenanceEvent.d.ts b/dist/esm/models/MaintenanceEvent.d.ts new file mode 100644 index 00000000..ea74396f --- /dev/null +++ b/dist/esm/models/MaintenanceEvent.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the maintenance event. + * @export + * @interface MaintenanceEvent + */ +export interface MaintenanceEvent { + /** + * The code of the event (`system-reboot` \| `system-maintenance`). + * @type {string} + * @memberof MaintenanceEvent + */ + code?: string; + /** + * The description of the event. + * @type {string} + * @memberof MaintenanceEvent + */ + description?: string; + /** + * The latest scheduled end time for the event. + * @type {Date} + * @memberof MaintenanceEvent + */ + notAfter?: Date; + /** + * The earliest scheduled start time for the event. + * @type {Date} + * @memberof MaintenanceEvent + */ + notBefore?: Date; +} +export declare function MaintenanceEventFromJSON(json: any): MaintenanceEvent; +export declare function MaintenanceEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaintenanceEvent; +export declare function MaintenanceEventToJSON(value?: MaintenanceEvent | null): any; diff --git a/dist/esm/models/MaintenanceEvent.js b/dist/esm/models/MaintenanceEvent.js new file mode 100644 index 00000000..060d02ff --- /dev/null +++ b/dist/esm/models/MaintenanceEvent.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function MaintenanceEventFromJSON(json) { + return MaintenanceEventFromJSONTyped(json, false); +} +export function MaintenanceEventFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'code': !exists(json, 'Code') ? undefined : json['Code'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'notAfter': !exists(json, 'NotAfter') ? undefined : (new Date(json['NotAfter'])), + 'notBefore': !exists(json, 'NotBefore') ? undefined : (new Date(json['NotBefore'])), + }; +} +export function MaintenanceEventToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Code': value.code, + 'Description': value.description, + 'NotAfter': value.notAfter === undefined ? undefined : (value.notAfter.toISOString().substr(0, 10)), + 'NotBefore': value.notBefore === undefined ? undefined : (value.notBefore.toISOString().substr(0, 10)), + }; +} diff --git a/dist/esm/models/ModelResponseContext.d.ts b/dist/esm/models/ModelResponseContext.d.ts new file mode 100644 index 00000000..79c8c24e --- /dev/null +++ b/dist/esm/models/ModelResponseContext.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the context of the response. + * @export + * @interface ModelResponseContext + */ +export interface ModelResponseContext { + /** + * The ID of the request. + * @type {string} + * @memberof ModelResponseContext + */ + requestId?: string; +} +export declare function ModelResponseContextFromJSON(json: any): ModelResponseContext; +export declare function ModelResponseContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelResponseContext; +export declare function ModelResponseContextToJSON(value?: ModelResponseContext | null): any; diff --git a/dist/esm/models/ModelResponseContext.js b/dist/esm/models/ModelResponseContext.js new file mode 100644 index 00000000..aec11558 --- /dev/null +++ b/dist/esm/models/ModelResponseContext.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ModelResponseContextFromJSON(json) { + return ModelResponseContextFromJSONTyped(json, false); +} +export function ModelResponseContextFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'requestId': !exists(json, 'RequestId') ? undefined : json['RequestId'], + }; +} +export function ModelResponseContextToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'RequestId': value.requestId, + }; +} diff --git a/dist/esm/models/NatService.d.ts b/dist/esm/models/NatService.d.ts new file mode 100644 index 00000000..8c0af504 --- /dev/null +++ b/dist/esm/models/NatService.d.ts @@ -0,0 +1,59 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PublicIpLight } from './PublicIpLight'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the NAT service. + * @export + * @interface NatService + */ +export interface NatService { + /** + * The ID of the NAT service. + * @type {string} + * @memberof NatService + */ + natServiceId?: string; + /** + * The ID of the Net in which the NAT service is. + * @type {string} + * @memberof NatService + */ + netId?: string; + /** + * Information about the public IP or IPs associated with the NAT service. + * @type {Array} + * @memberof NatService + */ + publicIps?: Array; + /** + * The state of the NAT service (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof NatService + */ + state?: string; + /** + * The ID of the Subnet in which the NAT service is. + * @type {string} + * @memberof NatService + */ + subnetId?: string; + /** + * One or more tags associated with the NAT service. + * @type {Array} + * @memberof NatService + */ + tags?: Array; +} +export declare function NatServiceFromJSON(json: any): NatService; +export declare function NatServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NatService; +export declare function NatServiceToJSON(value?: NatService | null): any; diff --git a/dist/esm/models/NatService.js b/dist/esm/models/NatService.js new file mode 100644 index 00000000..760f731c --- /dev/null +++ b/dist/esm/models/NatService.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PublicIpLightFromJSON, PublicIpLightToJSON, } from './PublicIpLight'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function NatServiceFromJSON(json) { + return NatServiceFromJSONTyped(json, false); +} +export function NatServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'publicIps': !exists(json, 'PublicIps') ? undefined : (json['PublicIps'].map(PublicIpLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function NatServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatServiceId': value.natServiceId, + 'NetId': value.netId, + 'PublicIps': value.publicIps === undefined ? undefined : (value.publicIps.map(PublicIpLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/Net.d.ts b/dist/esm/models/Net.d.ts new file mode 100644 index 00000000..4179ea4e --- /dev/null +++ b/dist/esm/models/Net.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Net. + * @export + * @interface Net + */ +export interface Net { + /** + * The ID of the DHCP options set (or `default` if you want to associate the default one). + * @type {string} + * @memberof Net + */ + dhcpOptionsSetId?: string; + /** + * The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof Net + */ + ipRange?: string; + /** + * The ID of the Net. + * @type {string} + * @memberof Net + */ + netId?: string; + /** + * The state of the Net (`pending` \| `available`). + * @type {string} + * @memberof Net + */ + state?: string; + /** + * One or more tags associated with the Net. + * @type {Array} + * @memberof Net + */ + tags?: Array; + /** + * The VM tenancy in a Net. + * @type {string} + * @memberof Net + */ + tenancy?: string; +} +export declare function NetFromJSON(json: any): Net; +export declare function NetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Net; +export declare function NetToJSON(value?: Net | null): any; diff --git a/dist/esm/models/Net.js b/dist/esm/models/Net.js new file mode 100644 index 00000000..2907c311 --- /dev/null +++ b/dist/esm/models/Net.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function NetFromJSON(json) { + return NetFromJSONTyped(json, false); +} +export function NetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetId': !exists(json, 'DhcpOptionsSetId') ? undefined : json['DhcpOptionsSetId'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'tenancy': !exists(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} +export function NetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'Tenancy': value.tenancy, + }; +} diff --git a/dist/esm/models/NetAccessPoint.d.ts b/dist/esm/models/NetAccessPoint.d.ts new file mode 100644 index 00000000..41785ba9 --- /dev/null +++ b/dist/esm/models/NetAccessPoint.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Net access point. + * @export + * @interface NetAccessPoint + */ +export interface NetAccessPoint { + /** + * The ID of the Net access point. + * @type {string} + * @memberof NetAccessPoint + */ + netAccessPointId?: string; + /** + * The ID of the Net with which the Net access point is associated. + * @type {string} + * @memberof NetAccessPoint + */ + netId?: string; + /** + * The ID of the route tables associated with the Net access point. + * @type {Array} + * @memberof NetAccessPoint + */ + routeTableIds?: Array; + /** + * The name of the service with which the Net access point is associated. + * @type {string} + * @memberof NetAccessPoint + */ + serviceName?: string; + /** + * The state of the Net access point (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof NetAccessPoint + */ + state?: string; + /** + * One or more tags associated with the Net access point. + * @type {Array} + * @memberof NetAccessPoint + */ + tags?: Array; +} +export declare function NetAccessPointFromJSON(json: any): NetAccessPoint; +export declare function NetAccessPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetAccessPoint; +export declare function NetAccessPointToJSON(value?: NetAccessPoint | null): any; diff --git a/dist/esm/models/NetAccessPoint.js b/dist/esm/models/NetAccessPoint.js new file mode 100644 index 00000000..bde49f82 --- /dev/null +++ b/dist/esm/models/NetAccessPoint.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function NetAccessPointFromJSON(json) { + return NetAccessPointFromJSONTyped(json, false); +} +export function NetAccessPointFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPointId': !exists(json, 'NetAccessPointId') ? undefined : json['NetAccessPointId'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'routeTableIds': !exists(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'serviceName': !exists(json, 'ServiceName') ? undefined : json['ServiceName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function NetAccessPointToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPointId': value.netAccessPointId, + 'NetId': value.netId, + 'RouteTableIds': value.routeTableIds, + 'ServiceName': value.serviceName, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/NetPeering.d.ts b/dist/esm/models/NetPeering.d.ts new file mode 100644 index 00000000..bcd46eb7 --- /dev/null +++ b/dist/esm/models/NetPeering.d.ts @@ -0,0 +1,55 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccepterNet } from './AccepterNet'; +import { NetPeeringState } from './NetPeeringState'; +import { ResourceTag } from './ResourceTag'; +import { SourceNet } from './SourceNet'; +/** + * Information about the Net peering connection. + * @export + * @interface NetPeering + */ +export interface NetPeering { + /** + * + * @type {AccepterNet} + * @memberof NetPeering + */ + accepterNet?: AccepterNet; + /** + * The ID of the Net peering connection. + * @type {string} + * @memberof NetPeering + */ + netPeeringId?: string; + /** + * + * @type {SourceNet} + * @memberof NetPeering + */ + sourceNet?: SourceNet; + /** + * + * @type {NetPeeringState} + * @memberof NetPeering + */ + state?: NetPeeringState; + /** + * One or more tags associated with the Net peering connection. + * @type {Array} + * @memberof NetPeering + */ + tags?: Array; +} +export declare function NetPeeringFromJSON(json: any): NetPeering; +export declare function NetPeeringFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetPeering; +export declare function NetPeeringToJSON(value?: NetPeering | null): any; diff --git a/dist/esm/models/NetPeering.js b/dist/esm/models/NetPeering.js new file mode 100644 index 00000000..33e98874 --- /dev/null +++ b/dist/esm/models/NetPeering.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccepterNetFromJSON, AccepterNetToJSON, } from './AccepterNet'; +import { NetPeeringStateFromJSON, NetPeeringStateToJSON, } from './NetPeeringState'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { SourceNetFromJSON, SourceNetToJSON, } from './SourceNet'; +export function NetPeeringFromJSON(json) { + return NetPeeringFromJSONTyped(json, false); +} +export function NetPeeringFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accepterNet': !exists(json, 'AccepterNet') ? undefined : AccepterNetFromJSON(json['AccepterNet']), + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'sourceNet': !exists(json, 'SourceNet') ? undefined : SourceNetFromJSON(json['SourceNet']), + 'state': !exists(json, 'State') ? undefined : NetPeeringStateFromJSON(json['State']), + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function NetPeeringToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccepterNet': AccepterNetToJSON(value.accepterNet), + 'NetPeeringId': value.netPeeringId, + 'SourceNet': SourceNetToJSON(value.sourceNet), + 'State': NetPeeringStateToJSON(value.state), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/NetPeeringState.d.ts b/dist/esm/models/NetPeeringState.d.ts new file mode 100644 index 00000000..4c875bc7 --- /dev/null +++ b/dist/esm/models/NetPeeringState.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the state of the Net peering connection. + * @export + * @interface NetPeeringState + */ +export interface NetPeeringState { + /** + * Additional information about the state of the Net peering connection. + * @type {string} + * @memberof NetPeeringState + */ + message?: string; + /** + * The state of the Net peering connection (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). + * @type {string} + * @memberof NetPeeringState + */ + name?: string; +} +export declare function NetPeeringStateFromJSON(json: any): NetPeeringState; +export declare function NetPeeringStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetPeeringState; +export declare function NetPeeringStateToJSON(value?: NetPeeringState | null): any; diff --git a/dist/esm/models/NetPeeringState.js b/dist/esm/models/NetPeeringState.js new file mode 100644 index 00000000..87f9afb6 --- /dev/null +++ b/dist/esm/models/NetPeeringState.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function NetPeeringStateFromJSON(json) { + return NetPeeringStateFromJSONTyped(json, false); +} +export function NetPeeringStateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'message': !exists(json, 'Message') ? undefined : json['Message'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + }; +} +export function NetPeeringStateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Message': value.message, + 'Name': value.name, + }; +} diff --git a/dist/esm/models/NetToVirtualGatewayLink.d.ts b/dist/esm/models/NetToVirtualGatewayLink.d.ts new file mode 100644 index 00000000..8ff1bd8a --- /dev/null +++ b/dist/esm/models/NetToVirtualGatewayLink.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the attachment. + * @export + * @interface NetToVirtualGatewayLink + */ +export interface NetToVirtualGatewayLink { + /** + * The ID of the Net to which the virtual gateway is attached. + * @type {string} + * @memberof NetToVirtualGatewayLink + */ + netId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof NetToVirtualGatewayLink + */ + state?: string; +} +export declare function NetToVirtualGatewayLinkFromJSON(json: any): NetToVirtualGatewayLink; +export declare function NetToVirtualGatewayLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetToVirtualGatewayLink; +export declare function NetToVirtualGatewayLinkToJSON(value?: NetToVirtualGatewayLink | null): any; diff --git a/dist/esm/models/NetToVirtualGatewayLink.js b/dist/esm/models/NetToVirtualGatewayLink.js new file mode 100644 index 00000000..1bf71aa8 --- /dev/null +++ b/dist/esm/models/NetToVirtualGatewayLink.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function NetToVirtualGatewayLinkFromJSON(json) { + return NetToVirtualGatewayLinkFromJSONTyped(json, false); +} +export function NetToVirtualGatewayLinkFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} +export function NetToVirtualGatewayLinkToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetId': value.netId, + 'State': value.state, + }; +} diff --git a/dist/esm/models/Nic.d.ts b/dist/esm/models/Nic.d.ts new file mode 100644 index 00000000..942472ca --- /dev/null +++ b/dist/esm/models/Nic.d.ts @@ -0,0 +1,116 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkNic } from './LinkNic'; +import { LinkPublicIp } from './LinkPublicIp'; +import { PrivateIp } from './PrivateIp'; +import { ResourceTag } from './ResourceTag'; +import { SecurityGroupLight } from './SecurityGroupLight'; +/** + * Information about the NIC. + * @export + * @interface Nic + */ +export interface Nic { + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof Nic + */ + accountId?: string; + /** + * The description of the NIC. + * @type {string} + * @memberof Nic + */ + description?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof Nic + */ + isSourceDestChecked?: boolean; + /** + * + * @type {LinkNic} + * @memberof Nic + */ + linkNic?: LinkNic; + /** + * + * @type {LinkPublicIp} + * @memberof Nic + */ + linkPublicIp?: LinkPublicIp; + /** + * The Media Access Control (MAC) address of the NIC. + * @type {string} + * @memberof Nic + */ + macAddress?: string; + /** + * The ID of the Net for the NIC. + * @type {string} + * @memberof Nic + */ + netId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof Nic + */ + nicId?: string; + /** + * The name of the private DNS. + * @type {string} + * @memberof Nic + */ + privateDnsName?: string; + /** + * The private IPs of the NIC. + * @type {Array} + * @memberof Nic + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof Nic + */ + securityGroups?: Array; + /** + * The state of the NIC (`available` \| `attaching` \| `in-use` \| `detaching`). + * @type {string} + * @memberof Nic + */ + state?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof Nic + */ + subnetId?: string; + /** + * The Subregion in which the NIC is located. + * @type {string} + * @memberof Nic + */ + subregionName?: string; + /** + * One or more tags associated with the NIC. + * @type {Array} + * @memberof Nic + */ + tags?: Array; +} +export declare function NicFromJSON(json: any): Nic; +export declare function NicFromJSONTyped(json: any, ignoreDiscriminator: boolean): Nic; +export declare function NicToJSON(value?: Nic | null): any; diff --git a/dist/esm/models/Nic.js b/dist/esm/models/Nic.js new file mode 100644 index 00000000..c6351444 --- /dev/null +++ b/dist/esm/models/Nic.js @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkNicFromJSON, LinkNicToJSON, } from './LinkNic'; +import { LinkPublicIpFromJSON, LinkPublicIpToJSON, } from './LinkPublicIp'; +import { PrivateIpFromJSON, PrivateIpToJSON, } from './PrivateIp'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { SecurityGroupLightFromJSON, SecurityGroupLightToJSON, } from './SecurityGroupLight'; +export function NicFromJSON(json) { + return NicFromJSONTyped(json, false); +} +export function NicFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'linkNic': !exists(json, 'LinkNic') ? undefined : LinkNicFromJSON(json['LinkNic']), + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpFromJSON(json['LinkPublicIp']), + 'macAddress': !exists(json, 'MacAddress') ? undefined : json['MacAddress'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpFromJSON)), + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function NicToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'LinkNic': LinkNicToJSON(value.linkNic), + 'LinkPublicIp': LinkPublicIpToJSON(value.linkPublicIp), + 'MacAddress': value.macAddress, + 'NetId': value.netId, + 'NicId': value.nicId, + 'PrivateDnsName': value.privateDnsName, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpToJSON)), + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/NicForVmCreation.d.ts b/dist/esm/models/NicForVmCreation.d.ts new file mode 100644 index 00000000..682000ce --- /dev/null +++ b/dist/esm/models/NicForVmCreation.d.ts @@ -0,0 +1,70 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PrivateIpLight } from './PrivateIpLight'; +/** + * Information about the network interface card (NIC) when creating a virtual machine (VM). + * @export + * @interface NicForVmCreation + */ +export interface NicForVmCreation { + /** + * If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see [UpdateNic](#updatenic). + * @type {boolean} + * @memberof NicForVmCreation + */ + deleteOnVmDeletion?: boolean; + /** + * The description of the NIC, if you are creating a NIC when creating the VM. + * @type {string} + * @memberof NicForVmCreation + */ + description?: string; + /** + * The index of the VM device for the NIC attachment (between 0 and 7, both included). This parameter is required if you create a NIC when creating the VM. + * @type {number} + * @memberof NicForVmCreation + */ + deviceNumber?: number; + /** + * The ID of the NIC, if you are attaching an existing NIC when creating a VM. + * @type {string} + * @memberof NicForVmCreation + */ + nicId?: string; + /** + * One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP. + * @type {Array} + * @memberof NicForVmCreation + */ + privateIps?: Array; + /** + * The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the `PrivateIps` parameter. + * @type {number} + * @memberof NicForVmCreation + */ + secondaryPrivateIpCount?: number; + /** + * One or more IDs of security groups for the NIC, if you create a NIC when creating a VM. + * @type {Array} + * @memberof NicForVmCreation + */ + securityGroupIds?: Array; + /** + * The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM. + * @type {string} + * @memberof NicForVmCreation + */ + subnetId?: string; +} +export declare function NicForVmCreationFromJSON(json: any): NicForVmCreation; +export declare function NicForVmCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NicForVmCreation; +export declare function NicForVmCreationToJSON(value?: NicForVmCreation | null): any; diff --git a/dist/esm/models/NicForVmCreation.js b/dist/esm/models/NicForVmCreation.js new file mode 100644 index 00000000..dd3355b7 --- /dev/null +++ b/dist/esm/models/NicForVmCreation.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PrivateIpLightFromJSON, PrivateIpLightToJSON, } from './PrivateIpLight'; +export function NicForVmCreationFromJSON(json) { + return NicForVmCreationFromJSONTyped(json, false); +} +export function NicForVmCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'deviceNumber': !exists(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpLightFromJSON)), + 'secondaryPrivateIpCount': !exists(json, 'SecondaryPrivateIpCount') ? undefined : json['SecondaryPrivateIpCount'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} +export function NicForVmCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'Description': value.description, + 'DeviceNumber': value.deviceNumber, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpLightToJSON)), + 'SecondaryPrivateIpCount': value.secondaryPrivateIpCount, + 'SecurityGroupIds': value.securityGroupIds, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/NicLight.d.ts b/dist/esm/models/NicLight.d.ts new file mode 100644 index 00000000..0b9e8b49 --- /dev/null +++ b/dist/esm/models/NicLight.d.ts @@ -0,0 +1,103 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkNicLight } from './LinkNicLight'; +import { LinkPublicIpLightForVm } from './LinkPublicIpLightForVm'; +import { PrivateIpLightForVm } from './PrivateIpLightForVm'; +import { SecurityGroupLight } from './SecurityGroupLight'; +/** + * Information about the network interface card (NIC). + * @export + * @interface NicLight + */ +export interface NicLight { + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof NicLight + */ + accountId?: string; + /** + * The description of the NIC. + * @type {string} + * @memberof NicLight + */ + description?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof NicLight + */ + isSourceDestChecked?: boolean; + /** + * + * @type {LinkNicLight} + * @memberof NicLight + */ + linkNic?: LinkNicLight; + /** + * + * @type {LinkPublicIpLightForVm} + * @memberof NicLight + */ + linkPublicIp?: LinkPublicIpLightForVm; + /** + * The Media Access Control (MAC) address of the NIC. + * @type {string} + * @memberof NicLight + */ + macAddress?: string; + /** + * The ID of the Net for the NIC. + * @type {string} + * @memberof NicLight + */ + netId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof NicLight + */ + nicId?: string; + /** + * The name of the private DNS. + * @type {string} + * @memberof NicLight + */ + privateDnsName?: string; + /** + * The private IP or IPs of the NIC. + * @type {Array} + * @memberof NicLight + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof NicLight + */ + securityGroups?: Array; + /** + * The state of the NIC (`available` \| `attaching` \| `in-use` \| `detaching`). + * @type {string} + * @memberof NicLight + */ + state?: string; + /** + * The ID of the Subnet for the NIC. + * @type {string} + * @memberof NicLight + */ + subnetId?: string; +} +export declare function NicLightFromJSON(json: any): NicLight; +export declare function NicLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): NicLight; +export declare function NicLightToJSON(value?: NicLight | null): any; diff --git a/dist/esm/models/NicLight.js b/dist/esm/models/NicLight.js new file mode 100644 index 00000000..58a407a5 --- /dev/null +++ b/dist/esm/models/NicLight.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkNicLightFromJSON, LinkNicLightToJSON, } from './LinkNicLight'; +import { LinkPublicIpLightForVmFromJSON, LinkPublicIpLightForVmToJSON, } from './LinkPublicIpLightForVm'; +import { PrivateIpLightForVmFromJSON, PrivateIpLightForVmToJSON, } from './PrivateIpLightForVm'; +import { SecurityGroupLightFromJSON, SecurityGroupLightToJSON, } from './SecurityGroupLight'; +export function NicLightFromJSON(json) { + return NicLightFromJSONTyped(json, false); +} +export function NicLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'linkNic': !exists(json, 'LinkNic') ? undefined : LinkNicLightFromJSON(json['LinkNic']), + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpLightForVmFromJSON(json['LinkPublicIp']), + 'macAddress': !exists(json, 'MacAddress') ? undefined : json['MacAddress'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : (json['PrivateIps'].map(PrivateIpLightForVmFromJSON)), + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} +export function NicLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'LinkNic': LinkNicLightToJSON(value.linkNic), + 'LinkPublicIp': LinkPublicIpLightForVmToJSON(value.linkPublicIp), + 'MacAddress': value.macAddress, + 'NetId': value.netId, + 'NicId': value.nicId, + 'PrivateDnsName': value.privateDnsName, + 'PrivateIps': value.privateIps === undefined ? undefined : (value.privateIps.map(PrivateIpLightForVmToJSON)), + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/OsuApiKey.d.ts b/dist/esm/models/OsuApiKey.d.ts new file mode 100644 index 00000000..085d9a88 --- /dev/null +++ b/dist/esm/models/OsuApiKey.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the OOS API key. + * @export + * @interface OsuApiKey + */ +export interface OsuApiKey { + /** + * The API key of the OOS account that enables you to access the bucket. + * @type {string} + * @memberof OsuApiKey + */ + apiKeyId?: string; + /** + * The secret key of the OOS account that enables you to access the bucket. + * @type {string} + * @memberof OsuApiKey + */ + secretKey?: string; +} +export declare function OsuApiKeyFromJSON(json: any): OsuApiKey; +export declare function OsuApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuApiKey; +export declare function OsuApiKeyToJSON(value?: OsuApiKey | null): any; diff --git a/dist/esm/models/OsuApiKey.js b/dist/esm/models/OsuApiKey.js new file mode 100644 index 00000000..67048cbc --- /dev/null +++ b/dist/esm/models/OsuApiKey.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function OsuApiKeyFromJSON(json) { + return OsuApiKeyFromJSONTyped(json, false); +} +export function OsuApiKeyFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiKeyId': !exists(json, 'ApiKeyId') ? undefined : json['ApiKeyId'], + 'secretKey': !exists(json, 'SecretKey') ? undefined : json['SecretKey'], + }; +} +export function OsuApiKeyToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiKeyId': value.apiKeyId, + 'SecretKey': value.secretKey, + }; +} diff --git a/dist/esm/models/OsuExportImageExportTask.d.ts b/dist/esm/models/OsuExportImageExportTask.d.ts new file mode 100644 index 00000000..72709068 --- /dev/null +++ b/dist/esm/models/OsuExportImageExportTask.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the OMI export task. + * @export + * @interface OsuExportImageExportTask + */ +export interface OsuExportImageExportTask { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportImageExportTask + */ + diskImageFormat: string; + /** + * The name of the OOS bucket the OMI is exported to. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuBucket: string; + /** + * The URL of the manifest file. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuManifestUrl?: string; + /** + * The prefix for the key of the OOS object corresponding to the image. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuPrefix?: string; +} +export declare function OsuExportImageExportTaskFromJSON(json: any): OsuExportImageExportTask; +export declare function OsuExportImageExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportImageExportTask; +export declare function OsuExportImageExportTaskToJSON(value?: OsuExportImageExportTask | null): any; diff --git a/dist/esm/models/OsuExportImageExportTask.js b/dist/esm/models/OsuExportImageExportTask.js new file mode 100644 index 00000000..842528d5 --- /dev/null +++ b/dist/esm/models/OsuExportImageExportTask.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function OsuExportImageExportTaskFromJSON(json) { + return OsuExportImageExportTaskFromJSONTyped(json, false); +} +export function OsuExportImageExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'diskImageFormat': json['DiskImageFormat'], + 'osuBucket': json['OsuBucket'], + 'osuManifestUrl': !exists(json, 'OsuManifestUrl') ? undefined : json['OsuManifestUrl'], + 'osuPrefix': !exists(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} +export function OsuExportImageExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DiskImageFormat': value.diskImageFormat, + 'OsuBucket': value.osuBucket, + 'OsuManifestUrl': value.osuManifestUrl, + 'OsuPrefix': value.osuPrefix, + }; +} diff --git a/dist/esm/models/OsuExportSnapshotExportTask.d.ts b/dist/esm/models/OsuExportSnapshotExportTask.d.ts new file mode 100644 index 00000000..0b13fe92 --- /dev/null +++ b/dist/esm/models/OsuExportSnapshotExportTask.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the snapshot export task. + * @export + * @interface OsuExportSnapshotExportTask + */ +export interface OsuExportSnapshotExportTask { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + diskImageFormat: string; + /** + * The name of the OOS bucket the snapshot is exported to. + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + osuBucket: string; + /** + * The prefix for the key of the OOS object corresponding to the snapshot. + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + osuPrefix?: string; +} +export declare function OsuExportSnapshotExportTaskFromJSON(json: any): OsuExportSnapshotExportTask; +export declare function OsuExportSnapshotExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportSnapshotExportTask; +export declare function OsuExportSnapshotExportTaskToJSON(value?: OsuExportSnapshotExportTask | null): any; diff --git a/dist/esm/models/OsuExportSnapshotExportTask.js b/dist/esm/models/OsuExportSnapshotExportTask.js new file mode 100644 index 00000000..b185b25d --- /dev/null +++ b/dist/esm/models/OsuExportSnapshotExportTask.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function OsuExportSnapshotExportTaskFromJSON(json) { + return OsuExportSnapshotExportTaskFromJSONTyped(json, false); +} +export function OsuExportSnapshotExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'diskImageFormat': json['DiskImageFormat'], + 'osuBucket': json['OsuBucket'], + 'osuPrefix': !exists(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} +export function OsuExportSnapshotExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DiskImageFormat': value.diskImageFormat, + 'OsuBucket': value.osuBucket, + 'OsuPrefix': value.osuPrefix, + }; +} diff --git a/dist/esm/models/OsuExportToCreate.d.ts b/dist/esm/models/OsuExportToCreate.d.ts new file mode 100644 index 00000000..2f143152 --- /dev/null +++ b/dist/esm/models/OsuExportToCreate.d.ts @@ -0,0 +1,52 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuApiKey } from './OsuApiKey'; +/** + * Information about the OOS export task to create. + * @export + * @interface OsuExportToCreate + */ +export interface OsuExportToCreate { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportToCreate + */ + diskImageFormat: string; + /** + * + * @type {OsuApiKey} + * @memberof OsuExportToCreate + */ + osuApiKey?: OsuApiKey; + /** + * The name of the OOS bucket where you want to export the object. + * @type {string} + * @memberof OsuExportToCreate + */ + osuBucket: string; + /** + * The URL of the manifest file. + * @type {string} + * @memberof OsuExportToCreate + */ + osuManifestUrl?: string; + /** + * The prefix for the key of the OOS object. + * @type {string} + * @memberof OsuExportToCreate + */ + osuPrefix?: string; +} +export declare function OsuExportToCreateFromJSON(json: any): OsuExportToCreate; +export declare function OsuExportToCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportToCreate; +export declare function OsuExportToCreateToJSON(value?: OsuExportToCreate | null): any; diff --git a/dist/esm/models/OsuExportToCreate.js b/dist/esm/models/OsuExportToCreate.js new file mode 100644 index 00000000..14656bb7 --- /dev/null +++ b/dist/esm/models/OsuExportToCreate.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { OsuApiKeyFromJSON, OsuApiKeyToJSON, } from './OsuApiKey'; +export function OsuExportToCreateFromJSON(json) { + return OsuExportToCreateFromJSONTyped(json, false); +} +export function OsuExportToCreateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'diskImageFormat': json['DiskImageFormat'], + 'osuApiKey': !exists(json, 'OsuApiKey') ? undefined : OsuApiKeyFromJSON(json['OsuApiKey']), + 'osuBucket': json['OsuBucket'], + 'osuManifestUrl': !exists(json, 'OsuManifestUrl') ? undefined : json['OsuManifestUrl'], + 'osuPrefix': !exists(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} +export function OsuExportToCreateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DiskImageFormat': value.diskImageFormat, + 'OsuApiKey': OsuApiKeyToJSON(value.osuApiKey), + 'OsuBucket': value.osuBucket, + 'OsuManifestUrl': value.osuManifestUrl, + 'OsuPrefix': value.osuPrefix, + }; +} diff --git a/dist/esm/models/PermissionsOnResource.d.ts b/dist/esm/models/PermissionsOnResource.d.ts new file mode 100644 index 00000000..21880b08 --- /dev/null +++ b/dist/esm/models/PermissionsOnResource.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the users who have permissions for the resource. + * @export + * @interface PermissionsOnResource + */ +export interface PermissionsOnResource { + /** + * The account ID of one or more users who have permissions for the resource. + * @type {Array} + * @memberof PermissionsOnResource + */ + accountIds?: Array; + /** + * If true, the resource is public. If false, the resource is private. + * @type {boolean} + * @memberof PermissionsOnResource + */ + globalPermission?: boolean; +} +export declare function PermissionsOnResourceFromJSON(json: any): PermissionsOnResource; +export declare function PermissionsOnResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionsOnResource; +export declare function PermissionsOnResourceToJSON(value?: PermissionsOnResource | null): any; diff --git a/dist/esm/models/PermissionsOnResource.js b/dist/esm/models/PermissionsOnResource.js new file mode 100644 index 00000000..3311689e --- /dev/null +++ b/dist/esm/models/PermissionsOnResource.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function PermissionsOnResourceFromJSON(json) { + return PermissionsOnResourceFromJSONTyped(json, false); +} +export function PermissionsOnResourceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'globalPermission': !exists(json, 'GlobalPermission') ? undefined : json['GlobalPermission'], + }; +} +export function PermissionsOnResourceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountIds': value.accountIds, + 'GlobalPermission': value.globalPermission, + }; +} diff --git a/dist/esm/models/PermissionsOnResourceCreation.d.ts b/dist/esm/models/PermissionsOnResourceCreation.d.ts new file mode 100644 index 00000000..405a0e9b --- /dev/null +++ b/dist/esm/models/PermissionsOnResourceCreation.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResource } from './PermissionsOnResource'; +/** + * Information about the permissions for the resource. + * @export + * @interface PermissionsOnResourceCreation + */ +export interface PermissionsOnResourceCreation { + /** + * + * @type {PermissionsOnResource} + * @memberof PermissionsOnResourceCreation + */ + additions?: PermissionsOnResource; + /** + * + * @type {PermissionsOnResource} + * @memberof PermissionsOnResourceCreation + */ + removals?: PermissionsOnResource; +} +export declare function PermissionsOnResourceCreationFromJSON(json: any): PermissionsOnResourceCreation; +export declare function PermissionsOnResourceCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionsOnResourceCreation; +export declare function PermissionsOnResourceCreationToJSON(value?: PermissionsOnResourceCreation | null): any; diff --git a/dist/esm/models/PermissionsOnResourceCreation.js b/dist/esm/models/PermissionsOnResourceCreation.js new file mode 100644 index 00000000..3d85ed75 --- /dev/null +++ b/dist/esm/models/PermissionsOnResourceCreation.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PermissionsOnResourceFromJSON, PermissionsOnResourceToJSON, } from './PermissionsOnResource'; +export function PermissionsOnResourceCreationFromJSON(json) { + return PermissionsOnResourceCreationFromJSONTyped(json, false); +} +export function PermissionsOnResourceCreationFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'additions': !exists(json, 'Additions') ? undefined : PermissionsOnResourceFromJSON(json['Additions']), + 'removals': !exists(json, 'Removals') ? undefined : PermissionsOnResourceFromJSON(json['Removals']), + }; +} +export function PermissionsOnResourceCreationToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Additions': PermissionsOnResourceToJSON(value.additions), + 'Removals': PermissionsOnResourceToJSON(value.removals), + }; +} diff --git a/dist/esm/models/Phase1Options.d.ts b/dist/esm/models/Phase1Options.d.ts new file mode 100644 index 00000000..e69c9c27 --- /dev/null +++ b/dist/esm/models/Phase1Options.d.ts @@ -0,0 +1,75 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about Phase 1 of the Internet Key Exchange (IKE) negotiation. When Phase 1 finishes successfully, peers proceed to Phase 2 negotiations. + * @export + * @interface Phase1Options + */ +export interface Phase1Options { + /** + * The action to carry out after a Dead Peer Detection (DPD) timeout occurs. + * @type {string} + * @memberof Phase1Options + */ + dpdTimeoutAction?: string; + /** + * The maximum waiting time for a Dead Peer Detection (DPD) response before considering the peer as dead, in seconds. + * @type {number} + * @memberof Phase1Options + */ + dpdTimeoutSeconds?: number; + /** + * The Internet Key Exchange (IKE) versions allowed for the VPN tunnel. + * @type {Array} + * @memberof Phase1Options + */ + ikeVersions?: Array; + /** + * The Diffie-Hellman (DH) group numbers allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1DhGroupNumbers?: Array; + /** + * The encryption algorithms allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1EncryptionAlgorithms?: Array; + /** + * The integrity algorithms allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1IntegrityAlgorithms?: Array; + /** + * The lifetime for phase 1 of the IKE negotiation process, in seconds. + * @type {number} + * @memberof Phase1Options + */ + phase1LifetimeSeconds?: number; + /** + * The number of packets in an IKE replay window. + * @type {number} + * @memberof Phase1Options + */ + replayWindowSize?: number; + /** + * The action to carry out when establishing tunnels for a VPN connection. + * @type {string} + * @memberof Phase1Options + */ + startupAction?: string; +} +export declare function Phase1OptionsFromJSON(json: any): Phase1Options; +export declare function Phase1OptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phase1Options; +export declare function Phase1OptionsToJSON(value?: Phase1Options | null): any; diff --git a/dist/esm/models/Phase1Options.js b/dist/esm/models/Phase1Options.js new file mode 100644 index 00000000..959aadeb --- /dev/null +++ b/dist/esm/models/Phase1Options.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function Phase1OptionsFromJSON(json) { + return Phase1OptionsFromJSONTyped(json, false); +} +export function Phase1OptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dpdTimeoutAction': !exists(json, 'DpdTimeoutAction') ? undefined : json['DpdTimeoutAction'], + 'dpdTimeoutSeconds': !exists(json, 'DpdTimeoutSeconds') ? undefined : json['DpdTimeoutSeconds'], + 'ikeVersions': !exists(json, 'IkeVersions') ? undefined : json['IkeVersions'], + 'phase1DhGroupNumbers': !exists(json, 'Phase1DhGroupNumbers') ? undefined : json['Phase1DhGroupNumbers'], + 'phase1EncryptionAlgorithms': !exists(json, 'Phase1EncryptionAlgorithms') ? undefined : json['Phase1EncryptionAlgorithms'], + 'phase1IntegrityAlgorithms': !exists(json, 'Phase1IntegrityAlgorithms') ? undefined : json['Phase1IntegrityAlgorithms'], + 'phase1LifetimeSeconds': !exists(json, 'Phase1LifetimeSeconds') ? undefined : json['Phase1LifetimeSeconds'], + 'replayWindowSize': !exists(json, 'ReplayWindowSize') ? undefined : json['ReplayWindowSize'], + 'startupAction': !exists(json, 'StartupAction') ? undefined : json['StartupAction'], + }; +} +export function Phase1OptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DpdTimeoutAction': value.dpdTimeoutAction, + 'DpdTimeoutSeconds': value.dpdTimeoutSeconds, + 'IkeVersions': value.ikeVersions, + 'Phase1DhGroupNumbers': value.phase1DhGroupNumbers, + 'Phase1EncryptionAlgorithms': value.phase1EncryptionAlgorithms, + 'Phase1IntegrityAlgorithms': value.phase1IntegrityAlgorithms, + 'Phase1LifetimeSeconds': value.phase1LifetimeSeconds, + 'ReplayWindowSize': value.replayWindowSize, + 'StartupAction': value.startupAction, + }; +} diff --git a/dist/esm/models/Phase2Options.d.ts b/dist/esm/models/Phase2Options.d.ts new file mode 100644 index 00000000..2b4ca333 --- /dev/null +++ b/dist/esm/models/Phase2Options.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about Phase 2 of the Internet Key Exchange (IKE) negotiation. + * @export + * @interface Phase2Options + */ +export interface Phase2Options { + /** + * The Diffie-Hellman (DH) group numbers allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2DhGroupNumbers?: Array; + /** + * The encryption algorithms allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2EncryptionAlgorithms?: Array; + /** + * The integrity algorithms allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2IntegrityAlgorithms?: Array; + /** + * The lifetime for phase 2 of the Internet Key Exchange (IKE) negociation process, in seconds. + * @type {number} + * @memberof Phase2Options + */ + phase2LifetimeSeconds?: number; + /** + * The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes ("). + * @type {string} + * @memberof Phase2Options + */ + preSharedKey?: string; +} +export declare function Phase2OptionsFromJSON(json: any): Phase2Options; +export declare function Phase2OptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phase2Options; +export declare function Phase2OptionsToJSON(value?: Phase2Options | null): any; diff --git a/dist/esm/models/Phase2Options.js b/dist/esm/models/Phase2Options.js new file mode 100644 index 00000000..1c3977f6 --- /dev/null +++ b/dist/esm/models/Phase2Options.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function Phase2OptionsFromJSON(json) { + return Phase2OptionsFromJSONTyped(json, false); +} +export function Phase2OptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'phase2DhGroupNumbers': !exists(json, 'Phase2DhGroupNumbers') ? undefined : json['Phase2DhGroupNumbers'], + 'phase2EncryptionAlgorithms': !exists(json, 'Phase2EncryptionAlgorithms') ? undefined : json['Phase2EncryptionAlgorithms'], + 'phase2IntegrityAlgorithms': !exists(json, 'Phase2IntegrityAlgorithms') ? undefined : json['Phase2IntegrityAlgorithms'], + 'phase2LifetimeSeconds': !exists(json, 'Phase2LifetimeSeconds') ? undefined : json['Phase2LifetimeSeconds'], + 'preSharedKey': !exists(json, 'PreSharedKey') ? undefined : json['PreSharedKey'], + }; +} +export function Phase2OptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Phase2DhGroupNumbers': value.phase2DhGroupNumbers, + 'Phase2EncryptionAlgorithms': value.phase2EncryptionAlgorithms, + 'Phase2IntegrityAlgorithms': value.phase2IntegrityAlgorithms, + 'Phase2LifetimeSeconds': value.phase2LifetimeSeconds, + 'PreSharedKey': value.preSharedKey, + }; +} diff --git a/dist/esm/models/Placement.d.ts b/dist/esm/models/Placement.d.ts new file mode 100644 index 00000000..0b3f8e2e --- /dev/null +++ b/dist/esm/models/Placement.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the placement of the VM. + * @export + * @interface Placement + */ +export interface Placement { + /** + * The name of the Subregion. If you specify this parameter, you must not specify the `Nics` parameter. + * @type {string} + * @memberof Placement + */ + subregionName?: string; + /** + * The tenancy of the VM (`default` \| `dedicated`). + * @type {string} + * @memberof Placement + */ + tenancy?: string; +} +export declare function PlacementFromJSON(json: any): Placement; +export declare function PlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Placement; +export declare function PlacementToJSON(value?: Placement | null): any; diff --git a/dist/esm/models/Placement.js b/dist/esm/models/Placement.js new file mode 100644 index 00000000..2ef5c4f0 --- /dev/null +++ b/dist/esm/models/Placement.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function PlacementFromJSON(json) { + return PlacementFromJSONTyped(json, false); +} +export function PlacementFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tenancy': !exists(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} +export function PlacementToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SubregionName': value.subregionName, + 'Tenancy': value.tenancy, + }; +} diff --git a/dist/esm/models/PrivateIp.d.ts b/dist/esm/models/PrivateIp.d.ts new file mode 100644 index 00000000..273480ca --- /dev/null +++ b/dist/esm/models/PrivateIp.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkPublicIp } from './LinkPublicIp'; +/** + * Information about the private IP. + * @export + * @interface PrivateIp + */ +export interface PrivateIp { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIp + */ + isPrimary?: boolean; + /** + * + * @type {LinkPublicIp} + * @memberof PrivateIp + */ + linkPublicIp?: LinkPublicIp; + /** + * The name of the private DNS. + * @type {string} + * @memberof PrivateIp + */ + privateDnsName?: string; + /** + * The private IP of the NIC. + * @type {string} + * @memberof PrivateIp + */ + privateIp?: string; +} +export declare function PrivateIpFromJSON(json: any): PrivateIp; +export declare function PrivateIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIp; +export declare function PrivateIpToJSON(value?: PrivateIp | null): any; diff --git a/dist/esm/models/PrivateIp.js b/dist/esm/models/PrivateIp.js new file mode 100644 index 00000000..9b28212a --- /dev/null +++ b/dist/esm/models/PrivateIp.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkPublicIpFromJSON, LinkPublicIpToJSON, } from './LinkPublicIp'; +export function PrivateIpFromJSON(json) { + return PrivateIpFromJSONTyped(json, false); +} +export function PrivateIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isPrimary': !exists(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpFromJSON(json['LinkPublicIp']), + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} +export function PrivateIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsPrimary': value.isPrimary, + 'LinkPublicIp': LinkPublicIpToJSON(value.linkPublicIp), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + }; +} diff --git a/dist/esm/models/PrivateIpLight.d.ts b/dist/esm/models/PrivateIpLight.d.ts new file mode 100644 index 00000000..73d2efa1 --- /dev/null +++ b/dist/esm/models/PrivateIpLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the private IP. + * @export + * @interface PrivateIpLight + */ +export interface PrivateIpLight { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIpLight + */ + isPrimary?: boolean; + /** + * The private IP of the NIC. + * @type {string} + * @memberof PrivateIpLight + */ + privateIp?: string; +} +export declare function PrivateIpLightFromJSON(json: any): PrivateIpLight; +export declare function PrivateIpLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIpLight; +export declare function PrivateIpLightToJSON(value?: PrivateIpLight | null): any; diff --git a/dist/esm/models/PrivateIpLight.js b/dist/esm/models/PrivateIpLight.js new file mode 100644 index 00000000..43d2a9d2 --- /dev/null +++ b/dist/esm/models/PrivateIpLight.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function PrivateIpLightFromJSON(json) { + return PrivateIpLightFromJSONTyped(json, false); +} +export function PrivateIpLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isPrimary': !exists(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} +export function PrivateIpLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsPrimary': value.isPrimary, + 'PrivateIp': value.privateIp, + }; +} diff --git a/dist/esm/models/PrivateIpLightForVm.d.ts b/dist/esm/models/PrivateIpLightForVm.d.ts new file mode 100644 index 00000000..fbc931a6 --- /dev/null +++ b/dist/esm/models/PrivateIpLightForVm.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkPublicIpLightForVm } from './LinkPublicIpLightForVm'; +/** + * Information about the private IP of the NIC. + * @export + * @interface PrivateIpLightForVm + */ +export interface PrivateIpLightForVm { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIpLightForVm + */ + isPrimary?: boolean; + /** + * + * @type {LinkPublicIpLightForVm} + * @memberof PrivateIpLightForVm + */ + linkPublicIp?: LinkPublicIpLightForVm; + /** + * The name of the private DNS. + * @type {string} + * @memberof PrivateIpLightForVm + */ + privateDnsName?: string; + /** + * The private IP. + * @type {string} + * @memberof PrivateIpLightForVm + */ + privateIp?: string; +} +export declare function PrivateIpLightForVmFromJSON(json: any): PrivateIpLightForVm; +export declare function PrivateIpLightForVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIpLightForVm; +export declare function PrivateIpLightForVmToJSON(value?: PrivateIpLightForVm | null): any; diff --git a/dist/esm/models/PrivateIpLightForVm.js b/dist/esm/models/PrivateIpLightForVm.js new file mode 100644 index 00000000..16f8d6cd --- /dev/null +++ b/dist/esm/models/PrivateIpLightForVm.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkPublicIpLightForVmFromJSON, LinkPublicIpLightForVmToJSON, } from './LinkPublicIpLightForVm'; +export function PrivateIpLightForVmFromJSON(json) { + return PrivateIpLightForVmFromJSONTyped(json, false); +} +export function PrivateIpLightForVmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'isPrimary': !exists(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpLightForVmFromJSON(json['LinkPublicIp']), + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} +export function PrivateIpLightForVmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IsPrimary': value.isPrimary, + 'LinkPublicIp': LinkPublicIpLightForVmToJSON(value.linkPublicIp), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + }; +} diff --git a/dist/esm/models/ProductType.d.ts b/dist/esm/models/ProductType.d.ts new file mode 100644 index 00000000..9caacb36 --- /dev/null +++ b/dist/esm/models/ProductType.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the product type. + * @export + * @interface ProductType + */ +export interface ProductType { + /** + * The description of the product type. + * @type {string} + * @memberof ProductType + */ + description?: string; + /** + * The ID of the product type. + * @type {string} + * @memberof ProductType + */ + productTypeId?: string; + /** + * The vendor of the product type. + * @type {string} + * @memberof ProductType + */ + vendor?: string; +} +export declare function ProductTypeFromJSON(json: any): ProductType; +export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType; +export declare function ProductTypeToJSON(value?: ProductType | null): any; diff --git a/dist/esm/models/ProductType.js b/dist/esm/models/ProductType.js new file mode 100644 index 00000000..f7639654 --- /dev/null +++ b/dist/esm/models/ProductType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ProductTypeFromJSON(json) { + return ProductTypeFromJSONTyped(json, false); +} +export function ProductTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'productTypeId': !exists(json, 'ProductTypeId') ? undefined : json['ProductTypeId'], + 'vendor': !exists(json, 'Vendor') ? undefined : json['Vendor'], + }; +} +export function ProductTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'ProductTypeId': value.productTypeId, + 'Vendor': value.vendor, + }; +} diff --git a/dist/esm/models/PublicIp.d.ts b/dist/esm/models/PublicIp.d.ts new file mode 100644 index 00000000..8529ab5d --- /dev/null +++ b/dist/esm/models/PublicIp.d.ts @@ -0,0 +1,70 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the public IP. + * @export + * @interface PublicIp + */ +export interface PublicIp { + /** + * (Required in a Net) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof PublicIp + */ + linkPublicIpId?: string; + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof PublicIp + */ + nicAccountId?: string; + /** + * The ID of the NIC the public IP is associated with (if any). + * @type {string} + * @memberof PublicIp + */ + nicId?: string; + /** + * The private IP associated with the public IP. + * @type {string} + * @memberof PublicIp + */ + privateIp?: string; + /** + * The public IP. + * @type {string} + * @memberof PublicIp + */ + publicIp?: string; + /** + * The allocation ID of the public IP. + * @type {string} + * @memberof PublicIp + */ + publicIpId?: string; + /** + * One or more tags associated with the public IP. + * @type {Array} + * @memberof PublicIp + */ + tags?: Array; + /** + * The ID of the VM the public IP is associated with (if any). + * @type {string} + * @memberof PublicIp + */ + vmId?: string; +} +export declare function PublicIpFromJSON(json: any): PublicIp; +export declare function PublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicIp; +export declare function PublicIpToJSON(value?: PublicIp | null): any; diff --git a/dist/esm/models/PublicIp.js b/dist/esm/models/PublicIp.js new file mode 100644 index 00000000..b3688625 --- /dev/null +++ b/dist/esm/models/PublicIp.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function PublicIpFromJSON(json) { + return PublicIpFromJSONTyped(json, false); +} +export function PublicIpFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'nicAccountId': !exists(json, 'NicAccountId') ? undefined : json['NicAccountId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function PublicIpToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkPublicIpId': value.linkPublicIpId, + 'NicAccountId': value.nicAccountId, + 'NicId': value.nicId, + 'PrivateIp': value.privateIp, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/PublicIpLight.d.ts b/dist/esm/models/PublicIpLight.d.ts new file mode 100644 index 00000000..9177acf9 --- /dev/null +++ b/dist/esm/models/PublicIpLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the public IP. + * @export + * @interface PublicIpLight + */ +export interface PublicIpLight { + /** + * The public IP associated with the NAT service. + * @type {string} + * @memberof PublicIpLight + */ + publicIp?: string; + /** + * The allocation ID of the public IP associated with the NAT service. + * @type {string} + * @memberof PublicIpLight + */ + publicIpId?: string; +} +export declare function PublicIpLightFromJSON(json: any): PublicIpLight; +export declare function PublicIpLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicIpLight; +export declare function PublicIpLightToJSON(value?: PublicIpLight | null): any; diff --git a/dist/esm/models/PublicIpLight.js b/dist/esm/models/PublicIpLight.js new file mode 100644 index 00000000..444ca6e6 --- /dev/null +++ b/dist/esm/models/PublicIpLight.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function PublicIpLightFromJSON(json) { + return PublicIpLightFromJSONTyped(json, false); +} +export function PublicIpLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} +export function PublicIpLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + }; +} diff --git a/dist/esm/models/Quota.d.ts b/dist/esm/models/Quota.d.ts new file mode 100644 index 00000000..7b58f310 --- /dev/null +++ b/dist/esm/models/Quota.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the quota. + * @export + * @interface Quota + */ +export interface Quota { + /** + * The account ID of the owner of the quotas. + * @type {string} + * @memberof Quota + */ + accountId?: string; + /** + * The description of the quota. + * @type {string} + * @memberof Quota + */ + description?: string; + /** + * The maximum value of the quota for the OUTSCALE user account (if there is no limit, `0`). + * @type {number} + * @memberof Quota + */ + maxValue?: number; + /** + * The unique name of the quota. + * @type {string} + * @memberof Quota + */ + name?: string; + /** + * The group name of the quota. + * @type {string} + * @memberof Quota + */ + quotaCollection?: string; + /** + * The description of the quota. + * @type {string} + * @memberof Quota + */ + shortDescription?: string; + /** + * The limit value currently used by the OUTSCALE user account. + * @type {number} + * @memberof Quota + */ + usedValue?: number; +} +export declare function QuotaFromJSON(json: any): Quota; +export declare function QuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Quota; +export declare function QuotaToJSON(value?: Quota | null): any; diff --git a/dist/esm/models/Quota.js b/dist/esm/models/Quota.js new file mode 100644 index 00000000..fbe81fd9 --- /dev/null +++ b/dist/esm/models/Quota.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function QuotaFromJSON(json) { + return QuotaFromJSONTyped(json, false); +} +export function QuotaFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'maxValue': !exists(json, 'MaxValue') ? undefined : json['MaxValue'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + 'quotaCollection': !exists(json, 'QuotaCollection') ? undefined : json['QuotaCollection'], + 'shortDescription': !exists(json, 'ShortDescription') ? undefined : json['ShortDescription'], + 'usedValue': !exists(json, 'UsedValue') ? undefined : json['UsedValue'], + }; +} +export function QuotaToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'MaxValue': value.maxValue, + 'Name': value.name, + 'QuotaCollection': value.quotaCollection, + 'ShortDescription': value.shortDescription, + 'UsedValue': value.usedValue, + }; +} diff --git a/dist/esm/models/QuotaTypes.d.ts b/dist/esm/models/QuotaTypes.d.ts new file mode 100644 index 00000000..6e352afd --- /dev/null +++ b/dist/esm/models/QuotaTypes.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Quota } from './Quota'; +/** + * One or more quotas. + * @export + * @interface QuotaTypes + */ +export interface QuotaTypes { + /** + * The resource ID if it is a resource-specific quota, `global` if it is not. + * @type {string} + * @memberof QuotaTypes + */ + quotaType?: string; + /** + * One or more quotas associated with the user. + * @type {Array} + * @memberof QuotaTypes + */ + quotas?: Array; +} +export declare function QuotaTypesFromJSON(json: any): QuotaTypes; +export declare function QuotaTypesFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaTypes; +export declare function QuotaTypesToJSON(value?: QuotaTypes | null): any; diff --git a/dist/esm/models/QuotaTypes.js b/dist/esm/models/QuotaTypes.js new file mode 100644 index 00000000..2c34aba1 --- /dev/null +++ b/dist/esm/models/QuotaTypes.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { QuotaFromJSON, QuotaToJSON, } from './Quota'; +export function QuotaTypesFromJSON(json) { + return QuotaTypesFromJSONTyped(json, false); +} +export function QuotaTypesFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'quotaType': !exists(json, 'QuotaType') ? undefined : json['QuotaType'], + 'quotas': !exists(json, 'Quotas') ? undefined : (json['Quotas'].map(QuotaFromJSON)), + }; +} +export function QuotaTypesToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'QuotaType': value.quotaType, + 'Quotas': value.quotas === undefined ? undefined : (value.quotas.map(QuotaToJSON)), + }; +} diff --git a/dist/esm/models/ReadAccessKeysRequest.d.ts b/dist/esm/models/ReadAccessKeysRequest.d.ts new file mode 100644 index 00000000..835697d3 --- /dev/null +++ b/dist/esm/models/ReadAccessKeysRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersAccessKeys } from './FiltersAccessKeys'; +/** + * + * @export + * @interface ReadAccessKeysRequest + */ +export interface ReadAccessKeysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAccessKeysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersAccessKeys} + * @memberof ReadAccessKeysRequest + */ + filters?: FiltersAccessKeys; +} +export declare function ReadAccessKeysRequestFromJSON(json: any): ReadAccessKeysRequest; +export declare function ReadAccessKeysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccessKeysRequest; +export declare function ReadAccessKeysRequestToJSON(value?: ReadAccessKeysRequest | null): any; diff --git a/dist/esm/models/ReadAccessKeysRequest.js b/dist/esm/models/ReadAccessKeysRequest.js new file mode 100644 index 00000000..35100aea --- /dev/null +++ b/dist/esm/models/ReadAccessKeysRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersAccessKeysFromJSON, FiltersAccessKeysToJSON, } from './FiltersAccessKeys'; +export function ReadAccessKeysRequestFromJSON(json) { + return ReadAccessKeysRequestFromJSONTyped(json, false); +} +export function ReadAccessKeysRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersAccessKeysFromJSON(json['Filters']), + }; +} +export function ReadAccessKeysRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersAccessKeysToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadAccessKeysResponse.d.ts b/dist/esm/models/ReadAccessKeysResponse.d.ts new file mode 100644 index 00000000..77f6ed0e --- /dev/null +++ b/dist/esm/models/ReadAccessKeysResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKey } from './AccessKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadAccessKeysResponse + */ +export interface ReadAccessKeysResponse { + /** + * A list of access keys. + * @type {Array} + * @memberof ReadAccessKeysResponse + */ + accessKeys?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAccessKeysResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadAccessKeysResponseFromJSON(json: any): ReadAccessKeysResponse; +export declare function ReadAccessKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccessKeysResponse; +export declare function ReadAccessKeysResponseToJSON(value?: ReadAccessKeysResponse | null): any; diff --git a/dist/esm/models/ReadAccessKeysResponse.js b/dist/esm/models/ReadAccessKeysResponse.js new file mode 100644 index 00000000..653cb6dd --- /dev/null +++ b/dist/esm/models/ReadAccessKeysResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccessKeyFromJSON, AccessKeyToJSON, } from './AccessKey'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadAccessKeysResponseFromJSON(json) { + return ReadAccessKeysResponseFromJSONTyped(json, false); +} +export function ReadAccessKeysResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeys': !exists(json, 'AccessKeys') ? undefined : (json['AccessKeys'].map(AccessKeyFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadAccessKeysResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeys': value.accessKeys === undefined ? undefined : (value.accessKeys.map(AccessKeyToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadAccountsRequest.d.ts b/dist/esm/models/ReadAccountsRequest.d.ts new file mode 100644 index 00000000..5e34f8bf --- /dev/null +++ b/dist/esm/models/ReadAccountsRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadAccountsRequest + */ +export interface ReadAccountsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAccountsRequest + */ + dryRun?: boolean; +} +export declare function ReadAccountsRequestFromJSON(json: any): ReadAccountsRequest; +export declare function ReadAccountsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccountsRequest; +export declare function ReadAccountsRequestToJSON(value?: ReadAccountsRequest | null): any; diff --git a/dist/esm/models/ReadAccountsRequest.js b/dist/esm/models/ReadAccountsRequest.js new file mode 100644 index 00000000..2f775ca2 --- /dev/null +++ b/dist/esm/models/ReadAccountsRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadAccountsRequestFromJSON(json) { + return ReadAccountsRequestFromJSONTyped(json, false); +} +export function ReadAccountsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadAccountsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadAccountsResponse.d.ts b/dist/esm/models/ReadAccountsResponse.d.ts new file mode 100644 index 00000000..07dd492e --- /dev/null +++ b/dist/esm/models/ReadAccountsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Account } from './Account'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadAccountsResponse + */ +export interface ReadAccountsResponse { + /** + * The list of the accounts. + * @type {Array} + * @memberof ReadAccountsResponse + */ + accounts?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAccountsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadAccountsResponseFromJSON(json: any): ReadAccountsResponse; +export declare function ReadAccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccountsResponse; +export declare function ReadAccountsResponseToJSON(value?: ReadAccountsResponse | null): any; diff --git a/dist/esm/models/ReadAccountsResponse.js b/dist/esm/models/ReadAccountsResponse.js new file mode 100644 index 00000000..df900405 --- /dev/null +++ b/dist/esm/models/ReadAccountsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccountFromJSON, AccountToJSON, } from './Account'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadAccountsResponseFromJSON(json) { + return ReadAccountsResponseFromJSONTyped(json, false); +} +export function ReadAccountsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accounts': !exists(json, 'Accounts') ? undefined : (json['Accounts'].map(AccountFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadAccountsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Accounts': value.accounts === undefined ? undefined : (value.accounts.map(AccountToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadAdminPasswordRequest.d.ts b/dist/esm/models/ReadAdminPasswordRequest.d.ts new file mode 100644 index 00000000..ce361068 --- /dev/null +++ b/dist/esm/models/ReadAdminPasswordRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadAdminPasswordRequest + */ +export interface ReadAdminPasswordRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAdminPasswordRequest + */ + dryRun?: boolean; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadAdminPasswordRequest + */ + vmId: string; +} +export declare function ReadAdminPasswordRequestFromJSON(json: any): ReadAdminPasswordRequest; +export declare function ReadAdminPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAdminPasswordRequest; +export declare function ReadAdminPasswordRequestToJSON(value?: ReadAdminPasswordRequest | null): any; diff --git a/dist/esm/models/ReadAdminPasswordRequest.js b/dist/esm/models/ReadAdminPasswordRequest.js new file mode 100644 index 00000000..6eb4aa59 --- /dev/null +++ b/dist/esm/models/ReadAdminPasswordRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadAdminPasswordRequestFromJSON(json) { + return ReadAdminPasswordRequestFromJSONTyped(json, false); +} +export function ReadAdminPasswordRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + }; +} +export function ReadAdminPasswordRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/ReadAdminPasswordResponse.d.ts b/dist/esm/models/ReadAdminPasswordResponse.d.ts new file mode 100644 index 00000000..e95814bc --- /dev/null +++ b/dist/esm/models/ReadAdminPasswordResponse.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadAdminPasswordResponse + */ +export interface ReadAdminPasswordResponse { + /** + * The password of the VM. After the first boot, returns an empty string. + * @type {string} + * @memberof ReadAdminPasswordResponse + */ + adminPassword?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAdminPasswordResponse + */ + responseContext?: ModelResponseContext; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadAdminPasswordResponse + */ + vmId?: string; +} +export declare function ReadAdminPasswordResponseFromJSON(json: any): ReadAdminPasswordResponse; +export declare function ReadAdminPasswordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAdminPasswordResponse; +export declare function ReadAdminPasswordResponseToJSON(value?: ReadAdminPasswordResponse | null): any; diff --git a/dist/esm/models/ReadAdminPasswordResponse.js b/dist/esm/models/ReadAdminPasswordResponse.js new file mode 100644 index 00000000..4416c87f --- /dev/null +++ b/dist/esm/models/ReadAdminPasswordResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadAdminPasswordResponseFromJSON(json) { + return ReadAdminPasswordResponseFromJSONTyped(json, false); +} +export function ReadAdminPasswordResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'adminPassword': !exists(json, 'AdminPassword') ? undefined : json['AdminPassword'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function ReadAdminPasswordResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AdminPassword': value.adminPassword, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/ReadApiAccessPolicyRequest.d.ts b/dist/esm/models/ReadApiAccessPolicyRequest.d.ts new file mode 100644 index 00000000..629a5d23 --- /dev/null +++ b/dist/esm/models/ReadApiAccessPolicyRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadApiAccessPolicyRequest + */ +export interface ReadApiAccessPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiAccessPolicyRequest + */ + dryRun?: boolean; +} +export declare function ReadApiAccessPolicyRequestFromJSON(json: any): ReadApiAccessPolicyRequest; +export declare function ReadApiAccessPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessPolicyRequest; +export declare function ReadApiAccessPolicyRequestToJSON(value?: ReadApiAccessPolicyRequest | null): any; diff --git a/dist/esm/models/ReadApiAccessPolicyRequest.js b/dist/esm/models/ReadApiAccessPolicyRequest.js new file mode 100644 index 00000000..e35802f4 --- /dev/null +++ b/dist/esm/models/ReadApiAccessPolicyRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadApiAccessPolicyRequestFromJSON(json) { + return ReadApiAccessPolicyRequestFromJSONTyped(json, false); +} +export function ReadApiAccessPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadApiAccessPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadApiAccessPolicyResponse.d.ts b/dist/esm/models/ReadApiAccessPolicyResponse.d.ts new file mode 100644 index 00000000..ca5e1320 --- /dev/null +++ b/dist/esm/models/ReadApiAccessPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessPolicy } from './ApiAccessPolicy'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadApiAccessPolicyResponse + */ +export interface ReadApiAccessPolicyResponse { + /** + * + * @type {ApiAccessPolicy} + * @memberof ReadApiAccessPolicyResponse + */ + apiAccessPolicy?: ApiAccessPolicy; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiAccessPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadApiAccessPolicyResponseFromJSON(json: any): ReadApiAccessPolicyResponse; +export declare function ReadApiAccessPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessPolicyResponse; +export declare function ReadApiAccessPolicyResponseToJSON(value?: ReadApiAccessPolicyResponse | null): any; diff --git a/dist/esm/models/ReadApiAccessPolicyResponse.js b/dist/esm/models/ReadApiAccessPolicyResponse.js new file mode 100644 index 00000000..5f3f27fb --- /dev/null +++ b/dist/esm/models/ReadApiAccessPolicyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ApiAccessPolicyFromJSON, ApiAccessPolicyToJSON, } from './ApiAccessPolicy'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadApiAccessPolicyResponseFromJSON(json) { + return ReadApiAccessPolicyResponseFromJSONTyped(json, false); +} +export function ReadApiAccessPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessPolicy': !exists(json, 'ApiAccessPolicy') ? undefined : ApiAccessPolicyFromJSON(json['ApiAccessPolicy']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadApiAccessPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessPolicy': ApiAccessPolicyToJSON(value.apiAccessPolicy), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadApiAccessRulesRequest.d.ts b/dist/esm/models/ReadApiAccessRulesRequest.d.ts new file mode 100644 index 00000000..dee2218a --- /dev/null +++ b/dist/esm/models/ReadApiAccessRulesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersApiAccessRule } from './FiltersApiAccessRule'; +/** + * + * @export + * @interface ReadApiAccessRulesRequest + */ +export interface ReadApiAccessRulesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiAccessRulesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersApiAccessRule} + * @memberof ReadApiAccessRulesRequest + */ + filters?: FiltersApiAccessRule; +} +export declare function ReadApiAccessRulesRequestFromJSON(json: any): ReadApiAccessRulesRequest; +export declare function ReadApiAccessRulesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessRulesRequest; +export declare function ReadApiAccessRulesRequestToJSON(value?: ReadApiAccessRulesRequest | null): any; diff --git a/dist/esm/models/ReadApiAccessRulesRequest.js b/dist/esm/models/ReadApiAccessRulesRequest.js new file mode 100644 index 00000000..6f1de05f --- /dev/null +++ b/dist/esm/models/ReadApiAccessRulesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersApiAccessRuleFromJSON, FiltersApiAccessRuleToJSON, } from './FiltersApiAccessRule'; +export function ReadApiAccessRulesRequestFromJSON(json) { + return ReadApiAccessRulesRequestFromJSONTyped(json, false); +} +export function ReadApiAccessRulesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersApiAccessRuleFromJSON(json['Filters']), + }; +} +export function ReadApiAccessRulesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersApiAccessRuleToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadApiAccessRulesResponse.d.ts b/dist/esm/models/ReadApiAccessRulesResponse.d.ts new file mode 100644 index 00000000..bfb595c2 --- /dev/null +++ b/dist/esm/models/ReadApiAccessRulesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessRule } from './ApiAccessRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadApiAccessRulesResponse + */ +export interface ReadApiAccessRulesResponse { + /** + * A list of API access rules. + * @type {Array} + * @memberof ReadApiAccessRulesResponse + */ + apiAccessRules?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiAccessRulesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadApiAccessRulesResponseFromJSON(json: any): ReadApiAccessRulesResponse; +export declare function ReadApiAccessRulesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessRulesResponse; +export declare function ReadApiAccessRulesResponseToJSON(value?: ReadApiAccessRulesResponse | null): any; diff --git a/dist/esm/models/ReadApiAccessRulesResponse.js b/dist/esm/models/ReadApiAccessRulesResponse.js new file mode 100644 index 00000000..2f86aee7 --- /dev/null +++ b/dist/esm/models/ReadApiAccessRulesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ApiAccessRuleFromJSON, ApiAccessRuleToJSON, } from './ApiAccessRule'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadApiAccessRulesResponseFromJSON(json) { + return ReadApiAccessRulesResponseFromJSONTyped(json, false); +} +export function ReadApiAccessRulesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRules': !exists(json, 'ApiAccessRules') ? undefined : (json['ApiAccessRules'].map(ApiAccessRuleFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadApiAccessRulesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRules': value.apiAccessRules === undefined ? undefined : (value.apiAccessRules.map(ApiAccessRuleToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadApiLogsRequest.d.ts b/dist/esm/models/ReadApiLogsRequest.d.ts new file mode 100644 index 00000000..0e5e9d23 --- /dev/null +++ b/dist/esm/models/ReadApiLogsRequest.d.ts @@ -0,0 +1,53 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersApiLog } from './FiltersApiLog'; +import { With } from './With'; +/** + * + * @export + * @interface ReadApiLogsRequest + */ +export interface ReadApiLogsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiLogsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersApiLog} + * @memberof ReadApiLogsRequest + */ + filters?: FiltersApiLog; + /** + * The token to request the next page of results. + * @type {string} + * @memberof ReadApiLogsRequest + */ + nextPageToken?: string; + /** + * The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`. + * @type {number} + * @memberof ReadApiLogsRequest + */ + resultsPerPage?: number; + /** + * + * @type {With} + * @memberof ReadApiLogsRequest + */ + _with?: With; +} +export declare function ReadApiLogsRequestFromJSON(json: any): ReadApiLogsRequest; +export declare function ReadApiLogsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiLogsRequest; +export declare function ReadApiLogsRequestToJSON(value?: ReadApiLogsRequest | null): any; diff --git a/dist/esm/models/ReadApiLogsRequest.js b/dist/esm/models/ReadApiLogsRequest.js new file mode 100644 index 00000000..6be7583a --- /dev/null +++ b/dist/esm/models/ReadApiLogsRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersApiLogFromJSON, FiltersApiLogToJSON, } from './FiltersApiLog'; +import { WithFromJSON, WithToJSON, } from './With'; +export function ReadApiLogsRequestFromJSON(json) { + return ReadApiLogsRequestFromJSONTyped(json, false); +} +export function ReadApiLogsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersApiLogFromJSON(json['Filters']), + 'nextPageToken': !exists(json, 'NextPageToken') ? undefined : json['NextPageToken'], + 'resultsPerPage': !exists(json, 'ResultsPerPage') ? undefined : json['ResultsPerPage'], + '_with': !exists(json, 'With') ? undefined : WithFromJSON(json['With']), + }; +} +export function ReadApiLogsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersApiLogToJSON(value.filters), + 'NextPageToken': value.nextPageToken, + 'ResultsPerPage': value.resultsPerPage, + 'With': WithToJSON(value._with), + }; +} diff --git a/dist/esm/models/ReadApiLogsResponse.d.ts b/dist/esm/models/ReadApiLogsResponse.d.ts new file mode 100644 index 00000000..ed36c068 --- /dev/null +++ b/dist/esm/models/ReadApiLogsResponse.d.ts @@ -0,0 +1,41 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Log } from './Log'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadApiLogsResponse + */ +export interface ReadApiLogsResponse { + /** + * Information about one or more logs. + * @type {Array} + * @memberof ReadApiLogsResponse + */ + logs?: Array; + /** + * The token to request the next page of results. + * @type {string} + * @memberof ReadApiLogsResponse + */ + nextPageToken?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiLogsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadApiLogsResponseFromJSON(json: any): ReadApiLogsResponse; +export declare function ReadApiLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiLogsResponse; +export declare function ReadApiLogsResponseToJSON(value?: ReadApiLogsResponse | null): any; diff --git a/dist/esm/models/ReadApiLogsResponse.js b/dist/esm/models/ReadApiLogsResponse.js new file mode 100644 index 00000000..9fb1fcef --- /dev/null +++ b/dist/esm/models/ReadApiLogsResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LogFromJSON, LogToJSON, } from './Log'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadApiLogsResponseFromJSON(json) { + return ReadApiLogsResponseFromJSONTyped(json, false); +} +export function ReadApiLogsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'logs': !exists(json, 'Logs') ? undefined : (json['Logs'].map(LogFromJSON)), + 'nextPageToken': !exists(json, 'NextPageToken') ? undefined : json['NextPageToken'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadApiLogsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Logs': value.logs === undefined ? undefined : (value.logs.map(LogToJSON)), + 'NextPageToken': value.nextPageToken, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadCasRequest.d.ts b/dist/esm/models/ReadCasRequest.d.ts new file mode 100644 index 00000000..fafe42c6 --- /dev/null +++ b/dist/esm/models/ReadCasRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersCa } from './FiltersCa'; +/** + * + * @export + * @interface ReadCasRequest + */ +export interface ReadCasRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadCasRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersCa} + * @memberof ReadCasRequest + */ + filters?: FiltersCa; +} +export declare function ReadCasRequestFromJSON(json: any): ReadCasRequest; +export declare function ReadCasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCasRequest; +export declare function ReadCasRequestToJSON(value?: ReadCasRequest | null): any; diff --git a/dist/esm/models/ReadCasRequest.js b/dist/esm/models/ReadCasRequest.js new file mode 100644 index 00000000..d91957f3 --- /dev/null +++ b/dist/esm/models/ReadCasRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersCaFromJSON, FiltersCaToJSON, } from './FiltersCa'; +export function ReadCasRequestFromJSON(json) { + return ReadCasRequestFromJSONTyped(json, false); +} +export function ReadCasRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersCaFromJSON(json['Filters']), + }; +} +export function ReadCasRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersCaToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadCasResponse.d.ts b/dist/esm/models/ReadCasResponse.d.ts new file mode 100644 index 00000000..c7d7f98f --- /dev/null +++ b/dist/esm/models/ReadCasResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Ca } from './Ca'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadCasResponse + */ +export interface ReadCasResponse { + /** + * Information about one or more CAs. + * @type {Array} + * @memberof ReadCasResponse + */ + cas?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadCasResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadCasResponseFromJSON(json: any): ReadCasResponse; +export declare function ReadCasResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCasResponse; +export declare function ReadCasResponseToJSON(value?: ReadCasResponse | null): any; diff --git a/dist/esm/models/ReadCasResponse.js b/dist/esm/models/ReadCasResponse.js new file mode 100644 index 00000000..bfdb5a75 --- /dev/null +++ b/dist/esm/models/ReadCasResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { CaFromJSON, CaToJSON, } from './Ca'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadCasResponseFromJSON(json) { + return ReadCasResponseFromJSONTyped(json, false); +} +export function ReadCasResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'cas': !exists(json, 'Cas') ? undefined : (json['Cas'].map(CaFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadCasResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Cas': value.cas === undefined ? undefined : (value.cas.map(CaToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadCatalogRequest.d.ts b/dist/esm/models/ReadCatalogRequest.d.ts new file mode 100644 index 00000000..8ffa10fc --- /dev/null +++ b/dist/esm/models/ReadCatalogRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadCatalogRequest + */ +export interface ReadCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadCatalogRequest + */ + dryRun?: boolean; +} +export declare function ReadCatalogRequestFromJSON(json: any): ReadCatalogRequest; +export declare function ReadCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCatalogRequest; +export declare function ReadCatalogRequestToJSON(value?: ReadCatalogRequest | null): any; diff --git a/dist/esm/models/ReadCatalogRequest.js b/dist/esm/models/ReadCatalogRequest.js new file mode 100644 index 00000000..426a87f6 --- /dev/null +++ b/dist/esm/models/ReadCatalogRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadCatalogRequestFromJSON(json) { + return ReadCatalogRequestFromJSONTyped(json, false); +} +export function ReadCatalogRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadCatalogRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadCatalogResponse.d.ts b/dist/esm/models/ReadCatalogResponse.d.ts new file mode 100644 index 00000000..5649ef23 --- /dev/null +++ b/dist/esm/models/ReadCatalogResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Catalog } from './Catalog'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadCatalogResponse + */ +export interface ReadCatalogResponse { + /** + * + * @type {Catalog} + * @memberof ReadCatalogResponse + */ + catalog?: Catalog; + /** + * + * @type {ModelResponseContext} + * @memberof ReadCatalogResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadCatalogResponseFromJSON(json: any): ReadCatalogResponse; +export declare function ReadCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCatalogResponse; +export declare function ReadCatalogResponseToJSON(value?: ReadCatalogResponse | null): any; diff --git a/dist/esm/models/ReadCatalogResponse.js b/dist/esm/models/ReadCatalogResponse.js new file mode 100644 index 00000000..e8d16ad3 --- /dev/null +++ b/dist/esm/models/ReadCatalogResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { CatalogFromJSON, CatalogToJSON, } from './Catalog'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadCatalogResponseFromJSON(json) { + return ReadCatalogResponseFromJSONTyped(json, false); +} +export function ReadCatalogResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'catalog': !exists(json, 'Catalog') ? undefined : CatalogFromJSON(json['Catalog']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadCatalogResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Catalog': CatalogToJSON(value.catalog), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadClientGatewaysRequest.d.ts b/dist/esm/models/ReadClientGatewaysRequest.d.ts new file mode 100644 index 00000000..edce5f36 --- /dev/null +++ b/dist/esm/models/ReadClientGatewaysRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersClientGateway } from './FiltersClientGateway'; +/** + * + * @export + * @interface ReadClientGatewaysRequest + */ +export interface ReadClientGatewaysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadClientGatewaysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersClientGateway} + * @memberof ReadClientGatewaysRequest + */ + filters?: FiltersClientGateway; +} +export declare function ReadClientGatewaysRequestFromJSON(json: any): ReadClientGatewaysRequest; +export declare function ReadClientGatewaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadClientGatewaysRequest; +export declare function ReadClientGatewaysRequestToJSON(value?: ReadClientGatewaysRequest | null): any; diff --git a/dist/esm/models/ReadClientGatewaysRequest.js b/dist/esm/models/ReadClientGatewaysRequest.js new file mode 100644 index 00000000..4a0d1075 --- /dev/null +++ b/dist/esm/models/ReadClientGatewaysRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersClientGatewayFromJSON, FiltersClientGatewayToJSON, } from './FiltersClientGateway'; +export function ReadClientGatewaysRequestFromJSON(json) { + return ReadClientGatewaysRequestFromJSONTyped(json, false); +} +export function ReadClientGatewaysRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersClientGatewayFromJSON(json['Filters']), + }; +} +export function ReadClientGatewaysRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersClientGatewayToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadClientGatewaysResponse.d.ts b/dist/esm/models/ReadClientGatewaysResponse.d.ts new file mode 100644 index 00000000..3a23561b --- /dev/null +++ b/dist/esm/models/ReadClientGatewaysResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ClientGateway } from './ClientGateway'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadClientGatewaysResponse + */ +export interface ReadClientGatewaysResponse { + /** + * Information about one or more client gateways. + * @type {Array} + * @memberof ReadClientGatewaysResponse + */ + clientGateways?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadClientGatewaysResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadClientGatewaysResponseFromJSON(json: any): ReadClientGatewaysResponse; +export declare function ReadClientGatewaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadClientGatewaysResponse; +export declare function ReadClientGatewaysResponseToJSON(value?: ReadClientGatewaysResponse | null): any; diff --git a/dist/esm/models/ReadClientGatewaysResponse.js b/dist/esm/models/ReadClientGatewaysResponse.js new file mode 100644 index 00000000..9428134b --- /dev/null +++ b/dist/esm/models/ReadClientGatewaysResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ClientGatewayFromJSON, ClientGatewayToJSON, } from './ClientGateway'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadClientGatewaysResponseFromJSON(json) { + return ReadClientGatewaysResponseFromJSONTyped(json, false); +} +export function ReadClientGatewaysResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGateways': !exists(json, 'ClientGateways') ? undefined : (json['ClientGateways'].map(ClientGatewayFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadClientGatewaysResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGateways': value.clientGateways === undefined ? undefined : (value.clientGateways.map(ClientGatewayToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadConsoleOutputRequest.d.ts b/dist/esm/models/ReadConsoleOutputRequest.d.ts new file mode 100644 index 00000000..9fe10b78 --- /dev/null +++ b/dist/esm/models/ReadConsoleOutputRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadConsoleOutputRequest + */ +export interface ReadConsoleOutputRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadConsoleOutputRequest + */ + dryRun?: boolean; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadConsoleOutputRequest + */ + vmId: string; +} +export declare function ReadConsoleOutputRequestFromJSON(json: any): ReadConsoleOutputRequest; +export declare function ReadConsoleOutputRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsoleOutputRequest; +export declare function ReadConsoleOutputRequestToJSON(value?: ReadConsoleOutputRequest | null): any; diff --git a/dist/esm/models/ReadConsoleOutputRequest.js b/dist/esm/models/ReadConsoleOutputRequest.js new file mode 100644 index 00000000..c59a4eb8 --- /dev/null +++ b/dist/esm/models/ReadConsoleOutputRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadConsoleOutputRequestFromJSON(json) { + return ReadConsoleOutputRequestFromJSONTyped(json, false); +} +export function ReadConsoleOutputRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + }; +} +export function ReadConsoleOutputRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/ReadConsoleOutputResponse.d.ts b/dist/esm/models/ReadConsoleOutputResponse.d.ts new file mode 100644 index 00000000..6b11e1b4 --- /dev/null +++ b/dist/esm/models/ReadConsoleOutputResponse.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadConsoleOutputResponse + */ +export interface ReadConsoleOutputResponse { + /** + * The Base64-encoded output of the console. If a command line tool is used, the output is decoded by the tool. + * @type {string} + * @memberof ReadConsoleOutputResponse + */ + consoleOutput?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadConsoleOutputResponse + */ + responseContext?: ModelResponseContext; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadConsoleOutputResponse + */ + vmId?: string; +} +export declare function ReadConsoleOutputResponseFromJSON(json: any): ReadConsoleOutputResponse; +export declare function ReadConsoleOutputResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsoleOutputResponse; +export declare function ReadConsoleOutputResponseToJSON(value?: ReadConsoleOutputResponse | null): any; diff --git a/dist/esm/models/ReadConsoleOutputResponse.js b/dist/esm/models/ReadConsoleOutputResponse.js new file mode 100644 index 00000000..9f9ef698 --- /dev/null +++ b/dist/esm/models/ReadConsoleOutputResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadConsoleOutputResponseFromJSON(json) { + return ReadConsoleOutputResponseFromJSONTyped(json, false); +} +export function ReadConsoleOutputResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'consoleOutput': !exists(json, 'ConsoleOutput') ? undefined : json['ConsoleOutput'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function ReadConsoleOutputResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConsoleOutput': value.consoleOutput, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/ReadConsumptionAccountRequest.d.ts b/dist/esm/models/ReadConsumptionAccountRequest.d.ts new file mode 100644 index 00000000..5e447f56 --- /dev/null +++ b/dist/esm/models/ReadConsumptionAccountRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadConsumptionAccountRequest + */ +export interface ReadConsumptionAccountRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadConsumptionAccountRequest + */ + dryRun?: boolean; + /** + * The beginning of the time period, in ISO 8601 date-time format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). + * @type {string} + * @memberof ReadConsumptionAccountRequest + */ + fromDate: string; + /** + * The end of the time period, in ISO 8601 date-time format (for example, `2017-06-30` or `2017-06-30T00:00:00Z`). + * @type {string} + * @memberof ReadConsumptionAccountRequest + */ + toDate: string; +} +export declare function ReadConsumptionAccountRequestFromJSON(json: any): ReadConsumptionAccountRequest; +export declare function ReadConsumptionAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsumptionAccountRequest; +export declare function ReadConsumptionAccountRequestToJSON(value?: ReadConsumptionAccountRequest | null): any; diff --git a/dist/esm/models/ReadConsumptionAccountRequest.js b/dist/esm/models/ReadConsumptionAccountRequest.js new file mode 100644 index 00000000..7fbcc3ea --- /dev/null +++ b/dist/esm/models/ReadConsumptionAccountRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadConsumptionAccountRequestFromJSON(json) { + return ReadConsumptionAccountRequestFromJSONTyped(json, false); +} +export function ReadConsumptionAccountRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'fromDate': json['FromDate'], + 'toDate': json['ToDate'], + }; +} +export function ReadConsumptionAccountRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FromDate': value.fromDate, + 'ToDate': value.toDate, + }; +} diff --git a/dist/esm/models/ReadConsumptionAccountResponse.d.ts b/dist/esm/models/ReadConsumptionAccountResponse.d.ts new file mode 100644 index 00000000..9ec38ee6 --- /dev/null +++ b/dist/esm/models/ReadConsumptionAccountResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ConsumptionEntry } from './ConsumptionEntry'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadConsumptionAccountResponse + */ +export interface ReadConsumptionAccountResponse { + /** + * Information about the resources consumed during the specified time period. + * @type {Array} + * @memberof ReadConsumptionAccountResponse + */ + consumptionEntries?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadConsumptionAccountResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadConsumptionAccountResponseFromJSON(json: any): ReadConsumptionAccountResponse; +export declare function ReadConsumptionAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsumptionAccountResponse; +export declare function ReadConsumptionAccountResponseToJSON(value?: ReadConsumptionAccountResponse | null): any; diff --git a/dist/esm/models/ReadConsumptionAccountResponse.js b/dist/esm/models/ReadConsumptionAccountResponse.js new file mode 100644 index 00000000..29525afa --- /dev/null +++ b/dist/esm/models/ReadConsumptionAccountResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ConsumptionEntryFromJSON, ConsumptionEntryToJSON, } from './ConsumptionEntry'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadConsumptionAccountResponseFromJSON(json) { + return ReadConsumptionAccountResponseFromJSONTyped(json, false); +} +export function ReadConsumptionAccountResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'consumptionEntries': !exists(json, 'ConsumptionEntries') ? undefined : (json['ConsumptionEntries'].map(ConsumptionEntryFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadConsumptionAccountResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConsumptionEntries': value.consumptionEntries === undefined ? undefined : (value.consumptionEntries.map(ConsumptionEntryToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadDhcpOptionsRequest.d.ts b/dist/esm/models/ReadDhcpOptionsRequest.d.ts new file mode 100644 index 00000000..14ceb1f2 --- /dev/null +++ b/dist/esm/models/ReadDhcpOptionsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersDhcpOptions } from './FiltersDhcpOptions'; +/** + * + * @export + * @interface ReadDhcpOptionsRequest + */ +export interface ReadDhcpOptionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDhcpOptionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDhcpOptions} + * @memberof ReadDhcpOptionsRequest + */ + filters?: FiltersDhcpOptions; +} +export declare function ReadDhcpOptionsRequestFromJSON(json: any): ReadDhcpOptionsRequest; +export declare function ReadDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDhcpOptionsRequest; +export declare function ReadDhcpOptionsRequestToJSON(value?: ReadDhcpOptionsRequest | null): any; diff --git a/dist/esm/models/ReadDhcpOptionsRequest.js b/dist/esm/models/ReadDhcpOptionsRequest.js new file mode 100644 index 00000000..951e0ad0 --- /dev/null +++ b/dist/esm/models/ReadDhcpOptionsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersDhcpOptionsFromJSON, FiltersDhcpOptionsToJSON, } from './FiltersDhcpOptions'; +export function ReadDhcpOptionsRequestFromJSON(json) { + return ReadDhcpOptionsRequestFromJSONTyped(json, false); +} +export function ReadDhcpOptionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersDhcpOptionsFromJSON(json['Filters']), + }; +} +export function ReadDhcpOptionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersDhcpOptionsToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadDhcpOptionsResponse.d.ts b/dist/esm/models/ReadDhcpOptionsResponse.d.ts new file mode 100644 index 00000000..e6f6de18 --- /dev/null +++ b/dist/esm/models/ReadDhcpOptionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DhcpOptionsSet } from './DhcpOptionsSet'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadDhcpOptionsResponse + */ +export interface ReadDhcpOptionsResponse { + /** + * Information about one or more DHCP options sets. + * @type {Array} + * @memberof ReadDhcpOptionsResponse + */ + dhcpOptionsSets?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadDhcpOptionsResponseFromJSON(json: any): ReadDhcpOptionsResponse; +export declare function ReadDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDhcpOptionsResponse; +export declare function ReadDhcpOptionsResponseToJSON(value?: ReadDhcpOptionsResponse | null): any; diff --git a/dist/esm/models/ReadDhcpOptionsResponse.js b/dist/esm/models/ReadDhcpOptionsResponse.js new file mode 100644 index 00000000..e87e3075 --- /dev/null +++ b/dist/esm/models/ReadDhcpOptionsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DhcpOptionsSetFromJSON, DhcpOptionsSetToJSON, } from './DhcpOptionsSet'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadDhcpOptionsResponseFromJSON(json) { + return ReadDhcpOptionsResponseFromJSONTyped(json, false); +} +export function ReadDhcpOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSets': !exists(json, 'DhcpOptionsSets') ? undefined : (json['DhcpOptionsSets'].map(DhcpOptionsSetFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadDhcpOptionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSets': value.dhcpOptionsSets === undefined ? undefined : (value.dhcpOptionsSets.map(DhcpOptionsSetToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadDirectLinkInterfacesRequest.d.ts b/dist/esm/models/ReadDirectLinkInterfacesRequest.d.ts new file mode 100644 index 00000000..9a303f57 --- /dev/null +++ b/dist/esm/models/ReadDirectLinkInterfacesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersDirectLinkInterface } from './FiltersDirectLinkInterface'; +/** + * + * @export + * @interface ReadDirectLinkInterfacesRequest + */ +export interface ReadDirectLinkInterfacesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDirectLinkInterfacesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDirectLinkInterface} + * @memberof ReadDirectLinkInterfacesRequest + */ + filters?: FiltersDirectLinkInterface; +} +export declare function ReadDirectLinkInterfacesRequestFromJSON(json: any): ReadDirectLinkInterfacesRequest; +export declare function ReadDirectLinkInterfacesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinkInterfacesRequest; +export declare function ReadDirectLinkInterfacesRequestToJSON(value?: ReadDirectLinkInterfacesRequest | null): any; diff --git a/dist/esm/models/ReadDirectLinkInterfacesRequest.js b/dist/esm/models/ReadDirectLinkInterfacesRequest.js new file mode 100644 index 00000000..5133bd5c --- /dev/null +++ b/dist/esm/models/ReadDirectLinkInterfacesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersDirectLinkInterfaceFromJSON, FiltersDirectLinkInterfaceToJSON, } from './FiltersDirectLinkInterface'; +export function ReadDirectLinkInterfacesRequestFromJSON(json) { + return ReadDirectLinkInterfacesRequestFromJSONTyped(json, false); +} +export function ReadDirectLinkInterfacesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersDirectLinkInterfaceFromJSON(json['Filters']), + }; +} +export function ReadDirectLinkInterfacesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersDirectLinkInterfaceToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadDirectLinkInterfacesResponse.d.ts b/dist/esm/models/ReadDirectLinkInterfacesResponse.d.ts new file mode 100644 index 00000000..82126023 --- /dev/null +++ b/dist/esm/models/ReadDirectLinkInterfacesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLinkInterfaces } from './DirectLinkInterfaces'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadDirectLinkInterfacesResponse + */ +export interface ReadDirectLinkInterfacesResponse { + /** + * Information about one or more DirectLink interfaces. + * @type {Array} + * @memberof ReadDirectLinkInterfacesResponse + */ + directLinkInterfaces?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDirectLinkInterfacesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadDirectLinkInterfacesResponseFromJSON(json: any): ReadDirectLinkInterfacesResponse; +export declare function ReadDirectLinkInterfacesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinkInterfacesResponse; +export declare function ReadDirectLinkInterfacesResponseToJSON(value?: ReadDirectLinkInterfacesResponse | null): any; diff --git a/dist/esm/models/ReadDirectLinkInterfacesResponse.js b/dist/esm/models/ReadDirectLinkInterfacesResponse.js new file mode 100644 index 00000000..7f37dc7e --- /dev/null +++ b/dist/esm/models/ReadDirectLinkInterfacesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DirectLinkInterfacesFromJSON, DirectLinkInterfacesToJSON, } from './DirectLinkInterfaces'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadDirectLinkInterfacesResponseFromJSON(json) { + return ReadDirectLinkInterfacesResponseFromJSONTyped(json, false); +} +export function ReadDirectLinkInterfacesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinkInterfaces': !exists(json, 'DirectLinkInterfaces') ? undefined : (json['DirectLinkInterfaces'].map(DirectLinkInterfacesFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadDirectLinkInterfacesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinkInterfaces': value.directLinkInterfaces === undefined ? undefined : (value.directLinkInterfaces.map(DirectLinkInterfacesToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadDirectLinksRequest.d.ts b/dist/esm/models/ReadDirectLinksRequest.d.ts new file mode 100644 index 00000000..0d7b78ef --- /dev/null +++ b/dist/esm/models/ReadDirectLinksRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersDirectLink } from './FiltersDirectLink'; +/** + * + * @export + * @interface ReadDirectLinksRequest + */ +export interface ReadDirectLinksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDirectLinksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDirectLink} + * @memberof ReadDirectLinksRequest + */ + filters?: FiltersDirectLink; +} +export declare function ReadDirectLinksRequestFromJSON(json: any): ReadDirectLinksRequest; +export declare function ReadDirectLinksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinksRequest; +export declare function ReadDirectLinksRequestToJSON(value?: ReadDirectLinksRequest | null): any; diff --git a/dist/esm/models/ReadDirectLinksRequest.js b/dist/esm/models/ReadDirectLinksRequest.js new file mode 100644 index 00000000..cc99f14b --- /dev/null +++ b/dist/esm/models/ReadDirectLinksRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersDirectLinkFromJSON, FiltersDirectLinkToJSON, } from './FiltersDirectLink'; +export function ReadDirectLinksRequestFromJSON(json) { + return ReadDirectLinksRequestFromJSONTyped(json, false); +} +export function ReadDirectLinksRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersDirectLinkFromJSON(json['Filters']), + }; +} +export function ReadDirectLinksRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersDirectLinkToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadDirectLinksResponse.d.ts b/dist/esm/models/ReadDirectLinksResponse.d.ts new file mode 100644 index 00000000..7a271163 --- /dev/null +++ b/dist/esm/models/ReadDirectLinksResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectLink } from './DirectLink'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadDirectLinksResponse + */ +export interface ReadDirectLinksResponse { + /** + * Information about one or more DirectLinks. + * @type {Array} + * @memberof ReadDirectLinksResponse + */ + directLinks?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDirectLinksResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadDirectLinksResponseFromJSON(json: any): ReadDirectLinksResponse; +export declare function ReadDirectLinksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinksResponse; +export declare function ReadDirectLinksResponseToJSON(value?: ReadDirectLinksResponse | null): any; diff --git a/dist/esm/models/ReadDirectLinksResponse.js b/dist/esm/models/ReadDirectLinksResponse.js new file mode 100644 index 00000000..f552bea3 --- /dev/null +++ b/dist/esm/models/ReadDirectLinksResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { DirectLinkFromJSON, DirectLinkToJSON, } from './DirectLink'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadDirectLinksResponseFromJSON(json) { + return ReadDirectLinksResponseFromJSONTyped(json, false); +} +export function ReadDirectLinksResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'directLinks': !exists(json, 'DirectLinks') ? undefined : (json['DirectLinks'].map(DirectLinkFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadDirectLinksResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DirectLinks': value.directLinks === undefined ? undefined : (value.directLinks.map(DirectLinkToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadFlexibleGpuCatalogRequest.d.ts b/dist/esm/models/ReadFlexibleGpuCatalogRequest.d.ts new file mode 100644 index 00000000..7986d990 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpuCatalogRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadFlexibleGpuCatalogRequest + */ +export interface ReadFlexibleGpuCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadFlexibleGpuCatalogRequest + */ + dryRun?: boolean; +} +export declare function ReadFlexibleGpuCatalogRequestFromJSON(json: any): ReadFlexibleGpuCatalogRequest; +export declare function ReadFlexibleGpuCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpuCatalogRequest; +export declare function ReadFlexibleGpuCatalogRequestToJSON(value?: ReadFlexibleGpuCatalogRequest | null): any; diff --git a/dist/esm/models/ReadFlexibleGpuCatalogRequest.js b/dist/esm/models/ReadFlexibleGpuCatalogRequest.js new file mode 100644 index 00000000..70411883 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpuCatalogRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadFlexibleGpuCatalogRequestFromJSON(json) { + return ReadFlexibleGpuCatalogRequestFromJSONTyped(json, false); +} +export function ReadFlexibleGpuCatalogRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadFlexibleGpuCatalogRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadFlexibleGpuCatalogResponse.d.ts b/dist/esm/models/ReadFlexibleGpuCatalogResponse.d.ts new file mode 100644 index 00000000..a89c1101 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpuCatalogResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpuCatalog } from './FlexibleGpuCatalog'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadFlexibleGpuCatalogResponse + */ +export interface ReadFlexibleGpuCatalogResponse { + /** + * Information about one or more fGPUs available in the public catalog. + * @type {Array} + * @memberof ReadFlexibleGpuCatalogResponse + */ + flexibleGpuCatalog?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadFlexibleGpuCatalogResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadFlexibleGpuCatalogResponseFromJSON(json: any): ReadFlexibleGpuCatalogResponse; +export declare function ReadFlexibleGpuCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpuCatalogResponse; +export declare function ReadFlexibleGpuCatalogResponseToJSON(value?: ReadFlexibleGpuCatalogResponse | null): any; diff --git a/dist/esm/models/ReadFlexibleGpuCatalogResponse.js b/dist/esm/models/ReadFlexibleGpuCatalogResponse.js new file mode 100644 index 00000000..f00fb5a1 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpuCatalogResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FlexibleGpuCatalogFromJSON, FlexibleGpuCatalogToJSON, } from './FlexibleGpuCatalog'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadFlexibleGpuCatalogResponseFromJSON(json) { + return ReadFlexibleGpuCatalogResponseFromJSONTyped(json, false); +} +export function ReadFlexibleGpuCatalogResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpuCatalog': !exists(json, 'FlexibleGpuCatalog') ? undefined : (json['FlexibleGpuCatalog'].map(FlexibleGpuCatalogFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadFlexibleGpuCatalogResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpuCatalog': value.flexibleGpuCatalog === undefined ? undefined : (value.flexibleGpuCatalog.map(FlexibleGpuCatalogToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadFlexibleGpusRequest.d.ts b/dist/esm/models/ReadFlexibleGpusRequest.d.ts new file mode 100644 index 00000000..ff9f66e0 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpusRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersFlexibleGpu } from './FiltersFlexibleGpu'; +/** + * + * @export + * @interface ReadFlexibleGpusRequest + */ +export interface ReadFlexibleGpusRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadFlexibleGpusRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersFlexibleGpu} + * @memberof ReadFlexibleGpusRequest + */ + filters?: FiltersFlexibleGpu; +} +export declare function ReadFlexibleGpusRequestFromJSON(json: any): ReadFlexibleGpusRequest; +export declare function ReadFlexibleGpusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpusRequest; +export declare function ReadFlexibleGpusRequestToJSON(value?: ReadFlexibleGpusRequest | null): any; diff --git a/dist/esm/models/ReadFlexibleGpusRequest.js b/dist/esm/models/ReadFlexibleGpusRequest.js new file mode 100644 index 00000000..51f6d525 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpusRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersFlexibleGpuFromJSON, FiltersFlexibleGpuToJSON, } from './FiltersFlexibleGpu'; +export function ReadFlexibleGpusRequestFromJSON(json) { + return ReadFlexibleGpusRequestFromJSONTyped(json, false); +} +export function ReadFlexibleGpusRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersFlexibleGpuFromJSON(json['Filters']), + }; +} +export function ReadFlexibleGpusRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersFlexibleGpuToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadFlexibleGpusResponse.d.ts b/dist/esm/models/ReadFlexibleGpusResponse.d.ts new file mode 100644 index 00000000..e7ce5661 --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpusResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpu } from './FlexibleGpu'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadFlexibleGpusResponse + */ +export interface ReadFlexibleGpusResponse { + /** + * Information about one or more fGPUs. + * @type {Array} + * @memberof ReadFlexibleGpusResponse + */ + flexibleGpus?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadFlexibleGpusResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadFlexibleGpusResponseFromJSON(json: any): ReadFlexibleGpusResponse; +export declare function ReadFlexibleGpusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpusResponse; +export declare function ReadFlexibleGpusResponseToJSON(value?: ReadFlexibleGpusResponse | null): any; diff --git a/dist/esm/models/ReadFlexibleGpusResponse.js b/dist/esm/models/ReadFlexibleGpusResponse.js new file mode 100644 index 00000000..dd7ae77b --- /dev/null +++ b/dist/esm/models/ReadFlexibleGpusResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FlexibleGpuFromJSON, FlexibleGpuToJSON, } from './FlexibleGpu'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadFlexibleGpusResponseFromJSON(json) { + return ReadFlexibleGpusResponseFromJSONTyped(json, false); +} +export function ReadFlexibleGpusResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpus': !exists(json, 'FlexibleGpus') ? undefined : (json['FlexibleGpus'].map(FlexibleGpuFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadFlexibleGpusResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpus': value.flexibleGpus === undefined ? undefined : (value.flexibleGpus.map(FlexibleGpuToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadImageExportTasksRequest.d.ts b/dist/esm/models/ReadImageExportTasksRequest.d.ts new file mode 100644 index 00000000..3f3a127d --- /dev/null +++ b/dist/esm/models/ReadImageExportTasksRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersExportTask } from './FiltersExportTask'; +/** + * + * @export + * @interface ReadImageExportTasksRequest + */ +export interface ReadImageExportTasksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadImageExportTasksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersExportTask} + * @memberof ReadImageExportTasksRequest + */ + filters?: FiltersExportTask; +} +export declare function ReadImageExportTasksRequestFromJSON(json: any): ReadImageExportTasksRequest; +export declare function ReadImageExportTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImageExportTasksRequest; +export declare function ReadImageExportTasksRequestToJSON(value?: ReadImageExportTasksRequest | null): any; diff --git a/dist/esm/models/ReadImageExportTasksRequest.js b/dist/esm/models/ReadImageExportTasksRequest.js new file mode 100644 index 00000000..5443001d --- /dev/null +++ b/dist/esm/models/ReadImageExportTasksRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersExportTaskFromJSON, FiltersExportTaskToJSON, } from './FiltersExportTask'; +export function ReadImageExportTasksRequestFromJSON(json) { + return ReadImageExportTasksRequestFromJSONTyped(json, false); +} +export function ReadImageExportTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersExportTaskFromJSON(json['Filters']), + }; +} +export function ReadImageExportTasksRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersExportTaskToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadImageExportTasksResponse.d.ts b/dist/esm/models/ReadImageExportTasksResponse.d.ts new file mode 100644 index 00000000..ccf9ccdf --- /dev/null +++ b/dist/esm/models/ReadImageExportTasksResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ImageExportTask } from './ImageExportTask'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadImageExportTasksResponse + */ +export interface ReadImageExportTasksResponse { + /** + * Information about one or more image export tasks. + * @type {Array} + * @memberof ReadImageExportTasksResponse + */ + imageExportTasks?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadImageExportTasksResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadImageExportTasksResponseFromJSON(json: any): ReadImageExportTasksResponse; +export declare function ReadImageExportTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImageExportTasksResponse; +export declare function ReadImageExportTasksResponseToJSON(value?: ReadImageExportTasksResponse | null): any; diff --git a/dist/esm/models/ReadImageExportTasksResponse.js b/dist/esm/models/ReadImageExportTasksResponse.js new file mode 100644 index 00000000..e7a84d90 --- /dev/null +++ b/dist/esm/models/ReadImageExportTasksResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ImageExportTaskFromJSON, ImageExportTaskToJSON, } from './ImageExportTask'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadImageExportTasksResponseFromJSON(json) { + return ReadImageExportTasksResponseFromJSONTyped(json, false); +} +export function ReadImageExportTasksResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'imageExportTasks': !exists(json, 'ImageExportTasks') ? undefined : (json['ImageExportTasks'].map(ImageExportTaskFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadImageExportTasksResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ImageExportTasks': value.imageExportTasks === undefined ? undefined : (value.imageExportTasks.map(ImageExportTaskToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadImagesRequest.d.ts b/dist/esm/models/ReadImagesRequest.d.ts new file mode 100644 index 00000000..82e6882b --- /dev/null +++ b/dist/esm/models/ReadImagesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersImage } from './FiltersImage'; +/** + * + * @export + * @interface ReadImagesRequest + */ +export interface ReadImagesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadImagesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersImage} + * @memberof ReadImagesRequest + */ + filters?: FiltersImage; +} +export declare function ReadImagesRequestFromJSON(json: any): ReadImagesRequest; +export declare function ReadImagesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImagesRequest; +export declare function ReadImagesRequestToJSON(value?: ReadImagesRequest | null): any; diff --git a/dist/esm/models/ReadImagesRequest.js b/dist/esm/models/ReadImagesRequest.js new file mode 100644 index 00000000..33d7955c --- /dev/null +++ b/dist/esm/models/ReadImagesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersImageFromJSON, FiltersImageToJSON, } from './FiltersImage'; +export function ReadImagesRequestFromJSON(json) { + return ReadImagesRequestFromJSONTyped(json, false); +} +export function ReadImagesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersImageFromJSON(json['Filters']), + }; +} +export function ReadImagesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersImageToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadImagesResponse.d.ts b/dist/esm/models/ReadImagesResponse.d.ts new file mode 100644 index 00000000..aa7cb758 --- /dev/null +++ b/dist/esm/models/ReadImagesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Image } from './Image'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadImagesResponse + */ +export interface ReadImagesResponse { + /** + * Information about one or more OMIs. + * @type {Array} + * @memberof ReadImagesResponse + */ + images?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadImagesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadImagesResponseFromJSON(json: any): ReadImagesResponse; +export declare function ReadImagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImagesResponse; +export declare function ReadImagesResponseToJSON(value?: ReadImagesResponse | null): any; diff --git a/dist/esm/models/ReadImagesResponse.js b/dist/esm/models/ReadImagesResponse.js new file mode 100644 index 00000000..12da341e --- /dev/null +++ b/dist/esm/models/ReadImagesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ImageFromJSON, ImageToJSON, } from './Image'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadImagesResponseFromJSON(json) { + return ReadImagesResponseFromJSONTyped(json, false); +} +export function ReadImagesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'images': !exists(json, 'Images') ? undefined : (json['Images'].map(ImageFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadImagesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Images': value.images === undefined ? undefined : (value.images.map(ImageToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadInternetServicesRequest.d.ts b/dist/esm/models/ReadInternetServicesRequest.d.ts new file mode 100644 index 00000000..ce802cf2 --- /dev/null +++ b/dist/esm/models/ReadInternetServicesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersInternetService } from './FiltersInternetService'; +/** + * + * @export + * @interface ReadInternetServicesRequest + */ +export interface ReadInternetServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadInternetServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersInternetService} + * @memberof ReadInternetServicesRequest + */ + filters?: FiltersInternetService; +} +export declare function ReadInternetServicesRequestFromJSON(json: any): ReadInternetServicesRequest; +export declare function ReadInternetServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadInternetServicesRequest; +export declare function ReadInternetServicesRequestToJSON(value?: ReadInternetServicesRequest | null): any; diff --git a/dist/esm/models/ReadInternetServicesRequest.js b/dist/esm/models/ReadInternetServicesRequest.js new file mode 100644 index 00000000..6d8ada7a --- /dev/null +++ b/dist/esm/models/ReadInternetServicesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersInternetServiceFromJSON, FiltersInternetServiceToJSON, } from './FiltersInternetService'; +export function ReadInternetServicesRequestFromJSON(json) { + return ReadInternetServicesRequestFromJSONTyped(json, false); +} +export function ReadInternetServicesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersInternetServiceFromJSON(json['Filters']), + }; +} +export function ReadInternetServicesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersInternetServiceToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadInternetServicesResponse.d.ts b/dist/esm/models/ReadInternetServicesResponse.d.ts new file mode 100644 index 00000000..c75c4a18 --- /dev/null +++ b/dist/esm/models/ReadInternetServicesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { InternetService } from './InternetService'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadInternetServicesResponse + */ +export interface ReadInternetServicesResponse { + /** + * Information about one or more Internet services. + * @type {Array} + * @memberof ReadInternetServicesResponse + */ + internetServices?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadInternetServicesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadInternetServicesResponseFromJSON(json: any): ReadInternetServicesResponse; +export declare function ReadInternetServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadInternetServicesResponse; +export declare function ReadInternetServicesResponseToJSON(value?: ReadInternetServicesResponse | null): any; diff --git a/dist/esm/models/ReadInternetServicesResponse.js b/dist/esm/models/ReadInternetServicesResponse.js new file mode 100644 index 00000000..21e3ff66 --- /dev/null +++ b/dist/esm/models/ReadInternetServicesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { InternetServiceFromJSON, InternetServiceToJSON, } from './InternetService'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadInternetServicesResponseFromJSON(json) { + return ReadInternetServicesResponseFromJSONTyped(json, false); +} +export function ReadInternetServicesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'internetServices': !exists(json, 'InternetServices') ? undefined : (json['InternetServices'].map(InternetServiceFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadInternetServicesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'InternetServices': value.internetServices === undefined ? undefined : (value.internetServices.map(InternetServiceToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadKeypairsRequest.d.ts b/dist/esm/models/ReadKeypairsRequest.d.ts new file mode 100644 index 00000000..135cdbaf --- /dev/null +++ b/dist/esm/models/ReadKeypairsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersKeypair } from './FiltersKeypair'; +/** + * + * @export + * @interface ReadKeypairsRequest + */ +export interface ReadKeypairsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadKeypairsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersKeypair} + * @memberof ReadKeypairsRequest + */ + filters?: FiltersKeypair; +} +export declare function ReadKeypairsRequestFromJSON(json: any): ReadKeypairsRequest; +export declare function ReadKeypairsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadKeypairsRequest; +export declare function ReadKeypairsRequestToJSON(value?: ReadKeypairsRequest | null): any; diff --git a/dist/esm/models/ReadKeypairsRequest.js b/dist/esm/models/ReadKeypairsRequest.js new file mode 100644 index 00000000..3da703e7 --- /dev/null +++ b/dist/esm/models/ReadKeypairsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersKeypairFromJSON, FiltersKeypairToJSON, } from './FiltersKeypair'; +export function ReadKeypairsRequestFromJSON(json) { + return ReadKeypairsRequestFromJSONTyped(json, false); +} +export function ReadKeypairsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersKeypairFromJSON(json['Filters']), + }; +} +export function ReadKeypairsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersKeypairToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadKeypairsResponse.d.ts b/dist/esm/models/ReadKeypairsResponse.d.ts new file mode 100644 index 00000000..8a7e27df --- /dev/null +++ b/dist/esm/models/ReadKeypairsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Keypair } from './Keypair'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadKeypairsResponse + */ +export interface ReadKeypairsResponse { + /** + * Information about one or more keypairs. + * @type {Array} + * @memberof ReadKeypairsResponse + */ + keypairs?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadKeypairsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadKeypairsResponseFromJSON(json: any): ReadKeypairsResponse; +export declare function ReadKeypairsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadKeypairsResponse; +export declare function ReadKeypairsResponseToJSON(value?: ReadKeypairsResponse | null): any; diff --git a/dist/esm/models/ReadKeypairsResponse.js b/dist/esm/models/ReadKeypairsResponse.js new file mode 100644 index 00000000..f0859790 --- /dev/null +++ b/dist/esm/models/ReadKeypairsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { KeypairFromJSON, KeypairToJSON, } from './Keypair'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadKeypairsResponseFromJSON(json) { + return ReadKeypairsResponseFromJSONTyped(json, false); +} +export function ReadKeypairsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'keypairs': !exists(json, 'Keypairs') ? undefined : (json['Keypairs'].map(KeypairFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadKeypairsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Keypairs': value.keypairs === undefined ? undefined : (value.keypairs.map(KeypairToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadListenerRulesRequest.d.ts b/dist/esm/models/ReadListenerRulesRequest.d.ts new file mode 100644 index 00000000..291b239c --- /dev/null +++ b/dist/esm/models/ReadListenerRulesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersListenerRule } from './FiltersListenerRule'; +/** + * + * @export + * @interface ReadListenerRulesRequest + */ +export interface ReadListenerRulesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadListenerRulesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersListenerRule} + * @memberof ReadListenerRulesRequest + */ + filters?: FiltersListenerRule; +} +export declare function ReadListenerRulesRequestFromJSON(json: any): ReadListenerRulesRequest; +export declare function ReadListenerRulesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadListenerRulesRequest; +export declare function ReadListenerRulesRequestToJSON(value?: ReadListenerRulesRequest | null): any; diff --git a/dist/esm/models/ReadListenerRulesRequest.js b/dist/esm/models/ReadListenerRulesRequest.js new file mode 100644 index 00000000..5e2d2bea --- /dev/null +++ b/dist/esm/models/ReadListenerRulesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersListenerRuleFromJSON, FiltersListenerRuleToJSON, } from './FiltersListenerRule'; +export function ReadListenerRulesRequestFromJSON(json) { + return ReadListenerRulesRequestFromJSONTyped(json, false); +} +export function ReadListenerRulesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersListenerRuleFromJSON(json['Filters']), + }; +} +export function ReadListenerRulesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersListenerRuleToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadListenerRulesResponse.d.ts b/dist/esm/models/ReadListenerRulesResponse.d.ts new file mode 100644 index 00000000..7de9b6af --- /dev/null +++ b/dist/esm/models/ReadListenerRulesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRule } from './ListenerRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadListenerRulesResponse + */ +export interface ReadListenerRulesResponse { + /** + * The list of the rules to describe. + * @type {Array} + * @memberof ReadListenerRulesResponse + */ + listenerRules?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadListenerRulesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadListenerRulesResponseFromJSON(json: any): ReadListenerRulesResponse; +export declare function ReadListenerRulesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadListenerRulesResponse; +export declare function ReadListenerRulesResponseToJSON(value?: ReadListenerRulesResponse | null): any; diff --git a/dist/esm/models/ReadListenerRulesResponse.js b/dist/esm/models/ReadListenerRulesResponse.js new file mode 100644 index 00000000..f61afe65 --- /dev/null +++ b/dist/esm/models/ReadListenerRulesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ListenerRuleFromJSON, ListenerRuleToJSON, } from './ListenerRule'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadListenerRulesResponseFromJSON(json) { + return ReadListenerRulesResponseFromJSONTyped(json, false); +} +export function ReadListenerRulesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRules': !exists(json, 'ListenerRules') ? undefined : (json['ListenerRules'].map(ListenerRuleFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadListenerRulesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRules': value.listenerRules === undefined ? undefined : (value.listenerRules.map(ListenerRuleToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadLoadBalancerTagsRequest.d.ts b/dist/esm/models/ReadLoadBalancerTagsRequest.d.ts new file mode 100644 index 00000000..50a38167 --- /dev/null +++ b/dist/esm/models/ReadLoadBalancerTagsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadLoadBalancerTagsRequest + */ +export interface ReadLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof ReadLoadBalancerTagsRequest + */ + loadBalancerNames: Array; +} +export declare function ReadLoadBalancerTagsRequestFromJSON(json: any): ReadLoadBalancerTagsRequest; +export declare function ReadLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancerTagsRequest; +export declare function ReadLoadBalancerTagsRequestToJSON(value?: ReadLoadBalancerTagsRequest | null): any; diff --git a/dist/esm/models/ReadLoadBalancerTagsRequest.js b/dist/esm/models/ReadLoadBalancerTagsRequest.js new file mode 100644 index 00000000..4c34fb6b --- /dev/null +++ b/dist/esm/models/ReadLoadBalancerTagsRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadLoadBalancerTagsRequestFromJSON(json) { + return ReadLoadBalancerTagsRequestFromJSONTyped(json, false); +} +export function ReadLoadBalancerTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + }; +} +export function ReadLoadBalancerTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + }; +} diff --git a/dist/esm/models/ReadLoadBalancerTagsResponse.d.ts b/dist/esm/models/ReadLoadBalancerTagsResponse.d.ts new file mode 100644 index 00000000..7fd8af78 --- /dev/null +++ b/dist/esm/models/ReadLoadBalancerTagsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancerTag } from './LoadBalancerTag'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadLoadBalancerTagsResponse + */ +export interface ReadLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more load balancer tags. + * @type {Array} + * @memberof ReadLoadBalancerTagsResponse + */ + tags?: Array; +} +export declare function ReadLoadBalancerTagsResponseFromJSON(json: any): ReadLoadBalancerTagsResponse; +export declare function ReadLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancerTagsResponse; +export declare function ReadLoadBalancerTagsResponseToJSON(value?: ReadLoadBalancerTagsResponse | null): any; diff --git a/dist/esm/models/ReadLoadBalancerTagsResponse.js b/dist/esm/models/ReadLoadBalancerTagsResponse.js new file mode 100644 index 00000000..eef0dd70 --- /dev/null +++ b/dist/esm/models/ReadLoadBalancerTagsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerTagFromJSON, LoadBalancerTagToJSON, } from './LoadBalancerTag'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadLoadBalancerTagsResponseFromJSON(json) { + return ReadLoadBalancerTagsResponseFromJSONTyped(json, false); +} +export function ReadLoadBalancerTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(LoadBalancerTagFromJSON)), + }; +} +export function ReadLoadBalancerTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(LoadBalancerTagToJSON)), + }; +} diff --git a/dist/esm/models/ReadLoadBalancersRequest.d.ts b/dist/esm/models/ReadLoadBalancersRequest.d.ts new file mode 100644 index 00000000..61d40146 --- /dev/null +++ b/dist/esm/models/ReadLoadBalancersRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersLoadBalancer } from './FiltersLoadBalancer'; +/** + * + * @export + * @interface ReadLoadBalancersRequest + */ +export interface ReadLoadBalancersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLoadBalancersRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersLoadBalancer} + * @memberof ReadLoadBalancersRequest + */ + filters?: FiltersLoadBalancer; +} +export declare function ReadLoadBalancersRequestFromJSON(json: any): ReadLoadBalancersRequest; +export declare function ReadLoadBalancersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancersRequest; +export declare function ReadLoadBalancersRequestToJSON(value?: ReadLoadBalancersRequest | null): any; diff --git a/dist/esm/models/ReadLoadBalancersRequest.js b/dist/esm/models/ReadLoadBalancersRequest.js new file mode 100644 index 00000000..8a08ddae --- /dev/null +++ b/dist/esm/models/ReadLoadBalancersRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersLoadBalancerFromJSON, FiltersLoadBalancerToJSON, } from './FiltersLoadBalancer'; +export function ReadLoadBalancersRequestFromJSON(json) { + return ReadLoadBalancersRequestFromJSONTyped(json, false); +} +export function ReadLoadBalancersRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersLoadBalancerFromJSON(json['Filters']), + }; +} +export function ReadLoadBalancersRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersLoadBalancerToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadLoadBalancersResponse.d.ts b/dist/esm/models/ReadLoadBalancersResponse.d.ts new file mode 100644 index 00000000..e6058695 --- /dev/null +++ b/dist/esm/models/ReadLoadBalancersResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadLoadBalancersResponse + */ +export interface ReadLoadBalancersResponse { + /** + * Information about one or more load balancers. + * @type {Array} + * @memberof ReadLoadBalancersResponse + */ + loadBalancers?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadLoadBalancersResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadLoadBalancersResponseFromJSON(json: any): ReadLoadBalancersResponse; +export declare function ReadLoadBalancersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancersResponse; +export declare function ReadLoadBalancersResponseToJSON(value?: ReadLoadBalancersResponse | null): any; diff --git a/dist/esm/models/ReadLoadBalancersResponse.js b/dist/esm/models/ReadLoadBalancersResponse.js new file mode 100644 index 00000000..b5dbd550 --- /dev/null +++ b/dist/esm/models/ReadLoadBalancersResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadLoadBalancersResponseFromJSON(json) { + return ReadLoadBalancersResponseFromJSONTyped(json, false); +} +export function ReadLoadBalancersResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancers': !exists(json, 'LoadBalancers') ? undefined : (json['LoadBalancers'].map(LoadBalancerFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadLoadBalancersResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancers': value.loadBalancers === undefined ? undefined : (value.loadBalancers.map(LoadBalancerToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadLocationsRequest.d.ts b/dist/esm/models/ReadLocationsRequest.d.ts new file mode 100644 index 00000000..30fba37a --- /dev/null +++ b/dist/esm/models/ReadLocationsRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadLocationsRequest + */ +export interface ReadLocationsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLocationsRequest + */ + dryRun?: boolean; +} +export declare function ReadLocationsRequestFromJSON(json: any): ReadLocationsRequest; +export declare function ReadLocationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLocationsRequest; +export declare function ReadLocationsRequestToJSON(value?: ReadLocationsRequest | null): any; diff --git a/dist/esm/models/ReadLocationsRequest.js b/dist/esm/models/ReadLocationsRequest.js new file mode 100644 index 00000000..78f52ee3 --- /dev/null +++ b/dist/esm/models/ReadLocationsRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadLocationsRequestFromJSON(json) { + return ReadLocationsRequestFromJSONTyped(json, false); +} +export function ReadLocationsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadLocationsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadLocationsResponse.d.ts b/dist/esm/models/ReadLocationsResponse.d.ts new file mode 100644 index 00000000..474b37b2 --- /dev/null +++ b/dist/esm/models/ReadLocationsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Location } from './Location'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadLocationsResponse + */ +export interface ReadLocationsResponse { + /** + * Information about one or more locations. + * @type {Array} + * @memberof ReadLocationsResponse + */ + locations?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadLocationsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadLocationsResponseFromJSON(json: any): ReadLocationsResponse; +export declare function ReadLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLocationsResponse; +export declare function ReadLocationsResponseToJSON(value?: ReadLocationsResponse | null): any; diff --git a/dist/esm/models/ReadLocationsResponse.js b/dist/esm/models/ReadLocationsResponse.js new file mode 100644 index 00000000..417223db --- /dev/null +++ b/dist/esm/models/ReadLocationsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LocationFromJSON, LocationToJSON, } from './Location'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadLocationsResponseFromJSON(json) { + return ReadLocationsResponseFromJSONTyped(json, false); +} +export function ReadLocationsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'locations': !exists(json, 'Locations') ? undefined : (json['Locations'].map(LocationFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadLocationsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Locations': value.locations === undefined ? undefined : (value.locations.map(LocationToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadNatServicesRequest.d.ts b/dist/esm/models/ReadNatServicesRequest.d.ts new file mode 100644 index 00000000..ae4180ad --- /dev/null +++ b/dist/esm/models/ReadNatServicesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNatService } from './FiltersNatService'; +/** + * + * @export + * @interface ReadNatServicesRequest + */ +export interface ReadNatServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNatServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNatService} + * @memberof ReadNatServicesRequest + */ + filters?: FiltersNatService; +} +export declare function ReadNatServicesRequestFromJSON(json: any): ReadNatServicesRequest; +export declare function ReadNatServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNatServicesRequest; +export declare function ReadNatServicesRequestToJSON(value?: ReadNatServicesRequest | null): any; diff --git a/dist/esm/models/ReadNatServicesRequest.js b/dist/esm/models/ReadNatServicesRequest.js new file mode 100644 index 00000000..57e57f07 --- /dev/null +++ b/dist/esm/models/ReadNatServicesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersNatServiceFromJSON, FiltersNatServiceToJSON, } from './FiltersNatService'; +export function ReadNatServicesRequestFromJSON(json) { + return ReadNatServicesRequestFromJSONTyped(json, false); +} +export function ReadNatServicesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNatServiceFromJSON(json['Filters']), + }; +} +export function ReadNatServicesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersNatServiceToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadNatServicesResponse.d.ts b/dist/esm/models/ReadNatServicesResponse.d.ts new file mode 100644 index 00000000..17cc1288 --- /dev/null +++ b/dist/esm/models/ReadNatServicesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NatService } from './NatService'; +/** + * + * @export + * @interface ReadNatServicesResponse + */ +export interface ReadNatServicesResponse { + /** + * Information about one or more NAT services. + * @type {Array} + * @memberof ReadNatServicesResponse + */ + natServices?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNatServicesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNatServicesResponseFromJSON(json: any): ReadNatServicesResponse; +export declare function ReadNatServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNatServicesResponse; +export declare function ReadNatServicesResponseToJSON(value?: ReadNatServicesResponse | null): any; diff --git a/dist/esm/models/ReadNatServicesResponse.js b/dist/esm/models/ReadNatServicesResponse.js new file mode 100644 index 00000000..37fcdd8f --- /dev/null +++ b/dist/esm/models/ReadNatServicesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NatServiceFromJSON, NatServiceToJSON, } from './NatService'; +export function ReadNatServicesResponseFromJSON(json) { + return ReadNatServicesResponseFromJSONTyped(json, false); +} +export function ReadNatServicesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'natServices': !exists(json, 'NatServices') ? undefined : (json['NatServices'].map(NatServiceFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadNatServicesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NatServices': value.natServices === undefined ? undefined : (value.natServices.map(NatServiceToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadNetAccessPointServicesRequest.d.ts b/dist/esm/models/ReadNetAccessPointServicesRequest.d.ts new file mode 100644 index 00000000..d81ff6b3 --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointServicesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersService } from './FiltersService'; +/** + * + * @export + * @interface ReadNetAccessPointServicesRequest + */ +export interface ReadNetAccessPointServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetAccessPointServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersService} + * @memberof ReadNetAccessPointServicesRequest + */ + filters?: FiltersService; +} +export declare function ReadNetAccessPointServicesRequestFromJSON(json: any): ReadNetAccessPointServicesRequest; +export declare function ReadNetAccessPointServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointServicesRequest; +export declare function ReadNetAccessPointServicesRequestToJSON(value?: ReadNetAccessPointServicesRequest | null): any; diff --git a/dist/esm/models/ReadNetAccessPointServicesRequest.js b/dist/esm/models/ReadNetAccessPointServicesRequest.js new file mode 100644 index 00000000..c340a75e --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointServicesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersServiceFromJSON, FiltersServiceToJSON, } from './FiltersService'; +export function ReadNetAccessPointServicesRequestFromJSON(json) { + return ReadNetAccessPointServicesRequestFromJSONTyped(json, false); +} +export function ReadNetAccessPointServicesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersServiceFromJSON(json['Filters']), + }; +} +export function ReadNetAccessPointServicesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersServiceToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadNetAccessPointServicesResponse.d.ts b/dist/esm/models/ReadNetAccessPointServicesResponse.d.ts new file mode 100644 index 00000000..35217ac6 --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointServicesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Service } from './Service'; +/** + * + * @export + * @interface ReadNetAccessPointServicesResponse + */ +export interface ReadNetAccessPointServicesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetAccessPointServicesResponse + */ + responseContext?: ModelResponseContext; + /** + * The names of the services you can use for Net access points. + * @type {Array} + * @memberof ReadNetAccessPointServicesResponse + */ + services?: Array; +} +export declare function ReadNetAccessPointServicesResponseFromJSON(json: any): ReadNetAccessPointServicesResponse; +export declare function ReadNetAccessPointServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointServicesResponse; +export declare function ReadNetAccessPointServicesResponseToJSON(value?: ReadNetAccessPointServicesResponse | null): any; diff --git a/dist/esm/models/ReadNetAccessPointServicesResponse.js b/dist/esm/models/ReadNetAccessPointServicesResponse.js new file mode 100644 index 00000000..099be1ad --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointServicesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { ServiceFromJSON, ServiceToJSON, } from './Service'; +export function ReadNetAccessPointServicesResponseFromJSON(json) { + return ReadNetAccessPointServicesResponseFromJSONTyped(json, false); +} +export function ReadNetAccessPointServicesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'services': !exists(json, 'Services') ? undefined : (json['Services'].map(ServiceFromJSON)), + }; +} +export function ReadNetAccessPointServicesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Services': value.services === undefined ? undefined : (value.services.map(ServiceToJSON)), + }; +} diff --git a/dist/esm/models/ReadNetAccessPointsRequest.d.ts b/dist/esm/models/ReadNetAccessPointsRequest.d.ts new file mode 100644 index 00000000..7177c5a9 --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNetAccessPoint } from './FiltersNetAccessPoint'; +/** + * + * @export + * @interface ReadNetAccessPointsRequest + */ +export interface ReadNetAccessPointsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetAccessPointsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNetAccessPoint} + * @memberof ReadNetAccessPointsRequest + */ + filters?: FiltersNetAccessPoint; +} +export declare function ReadNetAccessPointsRequestFromJSON(json: any): ReadNetAccessPointsRequest; +export declare function ReadNetAccessPointsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointsRequest; +export declare function ReadNetAccessPointsRequestToJSON(value?: ReadNetAccessPointsRequest | null): any; diff --git a/dist/esm/models/ReadNetAccessPointsRequest.js b/dist/esm/models/ReadNetAccessPointsRequest.js new file mode 100644 index 00000000..765a315a --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersNetAccessPointFromJSON, FiltersNetAccessPointToJSON, } from './FiltersNetAccessPoint'; +export function ReadNetAccessPointsRequestFromJSON(json) { + return ReadNetAccessPointsRequestFromJSONTyped(json, false); +} +export function ReadNetAccessPointsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNetAccessPointFromJSON(json['Filters']), + }; +} +export function ReadNetAccessPointsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersNetAccessPointToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadNetAccessPointsResponse.d.ts b/dist/esm/models/ReadNetAccessPointsResponse.d.ts new file mode 100644 index 00000000..6958efce --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetAccessPoint } from './NetAccessPoint'; +/** + * + * @export + * @interface ReadNetAccessPointsResponse + */ +export interface ReadNetAccessPointsResponse { + /** + * One or more Net access points. + * @type {Array} + * @memberof ReadNetAccessPointsResponse + */ + netAccessPoints?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetAccessPointsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNetAccessPointsResponseFromJSON(json: any): ReadNetAccessPointsResponse; +export declare function ReadNetAccessPointsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointsResponse; +export declare function ReadNetAccessPointsResponseToJSON(value?: ReadNetAccessPointsResponse | null): any; diff --git a/dist/esm/models/ReadNetAccessPointsResponse.js b/dist/esm/models/ReadNetAccessPointsResponse.js new file mode 100644 index 00000000..79434d63 --- /dev/null +++ b/dist/esm/models/ReadNetAccessPointsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetAccessPointFromJSON, NetAccessPointToJSON, } from './NetAccessPoint'; +export function ReadNetAccessPointsResponseFromJSON(json) { + return ReadNetAccessPointsResponseFromJSONTyped(json, false); +} +export function ReadNetAccessPointsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPoints': !exists(json, 'NetAccessPoints') ? undefined : (json['NetAccessPoints'].map(NetAccessPointFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadNetAccessPointsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPoints': value.netAccessPoints === undefined ? undefined : (value.netAccessPoints.map(NetAccessPointToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadNetPeeringsRequest.d.ts b/dist/esm/models/ReadNetPeeringsRequest.d.ts new file mode 100644 index 00000000..adab305a --- /dev/null +++ b/dist/esm/models/ReadNetPeeringsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNetPeering } from './FiltersNetPeering'; +/** + * + * @export + * @interface ReadNetPeeringsRequest + */ +export interface ReadNetPeeringsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetPeeringsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNetPeering} + * @memberof ReadNetPeeringsRequest + */ + filters?: FiltersNetPeering; +} +export declare function ReadNetPeeringsRequestFromJSON(json: any): ReadNetPeeringsRequest; +export declare function ReadNetPeeringsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetPeeringsRequest; +export declare function ReadNetPeeringsRequestToJSON(value?: ReadNetPeeringsRequest | null): any; diff --git a/dist/esm/models/ReadNetPeeringsRequest.js b/dist/esm/models/ReadNetPeeringsRequest.js new file mode 100644 index 00000000..32592c28 --- /dev/null +++ b/dist/esm/models/ReadNetPeeringsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersNetPeeringFromJSON, FiltersNetPeeringToJSON, } from './FiltersNetPeering'; +export function ReadNetPeeringsRequestFromJSON(json) { + return ReadNetPeeringsRequestFromJSONTyped(json, false); +} +export function ReadNetPeeringsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNetPeeringFromJSON(json['Filters']), + }; +} +export function ReadNetPeeringsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersNetPeeringToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadNetPeeringsResponse.d.ts b/dist/esm/models/ReadNetPeeringsResponse.d.ts new file mode 100644 index 00000000..7f988b63 --- /dev/null +++ b/dist/esm/models/ReadNetPeeringsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetPeering } from './NetPeering'; +/** + * + * @export + * @interface ReadNetPeeringsResponse + */ +export interface ReadNetPeeringsResponse { + /** + * Information about one or more Net peering connections. + * @type {Array} + * @memberof ReadNetPeeringsResponse + */ + netPeerings?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetPeeringsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNetPeeringsResponseFromJSON(json: any): ReadNetPeeringsResponse; +export declare function ReadNetPeeringsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetPeeringsResponse; +export declare function ReadNetPeeringsResponseToJSON(value?: ReadNetPeeringsResponse | null): any; diff --git a/dist/esm/models/ReadNetPeeringsResponse.js b/dist/esm/models/ReadNetPeeringsResponse.js new file mode 100644 index 00000000..c04dc0a5 --- /dev/null +++ b/dist/esm/models/ReadNetPeeringsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetPeeringFromJSON, NetPeeringToJSON, } from './NetPeering'; +export function ReadNetPeeringsResponseFromJSON(json) { + return ReadNetPeeringsResponseFromJSONTyped(json, false); +} +export function ReadNetPeeringsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netPeerings': !exists(json, 'NetPeerings') ? undefined : (json['NetPeerings'].map(NetPeeringFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadNetPeeringsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetPeerings': value.netPeerings === undefined ? undefined : (value.netPeerings.map(NetPeeringToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadNetsRequest.d.ts b/dist/esm/models/ReadNetsRequest.d.ts new file mode 100644 index 00000000..48131195 --- /dev/null +++ b/dist/esm/models/ReadNetsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNet } from './FiltersNet'; +/** + * + * @export + * @interface ReadNetsRequest + */ +export interface ReadNetsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNet} + * @memberof ReadNetsRequest + */ + filters?: FiltersNet; +} +export declare function ReadNetsRequestFromJSON(json: any): ReadNetsRequest; +export declare function ReadNetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetsRequest; +export declare function ReadNetsRequestToJSON(value?: ReadNetsRequest | null): any; diff --git a/dist/esm/models/ReadNetsRequest.js b/dist/esm/models/ReadNetsRequest.js new file mode 100644 index 00000000..679065a1 --- /dev/null +++ b/dist/esm/models/ReadNetsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersNetFromJSON, FiltersNetToJSON, } from './FiltersNet'; +export function ReadNetsRequestFromJSON(json) { + return ReadNetsRequestFromJSONTyped(json, false); +} +export function ReadNetsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNetFromJSON(json['Filters']), + }; +} +export function ReadNetsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersNetToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadNetsResponse.d.ts b/dist/esm/models/ReadNetsResponse.d.ts new file mode 100644 index 00000000..50c32bab --- /dev/null +++ b/dist/esm/models/ReadNetsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Net } from './Net'; +/** + * + * @export + * @interface ReadNetsResponse + */ +export interface ReadNetsResponse { + /** + * Information about the described Nets. + * @type {Array} + * @memberof ReadNetsResponse + */ + nets?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNetsResponseFromJSON(json: any): ReadNetsResponse; +export declare function ReadNetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetsResponse; +export declare function ReadNetsResponseToJSON(value?: ReadNetsResponse | null): any; diff --git a/dist/esm/models/ReadNetsResponse.js b/dist/esm/models/ReadNetsResponse.js new file mode 100644 index 00000000..d954fa5f --- /dev/null +++ b/dist/esm/models/ReadNetsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetFromJSON, NetToJSON, } from './Net'; +export function ReadNetsResponseFromJSON(json) { + return ReadNetsResponseFromJSONTyped(json, false); +} +export function ReadNetsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nets': !exists(json, 'Nets') ? undefined : (json['Nets'].map(NetFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadNetsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nets': value.nets === undefined ? undefined : (value.nets.map(NetToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadNicsRequest.d.ts b/dist/esm/models/ReadNicsRequest.d.ts new file mode 100644 index 00000000..6deba50f --- /dev/null +++ b/dist/esm/models/ReadNicsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersNic } from './FiltersNic'; +/** + * + * @export + * @interface ReadNicsRequest + */ +export interface ReadNicsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNicsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNic} + * @memberof ReadNicsRequest + */ + filters?: FiltersNic; +} +export declare function ReadNicsRequestFromJSON(json: any): ReadNicsRequest; +export declare function ReadNicsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNicsRequest; +export declare function ReadNicsRequestToJSON(value?: ReadNicsRequest | null): any; diff --git a/dist/esm/models/ReadNicsRequest.js b/dist/esm/models/ReadNicsRequest.js new file mode 100644 index 00000000..3ba47725 --- /dev/null +++ b/dist/esm/models/ReadNicsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersNicFromJSON, FiltersNicToJSON, } from './FiltersNic'; +export function ReadNicsRequestFromJSON(json) { + return ReadNicsRequestFromJSONTyped(json, false); +} +export function ReadNicsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNicFromJSON(json['Filters']), + }; +} +export function ReadNicsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersNicToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadNicsResponse.d.ts b/dist/esm/models/ReadNicsResponse.d.ts new file mode 100644 index 00000000..c59c7717 --- /dev/null +++ b/dist/esm/models/ReadNicsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Nic } from './Nic'; +/** + * + * @export + * @interface ReadNicsResponse + */ +export interface ReadNicsResponse { + /** + * Information about one or more NICs. + * @type {Array} + * @memberof ReadNicsResponse + */ + nics?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNicsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadNicsResponseFromJSON(json: any): ReadNicsResponse; +export declare function ReadNicsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNicsResponse; +export declare function ReadNicsResponseToJSON(value?: ReadNicsResponse | null): any; diff --git a/dist/esm/models/ReadNicsResponse.js b/dist/esm/models/ReadNicsResponse.js new file mode 100644 index 00000000..bb48b46d --- /dev/null +++ b/dist/esm/models/ReadNicsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NicFromJSON, NicToJSON, } from './Nic'; +export function ReadNicsResponseFromJSON(json) { + return ReadNicsResponseFromJSONTyped(json, false); +} +export function ReadNicsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nics': !exists(json, 'Nics') ? undefined : (json['Nics'].map(NicFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadNicsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nics': value.nics === undefined ? undefined : (value.nics.map(NicToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadProductTypesRequest.d.ts b/dist/esm/models/ReadProductTypesRequest.d.ts new file mode 100644 index 00000000..0d3f8b58 --- /dev/null +++ b/dist/esm/models/ReadProductTypesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersProductType } from './FiltersProductType'; +/** + * + * @export + * @interface ReadProductTypesRequest + */ +export interface ReadProductTypesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadProductTypesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersProductType} + * @memberof ReadProductTypesRequest + */ + filters?: FiltersProductType; +} +export declare function ReadProductTypesRequestFromJSON(json: any): ReadProductTypesRequest; +export declare function ReadProductTypesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadProductTypesRequest; +export declare function ReadProductTypesRequestToJSON(value?: ReadProductTypesRequest | null): any; diff --git a/dist/esm/models/ReadProductTypesRequest.js b/dist/esm/models/ReadProductTypesRequest.js new file mode 100644 index 00000000..e32d7276 --- /dev/null +++ b/dist/esm/models/ReadProductTypesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersProductTypeFromJSON, FiltersProductTypeToJSON, } from './FiltersProductType'; +export function ReadProductTypesRequestFromJSON(json) { + return ReadProductTypesRequestFromJSONTyped(json, false); +} +export function ReadProductTypesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersProductTypeFromJSON(json['Filters']), + }; +} +export function ReadProductTypesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersProductTypeToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadProductTypesResponse.d.ts b/dist/esm/models/ReadProductTypesResponse.d.ts new file mode 100644 index 00000000..9573a503 --- /dev/null +++ b/dist/esm/models/ReadProductTypesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ProductType } from './ProductType'; +/** + * + * @export + * @interface ReadProductTypesResponse + */ +export interface ReadProductTypesResponse { + /** + * Information about one or more product types. + * @type {Array} + * @memberof ReadProductTypesResponse + */ + productTypes?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadProductTypesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadProductTypesResponseFromJSON(json: any): ReadProductTypesResponse; +export declare function ReadProductTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadProductTypesResponse; +export declare function ReadProductTypesResponseToJSON(value?: ReadProductTypesResponse | null): any; diff --git a/dist/esm/models/ReadProductTypesResponse.js b/dist/esm/models/ReadProductTypesResponse.js new file mode 100644 index 00000000..cc0f7b68 --- /dev/null +++ b/dist/esm/models/ReadProductTypesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { ProductTypeFromJSON, ProductTypeToJSON, } from './ProductType'; +export function ReadProductTypesResponseFromJSON(json) { + return ReadProductTypesResponseFromJSONTyped(json, false); +} +export function ReadProductTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'productTypes': !exists(json, 'ProductTypes') ? undefined : (json['ProductTypes'].map(ProductTypeFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadProductTypesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ProductTypes': value.productTypes === undefined ? undefined : (value.productTypes.map(ProductTypeToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadPublicCatalogRequest.d.ts b/dist/esm/models/ReadPublicCatalogRequest.d.ts new file mode 100644 index 00000000..788a25a1 --- /dev/null +++ b/dist/esm/models/ReadPublicCatalogRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadPublicCatalogRequest + */ +export interface ReadPublicCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicCatalogRequest + */ + dryRun?: boolean; +} +export declare function ReadPublicCatalogRequestFromJSON(json: any): ReadPublicCatalogRequest; +export declare function ReadPublicCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicCatalogRequest; +export declare function ReadPublicCatalogRequestToJSON(value?: ReadPublicCatalogRequest | null): any; diff --git a/dist/esm/models/ReadPublicCatalogRequest.js b/dist/esm/models/ReadPublicCatalogRequest.js new file mode 100644 index 00000000..f7bbfdd1 --- /dev/null +++ b/dist/esm/models/ReadPublicCatalogRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadPublicCatalogRequestFromJSON(json) { + return ReadPublicCatalogRequestFromJSONTyped(json, false); +} +export function ReadPublicCatalogRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadPublicCatalogRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadPublicCatalogResponse.d.ts b/dist/esm/models/ReadPublicCatalogResponse.d.ts new file mode 100644 index 00000000..7f047145 --- /dev/null +++ b/dist/esm/models/ReadPublicCatalogResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Catalog } from './Catalog'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadPublicCatalogResponse + */ +export interface ReadPublicCatalogResponse { + /** + * + * @type {Catalog} + * @memberof ReadPublicCatalogResponse + */ + catalog?: Catalog; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicCatalogResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadPublicCatalogResponseFromJSON(json: any): ReadPublicCatalogResponse; +export declare function ReadPublicCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicCatalogResponse; +export declare function ReadPublicCatalogResponseToJSON(value?: ReadPublicCatalogResponse | null): any; diff --git a/dist/esm/models/ReadPublicCatalogResponse.js b/dist/esm/models/ReadPublicCatalogResponse.js new file mode 100644 index 00000000..178d2b8a --- /dev/null +++ b/dist/esm/models/ReadPublicCatalogResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { CatalogFromJSON, CatalogToJSON, } from './Catalog'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadPublicCatalogResponseFromJSON(json) { + return ReadPublicCatalogResponseFromJSONTyped(json, false); +} +export function ReadPublicCatalogResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'catalog': !exists(json, 'Catalog') ? undefined : CatalogFromJSON(json['Catalog']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadPublicCatalogResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Catalog': CatalogToJSON(value.catalog), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadPublicIpRangesRequest.d.ts b/dist/esm/models/ReadPublicIpRangesRequest.d.ts new file mode 100644 index 00000000..3f52463b --- /dev/null +++ b/dist/esm/models/ReadPublicIpRangesRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadPublicIpRangesRequest + */ +export interface ReadPublicIpRangesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicIpRangesRequest + */ + dryRun?: boolean; +} +export declare function ReadPublicIpRangesRequestFromJSON(json: any): ReadPublicIpRangesRequest; +export declare function ReadPublicIpRangesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpRangesRequest; +export declare function ReadPublicIpRangesRequestToJSON(value?: ReadPublicIpRangesRequest | null): any; diff --git a/dist/esm/models/ReadPublicIpRangesRequest.js b/dist/esm/models/ReadPublicIpRangesRequest.js new file mode 100644 index 00000000..80dc1d99 --- /dev/null +++ b/dist/esm/models/ReadPublicIpRangesRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadPublicIpRangesRequestFromJSON(json) { + return ReadPublicIpRangesRequestFromJSONTyped(json, false); +} +export function ReadPublicIpRangesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadPublicIpRangesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadPublicIpRangesResponse.d.ts b/dist/esm/models/ReadPublicIpRangesResponse.d.ts new file mode 100644 index 00000000..ee43bf3f --- /dev/null +++ b/dist/esm/models/ReadPublicIpRangesResponse.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadPublicIpRangesResponse + */ +export interface ReadPublicIpRangesResponse { + /** + * The list of public IPv4 addresses used in the Region, in CIDR notation. + * @type {Array} + * @memberof ReadPublicIpRangesResponse + */ + publicIps?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicIpRangesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadPublicIpRangesResponseFromJSON(json: any): ReadPublicIpRangesResponse; +export declare function ReadPublicIpRangesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpRangesResponse; +export declare function ReadPublicIpRangesResponseToJSON(value?: ReadPublicIpRangesResponse | null): any; diff --git a/dist/esm/models/ReadPublicIpRangesResponse.js b/dist/esm/models/ReadPublicIpRangesResponse.js new file mode 100644 index 00000000..de7ce846 --- /dev/null +++ b/dist/esm/models/ReadPublicIpRangesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadPublicIpRangesResponseFromJSON(json) { + return ReadPublicIpRangesResponseFromJSONTyped(json, false); +} +export function ReadPublicIpRangesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIps': !exists(json, 'PublicIps') ? undefined : json['PublicIps'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadPublicIpRangesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIps': value.publicIps, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadPublicIpsRequest.d.ts b/dist/esm/models/ReadPublicIpsRequest.d.ts new file mode 100644 index 00000000..a3fcaa65 --- /dev/null +++ b/dist/esm/models/ReadPublicIpsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersPublicIp } from './FiltersPublicIp'; +/** + * + * @export + * @interface ReadPublicIpsRequest + */ +export interface ReadPublicIpsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicIpsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersPublicIp} + * @memberof ReadPublicIpsRequest + */ + filters?: FiltersPublicIp; +} +export declare function ReadPublicIpsRequestFromJSON(json: any): ReadPublicIpsRequest; +export declare function ReadPublicIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpsRequest; +export declare function ReadPublicIpsRequestToJSON(value?: ReadPublicIpsRequest | null): any; diff --git a/dist/esm/models/ReadPublicIpsRequest.js b/dist/esm/models/ReadPublicIpsRequest.js new file mode 100644 index 00000000..322ea5ac --- /dev/null +++ b/dist/esm/models/ReadPublicIpsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersPublicIpFromJSON, FiltersPublicIpToJSON, } from './FiltersPublicIp'; +export function ReadPublicIpsRequestFromJSON(json) { + return ReadPublicIpsRequestFromJSONTyped(json, false); +} +export function ReadPublicIpsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersPublicIpFromJSON(json['Filters']), + }; +} +export function ReadPublicIpsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersPublicIpToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadPublicIpsResponse.d.ts b/dist/esm/models/ReadPublicIpsResponse.d.ts new file mode 100644 index 00000000..359657a6 --- /dev/null +++ b/dist/esm/models/ReadPublicIpsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { PublicIp } from './PublicIp'; +/** + * + * @export + * @interface ReadPublicIpsResponse + */ +export interface ReadPublicIpsResponse { + /** + * Information about one or more public IPs. + * @type {Array} + * @memberof ReadPublicIpsResponse + */ + publicIps?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicIpsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadPublicIpsResponseFromJSON(json: any): ReadPublicIpsResponse; +export declare function ReadPublicIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpsResponse; +export declare function ReadPublicIpsResponseToJSON(value?: ReadPublicIpsResponse | null): any; diff --git a/dist/esm/models/ReadPublicIpsResponse.js b/dist/esm/models/ReadPublicIpsResponse.js new file mode 100644 index 00000000..a280f2ab --- /dev/null +++ b/dist/esm/models/ReadPublicIpsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { PublicIpFromJSON, PublicIpToJSON, } from './PublicIp'; +export function ReadPublicIpsResponseFromJSON(json) { + return ReadPublicIpsResponseFromJSONTyped(json, false); +} +export function ReadPublicIpsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'publicIps': !exists(json, 'PublicIps') ? undefined : (json['PublicIps'].map(PublicIpFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadPublicIpsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'PublicIps': value.publicIps === undefined ? undefined : (value.publicIps.map(PublicIpToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadQuotasRequest.d.ts b/dist/esm/models/ReadQuotasRequest.d.ts new file mode 100644 index 00000000..e988063d --- /dev/null +++ b/dist/esm/models/ReadQuotasRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersQuota } from './FiltersQuota'; +/** + * + * @export + * @interface ReadQuotasRequest + */ +export interface ReadQuotasRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadQuotasRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersQuota} + * @memberof ReadQuotasRequest + */ + filters?: FiltersQuota; +} +export declare function ReadQuotasRequestFromJSON(json: any): ReadQuotasRequest; +export declare function ReadQuotasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadQuotasRequest; +export declare function ReadQuotasRequestToJSON(value?: ReadQuotasRequest | null): any; diff --git a/dist/esm/models/ReadQuotasRequest.js b/dist/esm/models/ReadQuotasRequest.js new file mode 100644 index 00000000..320428d3 --- /dev/null +++ b/dist/esm/models/ReadQuotasRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersQuotaFromJSON, FiltersQuotaToJSON, } from './FiltersQuota'; +export function ReadQuotasRequestFromJSON(json) { + return ReadQuotasRequestFromJSONTyped(json, false); +} +export function ReadQuotasRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersQuotaFromJSON(json['Filters']), + }; +} +export function ReadQuotasRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersQuotaToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadQuotasResponse.d.ts b/dist/esm/models/ReadQuotasResponse.d.ts new file mode 100644 index 00000000..1ec20235 --- /dev/null +++ b/dist/esm/models/ReadQuotasResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { QuotaTypes } from './QuotaTypes'; +/** + * + * @export + * @interface ReadQuotasResponse + */ +export interface ReadQuotasResponse { + /** + * Information about one or more quotas. + * @type {Array} + * @memberof ReadQuotasResponse + */ + quotaTypes?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadQuotasResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadQuotasResponseFromJSON(json: any): ReadQuotasResponse; +export declare function ReadQuotasResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadQuotasResponse; +export declare function ReadQuotasResponseToJSON(value?: ReadQuotasResponse | null): any; diff --git a/dist/esm/models/ReadQuotasResponse.js b/dist/esm/models/ReadQuotasResponse.js new file mode 100644 index 00000000..500414c5 --- /dev/null +++ b/dist/esm/models/ReadQuotasResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { QuotaTypesFromJSON, QuotaTypesToJSON, } from './QuotaTypes'; +export function ReadQuotasResponseFromJSON(json) { + return ReadQuotasResponseFromJSONTyped(json, false); +} +export function ReadQuotasResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'quotaTypes': !exists(json, 'QuotaTypes') ? undefined : (json['QuotaTypes'].map(QuotaTypesFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadQuotasResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'QuotaTypes': value.quotaTypes === undefined ? undefined : (value.quotaTypes.map(QuotaTypesToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadRegionsRequest.d.ts b/dist/esm/models/ReadRegionsRequest.d.ts new file mode 100644 index 00000000..afd052c8 --- /dev/null +++ b/dist/esm/models/ReadRegionsRequest.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadRegionsRequest + */ +export interface ReadRegionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadRegionsRequest + */ + dryRun?: boolean; +} +export declare function ReadRegionsRequestFromJSON(json: any): ReadRegionsRequest; +export declare function ReadRegionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRegionsRequest; +export declare function ReadRegionsRequestToJSON(value?: ReadRegionsRequest | null): any; diff --git a/dist/esm/models/ReadRegionsRequest.js b/dist/esm/models/ReadRegionsRequest.js new file mode 100644 index 00000000..73d18310 --- /dev/null +++ b/dist/esm/models/ReadRegionsRequest.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadRegionsRequestFromJSON(json) { + return ReadRegionsRequestFromJSONTyped(json, false); +} +export function ReadRegionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadRegionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadRegionsResponse.d.ts b/dist/esm/models/ReadRegionsResponse.d.ts new file mode 100644 index 00000000..7d10808b --- /dev/null +++ b/dist/esm/models/ReadRegionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Region } from './Region'; +/** + * + * @export + * @interface ReadRegionsResponse + */ +export interface ReadRegionsResponse { + /** + * Information about one or more Regions. + * @type {Array} + * @memberof ReadRegionsResponse + */ + regions?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadRegionsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadRegionsResponseFromJSON(json: any): ReadRegionsResponse; +export declare function ReadRegionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRegionsResponse; +export declare function ReadRegionsResponseToJSON(value?: ReadRegionsResponse | null): any; diff --git a/dist/esm/models/ReadRegionsResponse.js b/dist/esm/models/ReadRegionsResponse.js new file mode 100644 index 00000000..07ff0880 --- /dev/null +++ b/dist/esm/models/ReadRegionsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RegionFromJSON, RegionToJSON, } from './Region'; +export function ReadRegionsResponseFromJSON(json) { + return ReadRegionsResponseFromJSONTyped(json, false); +} +export function ReadRegionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'regions': !exists(json, 'Regions') ? undefined : (json['Regions'].map(RegionFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadRegionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Regions': value.regions === undefined ? undefined : (value.regions.map(RegionToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadRouteTablesRequest.d.ts b/dist/esm/models/ReadRouteTablesRequest.d.ts new file mode 100644 index 00000000..bc47ae47 --- /dev/null +++ b/dist/esm/models/ReadRouteTablesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersRouteTable } from './FiltersRouteTable'; +/** + * + * @export + * @interface ReadRouteTablesRequest + */ +export interface ReadRouteTablesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadRouteTablesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersRouteTable} + * @memberof ReadRouteTablesRequest + */ + filters?: FiltersRouteTable; +} +export declare function ReadRouteTablesRequestFromJSON(json: any): ReadRouteTablesRequest; +export declare function ReadRouteTablesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRouteTablesRequest; +export declare function ReadRouteTablesRequestToJSON(value?: ReadRouteTablesRequest | null): any; diff --git a/dist/esm/models/ReadRouteTablesRequest.js b/dist/esm/models/ReadRouteTablesRequest.js new file mode 100644 index 00000000..ebb603cb --- /dev/null +++ b/dist/esm/models/ReadRouteTablesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersRouteTableFromJSON, FiltersRouteTableToJSON, } from './FiltersRouteTable'; +export function ReadRouteTablesRequestFromJSON(json) { + return ReadRouteTablesRequestFromJSONTyped(json, false); +} +export function ReadRouteTablesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersRouteTableFromJSON(json['Filters']), + }; +} +export function ReadRouteTablesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersRouteTableToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadRouteTablesResponse.d.ts b/dist/esm/models/ReadRouteTablesResponse.d.ts new file mode 100644 index 00000000..1e24180d --- /dev/null +++ b/dist/esm/models/ReadRouteTablesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface ReadRouteTablesResponse + */ +export interface ReadRouteTablesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadRouteTablesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more route tables. + * @type {Array} + * @memberof ReadRouteTablesResponse + */ + routeTables?: Array; +} +export declare function ReadRouteTablesResponseFromJSON(json: any): ReadRouteTablesResponse; +export declare function ReadRouteTablesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRouteTablesResponse; +export declare function ReadRouteTablesResponseToJSON(value?: ReadRouteTablesResponse | null): any; diff --git a/dist/esm/models/ReadRouteTablesResponse.js b/dist/esm/models/ReadRouteTablesResponse.js new file mode 100644 index 00000000..e6eab7ca --- /dev/null +++ b/dist/esm/models/ReadRouteTablesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RouteTableFromJSON, RouteTableToJSON, } from './RouteTable'; +export function ReadRouteTablesResponseFromJSON(json) { + return ReadRouteTablesResponseFromJSONTyped(json, false); +} +export function ReadRouteTablesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTables': !exists(json, 'RouteTables') ? undefined : (json['RouteTables'].map(RouteTableFromJSON)), + }; +} +export function ReadRouteTablesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTables': value.routeTables === undefined ? undefined : (value.routeTables.map(RouteTableToJSON)), + }; +} diff --git a/dist/esm/models/ReadSecretAccessKeyRequest.d.ts b/dist/esm/models/ReadSecretAccessKeyRequest.d.ts new file mode 100644 index 00000000..5c2a42f0 --- /dev/null +++ b/dist/esm/models/ReadSecretAccessKeyRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadSecretAccessKeyRequest + */ +export interface ReadSecretAccessKeyRequest { + /** + * The ID of the access key. + * @type {string} + * @memberof ReadSecretAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSecretAccessKeyRequest + */ + dryRun?: boolean; +} +export declare function ReadSecretAccessKeyRequestFromJSON(json: any): ReadSecretAccessKeyRequest; +export declare function ReadSecretAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecretAccessKeyRequest; +export declare function ReadSecretAccessKeyRequestToJSON(value?: ReadSecretAccessKeyRequest | null): any; diff --git a/dist/esm/models/ReadSecretAccessKeyRequest.js b/dist/esm/models/ReadSecretAccessKeyRequest.js new file mode 100644 index 00000000..fd5a7466 --- /dev/null +++ b/dist/esm/models/ReadSecretAccessKeyRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadSecretAccessKeyRequestFromJSON(json) { + return ReadSecretAccessKeyRequestFromJSONTyped(json, false); +} +export function ReadSecretAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function ReadSecretAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/ReadSecretAccessKeyResponse.d.ts b/dist/esm/models/ReadSecretAccessKeyResponse.d.ts new file mode 100644 index 00000000..d2fcd8d9 --- /dev/null +++ b/dist/esm/models/ReadSecretAccessKeyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKeySecretKey } from './AccessKeySecretKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadSecretAccessKeyResponse + */ +export interface ReadSecretAccessKeyResponse { + /** + * + * @type {AccessKeySecretKey} + * @memberof ReadSecretAccessKeyResponse + */ + accessKey?: AccessKeySecretKey; + /** + * + * @type {ModelResponseContext} + * @memberof ReadSecretAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadSecretAccessKeyResponseFromJSON(json: any): ReadSecretAccessKeyResponse; +export declare function ReadSecretAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecretAccessKeyResponse; +export declare function ReadSecretAccessKeyResponseToJSON(value?: ReadSecretAccessKeyResponse | null): any; diff --git a/dist/esm/models/ReadSecretAccessKeyResponse.js b/dist/esm/models/ReadSecretAccessKeyResponse.js new file mode 100644 index 00000000..b4f76ce2 --- /dev/null +++ b/dist/esm/models/ReadSecretAccessKeyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccessKeySecretKeyFromJSON, AccessKeySecretKeyToJSON, } from './AccessKeySecretKey'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadSecretAccessKeyResponseFromJSON(json) { + return ReadSecretAccessKeyResponseFromJSONTyped(json, false); +} +export function ReadSecretAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKey': !exists(json, 'AccessKey') ? undefined : AccessKeySecretKeyFromJSON(json['AccessKey']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadSecretAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKey': AccessKeySecretKeyToJSON(value.accessKey), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadSecurityGroupsRequest.d.ts b/dist/esm/models/ReadSecurityGroupsRequest.d.ts new file mode 100644 index 00000000..d742a9af --- /dev/null +++ b/dist/esm/models/ReadSecurityGroupsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSecurityGroup } from './FiltersSecurityGroup'; +/** + * + * @export + * @interface ReadSecurityGroupsRequest + */ +export interface ReadSecurityGroupsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSecurityGroupsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSecurityGroup} + * @memberof ReadSecurityGroupsRequest + */ + filters?: FiltersSecurityGroup; +} +export declare function ReadSecurityGroupsRequestFromJSON(json: any): ReadSecurityGroupsRequest; +export declare function ReadSecurityGroupsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecurityGroupsRequest; +export declare function ReadSecurityGroupsRequestToJSON(value?: ReadSecurityGroupsRequest | null): any; diff --git a/dist/esm/models/ReadSecurityGroupsRequest.js b/dist/esm/models/ReadSecurityGroupsRequest.js new file mode 100644 index 00000000..d65dd6aa --- /dev/null +++ b/dist/esm/models/ReadSecurityGroupsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersSecurityGroupFromJSON, FiltersSecurityGroupToJSON, } from './FiltersSecurityGroup'; +export function ReadSecurityGroupsRequestFromJSON(json) { + return ReadSecurityGroupsRequestFromJSONTyped(json, false); +} +export function ReadSecurityGroupsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSecurityGroupFromJSON(json['Filters']), + }; +} +export function ReadSecurityGroupsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersSecurityGroupToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadSecurityGroupsResponse.d.ts b/dist/esm/models/ReadSecurityGroupsResponse.d.ts new file mode 100644 index 00000000..0dfe5814 --- /dev/null +++ b/dist/esm/models/ReadSecurityGroupsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SecurityGroup } from './SecurityGroup'; +/** + * + * @export + * @interface ReadSecurityGroupsResponse + */ +export interface ReadSecurityGroupsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSecurityGroupsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more security groups. + * @type {Array} + * @memberof ReadSecurityGroupsResponse + */ + securityGroups?: Array; +} +export declare function ReadSecurityGroupsResponseFromJSON(json: any): ReadSecurityGroupsResponse; +export declare function ReadSecurityGroupsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecurityGroupsResponse; +export declare function ReadSecurityGroupsResponseToJSON(value?: ReadSecurityGroupsResponse | null): any; diff --git a/dist/esm/models/ReadSecurityGroupsResponse.js b/dist/esm/models/ReadSecurityGroupsResponse.js new file mode 100644 index 00000000..16cbaa13 --- /dev/null +++ b/dist/esm/models/ReadSecurityGroupsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SecurityGroupFromJSON, SecurityGroupToJSON, } from './SecurityGroup'; +export function ReadSecurityGroupsResponseFromJSON(json) { + return ReadSecurityGroupsResponseFromJSONTyped(json, false); +} +export function ReadSecurityGroupsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupFromJSON)), + }; +} +export function ReadSecurityGroupsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupToJSON)), + }; +} diff --git a/dist/esm/models/ReadServerCertificatesRequest.d.ts b/dist/esm/models/ReadServerCertificatesRequest.d.ts new file mode 100644 index 00000000..3f911710 --- /dev/null +++ b/dist/esm/models/ReadServerCertificatesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersServerCertificate } from './FiltersServerCertificate'; +/** + * + * @export + * @interface ReadServerCertificatesRequest + */ +export interface ReadServerCertificatesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadServerCertificatesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersServerCertificate} + * @memberof ReadServerCertificatesRequest + */ + filters?: FiltersServerCertificate; +} +export declare function ReadServerCertificatesRequestFromJSON(json: any): ReadServerCertificatesRequest; +export declare function ReadServerCertificatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadServerCertificatesRequest; +export declare function ReadServerCertificatesRequestToJSON(value?: ReadServerCertificatesRequest | null): any; diff --git a/dist/esm/models/ReadServerCertificatesRequest.js b/dist/esm/models/ReadServerCertificatesRequest.js new file mode 100644 index 00000000..066ce649 --- /dev/null +++ b/dist/esm/models/ReadServerCertificatesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersServerCertificateFromJSON, FiltersServerCertificateToJSON, } from './FiltersServerCertificate'; +export function ReadServerCertificatesRequestFromJSON(json) { + return ReadServerCertificatesRequestFromJSONTyped(json, false); +} +export function ReadServerCertificatesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersServerCertificateFromJSON(json['Filters']), + }; +} +export function ReadServerCertificatesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersServerCertificateToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadServerCertificatesResponse.d.ts b/dist/esm/models/ReadServerCertificatesResponse.d.ts new file mode 100644 index 00000000..36982853 --- /dev/null +++ b/dist/esm/models/ReadServerCertificatesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ServerCertificate } from './ServerCertificate'; +/** + * + * @export + * @interface ReadServerCertificatesResponse + */ +export interface ReadServerCertificatesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadServerCertificatesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more server certificates. + * @type {Array} + * @memberof ReadServerCertificatesResponse + */ + serverCertificates?: Array; +} +export declare function ReadServerCertificatesResponseFromJSON(json: any): ReadServerCertificatesResponse; +export declare function ReadServerCertificatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadServerCertificatesResponse; +export declare function ReadServerCertificatesResponseToJSON(value?: ReadServerCertificatesResponse | null): any; diff --git a/dist/esm/models/ReadServerCertificatesResponse.js b/dist/esm/models/ReadServerCertificatesResponse.js new file mode 100644 index 00000000..a48ecbf3 --- /dev/null +++ b/dist/esm/models/ReadServerCertificatesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { ServerCertificateFromJSON, ServerCertificateToJSON, } from './ServerCertificate'; +export function ReadServerCertificatesResponseFromJSON(json) { + return ReadServerCertificatesResponseFromJSONTyped(json, false); +} +export function ReadServerCertificatesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'serverCertificates': !exists(json, 'ServerCertificates') ? undefined : (json['ServerCertificates'].map(ServerCertificateFromJSON)), + }; +} +export function ReadServerCertificatesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'ServerCertificates': value.serverCertificates === undefined ? undefined : (value.serverCertificates.map(ServerCertificateToJSON)), + }; +} diff --git a/dist/esm/models/ReadSnapshotExportTasksRequest.d.ts b/dist/esm/models/ReadSnapshotExportTasksRequest.d.ts new file mode 100644 index 00000000..a49a2d36 --- /dev/null +++ b/dist/esm/models/ReadSnapshotExportTasksRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersExportTask } from './FiltersExportTask'; +/** + * + * @export + * @interface ReadSnapshotExportTasksRequest + */ +export interface ReadSnapshotExportTasksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSnapshotExportTasksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersExportTask} + * @memberof ReadSnapshotExportTasksRequest + */ + filters?: FiltersExportTask; +} +export declare function ReadSnapshotExportTasksRequestFromJSON(json: any): ReadSnapshotExportTasksRequest; +export declare function ReadSnapshotExportTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotExportTasksRequest; +export declare function ReadSnapshotExportTasksRequestToJSON(value?: ReadSnapshotExportTasksRequest | null): any; diff --git a/dist/esm/models/ReadSnapshotExportTasksRequest.js b/dist/esm/models/ReadSnapshotExportTasksRequest.js new file mode 100644 index 00000000..1e116655 --- /dev/null +++ b/dist/esm/models/ReadSnapshotExportTasksRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersExportTaskFromJSON, FiltersExportTaskToJSON, } from './FiltersExportTask'; +export function ReadSnapshotExportTasksRequestFromJSON(json) { + return ReadSnapshotExportTasksRequestFromJSONTyped(json, false); +} +export function ReadSnapshotExportTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersExportTaskFromJSON(json['Filters']), + }; +} +export function ReadSnapshotExportTasksRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersExportTaskToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadSnapshotExportTasksResponse.d.ts b/dist/esm/models/ReadSnapshotExportTasksResponse.d.ts new file mode 100644 index 00000000..6e3865b3 --- /dev/null +++ b/dist/esm/models/ReadSnapshotExportTasksResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { SnapshotExportTask } from './SnapshotExportTask'; +/** + * + * @export + * @interface ReadSnapshotExportTasksResponse + */ +export interface ReadSnapshotExportTasksResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSnapshotExportTasksResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more snapshot export tasks. + * @type {Array} + * @memberof ReadSnapshotExportTasksResponse + */ + snapshotExportTasks?: Array; +} +export declare function ReadSnapshotExportTasksResponseFromJSON(json: any): ReadSnapshotExportTasksResponse; +export declare function ReadSnapshotExportTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotExportTasksResponse; +export declare function ReadSnapshotExportTasksResponseToJSON(value?: ReadSnapshotExportTasksResponse | null): any; diff --git a/dist/esm/models/ReadSnapshotExportTasksResponse.js b/dist/esm/models/ReadSnapshotExportTasksResponse.js new file mode 100644 index 00000000..eef5a2fc --- /dev/null +++ b/dist/esm/models/ReadSnapshotExportTasksResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SnapshotExportTaskFromJSON, SnapshotExportTaskToJSON, } from './SnapshotExportTask'; +export function ReadSnapshotExportTasksResponseFromJSON(json) { + return ReadSnapshotExportTasksResponseFromJSONTyped(json, false); +} +export function ReadSnapshotExportTasksResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshotExportTasks': !exists(json, 'SnapshotExportTasks') ? undefined : (json['SnapshotExportTasks'].map(SnapshotExportTaskFromJSON)), + }; +} +export function ReadSnapshotExportTasksResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SnapshotExportTasks': value.snapshotExportTasks === undefined ? undefined : (value.snapshotExportTasks.map(SnapshotExportTaskToJSON)), + }; +} diff --git a/dist/esm/models/ReadSnapshotsRequest.d.ts b/dist/esm/models/ReadSnapshotsRequest.d.ts new file mode 100644 index 00000000..dcac53bc --- /dev/null +++ b/dist/esm/models/ReadSnapshotsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSnapshot } from './FiltersSnapshot'; +/** + * + * @export + * @interface ReadSnapshotsRequest + */ +export interface ReadSnapshotsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSnapshotsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSnapshot} + * @memberof ReadSnapshotsRequest + */ + filters?: FiltersSnapshot; +} +export declare function ReadSnapshotsRequestFromJSON(json: any): ReadSnapshotsRequest; +export declare function ReadSnapshotsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotsRequest; +export declare function ReadSnapshotsRequestToJSON(value?: ReadSnapshotsRequest | null): any; diff --git a/dist/esm/models/ReadSnapshotsRequest.js b/dist/esm/models/ReadSnapshotsRequest.js new file mode 100644 index 00000000..0fa670f1 --- /dev/null +++ b/dist/esm/models/ReadSnapshotsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersSnapshotFromJSON, FiltersSnapshotToJSON, } from './FiltersSnapshot'; +export function ReadSnapshotsRequestFromJSON(json) { + return ReadSnapshotsRequestFromJSONTyped(json, false); +} +export function ReadSnapshotsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSnapshotFromJSON(json['Filters']), + }; +} +export function ReadSnapshotsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersSnapshotToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadSnapshotsResponse.d.ts b/dist/esm/models/ReadSnapshotsResponse.d.ts new file mode 100644 index 00000000..677065d8 --- /dev/null +++ b/dist/esm/models/ReadSnapshotsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Snapshot } from './Snapshot'; +/** + * + * @export + * @interface ReadSnapshotsResponse + */ +export interface ReadSnapshotsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSnapshotsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more snapshots and their permissions. + * @type {Array} + * @memberof ReadSnapshotsResponse + */ + snapshots?: Array; +} +export declare function ReadSnapshotsResponseFromJSON(json: any): ReadSnapshotsResponse; +export declare function ReadSnapshotsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotsResponse; +export declare function ReadSnapshotsResponseToJSON(value?: ReadSnapshotsResponse | null): any; diff --git a/dist/esm/models/ReadSnapshotsResponse.js b/dist/esm/models/ReadSnapshotsResponse.js new file mode 100644 index 00000000..98a95f6c --- /dev/null +++ b/dist/esm/models/ReadSnapshotsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot'; +export function ReadSnapshotsResponseFromJSON(json) { + return ReadSnapshotsResponseFromJSONTyped(json, false); +} +export function ReadSnapshotsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshots': !exists(json, 'Snapshots') ? undefined : (json['Snapshots'].map(SnapshotFromJSON)), + }; +} +export function ReadSnapshotsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Snapshots': value.snapshots === undefined ? undefined : (value.snapshots.map(SnapshotToJSON)), + }; +} diff --git a/dist/esm/models/ReadSubnetsRequest.d.ts b/dist/esm/models/ReadSubnetsRequest.d.ts new file mode 100644 index 00000000..ed839c91 --- /dev/null +++ b/dist/esm/models/ReadSubnetsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSubnet } from './FiltersSubnet'; +/** + * + * @export + * @interface ReadSubnetsRequest + */ +export interface ReadSubnetsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSubnetsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSubnet} + * @memberof ReadSubnetsRequest + */ + filters?: FiltersSubnet; +} +export declare function ReadSubnetsRequestFromJSON(json: any): ReadSubnetsRequest; +export declare function ReadSubnetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubnetsRequest; +export declare function ReadSubnetsRequestToJSON(value?: ReadSubnetsRequest | null): any; diff --git a/dist/esm/models/ReadSubnetsRequest.js b/dist/esm/models/ReadSubnetsRequest.js new file mode 100644 index 00000000..7eddc152 --- /dev/null +++ b/dist/esm/models/ReadSubnetsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersSubnetFromJSON, FiltersSubnetToJSON, } from './FiltersSubnet'; +export function ReadSubnetsRequestFromJSON(json) { + return ReadSubnetsRequestFromJSONTyped(json, false); +} +export function ReadSubnetsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSubnetFromJSON(json['Filters']), + }; +} +export function ReadSubnetsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersSubnetToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadSubnetsResponse.d.ts b/dist/esm/models/ReadSubnetsResponse.d.ts new file mode 100644 index 00000000..55a5bf72 --- /dev/null +++ b/dist/esm/models/ReadSubnetsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subnet } from './Subnet'; +/** + * + * @export + * @interface ReadSubnetsResponse + */ +export interface ReadSubnetsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSubnetsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more Subnets. + * @type {Array} + * @memberof ReadSubnetsResponse + */ + subnets?: Array; +} +export declare function ReadSubnetsResponseFromJSON(json: any): ReadSubnetsResponse; +export declare function ReadSubnetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubnetsResponse; +export declare function ReadSubnetsResponseToJSON(value?: ReadSubnetsResponse | null): any; diff --git a/dist/esm/models/ReadSubnetsResponse.js b/dist/esm/models/ReadSubnetsResponse.js new file mode 100644 index 00000000..1eba97a6 --- /dev/null +++ b/dist/esm/models/ReadSubnetsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SubnetFromJSON, SubnetToJSON, } from './Subnet'; +export function ReadSubnetsResponseFromJSON(json) { + return ReadSubnetsResponseFromJSONTyped(json, false); +} +export function ReadSubnetsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subnets': !exists(json, 'Subnets') ? undefined : (json['Subnets'].map(SubnetFromJSON)), + }; +} +export function ReadSubnetsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subnets': value.subnets === undefined ? undefined : (value.subnets.map(SubnetToJSON)), + }; +} diff --git a/dist/esm/models/ReadSubregionsRequest.d.ts b/dist/esm/models/ReadSubregionsRequest.d.ts new file mode 100644 index 00000000..2f1ecc35 --- /dev/null +++ b/dist/esm/models/ReadSubregionsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersSubregion } from './FiltersSubregion'; +/** + * + * @export + * @interface ReadSubregionsRequest + */ +export interface ReadSubregionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSubregionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSubregion} + * @memberof ReadSubregionsRequest + */ + filters?: FiltersSubregion; +} +export declare function ReadSubregionsRequestFromJSON(json: any): ReadSubregionsRequest; +export declare function ReadSubregionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubregionsRequest; +export declare function ReadSubregionsRequestToJSON(value?: ReadSubregionsRequest | null): any; diff --git a/dist/esm/models/ReadSubregionsRequest.js b/dist/esm/models/ReadSubregionsRequest.js new file mode 100644 index 00000000..5b8adba0 --- /dev/null +++ b/dist/esm/models/ReadSubregionsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersSubregionFromJSON, FiltersSubregionToJSON, } from './FiltersSubregion'; +export function ReadSubregionsRequestFromJSON(json) { + return ReadSubregionsRequestFromJSONTyped(json, false); +} +export function ReadSubregionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSubregionFromJSON(json['Filters']), + }; +} +export function ReadSubregionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersSubregionToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadSubregionsResponse.d.ts b/dist/esm/models/ReadSubregionsResponse.d.ts new file mode 100644 index 00000000..0fda14a3 --- /dev/null +++ b/dist/esm/models/ReadSubregionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subregion } from './Subregion'; +/** + * + * @export + * @interface ReadSubregionsResponse + */ +export interface ReadSubregionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSubregionsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more Subregions. + * @type {Array} + * @memberof ReadSubregionsResponse + */ + subregions?: Array; +} +export declare function ReadSubregionsResponseFromJSON(json: any): ReadSubregionsResponse; +export declare function ReadSubregionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubregionsResponse; +export declare function ReadSubregionsResponseToJSON(value?: ReadSubregionsResponse | null): any; diff --git a/dist/esm/models/ReadSubregionsResponse.js b/dist/esm/models/ReadSubregionsResponse.js new file mode 100644 index 00000000..05490e61 --- /dev/null +++ b/dist/esm/models/ReadSubregionsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SubregionFromJSON, SubregionToJSON, } from './Subregion'; +export function ReadSubregionsResponseFromJSON(json) { + return ReadSubregionsResponseFromJSONTyped(json, false); +} +export function ReadSubregionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subregions': !exists(json, 'Subregions') ? undefined : (json['Subregions'].map(SubregionFromJSON)), + }; +} +export function ReadSubregionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subregions': value.subregions === undefined ? undefined : (value.subregions.map(SubregionToJSON)), + }; +} diff --git a/dist/esm/models/ReadTagsRequest.d.ts b/dist/esm/models/ReadTagsRequest.d.ts new file mode 100644 index 00000000..f2cc5403 --- /dev/null +++ b/dist/esm/models/ReadTagsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersTag } from './FiltersTag'; +/** + * + * @export + * @interface ReadTagsRequest + */ +export interface ReadTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadTagsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersTag} + * @memberof ReadTagsRequest + */ + filters?: FiltersTag; +} +export declare function ReadTagsRequestFromJSON(json: any): ReadTagsRequest; +export declare function ReadTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadTagsRequest; +export declare function ReadTagsRequestToJSON(value?: ReadTagsRequest | null): any; diff --git a/dist/esm/models/ReadTagsRequest.js b/dist/esm/models/ReadTagsRequest.js new file mode 100644 index 00000000..00bd8707 --- /dev/null +++ b/dist/esm/models/ReadTagsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersTagFromJSON, FiltersTagToJSON, } from './FiltersTag'; +export function ReadTagsRequestFromJSON(json) { + return ReadTagsRequestFromJSONTyped(json, false); +} +export function ReadTagsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersTagFromJSON(json['Filters']), + }; +} +export function ReadTagsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersTagToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadTagsResponse.d.ts b/dist/esm/models/ReadTagsResponse.d.ts new file mode 100644 index 00000000..9e730ab2 --- /dev/null +++ b/dist/esm/models/ReadTagsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Tag } from './Tag'; +/** + * + * @export + * @interface ReadTagsResponse + */ +export interface ReadTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadTagsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more tags. + * @type {Array} + * @memberof ReadTagsResponse + */ + tags?: Array; +} +export declare function ReadTagsResponseFromJSON(json: any): ReadTagsResponse; +export declare function ReadTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadTagsResponse; +export declare function ReadTagsResponseToJSON(value?: ReadTagsResponse | null): any; diff --git a/dist/esm/models/ReadTagsResponse.js b/dist/esm/models/ReadTagsResponse.js new file mode 100644 index 00000000..550b025c --- /dev/null +++ b/dist/esm/models/ReadTagsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { TagFromJSON, TagToJSON, } from './Tag'; +export function ReadTagsResponseFromJSON(json) { + return ReadTagsResponseFromJSONTyped(json, false); +} +export function ReadTagsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(TagFromJSON)), + }; +} +export function ReadTagsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(TagToJSON)), + }; +} diff --git a/dist/esm/models/ReadVirtualGatewaysRequest.d.ts b/dist/esm/models/ReadVirtualGatewaysRequest.d.ts new file mode 100644 index 00000000..867d5abe --- /dev/null +++ b/dist/esm/models/ReadVirtualGatewaysRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVirtualGateway } from './FiltersVirtualGateway'; +/** + * + * @export + * @interface ReadVirtualGatewaysRequest + */ +export interface ReadVirtualGatewaysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVirtualGatewaysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVirtualGateway} + * @memberof ReadVirtualGatewaysRequest + */ + filters?: FiltersVirtualGateway; +} +export declare function ReadVirtualGatewaysRequestFromJSON(json: any): ReadVirtualGatewaysRequest; +export declare function ReadVirtualGatewaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVirtualGatewaysRequest; +export declare function ReadVirtualGatewaysRequestToJSON(value?: ReadVirtualGatewaysRequest | null): any; diff --git a/dist/esm/models/ReadVirtualGatewaysRequest.js b/dist/esm/models/ReadVirtualGatewaysRequest.js new file mode 100644 index 00000000..9d32274d --- /dev/null +++ b/dist/esm/models/ReadVirtualGatewaysRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersVirtualGatewayFromJSON, FiltersVirtualGatewayToJSON, } from './FiltersVirtualGateway'; +export function ReadVirtualGatewaysRequestFromJSON(json) { + return ReadVirtualGatewaysRequestFromJSONTyped(json, false); +} +export function ReadVirtualGatewaysRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVirtualGatewayFromJSON(json['Filters']), + }; +} +export function ReadVirtualGatewaysRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersVirtualGatewayToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadVirtualGatewaysResponse.d.ts b/dist/esm/models/ReadVirtualGatewaysResponse.d.ts new file mode 100644 index 00000000..06cdcc34 --- /dev/null +++ b/dist/esm/models/ReadVirtualGatewaysResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VirtualGateway } from './VirtualGateway'; +/** + * + * @export + * @interface ReadVirtualGatewaysResponse + */ +export interface ReadVirtualGatewaysResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVirtualGatewaysResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more virtual gateways. + * @type {Array} + * @memberof ReadVirtualGatewaysResponse + */ + virtualGateways?: Array; +} +export declare function ReadVirtualGatewaysResponseFromJSON(json: any): ReadVirtualGatewaysResponse; +export declare function ReadVirtualGatewaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVirtualGatewaysResponse; +export declare function ReadVirtualGatewaysResponseToJSON(value?: ReadVirtualGatewaysResponse | null): any; diff --git a/dist/esm/models/ReadVirtualGatewaysResponse.js b/dist/esm/models/ReadVirtualGatewaysResponse.js new file mode 100644 index 00000000..fab45340 --- /dev/null +++ b/dist/esm/models/ReadVirtualGatewaysResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VirtualGatewayFromJSON, VirtualGatewayToJSON, } from './VirtualGateway'; +export function ReadVirtualGatewaysResponseFromJSON(json) { + return ReadVirtualGatewaysResponseFromJSONTyped(json, false); +} +export function ReadVirtualGatewaysResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'virtualGateways': !exists(json, 'VirtualGateways') ? undefined : (json['VirtualGateways'].map(VirtualGatewayFromJSON)), + }; +} +export function ReadVirtualGatewaysResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VirtualGateways': value.virtualGateways === undefined ? undefined : (value.virtualGateways.map(VirtualGatewayToJSON)), + }; +} diff --git a/dist/esm/models/ReadVmTypesRequest.d.ts b/dist/esm/models/ReadVmTypesRequest.d.ts new file mode 100644 index 00000000..f5cda9f9 --- /dev/null +++ b/dist/esm/models/ReadVmTypesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVmType } from './FiltersVmType'; +/** + * + * @export + * @interface ReadVmTypesRequest + */ +export interface ReadVmTypesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmTypesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVmType} + * @memberof ReadVmTypesRequest + */ + filters?: FiltersVmType; +} +export declare function ReadVmTypesRequestFromJSON(json: any): ReadVmTypesRequest; +export declare function ReadVmTypesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmTypesRequest; +export declare function ReadVmTypesRequestToJSON(value?: ReadVmTypesRequest | null): any; diff --git a/dist/esm/models/ReadVmTypesRequest.js b/dist/esm/models/ReadVmTypesRequest.js new file mode 100644 index 00000000..175704b8 --- /dev/null +++ b/dist/esm/models/ReadVmTypesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersVmTypeFromJSON, FiltersVmTypeToJSON, } from './FiltersVmType'; +export function ReadVmTypesRequestFromJSON(json) { + return ReadVmTypesRequestFromJSONTyped(json, false); +} +export function ReadVmTypesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVmTypeFromJSON(json['Filters']), + }; +} +export function ReadVmTypesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersVmTypeToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadVmTypesResponse.d.ts b/dist/esm/models/ReadVmTypesResponse.d.ts new file mode 100644 index 00000000..ff6b77a3 --- /dev/null +++ b/dist/esm/models/ReadVmTypesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmType } from './VmType'; +/** + * + * @export + * @interface ReadVmTypesResponse + */ +export interface ReadVmTypesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmTypesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VM types. + * @type {Array} + * @memberof ReadVmTypesResponse + */ + vmTypes?: Array; +} +export declare function ReadVmTypesResponseFromJSON(json: any): ReadVmTypesResponse; +export declare function ReadVmTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmTypesResponse; +export declare function ReadVmTypesResponseToJSON(value?: ReadVmTypesResponse | null): any; diff --git a/dist/esm/models/ReadVmTypesResponse.js b/dist/esm/models/ReadVmTypesResponse.js new file mode 100644 index 00000000..a72f9e04 --- /dev/null +++ b/dist/esm/models/ReadVmTypesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmTypeFromJSON, VmTypeToJSON, } from './VmType'; +export function ReadVmTypesResponseFromJSON(json) { + return ReadVmTypesResponseFromJSONTyped(json, false); +} +export function ReadVmTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmTypes': !exists(json, 'VmTypes') ? undefined : (json['VmTypes'].map(VmTypeFromJSON)), + }; +} +export function ReadVmTypesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmTypes': value.vmTypes === undefined ? undefined : (value.vmTypes.map(VmTypeToJSON)), + }; +} diff --git a/dist/esm/models/ReadVmsHealthRequest.d.ts b/dist/esm/models/ReadVmsHealthRequest.d.ts new file mode 100644 index 00000000..7051ed7d --- /dev/null +++ b/dist/esm/models/ReadVmsHealthRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReadVmsHealthRequest + */ +export interface ReadVmsHealthRequest { + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof ReadVmsHealthRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsHealthRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof ReadVmsHealthRequest + */ + loadBalancerName: string; +} +export declare function ReadVmsHealthRequestFromJSON(json: any): ReadVmsHealthRequest; +export declare function ReadVmsHealthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsHealthRequest; +export declare function ReadVmsHealthRequestToJSON(value?: ReadVmsHealthRequest | null): any; diff --git a/dist/esm/models/ReadVmsHealthRequest.js b/dist/esm/models/ReadVmsHealthRequest.js new file mode 100644 index 00000000..3aaa0243 --- /dev/null +++ b/dist/esm/models/ReadVmsHealthRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ReadVmsHealthRequestFromJSON(json) { + return ReadVmsHealthRequestFromJSONTyped(json, false); +} +export function ReadVmsHealthRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function ReadVmsHealthRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/ReadVmsHealthResponse.d.ts b/dist/esm/models/ReadVmsHealthResponse.d.ts new file mode 100644 index 00000000..e0fd9b50 --- /dev/null +++ b/dist/esm/models/ReadVmsHealthResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BackendVmHealth } from './BackendVmHealth'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ReadVmsHealthResponse + */ +export interface ReadVmsHealthResponse { + /** + * Information about the health of one or more back-end VMs. + * @type {Array} + * @memberof ReadVmsHealthResponse + */ + backendVmHealth?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsHealthResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ReadVmsHealthResponseFromJSON(json: any): ReadVmsHealthResponse; +export declare function ReadVmsHealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsHealthResponse; +export declare function ReadVmsHealthResponseToJSON(value?: ReadVmsHealthResponse | null): any; diff --git a/dist/esm/models/ReadVmsHealthResponse.js b/dist/esm/models/ReadVmsHealthResponse.js new file mode 100644 index 00000000..c0a52bee --- /dev/null +++ b/dist/esm/models/ReadVmsHealthResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BackendVmHealthFromJSON, BackendVmHealthToJSON, } from './BackendVmHealth'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ReadVmsHealthResponseFromJSON(json) { + return ReadVmsHealthResponseFromJSONTyped(json, false); +} +export function ReadVmsHealthResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmHealth': !exists(json, 'BackendVmHealth') ? undefined : (json['BackendVmHealth'].map(BackendVmHealthFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ReadVmsHealthResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmHealth': value.backendVmHealth === undefined ? undefined : (value.backendVmHealth.map(BackendVmHealthToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ReadVmsRequest.d.ts b/dist/esm/models/ReadVmsRequest.d.ts new file mode 100644 index 00000000..5122b80c --- /dev/null +++ b/dist/esm/models/ReadVmsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVm } from './FiltersVm'; +/** + * + * @export + * @interface ReadVmsRequest + */ +export interface ReadVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVm} + * @memberof ReadVmsRequest + */ + filters?: FiltersVm; +} +export declare function ReadVmsRequestFromJSON(json: any): ReadVmsRequest; +export declare function ReadVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsRequest; +export declare function ReadVmsRequestToJSON(value?: ReadVmsRequest | null): any; diff --git a/dist/esm/models/ReadVmsRequest.js b/dist/esm/models/ReadVmsRequest.js new file mode 100644 index 00000000..718e045f --- /dev/null +++ b/dist/esm/models/ReadVmsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersVmFromJSON, FiltersVmToJSON, } from './FiltersVm'; +export function ReadVmsRequestFromJSON(json) { + return ReadVmsRequestFromJSONTyped(json, false); +} +export function ReadVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVmFromJSON(json['Filters']), + }; +} +export function ReadVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersVmToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadVmsResponse.d.ts b/dist/esm/models/ReadVmsResponse.d.ts new file mode 100644 index 00000000..7ef513bd --- /dev/null +++ b/dist/esm/models/ReadVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Vm } from './Vm'; +/** + * + * @export + * @interface ReadVmsResponse + */ +export interface ReadVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VMs. + * @type {Array} + * @memberof ReadVmsResponse + */ + vms?: Array; +} +export declare function ReadVmsResponseFromJSON(json: any): ReadVmsResponse; +export declare function ReadVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsResponse; +export declare function ReadVmsResponseToJSON(value?: ReadVmsResponse | null): any; diff --git a/dist/esm/models/ReadVmsResponse.js b/dist/esm/models/ReadVmsResponse.js new file mode 100644 index 00000000..a159f6aa --- /dev/null +++ b/dist/esm/models/ReadVmsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmFromJSON, VmToJSON, } from './Vm'; +export function ReadVmsResponseFromJSON(json) { + return ReadVmsResponseFromJSONTyped(json, false); +} +export function ReadVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : (json['Vms'].map(VmFromJSON)), + }; +} +export function ReadVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmToJSON)), + }; +} diff --git a/dist/esm/models/ReadVmsStateRequest.d.ts b/dist/esm/models/ReadVmsStateRequest.d.ts new file mode 100644 index 00000000..c5eae100 --- /dev/null +++ b/dist/esm/models/ReadVmsStateRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVmsState } from './FiltersVmsState'; +/** + * + * @export + * @interface ReadVmsStateRequest + */ +export interface ReadVmsStateRequest { + /** + * If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs. + * @type {boolean} + * @memberof ReadVmsStateRequest + */ + allVms?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsStateRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVmsState} + * @memberof ReadVmsStateRequest + */ + filters?: FiltersVmsState; +} +export declare function ReadVmsStateRequestFromJSON(json: any): ReadVmsStateRequest; +export declare function ReadVmsStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsStateRequest; +export declare function ReadVmsStateRequestToJSON(value?: ReadVmsStateRequest | null): any; diff --git a/dist/esm/models/ReadVmsStateRequest.js b/dist/esm/models/ReadVmsStateRequest.js new file mode 100644 index 00000000..928522de --- /dev/null +++ b/dist/esm/models/ReadVmsStateRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersVmsStateFromJSON, FiltersVmsStateToJSON, } from './FiltersVmsState'; +export function ReadVmsStateRequestFromJSON(json) { + return ReadVmsStateRequestFromJSONTyped(json, false); +} +export function ReadVmsStateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'allVms': !exists(json, 'AllVms') ? undefined : json['AllVms'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVmsStateFromJSON(json['Filters']), + }; +} +export function ReadVmsStateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AllVms': value.allVms, + 'DryRun': value.dryRun, + 'Filters': FiltersVmsStateToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadVmsStateResponse.d.ts b/dist/esm/models/ReadVmsStateResponse.d.ts new file mode 100644 index 00000000..ba0ce17d --- /dev/null +++ b/dist/esm/models/ReadVmsStateResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmStates } from './VmStates'; +/** + * + * @export + * @interface ReadVmsStateResponse + */ +export interface ReadVmsStateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsStateResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VM states. + * @type {Array} + * @memberof ReadVmsStateResponse + */ + vmStates?: Array; +} +export declare function ReadVmsStateResponseFromJSON(json: any): ReadVmsStateResponse; +export declare function ReadVmsStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsStateResponse; +export declare function ReadVmsStateResponseToJSON(value?: ReadVmsStateResponse | null): any; diff --git a/dist/esm/models/ReadVmsStateResponse.js b/dist/esm/models/ReadVmsStateResponse.js new file mode 100644 index 00000000..6e1d0ae3 --- /dev/null +++ b/dist/esm/models/ReadVmsStateResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmStatesFromJSON, VmStatesToJSON, } from './VmStates'; +export function ReadVmsStateResponseFromJSON(json) { + return ReadVmsStateResponseFromJSONTyped(json, false); +} +export function ReadVmsStateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmStates': !exists(json, 'VmStates') ? undefined : (json['VmStates'].map(VmStatesFromJSON)), + }; +} +export function ReadVmsStateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmStates': value.vmStates === undefined ? undefined : (value.vmStates.map(VmStatesToJSON)), + }; +} diff --git a/dist/esm/models/ReadVolumesRequest.d.ts b/dist/esm/models/ReadVolumesRequest.d.ts new file mode 100644 index 00000000..9bf5abc2 --- /dev/null +++ b/dist/esm/models/ReadVolumesRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVolume } from './FiltersVolume'; +/** + * + * @export + * @interface ReadVolumesRequest + */ +export interface ReadVolumesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVolumesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVolume} + * @memberof ReadVolumesRequest + */ + filters?: FiltersVolume; +} +export declare function ReadVolumesRequestFromJSON(json: any): ReadVolumesRequest; +export declare function ReadVolumesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVolumesRequest; +export declare function ReadVolumesRequestToJSON(value?: ReadVolumesRequest | null): any; diff --git a/dist/esm/models/ReadVolumesRequest.js b/dist/esm/models/ReadVolumesRequest.js new file mode 100644 index 00000000..e7d106d2 --- /dev/null +++ b/dist/esm/models/ReadVolumesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersVolumeFromJSON, FiltersVolumeToJSON, } from './FiltersVolume'; +export function ReadVolumesRequestFromJSON(json) { + return ReadVolumesRequestFromJSONTyped(json, false); +} +export function ReadVolumesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVolumeFromJSON(json['Filters']), + }; +} +export function ReadVolumesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersVolumeToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadVolumesResponse.d.ts b/dist/esm/models/ReadVolumesResponse.d.ts new file mode 100644 index 00000000..64f18baa --- /dev/null +++ b/dist/esm/models/ReadVolumesResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Volume } from './Volume'; +/** + * + * @export + * @interface ReadVolumesResponse + */ +export interface ReadVolumesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVolumesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more volumes. + * @type {Array} + * @memberof ReadVolumesResponse + */ + volumes?: Array; +} +export declare function ReadVolumesResponseFromJSON(json: any): ReadVolumesResponse; +export declare function ReadVolumesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVolumesResponse; +export declare function ReadVolumesResponseToJSON(value?: ReadVolumesResponse | null): any; diff --git a/dist/esm/models/ReadVolumesResponse.js b/dist/esm/models/ReadVolumesResponse.js new file mode 100644 index 00000000..20584535 --- /dev/null +++ b/dist/esm/models/ReadVolumesResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VolumeFromJSON, VolumeToJSON, } from './Volume'; +export function ReadVolumesResponseFromJSON(json) { + return ReadVolumesResponseFromJSONTyped(json, false); +} +export function ReadVolumesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'volumes': !exists(json, 'Volumes') ? undefined : (json['Volumes'].map(VolumeFromJSON)), + }; +} +export function ReadVolumesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Volumes': value.volumes === undefined ? undefined : (value.volumes.map(VolumeToJSON)), + }; +} diff --git a/dist/esm/models/ReadVpnConnectionsRequest.d.ts b/dist/esm/models/ReadVpnConnectionsRequest.d.ts new file mode 100644 index 00000000..4a0305e1 --- /dev/null +++ b/dist/esm/models/ReadVpnConnectionsRequest.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FiltersVpnConnection } from './FiltersVpnConnection'; +/** + * + * @export + * @interface ReadVpnConnectionsRequest + */ +export interface ReadVpnConnectionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVpnConnectionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVpnConnection} + * @memberof ReadVpnConnectionsRequest + */ + filters?: FiltersVpnConnection; +} +export declare function ReadVpnConnectionsRequestFromJSON(json: any): ReadVpnConnectionsRequest; +export declare function ReadVpnConnectionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVpnConnectionsRequest; +export declare function ReadVpnConnectionsRequestToJSON(value?: ReadVpnConnectionsRequest | null): any; diff --git a/dist/esm/models/ReadVpnConnectionsRequest.js b/dist/esm/models/ReadVpnConnectionsRequest.js new file mode 100644 index 00000000..8e884eaa --- /dev/null +++ b/dist/esm/models/ReadVpnConnectionsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FiltersVpnConnectionFromJSON, FiltersVpnConnectionToJSON, } from './FiltersVpnConnection'; +export function ReadVpnConnectionsRequestFromJSON(json) { + return ReadVpnConnectionsRequestFromJSONTyped(json, false); +} +export function ReadVpnConnectionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVpnConnectionFromJSON(json['Filters']), + }; +} +export function ReadVpnConnectionsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Filters': FiltersVpnConnectionToJSON(value.filters), + }; +} diff --git a/dist/esm/models/ReadVpnConnectionsResponse.d.ts b/dist/esm/models/ReadVpnConnectionsResponse.d.ts new file mode 100644 index 00000000..2fba1076 --- /dev/null +++ b/dist/esm/models/ReadVpnConnectionsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VpnConnection } from './VpnConnection'; +/** + * + * @export + * @interface ReadVpnConnectionsResponse + */ +export interface ReadVpnConnectionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVpnConnectionsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VPN connections. + * @type {Array} + * @memberof ReadVpnConnectionsResponse + */ + vpnConnections?: Array; +} +export declare function ReadVpnConnectionsResponseFromJSON(json: any): ReadVpnConnectionsResponse; +export declare function ReadVpnConnectionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVpnConnectionsResponse; +export declare function ReadVpnConnectionsResponseToJSON(value?: ReadVpnConnectionsResponse | null): any; diff --git a/dist/esm/models/ReadVpnConnectionsResponse.js b/dist/esm/models/ReadVpnConnectionsResponse.js new file mode 100644 index 00000000..1da416cb --- /dev/null +++ b/dist/esm/models/ReadVpnConnectionsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VpnConnectionFromJSON, VpnConnectionToJSON, } from './VpnConnection'; +export function ReadVpnConnectionsResponseFromJSON(json) { + return ReadVpnConnectionsResponseFromJSONTyped(json, false); +} +export function ReadVpnConnectionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vpnConnections': !exists(json, 'VpnConnections') ? undefined : (json['VpnConnections'].map(VpnConnectionFromJSON)), + }; +} +export function ReadVpnConnectionsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VpnConnections': value.vpnConnections === undefined ? undefined : (value.vpnConnections.map(VpnConnectionToJSON)), + }; +} diff --git a/dist/esm/models/RebootVmsRequest.d.ts b/dist/esm/models/RebootVmsRequest.d.ts new file mode 100644 index 00000000..c70c0b15 --- /dev/null +++ b/dist/esm/models/RebootVmsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RebootVmsRequest + */ +export interface RebootVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RebootVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of the VMs you want to reboot. + * @type {Array} + * @memberof RebootVmsRequest + */ + vmIds: Array; +} +export declare function RebootVmsRequestFromJSON(json: any): RebootVmsRequest; +export declare function RebootVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebootVmsRequest; +export declare function RebootVmsRequestToJSON(value?: RebootVmsRequest | null): any; diff --git a/dist/esm/models/RebootVmsRequest.js b/dist/esm/models/RebootVmsRequest.js new file mode 100644 index 00000000..a8bcf629 --- /dev/null +++ b/dist/esm/models/RebootVmsRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RebootVmsRequestFromJSON(json) { + return RebootVmsRequestFromJSONTyped(json, false); +} +export function RebootVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} +export function RebootVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/RebootVmsResponse.d.ts b/dist/esm/models/RebootVmsResponse.d.ts new file mode 100644 index 00000000..e76d7575 --- /dev/null +++ b/dist/esm/models/RebootVmsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface RebootVmsResponse + */ +export interface RebootVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RebootVmsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function RebootVmsResponseFromJSON(json: any): RebootVmsResponse; +export declare function RebootVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebootVmsResponse; +export declare function RebootVmsResponseToJSON(value?: RebootVmsResponse | null): any; diff --git a/dist/esm/models/RebootVmsResponse.js b/dist/esm/models/RebootVmsResponse.js new file mode 100644 index 00000000..a0228bee --- /dev/null +++ b/dist/esm/models/RebootVmsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function RebootVmsResponseFromJSON(json) { + return RebootVmsResponseFromJSONTyped(json, false); +} +export function RebootVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function RebootVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/Region.d.ts b/dist/esm/models/Region.d.ts new file mode 100644 index 00000000..21419675 --- /dev/null +++ b/dist/esm/models/Region.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the Region. + * @export + * @interface Region + */ +export interface Region { + /** + * The hostname of the gateway to access the Region. + * @type {string} + * @memberof Region + */ + endpoint?: string; + /** + * The administrative name of the Region. + * @type {string} + * @memberof Region + */ + regionName?: string; +} +export declare function RegionFromJSON(json: any): Region; +export declare function RegionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Region; +export declare function RegionToJSON(value?: Region | null): any; diff --git a/dist/esm/models/Region.js b/dist/esm/models/Region.js new file mode 100644 index 00000000..f9353179 --- /dev/null +++ b/dist/esm/models/Region.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RegionFromJSON(json) { + return RegionFromJSONTyped(json, false); +} +export function RegionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'endpoint': !exists(json, 'Endpoint') ? undefined : json['Endpoint'], + 'regionName': !exists(json, 'RegionName') ? undefined : json['RegionName'], + }; +} +export function RegionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Endpoint': value.endpoint, + 'RegionName': value.regionName, + }; +} diff --git a/dist/esm/models/RegisterVmsInLoadBalancerRequest.d.ts b/dist/esm/models/RegisterVmsInLoadBalancerRequest.d.ts new file mode 100644 index 00000000..96ec5399 --- /dev/null +++ b/dist/esm/models/RegisterVmsInLoadBalancerRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RegisterVmsInLoadBalancerRequest + */ +export interface RegisterVmsInLoadBalancerRequest { + /** + * One or more IDs of back-end VMs.
+ * Specifying the same ID several times has no effect as each back-end VM has equal weight. + * @type {Array} + * @memberof RegisterVmsInLoadBalancerRequest + */ + backendVmIds: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RegisterVmsInLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof RegisterVmsInLoadBalancerRequest + */ + loadBalancerName: string; +} +export declare function RegisterVmsInLoadBalancerRequestFromJSON(json: any): RegisterVmsInLoadBalancerRequest; +export declare function RegisterVmsInLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterVmsInLoadBalancerRequest; +export declare function RegisterVmsInLoadBalancerRequestToJSON(value?: RegisterVmsInLoadBalancerRequest | null): any; diff --git a/dist/esm/models/RegisterVmsInLoadBalancerRequest.js b/dist/esm/models/RegisterVmsInLoadBalancerRequest.js new file mode 100644 index 00000000..beced4eb --- /dev/null +++ b/dist/esm/models/RegisterVmsInLoadBalancerRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RegisterVmsInLoadBalancerRequestFromJSON(json) { + return RegisterVmsInLoadBalancerRequestFromJSONTyped(json, false); +} +export function RegisterVmsInLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendVmIds': json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function RegisterVmsInLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/RegisterVmsInLoadBalancerResponse.d.ts b/dist/esm/models/RegisterVmsInLoadBalancerResponse.d.ts new file mode 100644 index 00000000..80090f6a --- /dev/null +++ b/dist/esm/models/RegisterVmsInLoadBalancerResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface RegisterVmsInLoadBalancerResponse + */ +export interface RegisterVmsInLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RegisterVmsInLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function RegisterVmsInLoadBalancerResponseFromJSON(json: any): RegisterVmsInLoadBalancerResponse; +export declare function RegisterVmsInLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterVmsInLoadBalancerResponse; +export declare function RegisterVmsInLoadBalancerResponseToJSON(value?: RegisterVmsInLoadBalancerResponse | null): any; diff --git a/dist/esm/models/RegisterVmsInLoadBalancerResponse.js b/dist/esm/models/RegisterVmsInLoadBalancerResponse.js new file mode 100644 index 00000000..2c6d351d --- /dev/null +++ b/dist/esm/models/RegisterVmsInLoadBalancerResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function RegisterVmsInLoadBalancerResponseFromJSON(json) { + return RegisterVmsInLoadBalancerResponseFromJSONTyped(json, false); +} +export function RegisterVmsInLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function RegisterVmsInLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/RejectNetPeeringRequest.d.ts b/dist/esm/models/RejectNetPeeringRequest.d.ts new file mode 100644 index 00000000..249fcf2d --- /dev/null +++ b/dist/esm/models/RejectNetPeeringRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RejectNetPeeringRequest + */ +export interface RejectNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RejectNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to reject. + * @type {string} + * @memberof RejectNetPeeringRequest + */ + netPeeringId: string; +} +export declare function RejectNetPeeringRequestFromJSON(json: any): RejectNetPeeringRequest; +export declare function RejectNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectNetPeeringRequest; +export declare function RejectNetPeeringRequestToJSON(value?: RejectNetPeeringRequest | null): any; diff --git a/dist/esm/models/RejectNetPeeringRequest.js b/dist/esm/models/RejectNetPeeringRequest.js new file mode 100644 index 00000000..535cf635 --- /dev/null +++ b/dist/esm/models/RejectNetPeeringRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RejectNetPeeringRequestFromJSON(json) { + return RejectNetPeeringRequestFromJSONTyped(json, false); +} +export function RejectNetPeeringRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} +export function RejectNetPeeringRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} diff --git a/dist/esm/models/RejectNetPeeringResponse.d.ts b/dist/esm/models/RejectNetPeeringResponse.d.ts new file mode 100644 index 00000000..560c0efc --- /dev/null +++ b/dist/esm/models/RejectNetPeeringResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface RejectNetPeeringResponse + */ +export interface RejectNetPeeringResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RejectNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} +export declare function RejectNetPeeringResponseFromJSON(json: any): RejectNetPeeringResponse; +export declare function RejectNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectNetPeeringResponse; +export declare function RejectNetPeeringResponseToJSON(value?: RejectNetPeeringResponse | null): any; diff --git a/dist/esm/models/RejectNetPeeringResponse.js b/dist/esm/models/RejectNetPeeringResponse.js new file mode 100644 index 00000000..d2d64bd1 --- /dev/null +++ b/dist/esm/models/RejectNetPeeringResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function RejectNetPeeringResponseFromJSON(json) { + return RejectNetPeeringResponseFromJSONTyped(json, false); +} +export function RejectNetPeeringResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function RejectNetPeeringResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ResetAccountPasswordRequest.d.ts b/dist/esm/models/ResetAccountPasswordRequest.d.ts new file mode 100644 index 00000000..6874706f --- /dev/null +++ b/dist/esm/models/ResetAccountPasswordRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ResetAccountPasswordRequest + */ +export interface ResetAccountPasswordRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ResetAccountPasswordRequest + */ + dryRun?: boolean; + /** + * The new password for the account. + * @type {string} + * @memberof ResetAccountPasswordRequest + */ + password: string; + /** + * The token you received at the email address provided for the account. + * @type {string} + * @memberof ResetAccountPasswordRequest + */ + token: string; +} +export declare function ResetAccountPasswordRequestFromJSON(json: any): ResetAccountPasswordRequest; +export declare function ResetAccountPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetAccountPasswordRequest; +export declare function ResetAccountPasswordRequestToJSON(value?: ResetAccountPasswordRequest | null): any; diff --git a/dist/esm/models/ResetAccountPasswordRequest.js b/dist/esm/models/ResetAccountPasswordRequest.js new file mode 100644 index 00000000..a004a3ad --- /dev/null +++ b/dist/esm/models/ResetAccountPasswordRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ResetAccountPasswordRequestFromJSON(json) { + return ResetAccountPasswordRequestFromJSONTyped(json, false); +} +export function ResetAccountPasswordRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'password': json['Password'], + 'token': json['Token'], + }; +} +export function ResetAccountPasswordRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Password': value.password, + 'Token': value.token, + }; +} diff --git a/dist/esm/models/ResetAccountPasswordResponse.d.ts b/dist/esm/models/ResetAccountPasswordResponse.d.ts new file mode 100644 index 00000000..9ad4d6e3 --- /dev/null +++ b/dist/esm/models/ResetAccountPasswordResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface ResetAccountPasswordResponse + */ +export interface ResetAccountPasswordResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ResetAccountPasswordResponse + */ + responseContext?: ModelResponseContext; +} +export declare function ResetAccountPasswordResponseFromJSON(json: any): ResetAccountPasswordResponse; +export declare function ResetAccountPasswordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetAccountPasswordResponse; +export declare function ResetAccountPasswordResponseToJSON(value?: ResetAccountPasswordResponse | null): any; diff --git a/dist/esm/models/ResetAccountPasswordResponse.js b/dist/esm/models/ResetAccountPasswordResponse.js new file mode 100644 index 00000000..e262e021 --- /dev/null +++ b/dist/esm/models/ResetAccountPasswordResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function ResetAccountPasswordResponseFromJSON(json) { + return ResetAccountPasswordResponseFromJSONTyped(json, false); +} +export function ResetAccountPasswordResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function ResetAccountPasswordResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ResourceLoadBalancerTag.d.ts b/dist/esm/models/ResourceLoadBalancerTag.d.ts new file mode 100644 index 00000000..1122b74c --- /dev/null +++ b/dist/esm/models/ResourceLoadBalancerTag.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the tag. + * @export + * @interface ResourceLoadBalancerTag + */ +export interface ResourceLoadBalancerTag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof ResourceLoadBalancerTag + */ + key?: string; +} +export declare function ResourceLoadBalancerTagFromJSON(json: any): ResourceLoadBalancerTag; +export declare function ResourceLoadBalancerTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceLoadBalancerTag; +export declare function ResourceLoadBalancerTagToJSON(value?: ResourceLoadBalancerTag | null): any; diff --git a/dist/esm/models/ResourceLoadBalancerTag.js b/dist/esm/models/ResourceLoadBalancerTag.js new file mode 100644 index 00000000..88b7f14d --- /dev/null +++ b/dist/esm/models/ResourceLoadBalancerTag.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ResourceLoadBalancerTagFromJSON(json) { + return ResourceLoadBalancerTagFromJSONTyped(json, false); +} +export function ResourceLoadBalancerTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': !exists(json, 'Key') ? undefined : json['Key'], + }; +} +export function ResourceLoadBalancerTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + }; +} diff --git a/dist/esm/models/ResourceTag.d.ts b/dist/esm/models/ResourceTag.d.ts new file mode 100644 index 00000000..a3099641 --- /dev/null +++ b/dist/esm/models/ResourceTag.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the tag. + * @export + * @interface ResourceTag + */ +export interface ResourceTag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof ResourceTag + */ + key: string; + /** + * The value of the tag, between 0 and 255 characters. + * @type {string} + * @memberof ResourceTag + */ + value: string; +} +export declare function ResourceTagFromJSON(json: any): ResourceTag; +export declare function ResourceTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTag; +export declare function ResourceTagToJSON(value?: ResourceTag | null): any; diff --git a/dist/esm/models/ResourceTag.js b/dist/esm/models/ResourceTag.js new file mode 100644 index 00000000..1b567617 --- /dev/null +++ b/dist/esm/models/ResourceTag.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export function ResourceTagFromJSON(json) { + return ResourceTagFromJSONTyped(json, false); +} +export function ResourceTagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': json['Key'], + 'value': json['Value'], + }; +} +export function ResourceTagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + 'Value': value.value, + }; +} diff --git a/dist/esm/models/Route.d.ts b/dist/esm/models/Route.d.ts new file mode 100644 index 00000000..3c4708d9 --- /dev/null +++ b/dist/esm/models/Route.d.ts @@ -0,0 +1,87 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the route. + * @export + * @interface Route + */ +export interface Route { + /** + * The method used to create the route. + * @type {string} + * @memberof Route + */ + creationMethod?: string; + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof Route + */ + destinationIpRange?: string; + /** + * The ID of the OUTSCALE service. + * @type {string} + * @memberof Route + */ + destinationServiceId?: string; + /** + * The ID of the Internet service or virtual gateway attached to the Net. + * @type {string} + * @memberof Route + */ + gatewayId?: string; + /** + * The ID of a NAT service attached to the Net. + * @type {string} + * @memberof Route + */ + natServiceId?: string; + /** + * The ID of the Net access point. + * @type {string} + * @memberof Route + */ + netAccessPointId?: string; + /** + * The ID of the Net peering connection. + * @type {string} + * @memberof Route + */ + netPeeringId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof Route + */ + nicId?: string; + /** + * The state of a route in the route table (`active` \| `blackhole`). The `blackhole` state indicates that the target of the route is not available. + * @type {string} + * @memberof Route + */ + state?: string; + /** + * The account ID of the owner of the VM. + * @type {string} + * @memberof Route + */ + vmAccountId?: string; + /** + * The ID of a VM specified in a route in the table. + * @type {string} + * @memberof Route + */ + vmId?: string; +} +export declare function RouteFromJSON(json: any): Route; +export declare function RouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Route; +export declare function RouteToJSON(value?: Route | null): any; diff --git a/dist/esm/models/Route.js b/dist/esm/models/Route.js new file mode 100644 index 00000000..a8908ed7 --- /dev/null +++ b/dist/esm/models/Route.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RouteFromJSON(json) { + return RouteFromJSONTyped(json, false); +} +export function RouteFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'creationMethod': !exists(json, 'CreationMethod') ? undefined : json['CreationMethod'], + 'destinationIpRange': !exists(json, 'DestinationIpRange') ? undefined : json['DestinationIpRange'], + 'destinationServiceId': !exists(json, 'DestinationServiceId') ? undefined : json['DestinationServiceId'], + 'gatewayId': !exists(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netAccessPointId': !exists(json, 'NetAccessPointId') ? undefined : json['NetAccessPointId'], + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'vmAccountId': !exists(json, 'VmAccountId') ? undefined : json['VmAccountId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function RouteToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CreationMethod': value.creationMethod, + 'DestinationIpRange': value.destinationIpRange, + 'DestinationServiceId': value.destinationServiceId, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetAccessPointId': value.netAccessPointId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'State': value.state, + 'VmAccountId': value.vmAccountId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/RouteLight.d.ts b/dist/esm/models/RouteLight.d.ts new file mode 100644 index 00000000..7a9ffdf4 --- /dev/null +++ b/dist/esm/models/RouteLight.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the route. + * @export + * @interface RouteLight + */ +export interface RouteLight { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof RouteLight + */ + destinationIpRange?: string; + /** + * The type of route (always `static`). + * @type {string} + * @memberof RouteLight + */ + routeType?: string; + /** + * The current state of the static route (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof RouteLight + */ + state?: string; +} +export declare function RouteLightFromJSON(json: any): RouteLight; +export declare function RouteLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteLight; +export declare function RouteLightToJSON(value?: RouteLight | null): any; diff --git a/dist/esm/models/RouteLight.js b/dist/esm/models/RouteLight.js new file mode 100644 index 00000000..1a9f900b --- /dev/null +++ b/dist/esm/models/RouteLight.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RouteLightFromJSON(json) { + return RouteLightFromJSONTyped(json, false); +} +export function RouteLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': !exists(json, 'DestinationIpRange') ? undefined : json['DestinationIpRange'], + 'routeType': !exists(json, 'RouteType') ? undefined : json['RouteType'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} +export function RouteLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'RouteType': value.routeType, + 'State': value.state, + }; +} diff --git a/dist/esm/models/RoutePropagatingVirtualGateway.d.ts b/dist/esm/models/RoutePropagatingVirtualGateway.d.ts new file mode 100644 index 00000000..9309bc7d --- /dev/null +++ b/dist/esm/models/RoutePropagatingVirtualGateway.d.ts @@ -0,0 +1,27 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the route propagating virtual gateway. + * @export + * @interface RoutePropagatingVirtualGateway + */ +export interface RoutePropagatingVirtualGateway { + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof RoutePropagatingVirtualGateway + */ + virtualGatewayId?: string; +} +export declare function RoutePropagatingVirtualGatewayFromJSON(json: any): RoutePropagatingVirtualGateway; +export declare function RoutePropagatingVirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoutePropagatingVirtualGateway; +export declare function RoutePropagatingVirtualGatewayToJSON(value?: RoutePropagatingVirtualGateway | null): any; diff --git a/dist/esm/models/RoutePropagatingVirtualGateway.js b/dist/esm/models/RoutePropagatingVirtualGateway.js new file mode 100644 index 00000000..415b1fba --- /dev/null +++ b/dist/esm/models/RoutePropagatingVirtualGateway.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function RoutePropagatingVirtualGatewayFromJSON(json) { + return RoutePropagatingVirtualGatewayFromJSONTyped(json, false); +} +export function RoutePropagatingVirtualGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + }; +} +export function RoutePropagatingVirtualGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/RouteTable.d.ts b/dist/esm/models/RouteTable.d.ts new file mode 100644 index 00000000..bca2e51a --- /dev/null +++ b/dist/esm/models/RouteTable.d.ts @@ -0,0 +1,61 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkRouteTable } from './LinkRouteTable'; +import { ResourceTag } from './ResourceTag'; +import { Route } from './Route'; +import { RoutePropagatingVirtualGateway } from './RoutePropagatingVirtualGateway'; +/** + * Information about the route table. + * @export + * @interface RouteTable + */ +export interface RouteTable { + /** + * One or more associations between the route table and Subnets. + * @type {Array} + * @memberof RouteTable + */ + linkRouteTables?: Array; + /** + * The ID of the Net for the route table. + * @type {string} + * @memberof RouteTable + */ + netId?: string; + /** + * Information about virtual gateways propagating routes. + * @type {Array} + * @memberof RouteTable + */ + routePropagatingVirtualGateways?: Array; + /** + * The ID of the route table. + * @type {string} + * @memberof RouteTable + */ + routeTableId?: string; + /** + * One or more routes in the route table. + * @type {Array} + * @memberof RouteTable + */ + routes?: Array; + /** + * One or more tags associated with the route table. + * @type {Array} + * @memberof RouteTable + */ + tags?: Array; +} +export declare function RouteTableFromJSON(json: any): RouteTable; +export declare function RouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteTable; +export declare function RouteTableToJSON(value?: RouteTable | null): any; diff --git a/dist/esm/models/RouteTable.js b/dist/esm/models/RouteTable.js new file mode 100644 index 00000000..21996961 --- /dev/null +++ b/dist/esm/models/RouteTable.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkRouteTableFromJSON, LinkRouteTableToJSON, } from './LinkRouteTable'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { RouteFromJSON, RouteToJSON, } from './Route'; +import { RoutePropagatingVirtualGatewayFromJSON, RoutePropagatingVirtualGatewayToJSON, } from './RoutePropagatingVirtualGateway'; +export function RouteTableFromJSON(json) { + return RouteTableFromJSONTyped(json, false); +} +export function RouteTableFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'linkRouteTables': !exists(json, 'LinkRouteTables') ? undefined : (json['LinkRouteTables'].map(LinkRouteTableFromJSON)), + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'routePropagatingVirtualGateways': !exists(json, 'RoutePropagatingVirtualGateways') ? undefined : (json['RoutePropagatingVirtualGateways'].map(RoutePropagatingVirtualGatewayFromJSON)), + 'routeTableId': !exists(json, 'RouteTableId') ? undefined : json['RouteTableId'], + 'routes': !exists(json, 'Routes') ? undefined : (json['Routes'].map(RouteFromJSON)), + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function RouteTableToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LinkRouteTables': value.linkRouteTables === undefined ? undefined : (value.linkRouteTables.map(LinkRouteTableToJSON)), + 'NetId': value.netId, + 'RoutePropagatingVirtualGateways': value.routePropagatingVirtualGateways === undefined ? undefined : (value.routePropagatingVirtualGateways.map(RoutePropagatingVirtualGatewayToJSON)), + 'RouteTableId': value.routeTableId, + 'Routes': value.routes === undefined ? undefined : (value.routes.map(RouteToJSON)), + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/SecurityGroup.d.ts b/dist/esm/models/SecurityGroup.d.ts new file mode 100644 index 00000000..52954c0d --- /dev/null +++ b/dist/esm/models/SecurityGroup.d.ts @@ -0,0 +1,71 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +import { SecurityGroupRule } from './SecurityGroupRule'; +/** + * Information about the security group. + * @export + * @interface SecurityGroup + */ +export interface SecurityGroup { + /** + * The account ID of a user that has been granted permission. + * @type {string} + * @memberof SecurityGroup + */ + accountId?: string; + /** + * The description of the security group. + * @type {string} + * @memberof SecurityGroup + */ + description?: string; + /** + * The inbound rules associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + inboundRules?: Array; + /** + * The ID of the Net for the security group. + * @type {string} + * @memberof SecurityGroup + */ + netId?: string; + /** + * The outbound rules associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + outboundRules?: Array; + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroup + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroup + */ + securityGroupName?: string; + /** + * One or more tags associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + tags?: Array; +} +export declare function SecurityGroupFromJSON(json: any): SecurityGroup; +export declare function SecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroup; +export declare function SecurityGroupToJSON(value?: SecurityGroup | null): any; diff --git a/dist/esm/models/SecurityGroup.js b/dist/esm/models/SecurityGroup.js new file mode 100644 index 00000000..d29aea3b --- /dev/null +++ b/dist/esm/models/SecurityGroup.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { SecurityGroupRuleFromJSON, SecurityGroupRuleToJSON, } from './SecurityGroupRule'; +export function SecurityGroupFromJSON(json) { + return SecurityGroupFromJSONTyped(json, false); +} +export function SecurityGroupFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'inboundRules': !exists(json, 'InboundRules') ? undefined : (json['InboundRules'].map(SecurityGroupRuleFromJSON)), + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'outboundRules': !exists(json, 'OutboundRules') ? undefined : (json['OutboundRules'].map(SecurityGroupRuleFromJSON)), + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function SecurityGroupToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'Description': value.description, + 'InboundRules': value.inboundRules === undefined ? undefined : (value.inboundRules.map(SecurityGroupRuleToJSON)), + 'NetId': value.netId, + 'OutboundRules': value.outboundRules === undefined ? undefined : (value.outboundRules.map(SecurityGroupRuleToJSON)), + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/SecurityGroupLight.d.ts b/dist/esm/models/SecurityGroupLight.d.ts new file mode 100644 index 00000000..68ab233b --- /dev/null +++ b/dist/esm/models/SecurityGroupLight.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the security group. + * @export + * @interface SecurityGroupLight + */ +export interface SecurityGroupLight { + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroupLight + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroupLight + */ + securityGroupName?: string; +} +export declare function SecurityGroupLightFromJSON(json: any): SecurityGroupLight; +export declare function SecurityGroupLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupLight; +export declare function SecurityGroupLightToJSON(value?: SecurityGroupLight | null): any; diff --git a/dist/esm/models/SecurityGroupLight.js b/dist/esm/models/SecurityGroupLight.js new file mode 100644 index 00000000..95e8702b --- /dev/null +++ b/dist/esm/models/SecurityGroupLight.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function SecurityGroupLightFromJSON(json) { + return SecurityGroupLightFromJSONTyped(json, false); +} +export function SecurityGroupLightFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +export function SecurityGroupLightToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} diff --git a/dist/esm/models/SecurityGroupRule.d.ts b/dist/esm/models/SecurityGroupRule.d.ts new file mode 100644 index 00000000..a1d6d7fb --- /dev/null +++ b/dist/esm/models/SecurityGroupRule.d.ts @@ -0,0 +1,58 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SecurityGroupsMember } from './SecurityGroupsMember'; +/** + * Information about the security group rule. + * @export + * @interface SecurityGroupRule + */ +export interface SecurityGroupRule { + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof SecurityGroupRule + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + * @type {string} + * @memberof SecurityGroupRule + */ + ipProtocol?: string; + /** + * One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof SecurityGroupRule + */ + ipRanges?: Array; + /** + * Information about one or more members of a security group. + * @type {Array} + * @memberof SecurityGroupRule + */ + securityGroupsMembers?: Array; + /** + * One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). + * @type {Array} + * @memberof SecurityGroupRule + */ + serviceIds?: Array; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof SecurityGroupRule + */ + toPortRange?: number; +} +export declare function SecurityGroupRuleFromJSON(json: any): SecurityGroupRule; +export declare function SecurityGroupRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupRule; +export declare function SecurityGroupRuleToJSON(value?: SecurityGroupRule | null): any; diff --git a/dist/esm/models/SecurityGroupRule.js b/dist/esm/models/SecurityGroupRule.js new file mode 100644 index 00000000..db9d58e1 --- /dev/null +++ b/dist/esm/models/SecurityGroupRule.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { SecurityGroupsMemberFromJSON, SecurityGroupsMemberToJSON, } from './SecurityGroupsMember'; +export function SecurityGroupRuleFromJSON(json) { + return SecurityGroupRuleFromJSONTyped(json, false); +} +export function SecurityGroupRuleFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'fromPortRange': !exists(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !exists(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'securityGroupsMembers': !exists(json, 'SecurityGroupsMembers') ? undefined : (json['SecurityGroupsMembers'].map(SecurityGroupsMemberFromJSON)), + 'serviceIds': !exists(json, 'ServiceIds') ? undefined : json['ServiceIds'], + 'toPortRange': !exists(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} +export function SecurityGroupRuleToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRanges': value.ipRanges, + 'SecurityGroupsMembers': value.securityGroupsMembers === undefined ? undefined : (value.securityGroupsMembers.map(SecurityGroupsMemberToJSON)), + 'ServiceIds': value.serviceIds, + 'ToPortRange': value.toPortRange, + }; +} diff --git a/dist/esm/models/SecurityGroupsMember.d.ts b/dist/esm/models/SecurityGroupsMember.d.ts new file mode 100644 index 00000000..378482f2 --- /dev/null +++ b/dist/esm/models/SecurityGroupsMember.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the member of a security group. + * @export + * @interface SecurityGroupsMember + */ +export interface SecurityGroupsMember { + /** + * The account ID of a user. + * @type {string} + * @memberof SecurityGroupsMember + */ + accountId?: string; + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroupsMember + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroupsMember + */ + securityGroupName?: string; +} +export declare function SecurityGroupsMemberFromJSON(json: any): SecurityGroupsMember; +export declare function SecurityGroupsMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupsMember; +export declare function SecurityGroupsMemberToJSON(value?: SecurityGroupsMember | null): any; diff --git a/dist/esm/models/SecurityGroupsMember.js b/dist/esm/models/SecurityGroupsMember.js new file mode 100644 index 00000000..5f936cbd --- /dev/null +++ b/dist/esm/models/SecurityGroupsMember.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function SecurityGroupsMemberFromJSON(json) { + return SecurityGroupsMemberFromJSONTyped(json, false); +} +export function SecurityGroupsMemberFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +export function SecurityGroupsMemberToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} diff --git a/dist/esm/models/SendResetPasswordEmailRequest.d.ts b/dist/esm/models/SendResetPasswordEmailRequest.d.ts new file mode 100644 index 00000000..794ba599 --- /dev/null +++ b/dist/esm/models/SendResetPasswordEmailRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SendResetPasswordEmailRequest + */ +export interface SendResetPasswordEmailRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof SendResetPasswordEmailRequest + */ + dryRun?: boolean; + /** + * The email address provided for the account. + * @type {string} + * @memberof SendResetPasswordEmailRequest + */ + email: string; +} +export declare function SendResetPasswordEmailRequestFromJSON(json: any): SendResetPasswordEmailRequest; +export declare function SendResetPasswordEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendResetPasswordEmailRequest; +export declare function SendResetPasswordEmailRequestToJSON(value?: SendResetPasswordEmailRequest | null): any; diff --git a/dist/esm/models/SendResetPasswordEmailRequest.js b/dist/esm/models/SendResetPasswordEmailRequest.js new file mode 100644 index 00000000..6fe1c701 --- /dev/null +++ b/dist/esm/models/SendResetPasswordEmailRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function SendResetPasswordEmailRequestFromJSON(json) { + return SendResetPasswordEmailRequestFromJSONTyped(json, false); +} +export function SendResetPasswordEmailRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'email': json['Email'], + }; +} +export function SendResetPasswordEmailRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Email': value.email, + }; +} diff --git a/dist/esm/models/SendResetPasswordEmailResponse.d.ts b/dist/esm/models/SendResetPasswordEmailResponse.d.ts new file mode 100644 index 00000000..4e48b144 --- /dev/null +++ b/dist/esm/models/SendResetPasswordEmailResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface SendResetPasswordEmailResponse + */ +export interface SendResetPasswordEmailResponse { + /** + * + * @type {ModelResponseContext} + * @memberof SendResetPasswordEmailResponse + */ + responseContext?: ModelResponseContext; +} +export declare function SendResetPasswordEmailResponseFromJSON(json: any): SendResetPasswordEmailResponse; +export declare function SendResetPasswordEmailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendResetPasswordEmailResponse; +export declare function SendResetPasswordEmailResponseToJSON(value?: SendResetPasswordEmailResponse | null): any; diff --git a/dist/esm/models/SendResetPasswordEmailResponse.js b/dist/esm/models/SendResetPasswordEmailResponse.js new file mode 100644 index 00000000..adefe663 --- /dev/null +++ b/dist/esm/models/SendResetPasswordEmailResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function SendResetPasswordEmailResponseFromJSON(json) { + return SendResetPasswordEmailResponseFromJSONTyped(json, false); +} +export function SendResetPasswordEmailResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function SendResetPasswordEmailResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/ServerCertificate.d.ts b/dist/esm/models/ServerCertificate.d.ts new file mode 100644 index 00000000..31aed8bc --- /dev/null +++ b/dist/esm/models/ServerCertificate.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the server certificate. + * @export + * @interface ServerCertificate + */ +export interface ServerCertificate { + /** + * The date at which the server certificate expires. + * @type {Date} + * @memberof ServerCertificate + */ + expirationDate?: Date; + /** + * The ID of the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + id?: string; + /** + * The name of the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + name?: string; + /** + * The path to the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + path?: string; + /** + * The date at which the server certificate has been uploaded. + * @type {Date} + * @memberof ServerCertificate + */ + uploadDate?: Date; +} +export declare function ServerCertificateFromJSON(json: any): ServerCertificate; +export declare function ServerCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerCertificate; +export declare function ServerCertificateToJSON(value?: ServerCertificate | null): any; diff --git a/dist/esm/models/ServerCertificate.js b/dist/esm/models/ServerCertificate.js new file mode 100644 index 00000000..40f19e9d --- /dev/null +++ b/dist/esm/models/ServerCertificate.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ServerCertificateFromJSON(json) { + return ServerCertificateFromJSONTyped(json, false); +} +export function ServerCertificateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : (new Date(json['ExpirationDate'])), + 'id': !exists(json, 'Id') ? undefined : json['Id'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + 'path': !exists(json, 'Path') ? undefined : json['Path'], + 'uploadDate': !exists(json, 'UploadDate') ? undefined : (new Date(json['UploadDate'])), + }; +} +export function ServerCertificateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ExpirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate.toISOString().substr(0, 10)), + 'Id': value.id, + 'Name': value.name, + 'Path': value.path, + 'UploadDate': value.uploadDate === undefined ? undefined : (value.uploadDate.toISOString().substr(0, 10)), + }; +} diff --git a/dist/esm/models/Service.d.ts b/dist/esm/models/Service.d.ts new file mode 100644 index 00000000..ee4592a4 --- /dev/null +++ b/dist/esm/models/Service.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the service. + * @export + * @interface Service + */ +export interface Service { + /** + * The list of network prefixes used by the service, in CIDR notation. + * @type {Array} + * @memberof Service + */ + ipRanges?: Array; + /** + * The ID of the service. + * @type {string} + * @memberof Service + */ + serviceId?: string; + /** + * The name of the service. + * @type {string} + * @memberof Service + */ + serviceName?: string; +} +export declare function ServiceFromJSON(json: any): Service; +export declare function ServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Service; +export declare function ServiceToJSON(value?: Service | null): any; diff --git a/dist/esm/models/Service.js b/dist/esm/models/Service.js new file mode 100644 index 00000000..f3e9eec5 --- /dev/null +++ b/dist/esm/models/Service.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function ServiceFromJSON(json) { + return ServiceFromJSONTyped(json, false); +} +export function ServiceFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'serviceId': !exists(json, 'ServiceId') ? undefined : json['ServiceId'], + 'serviceName': !exists(json, 'ServiceName') ? undefined : json['ServiceName'], + }; +} +export function ServiceToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'IpRanges': value.ipRanges, + 'ServiceId': value.serviceId, + 'ServiceName': value.serviceName, + }; +} diff --git a/dist/esm/models/Snapshot.d.ts b/dist/esm/models/Snapshot.d.ts new file mode 100644 index 00000000..ef9e6bf9 --- /dev/null +++ b/dist/esm/models/Snapshot.d.ts @@ -0,0 +1,89 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResource } from './PermissionsOnResource'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the snapshot. + * @export + * @interface Snapshot + */ +export interface Snapshot { + /** + * The account alias of the owner of the snapshot. + * @type {string} + * @memberof Snapshot + */ + accountAlias?: string; + /** + * The account ID of the owner of the snapshot. + * @type {string} + * @memberof Snapshot + */ + accountId?: string; + /** + * The date and time of creation of the snapshot. + * @type {string} + * @memberof Snapshot + */ + creationDate?: string; + /** + * The description of the snapshot. + * @type {string} + * @memberof Snapshot + */ + description?: string; + /** + * + * @type {PermissionsOnResource} + * @memberof Snapshot + */ + permissionsToCreateVolume?: PermissionsOnResource; + /** + * The progress of the snapshot, as a percentage. + * @type {number} + * @memberof Snapshot + */ + progress?: number; + /** + * The ID of the snapshot. + * @type {string} + * @memberof Snapshot + */ + snapshotId?: string; + /** + * The state of the snapshot (`in-queue` \| `completed` \| `error`). + * @type {string} + * @memberof Snapshot + */ + state?: string; + /** + * One or more tags associated with the snapshot. + * @type {Array} + * @memberof Snapshot + */ + tags?: Array; + /** + * The ID of the volume used to create the snapshot. + * @type {string} + * @memberof Snapshot + */ + volumeId?: string; + /** + * The size of the volume used to create the snapshot, in gibibytes (GiB). + * @type {number} + * @memberof Snapshot + */ + volumeSize?: number; +} +export declare function SnapshotFromJSON(json: any): Snapshot; +export declare function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Snapshot; +export declare function SnapshotToJSON(value?: Snapshot | null): any; diff --git a/dist/esm/models/Snapshot.js b/dist/esm/models/Snapshot.js new file mode 100644 index 00000000..58111960 --- /dev/null +++ b/dist/esm/models/Snapshot.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PermissionsOnResourceFromJSON, PermissionsOnResourceToJSON, } from './PermissionsOnResource'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function SnapshotFromJSON(json) { + return SnapshotFromJSONTyped(json, false); +} +export function SnapshotFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountAlias': !exists(json, 'AccountAlias') ? undefined : json['AccountAlias'], + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'permissionsToCreateVolume': !exists(json, 'PermissionsToCreateVolume') ? undefined : PermissionsOnResourceFromJSON(json['PermissionsToCreateVolume']), + 'progress': !exists(json, 'Progress') ? undefined : json['Progress'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + 'volumeSize': !exists(json, 'VolumeSize') ? undefined : json['VolumeSize'], + }; +} +export function SnapshotToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountAlias': value.accountAlias, + 'AccountId': value.accountId, + 'CreationDate': value.creationDate, + 'Description': value.description, + 'PermissionsToCreateVolume': PermissionsOnResourceToJSON(value.permissionsToCreateVolume), + 'Progress': value.progress, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'VolumeId': value.volumeId, + 'VolumeSize': value.volumeSize, + }; +} diff --git a/dist/esm/models/SnapshotExportTask.d.ts b/dist/esm/models/SnapshotExportTask.d.ts new file mode 100644 index 00000000..95e382fa --- /dev/null +++ b/dist/esm/models/SnapshotExportTask.d.ts @@ -0,0 +1,65 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OsuExportSnapshotExportTask } from './OsuExportSnapshotExportTask'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the snapshot export task. + * @export + * @interface SnapshotExportTask + */ +export interface SnapshotExportTask { + /** + * If the snapshot export task fails, an error message appears. + * @type {string} + * @memberof SnapshotExportTask + */ + comment?: string; + /** + * + * @type {OsuExportSnapshotExportTask} + * @memberof SnapshotExportTask + */ + osuExport?: OsuExportSnapshotExportTask; + /** + * The progress of the snapshot export task, as a percentage. + * @type {number} + * @memberof SnapshotExportTask + */ + progress?: number; + /** + * The ID of the snapshot to be exported. + * @type {string} + * @memberof SnapshotExportTask + */ + snapshotId?: string; + /** + * The state of the snapshot export task (`pending` \| `active` \| `completed` \| `failed`). + * @type {string} + * @memberof SnapshotExportTask + */ + state?: string; + /** + * One or more tags associated with the snapshot export task. + * @type {Array} + * @memberof SnapshotExportTask + */ + tags?: Array; + /** + * The ID of the snapshot export task. + * @type {string} + * @memberof SnapshotExportTask + */ + taskId?: string; +} +export declare function SnapshotExportTaskFromJSON(json: any): SnapshotExportTask; +export declare function SnapshotExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotExportTask; +export declare function SnapshotExportTaskToJSON(value?: SnapshotExportTask | null): any; diff --git a/dist/esm/models/SnapshotExportTask.js b/dist/esm/models/SnapshotExportTask.js new file mode 100644 index 00000000..00b92a8a --- /dev/null +++ b/dist/esm/models/SnapshotExportTask.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { OsuExportSnapshotExportTaskFromJSON, OsuExportSnapshotExportTaskToJSON, } from './OsuExportSnapshotExportTask'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function SnapshotExportTaskFromJSON(json) { + return SnapshotExportTaskFromJSONTyped(json, false); +} +export function SnapshotExportTaskFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'comment': !exists(json, 'Comment') ? undefined : json['Comment'], + 'osuExport': !exists(json, 'OsuExport') ? undefined : OsuExportSnapshotExportTaskFromJSON(json['OsuExport']), + 'progress': !exists(json, 'Progress') ? undefined : json['Progress'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'taskId': !exists(json, 'TaskId') ? undefined : json['TaskId'], + }; +} +export function SnapshotExportTaskToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Comment': value.comment, + 'OsuExport': OsuExportSnapshotExportTaskToJSON(value.osuExport), + 'Progress': value.progress, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'TaskId': value.taskId, + }; +} diff --git a/dist/esm/models/SourceNet.d.ts b/dist/esm/models/SourceNet.d.ts new file mode 100644 index 00000000..9034a551 --- /dev/null +++ b/dist/esm/models/SourceNet.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the source Net. + * @export + * @interface SourceNet + */ +export interface SourceNet { + /** + * The account ID of the owner of the source Net. + * @type {string} + * @memberof SourceNet + */ + accountId?: string; + /** + * The IP range for the source Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof SourceNet + */ + ipRange?: string; + /** + * The ID of the source Net. + * @type {string} + * @memberof SourceNet + */ + netId?: string; +} +export declare function SourceNetFromJSON(json: any): SourceNet; +export declare function SourceNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceNet; +export declare function SourceNetToJSON(value?: SourceNet | null): any; diff --git a/dist/esm/models/SourceNet.js b/dist/esm/models/SourceNet.js new file mode 100644 index 00000000..88acbade --- /dev/null +++ b/dist/esm/models/SourceNet.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function SourceNetFromJSON(json) { + return SourceNetFromJSONTyped(json, false); +} +export function SourceNetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + }; +} +export function SourceNetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/SourceSecurityGroup.d.ts b/dist/esm/models/SourceSecurityGroup.d.ts new file mode 100644 index 00000000..7b290358 --- /dev/null +++ b/dist/esm/models/SourceSecurityGroup.d.ts @@ -0,0 +1,34 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
+ * To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source. + * @export + * @interface SourceSecurityGroup + */ +export interface SourceSecurityGroup { + /** + * The account ID of the owner of the security group. + * @type {string} + * @memberof SourceSecurityGroup + */ + securityGroupAccountId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SourceSecurityGroup + */ + securityGroupName?: string; +} +export declare function SourceSecurityGroupFromJSON(json: any): SourceSecurityGroup; +export declare function SourceSecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSecurityGroup; +export declare function SourceSecurityGroupToJSON(value?: SourceSecurityGroup | null): any; diff --git a/dist/esm/models/SourceSecurityGroup.js b/dist/esm/models/SourceSecurityGroup.js new file mode 100644 index 00000000..8d7928ca --- /dev/null +++ b/dist/esm/models/SourceSecurityGroup.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function SourceSecurityGroupFromJSON(json) { + return SourceSecurityGroupFromJSONTyped(json, false); +} +export function SourceSecurityGroupFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'securityGroupAccountId': !exists(json, 'SecurityGroupAccountId') ? undefined : json['SecurityGroupAccountId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} +export function SourceSecurityGroupToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'SecurityGroupAccountId': value.securityGroupAccountId, + 'SecurityGroupName': value.securityGroupName, + }; +} diff --git a/dist/esm/models/StartVmsRequest.d.ts b/dist/esm/models/StartVmsRequest.d.ts new file mode 100644 index 00000000..02be3bcc --- /dev/null +++ b/dist/esm/models/StartVmsRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StartVmsRequest + */ +export interface StartVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof StartVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof StartVmsRequest + */ + vmIds: Array; +} +export declare function StartVmsRequestFromJSON(json: any): StartVmsRequest; +export declare function StartVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartVmsRequest; +export declare function StartVmsRequestToJSON(value?: StartVmsRequest | null): any; diff --git a/dist/esm/models/StartVmsRequest.js b/dist/esm/models/StartVmsRequest.js new file mode 100644 index 00000000..b1bc8e77 --- /dev/null +++ b/dist/esm/models/StartVmsRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function StartVmsRequestFromJSON(json) { + return StartVmsRequestFromJSONTyped(json, false); +} +export function StartVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} +export function StartVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/StartVmsResponse.d.ts b/dist/esm/models/StartVmsResponse.d.ts new file mode 100644 index 00000000..04a074b8 --- /dev/null +++ b/dist/esm/models/StartVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmState } from './VmState'; +/** + * + * @export + * @interface StartVmsResponse + */ +export interface StartVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof StartVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more started VMs. + * @type {Array} + * @memberof StartVmsResponse + */ + vms?: Array; +} +export declare function StartVmsResponseFromJSON(json: any): StartVmsResponse; +export declare function StartVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartVmsResponse; +export declare function StartVmsResponseToJSON(value?: StartVmsResponse | null): any; diff --git a/dist/esm/models/StartVmsResponse.js b/dist/esm/models/StartVmsResponse.js new file mode 100644 index 00000000..cbecb551 --- /dev/null +++ b/dist/esm/models/StartVmsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmStateFromJSON, VmStateToJSON, } from './VmState'; +export function StartVmsResponseFromJSON(json) { + return StartVmsResponseFromJSONTyped(json, false); +} +export function StartVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : (json['Vms'].map(VmStateFromJSON)), + }; +} +export function StartVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmStateToJSON)), + }; +} diff --git a/dist/esm/models/StateComment.d.ts b/dist/esm/models/StateComment.d.ts new file mode 100644 index 00000000..27cc3dc5 --- /dev/null +++ b/dist/esm/models/StateComment.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the change of state. + * @export + * @interface StateComment + */ +export interface StateComment { + /** + * The code of the change of state. + * @type {string} + * @memberof StateComment + */ + stateCode?: string; + /** + * A message explaining the change of state. + * @type {string} + * @memberof StateComment + */ + stateMessage?: string; +} +export declare function StateCommentFromJSON(json: any): StateComment; +export declare function StateCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateComment; +export declare function StateCommentToJSON(value?: StateComment | null): any; diff --git a/dist/esm/models/StateComment.js b/dist/esm/models/StateComment.js new file mode 100644 index 00000000..b553f47d --- /dev/null +++ b/dist/esm/models/StateComment.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function StateCommentFromJSON(json) { + return StateCommentFromJSONTyped(json, false); +} +export function StateCommentFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'stateCode': !exists(json, 'StateCode') ? undefined : json['StateCode'], + 'stateMessage': !exists(json, 'StateMessage') ? undefined : json['StateMessage'], + }; +} +export function StateCommentToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'StateCode': value.stateCode, + 'StateMessage': value.stateMessage, + }; +} diff --git a/dist/esm/models/StopVmsRequest.d.ts b/dist/esm/models/StopVmsRequest.d.ts new file mode 100644 index 00000000..a77bef12 --- /dev/null +++ b/dist/esm/models/StopVmsRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StopVmsRequest + */ +export interface StopVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof StopVmsRequest + */ + dryRun?: boolean; + /** + * Forces the VM to stop. + * @type {boolean} + * @memberof StopVmsRequest + */ + forceStop?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof StopVmsRequest + */ + vmIds: Array; +} +export declare function StopVmsRequestFromJSON(json: any): StopVmsRequest; +export declare function StopVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopVmsRequest; +export declare function StopVmsRequestToJSON(value?: StopVmsRequest | null): any; diff --git a/dist/esm/models/StopVmsRequest.js b/dist/esm/models/StopVmsRequest.js new file mode 100644 index 00000000..ae14fbe0 --- /dev/null +++ b/dist/esm/models/StopVmsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function StopVmsRequestFromJSON(json) { + return StopVmsRequestFromJSONTyped(json, false); +} +export function StopVmsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'forceStop': !exists(json, 'ForceStop') ? undefined : json['ForceStop'], + 'vmIds': json['VmIds'], + }; +} +export function StopVmsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ForceStop': value.forceStop, + 'VmIds': value.vmIds, + }; +} diff --git a/dist/esm/models/StopVmsResponse.d.ts b/dist/esm/models/StopVmsResponse.d.ts new file mode 100644 index 00000000..6c5cba1e --- /dev/null +++ b/dist/esm/models/StopVmsResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VmState } from './VmState'; +/** + * + * @export + * @interface StopVmsResponse + */ +export interface StopVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof StopVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more stopped VMs. + * @type {Array} + * @memberof StopVmsResponse + */ + vms?: Array; +} +export declare function StopVmsResponseFromJSON(json: any): StopVmsResponse; +export declare function StopVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopVmsResponse; +export declare function StopVmsResponseToJSON(value?: StopVmsResponse | null): any; diff --git a/dist/esm/models/StopVmsResponse.js b/dist/esm/models/StopVmsResponse.js new file mode 100644 index 00000000..96d9bee8 --- /dev/null +++ b/dist/esm/models/StopVmsResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmStateFromJSON, VmStateToJSON, } from './VmState'; +export function StopVmsResponseFromJSON(json) { + return StopVmsResponseFromJSONTyped(json, false); +} +export function StopVmsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : (json['Vms'].map(VmStateFromJSON)), + }; +} +export function StopVmsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : (value.vms.map(VmStateToJSON)), + }; +} diff --git a/dist/esm/models/Subnet.d.ts b/dist/esm/models/Subnet.d.ts new file mode 100644 index 00000000..9460165d --- /dev/null +++ b/dist/esm/models/Subnet.d.ts @@ -0,0 +1,70 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +/** + * Information about the Subnet. + * @export + * @interface Subnet + */ +export interface Subnet { + /** + * The number of available IPs in the Subnets. + * @type {number} + * @memberof Subnet + */ + availableIpsCount?: number; + /** + * The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof Subnet + */ + ipRange?: string; + /** + * If true, a public IP is assigned to the network interface cards (NICs) created in the specified Subnet. + * @type {boolean} + * @memberof Subnet + */ + mapPublicIpOnLaunch?: boolean; + /** + * The ID of the Net in which the Subnet is. + * @type {string} + * @memberof Subnet + */ + netId?: string; + /** + * The state of the Subnet (`pending` \| `available`). + * @type {string} + * @memberof Subnet + */ + state?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof Subnet + */ + subnetId?: string; + /** + * The name of the Subregion in which the Subnet is located. + * @type {string} + * @memberof Subnet + */ + subregionName?: string; + /** + * One or more tags associated with the Subnet. + * @type {Array} + * @memberof Subnet + */ + tags?: Array; +} +export declare function SubnetFromJSON(json: any): Subnet; +export declare function SubnetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subnet; +export declare function SubnetToJSON(value?: Subnet | null): any; diff --git a/dist/esm/models/Subnet.js b/dist/esm/models/Subnet.js new file mode 100644 index 00000000..60f95caf --- /dev/null +++ b/dist/esm/models/Subnet.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function SubnetFromJSON(json) { + return SubnetFromJSONTyped(json, false); +} +export function SubnetFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'availableIpsCount': !exists(json, 'AvailableIpsCount') ? undefined : json['AvailableIpsCount'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'mapPublicIpOnLaunch': !exists(json, 'MapPublicIpOnLaunch') ? undefined : json['MapPublicIpOnLaunch'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + }; +} +export function SubnetToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AvailableIpsCount': value.availableIpsCount, + 'IpRange': value.ipRange, + 'MapPublicIpOnLaunch': value.mapPublicIpOnLaunch, + 'NetId': value.netId, + 'State': value.state, + 'SubnetId': value.subnetId, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + }; +} diff --git a/dist/esm/models/Subregion.d.ts b/dist/esm/models/Subregion.d.ts new file mode 100644 index 00000000..02ec91ad --- /dev/null +++ b/dist/esm/models/Subregion.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the Subregion. + * @export + * @interface Subregion + */ +export interface Subregion { + /** + * The name of the Region containing the Subregion. + * @type {string} + * @memberof Subregion + */ + regionName?: string; + /** + * The state of the Subregion (`available` \| `information` \| `impaired` \| `unavailable`). + * @type {string} + * @memberof Subregion + */ + state?: string; + /** + * The name of the Subregion. + * @type {string} + * @memberof Subregion + */ + subregionName?: string; +} +export declare function SubregionFromJSON(json: any): Subregion; +export declare function SubregionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subregion; +export declare function SubregionToJSON(value?: Subregion | null): any; diff --git a/dist/esm/models/Subregion.js b/dist/esm/models/Subregion.js new file mode 100644 index 00000000..3c621612 --- /dev/null +++ b/dist/esm/models/Subregion.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function SubregionFromJSON(json) { + return SubregionFromJSONTyped(json, false); +} +export function SubregionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'regionName': !exists(json, 'RegionName') ? undefined : json['RegionName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + }; +} +export function SubregionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'RegionName': value.regionName, + 'State': value.state, + 'SubregionName': value.subregionName, + }; +} diff --git a/dist/esm/models/Tag.d.ts b/dist/esm/models/Tag.d.ts new file mode 100644 index 00000000..40ecedba --- /dev/null +++ b/dist/esm/models/Tag.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the tag. + * @export + * @interface Tag + */ +export interface Tag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof Tag + */ + key?: string; + /** + * The ID of the resource. + * @type {string} + * @memberof Tag + */ + resourceId?: string; + /** + * The type of the resource. + * @type {string} + * @memberof Tag + */ + resourceType?: string; + /** + * The value of the tag, between 0 and 255 characters. + * @type {string} + * @memberof Tag + */ + value?: string; +} +export declare function TagFromJSON(json: any): Tag; +export declare function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag; +export declare function TagToJSON(value?: Tag | null): any; diff --git a/dist/esm/models/Tag.js b/dist/esm/models/Tag.js new file mode 100644 index 00000000..bac6ab38 --- /dev/null +++ b/dist/esm/models/Tag.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function TagFromJSON(json) { + return TagFromJSONTyped(json, false); +} +export function TagFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'key': !exists(json, 'Key') ? undefined : json['Key'], + 'resourceId': !exists(json, 'ResourceId') ? undefined : json['ResourceId'], + 'resourceType': !exists(json, 'ResourceType') ? undefined : json['ResourceType'], + 'value': !exists(json, 'Value') ? undefined : json['Value'], + }; +} +export function TagToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Key': value.key, + 'ResourceId': value.resourceId, + 'ResourceType': value.resourceType, + 'Value': value.value, + }; +} diff --git a/dist/esm/models/UnlinkFlexibleGpuRequest.d.ts b/dist/esm/models/UnlinkFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..8bb37460 --- /dev/null +++ b/dist/esm/models/UnlinkFlexibleGpuRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkFlexibleGpuRequest + */ +export interface UnlinkFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to detach from your VM. + * @type {string} + * @memberof UnlinkFlexibleGpuRequest + */ + flexibleGpuId: string; +} +export declare function UnlinkFlexibleGpuRequestFromJSON(json: any): UnlinkFlexibleGpuRequest; +export declare function UnlinkFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkFlexibleGpuRequest; +export declare function UnlinkFlexibleGpuRequestToJSON(value?: UnlinkFlexibleGpuRequest | null): any; diff --git a/dist/esm/models/UnlinkFlexibleGpuRequest.js b/dist/esm/models/UnlinkFlexibleGpuRequest.js new file mode 100644 index 00000000..d858064f --- /dev/null +++ b/dist/esm/models/UnlinkFlexibleGpuRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkFlexibleGpuRequestFromJSON(json) { + return UnlinkFlexibleGpuRequestFromJSONTyped(json, false); +} +export function UnlinkFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} +export function UnlinkFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} diff --git a/dist/esm/models/UnlinkFlexibleGpuResponse.d.ts b/dist/esm/models/UnlinkFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..e0f3ae61 --- /dev/null +++ b/dist/esm/models/UnlinkFlexibleGpuResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkFlexibleGpuResponse + */ +export interface UnlinkFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkFlexibleGpuResponseFromJSON(json: any): UnlinkFlexibleGpuResponse; +export declare function UnlinkFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkFlexibleGpuResponse; +export declare function UnlinkFlexibleGpuResponseToJSON(value?: UnlinkFlexibleGpuResponse | null): any; diff --git a/dist/esm/models/UnlinkFlexibleGpuResponse.js b/dist/esm/models/UnlinkFlexibleGpuResponse.js new file mode 100644 index 00000000..a3786162 --- /dev/null +++ b/dist/esm/models/UnlinkFlexibleGpuResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkFlexibleGpuResponseFromJSON(json) { + return UnlinkFlexibleGpuResponseFromJSONTyped(json, false); +} +export function UnlinkFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkInternetServiceRequest.d.ts b/dist/esm/models/UnlinkInternetServiceRequest.d.ts new file mode 100644 index 00000000..ad0191e5 --- /dev/null +++ b/dist/esm/models/UnlinkInternetServiceRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkInternetServiceRequest + */ +export interface UnlinkInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to detach. + * @type {string} + * @memberof UnlinkInternetServiceRequest + */ + internetServiceId: string; + /** + * The ID of the Net from which you want to detach the Internet service. + * @type {string} + * @memberof UnlinkInternetServiceRequest + */ + netId: string; +} +export declare function UnlinkInternetServiceRequestFromJSON(json: any): UnlinkInternetServiceRequest; +export declare function UnlinkInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkInternetServiceRequest; +export declare function UnlinkInternetServiceRequestToJSON(value?: UnlinkInternetServiceRequest | null): any; diff --git a/dist/esm/models/UnlinkInternetServiceRequest.js b/dist/esm/models/UnlinkInternetServiceRequest.js new file mode 100644 index 00000000..e55a2734 --- /dev/null +++ b/dist/esm/models/UnlinkInternetServiceRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkInternetServiceRequestFromJSON(json) { + return UnlinkInternetServiceRequestFromJSONTyped(json, false); +} +export function UnlinkInternetServiceRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + 'netId': json['NetId'], + }; +} +export function UnlinkInternetServiceRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/UnlinkInternetServiceResponse.d.ts b/dist/esm/models/UnlinkInternetServiceResponse.d.ts new file mode 100644 index 00000000..6c617fd1 --- /dev/null +++ b/dist/esm/models/UnlinkInternetServiceResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkInternetServiceResponse + */ +export interface UnlinkInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkInternetServiceResponseFromJSON(json: any): UnlinkInternetServiceResponse; +export declare function UnlinkInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkInternetServiceResponse; +export declare function UnlinkInternetServiceResponseToJSON(value?: UnlinkInternetServiceResponse | null): any; diff --git a/dist/esm/models/UnlinkInternetServiceResponse.js b/dist/esm/models/UnlinkInternetServiceResponse.js new file mode 100644 index 00000000..7f25774a --- /dev/null +++ b/dist/esm/models/UnlinkInternetServiceResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkInternetServiceResponseFromJSON(json) { + return UnlinkInternetServiceResponseFromJSONTyped(json, false); +} +export function UnlinkInternetServiceResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkInternetServiceResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts b/dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts new file mode 100644 index 00000000..c3d8df97 --- /dev/null +++ b/dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkLoadBalancerBackendMachinesRequest + */ +export interface UnlinkLoadBalancerBackendMachinesRequest { + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + loadBalancerName: string; +} +export declare function UnlinkLoadBalancerBackendMachinesRequestFromJSON(json: any): UnlinkLoadBalancerBackendMachinesRequest; +export declare function UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkLoadBalancerBackendMachinesRequest; +export declare function UnlinkLoadBalancerBackendMachinesRequestToJSON(value?: UnlinkLoadBalancerBackendMachinesRequest | null): any; diff --git a/dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.js b/dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.js new file mode 100644 index 00000000..e1dcdfa8 --- /dev/null +++ b/dist/esm/models/UnlinkLoadBalancerBackendMachinesRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkLoadBalancerBackendMachinesRequestFromJSON(json) { + return UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, false); +} +export function UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'backendIps': !exists(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} +export function UnlinkLoadBalancerBackendMachinesRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} diff --git a/dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts b/dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts new file mode 100644 index 00000000..142258e7 --- /dev/null +++ b/dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkLoadBalancerBackendMachinesResponse + */ +export interface UnlinkLoadBalancerBackendMachinesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkLoadBalancerBackendMachinesResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkLoadBalancerBackendMachinesResponseFromJSON(json: any): UnlinkLoadBalancerBackendMachinesResponse; +export declare function UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkLoadBalancerBackendMachinesResponse; +export declare function UnlinkLoadBalancerBackendMachinesResponseToJSON(value?: UnlinkLoadBalancerBackendMachinesResponse | null): any; diff --git a/dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.js b/dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.js new file mode 100644 index 00000000..077da39d --- /dev/null +++ b/dist/esm/models/UnlinkLoadBalancerBackendMachinesResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkLoadBalancerBackendMachinesResponseFromJSON(json) { + return UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, false); +} +export function UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkLoadBalancerBackendMachinesResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkNicRequest.d.ts b/dist/esm/models/UnlinkNicRequest.d.ts new file mode 100644 index 00000000..a4ca96b6 --- /dev/null +++ b/dist/esm/models/UnlinkNicRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkNicRequest + */ +export interface UnlinkNicRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkNicRequest + */ + dryRun?: boolean; + /** + * The ID of the attachment operation. + * @type {string} + * @memberof UnlinkNicRequest + */ + linkNicId: string; +} +export declare function UnlinkNicRequestFromJSON(json: any): UnlinkNicRequest; +export declare function UnlinkNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkNicRequest; +export declare function UnlinkNicRequestToJSON(value?: UnlinkNicRequest | null): any; diff --git a/dist/esm/models/UnlinkNicRequest.js b/dist/esm/models/UnlinkNicRequest.js new file mode 100644 index 00000000..7293ecbf --- /dev/null +++ b/dist/esm/models/UnlinkNicRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkNicRequestFromJSON(json) { + return UnlinkNicRequestFromJSONTyped(json, false); +} +export function UnlinkNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkNicId': json['LinkNicId'], + }; +} +export function UnlinkNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LinkNicId': value.linkNicId, + }; +} diff --git a/dist/esm/models/UnlinkNicResponse.d.ts b/dist/esm/models/UnlinkNicResponse.d.ts new file mode 100644 index 00000000..42b023c0 --- /dev/null +++ b/dist/esm/models/UnlinkNicResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkNicResponse + */ +export interface UnlinkNicResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkNicResponseFromJSON(json: any): UnlinkNicResponse; +export declare function UnlinkNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkNicResponse; +export declare function UnlinkNicResponseToJSON(value?: UnlinkNicResponse | null): any; diff --git a/dist/esm/models/UnlinkNicResponse.js b/dist/esm/models/UnlinkNicResponse.js new file mode 100644 index 00000000..daf6e478 --- /dev/null +++ b/dist/esm/models/UnlinkNicResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkNicResponseFromJSON(json) { + return UnlinkNicResponseFromJSONTyped(json, false); +} +export function UnlinkNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkPrivateIpsRequest.d.ts b/dist/esm/models/UnlinkPrivateIpsRequest.d.ts new file mode 100644 index 00000000..82bdddec --- /dev/null +++ b/dist/esm/models/UnlinkPrivateIpsRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkPrivateIpsRequest + */ +export interface UnlinkPrivateIpsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkPrivateIpsRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC. + * @type {string} + * @memberof UnlinkPrivateIpsRequest + */ + nicId: string; + /** + * One or more secondary private IPs you want to unassign from the NIC. + * @type {Array} + * @memberof UnlinkPrivateIpsRequest + */ + privateIps: Array; +} +export declare function UnlinkPrivateIpsRequestFromJSON(json: any): UnlinkPrivateIpsRequest; +export declare function UnlinkPrivateIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPrivateIpsRequest; +export declare function UnlinkPrivateIpsRequestToJSON(value?: UnlinkPrivateIpsRequest | null): any; diff --git a/dist/esm/models/UnlinkPrivateIpsRequest.js b/dist/esm/models/UnlinkPrivateIpsRequest.js new file mode 100644 index 00000000..e2259052 --- /dev/null +++ b/dist/esm/models/UnlinkPrivateIpsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkPrivateIpsRequestFromJSON(json) { + return UnlinkPrivateIpsRequestFromJSONTyped(json, false); +} +export function UnlinkPrivateIpsRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'privateIps': json['PrivateIps'], + }; +} +export function UnlinkPrivateIpsRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps, + }; +} diff --git a/dist/esm/models/UnlinkPrivateIpsResponse.d.ts b/dist/esm/models/UnlinkPrivateIpsResponse.d.ts new file mode 100644 index 00000000..1344e32f --- /dev/null +++ b/dist/esm/models/UnlinkPrivateIpsResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkPrivateIpsResponse + */ +export interface UnlinkPrivateIpsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkPrivateIpsResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkPrivateIpsResponseFromJSON(json: any): UnlinkPrivateIpsResponse; +export declare function UnlinkPrivateIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPrivateIpsResponse; +export declare function UnlinkPrivateIpsResponseToJSON(value?: UnlinkPrivateIpsResponse | null): any; diff --git a/dist/esm/models/UnlinkPrivateIpsResponse.js b/dist/esm/models/UnlinkPrivateIpsResponse.js new file mode 100644 index 00000000..5882d9f2 --- /dev/null +++ b/dist/esm/models/UnlinkPrivateIpsResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkPrivateIpsResponseFromJSON(json) { + return UnlinkPrivateIpsResponseFromJSONTyped(json, false); +} +export function UnlinkPrivateIpsResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkPrivateIpsResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkPublicIpRequest.d.ts b/dist/esm/models/UnlinkPublicIpRequest.d.ts new file mode 100644 index 00000000..40376be5 --- /dev/null +++ b/dist/esm/models/UnlinkPublicIpRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkPublicIpRequest + */ +export interface UnlinkPublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkPublicIpRequest + */ + dryRun?: boolean; + /** + * The ID representing the association of the public IP with the VM or the NIC. This parameter is required unless you use the `PublicIp` parameter. + * @type {string} + * @memberof UnlinkPublicIpRequest + */ + linkPublicIpId?: string; + /** + * The public IP. This parameter is required unless you use the `LinkPublicIpId` parameter. + * @type {string} + * @memberof UnlinkPublicIpRequest + */ + publicIp?: string; +} +export declare function UnlinkPublicIpRequestFromJSON(json: any): UnlinkPublicIpRequest; +export declare function UnlinkPublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPublicIpRequest; +export declare function UnlinkPublicIpRequestToJSON(value?: UnlinkPublicIpRequest | null): any; diff --git a/dist/esm/models/UnlinkPublicIpRequest.js b/dist/esm/models/UnlinkPublicIpRequest.js new file mode 100644 index 00000000..6e226c98 --- /dev/null +++ b/dist/esm/models/UnlinkPublicIpRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkPublicIpRequestFromJSON(json) { + return UnlinkPublicIpRequestFromJSONTyped(json, false); +} +export function UnlinkPublicIpRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + }; +} +export function UnlinkPublicIpRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LinkPublicIpId': value.linkPublicIpId, + 'PublicIp': value.publicIp, + }; +} diff --git a/dist/esm/models/UnlinkPublicIpResponse.d.ts b/dist/esm/models/UnlinkPublicIpResponse.d.ts new file mode 100644 index 00000000..085f07fa --- /dev/null +++ b/dist/esm/models/UnlinkPublicIpResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkPublicIpResponse + */ +export interface UnlinkPublicIpResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkPublicIpResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkPublicIpResponseFromJSON(json: any): UnlinkPublicIpResponse; +export declare function UnlinkPublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPublicIpResponse; +export declare function UnlinkPublicIpResponseToJSON(value?: UnlinkPublicIpResponse | null): any; diff --git a/dist/esm/models/UnlinkPublicIpResponse.js b/dist/esm/models/UnlinkPublicIpResponse.js new file mode 100644 index 00000000..dcc168d5 --- /dev/null +++ b/dist/esm/models/UnlinkPublicIpResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkPublicIpResponseFromJSON(json) { + return UnlinkPublicIpResponseFromJSONTyped(json, false); +} +export function UnlinkPublicIpResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkPublicIpResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkRouteTableRequest.d.ts b/dist/esm/models/UnlinkRouteTableRequest.d.ts new file mode 100644 index 00000000..9801936c --- /dev/null +++ b/dist/esm/models/UnlinkRouteTableRequest.d.ts @@ -0,0 +1,33 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkRouteTableRequest + */ +export interface UnlinkRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof UnlinkRouteTableRequest + */ + linkRouteTableId: string; +} +export declare function UnlinkRouteTableRequestFromJSON(json: any): UnlinkRouteTableRequest; +export declare function UnlinkRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkRouteTableRequest; +export declare function UnlinkRouteTableRequestToJSON(value?: UnlinkRouteTableRequest | null): any; diff --git a/dist/esm/models/UnlinkRouteTableRequest.js b/dist/esm/models/UnlinkRouteTableRequest.js new file mode 100644 index 00000000..87370efc --- /dev/null +++ b/dist/esm/models/UnlinkRouteTableRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkRouteTableRequestFromJSON(json) { + return UnlinkRouteTableRequestFromJSONTyped(json, false); +} +export function UnlinkRouteTableRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkRouteTableId': json['LinkRouteTableId'], + }; +} +export function UnlinkRouteTableRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'LinkRouteTableId': value.linkRouteTableId, + }; +} diff --git a/dist/esm/models/UnlinkRouteTableResponse.d.ts b/dist/esm/models/UnlinkRouteTableResponse.d.ts new file mode 100644 index 00000000..94d79b2b --- /dev/null +++ b/dist/esm/models/UnlinkRouteTableResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkRouteTableResponse + */ +export interface UnlinkRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkRouteTableResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkRouteTableResponseFromJSON(json: any): UnlinkRouteTableResponse; +export declare function UnlinkRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkRouteTableResponse; +export declare function UnlinkRouteTableResponseToJSON(value?: UnlinkRouteTableResponse | null): any; diff --git a/dist/esm/models/UnlinkRouteTableResponse.js b/dist/esm/models/UnlinkRouteTableResponse.js new file mode 100644 index 00000000..bdac4b35 --- /dev/null +++ b/dist/esm/models/UnlinkRouteTableResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkRouteTableResponseFromJSON(json) { + return UnlinkRouteTableResponseFromJSONTyped(json, false); +} +export function UnlinkRouteTableResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkRouteTableResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkVirtualGatewayRequest.d.ts b/dist/esm/models/UnlinkVirtualGatewayRequest.d.ts new file mode 100644 index 00000000..14099551 --- /dev/null +++ b/dist/esm/models/UnlinkVirtualGatewayRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkVirtualGatewayRequest + */ +export interface UnlinkVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the Net from which you want to detach the virtual gateway. + * @type {string} + * @memberof UnlinkVirtualGatewayRequest + */ + netId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UnlinkVirtualGatewayRequest + */ + virtualGatewayId: string; +} +export declare function UnlinkVirtualGatewayRequestFromJSON(json: any): UnlinkVirtualGatewayRequest; +export declare function UnlinkVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVirtualGatewayRequest; +export declare function UnlinkVirtualGatewayRequestToJSON(value?: UnlinkVirtualGatewayRequest | null): any; diff --git a/dist/esm/models/UnlinkVirtualGatewayRequest.js b/dist/esm/models/UnlinkVirtualGatewayRequest.js new file mode 100644 index 00000000..f88730c0 --- /dev/null +++ b/dist/esm/models/UnlinkVirtualGatewayRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkVirtualGatewayRequestFromJSON(json) { + return UnlinkVirtualGatewayRequestFromJSONTyped(json, false); +} +export function UnlinkVirtualGatewayRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +export function UnlinkVirtualGatewayRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/UnlinkVirtualGatewayResponse.d.ts b/dist/esm/models/UnlinkVirtualGatewayResponse.d.ts new file mode 100644 index 00000000..1c6ca234 --- /dev/null +++ b/dist/esm/models/UnlinkVirtualGatewayResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkVirtualGatewayResponse + */ +export interface UnlinkVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkVirtualGatewayResponseFromJSON(json: any): UnlinkVirtualGatewayResponse; +export declare function UnlinkVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVirtualGatewayResponse; +export declare function UnlinkVirtualGatewayResponseToJSON(value?: UnlinkVirtualGatewayResponse | null): any; diff --git a/dist/esm/models/UnlinkVirtualGatewayResponse.js b/dist/esm/models/UnlinkVirtualGatewayResponse.js new file mode 100644 index 00000000..73bed34b --- /dev/null +++ b/dist/esm/models/UnlinkVirtualGatewayResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkVirtualGatewayResponseFromJSON(json) { + return UnlinkVirtualGatewayResponseFromJSONTyped(json, false); +} +export function UnlinkVirtualGatewayResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkVirtualGatewayResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UnlinkVolumeRequest.d.ts b/dist/esm/models/UnlinkVolumeRequest.d.ts new file mode 100644 index 00000000..81889b0d --- /dev/null +++ b/dist/esm/models/UnlinkVolumeRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UnlinkVolumeRequest + */ +export interface UnlinkVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkVolumeRequest + */ + dryRun?: boolean; + /** + * Forces the detachment of the volume in case of previous failure. Important: This action may damage your data or file systems. + * @type {boolean} + * @memberof UnlinkVolumeRequest + */ + forceUnlink?: boolean; + /** + * The ID of the volume you want to detach. + * @type {string} + * @memberof UnlinkVolumeRequest + */ + volumeId: string; +} +export declare function UnlinkVolumeRequestFromJSON(json: any): UnlinkVolumeRequest; +export declare function UnlinkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVolumeRequest; +export declare function UnlinkVolumeRequestToJSON(value?: UnlinkVolumeRequest | null): any; diff --git a/dist/esm/models/UnlinkVolumeRequest.js b/dist/esm/models/UnlinkVolumeRequest.js new file mode 100644 index 00000000..ce5f4c19 --- /dev/null +++ b/dist/esm/models/UnlinkVolumeRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UnlinkVolumeRequestFromJSON(json) { + return UnlinkVolumeRequestFromJSONTyped(json, false); +} +export function UnlinkVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'forceUnlink': !exists(json, 'ForceUnlink') ? undefined : json['ForceUnlink'], + 'volumeId': json['VolumeId'], + }; +} +export function UnlinkVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ForceUnlink': value.forceUnlink, + 'VolumeId': value.volumeId, + }; +} diff --git a/dist/esm/models/UnlinkVolumeResponse.d.ts b/dist/esm/models/UnlinkVolumeResponse.d.ts new file mode 100644 index 00000000..2682a9df --- /dev/null +++ b/dist/esm/models/UnlinkVolumeResponse.d.ts @@ -0,0 +1,28 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UnlinkVolumeResponse + */ +export interface UnlinkVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkVolumeResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UnlinkVolumeResponseFromJSON(json: any): UnlinkVolumeResponse; +export declare function UnlinkVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVolumeResponse; +export declare function UnlinkVolumeResponseToJSON(value?: UnlinkVolumeResponse | null): any; diff --git a/dist/esm/models/UnlinkVolumeResponse.js b/dist/esm/models/UnlinkVolumeResponse.js new file mode 100644 index 00000000..6d40c4e9 --- /dev/null +++ b/dist/esm/models/UnlinkVolumeResponse.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UnlinkVolumeResponseFromJSON(json) { + return UnlinkVolumeResponseFromJSONTyped(json, false); +} +export function UnlinkVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UnlinkVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateAccessKeyRequest.d.ts b/dist/esm/models/UpdateAccessKeyRequest.d.ts new file mode 100644 index 00000000..3dad66df --- /dev/null +++ b/dist/esm/models/UpdateAccessKeyRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateAccessKeyRequest + */ +export interface UpdateAccessKeyRequest { + /** + * The ID of the access key. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateAccessKeyRequest + */ + dryRun?: boolean; + /** + * The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). If not specified, the access key is set to not expire. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + expirationDate?: string; + /** + * The new state for the access key (`ACTIVE` \| `INACTIVE`). When set to `ACTIVE`, the access key is enabled and can be used to send requests. When set to `INACTIVE`, the access key is disabled. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + state: string; +} +export declare function UpdateAccessKeyRequestFromJSON(json: any): UpdateAccessKeyRequest; +export declare function UpdateAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccessKeyRequest; +export declare function UpdateAccessKeyRequestToJSON(value?: UpdateAccessKeyRequest | null): any; diff --git a/dist/esm/models/UpdateAccessKeyRequest.js b/dist/esm/models/UpdateAccessKeyRequest.js new file mode 100644 index 00000000..1e705701 --- /dev/null +++ b/dist/esm/models/UpdateAccessKeyRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateAccessKeyRequestFromJSON(json) { + return UpdateAccessKeyRequestFromJSONTyped(json, false); +} +export function UpdateAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'state': json['State'], + }; +} +export function UpdateAccessKeyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + 'ExpirationDate': value.expirationDate, + 'State': value.state, + }; +} diff --git a/dist/esm/models/UpdateAccessKeyResponse.d.ts b/dist/esm/models/UpdateAccessKeyResponse.d.ts new file mode 100644 index 00000000..66f8240e --- /dev/null +++ b/dist/esm/models/UpdateAccessKeyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessKey } from './AccessKey'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateAccessKeyResponse + */ +export interface UpdateAccessKeyResponse { + /** + * + * @type {AccessKey} + * @memberof UpdateAccessKeyResponse + */ + accessKey?: AccessKey; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateAccessKeyResponseFromJSON(json: any): UpdateAccessKeyResponse; +export declare function UpdateAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccessKeyResponse; +export declare function UpdateAccessKeyResponseToJSON(value?: UpdateAccessKeyResponse | null): any; diff --git a/dist/esm/models/UpdateAccessKeyResponse.js b/dist/esm/models/UpdateAccessKeyResponse.js new file mode 100644 index 00000000..dae85d4c --- /dev/null +++ b/dist/esm/models/UpdateAccessKeyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccessKeyFromJSON, AccessKeyToJSON, } from './AccessKey'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateAccessKeyResponseFromJSON(json) { + return UpdateAccessKeyResponseFromJSONTyped(json, false); +} +export function UpdateAccessKeyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessKey': !exists(json, 'AccessKey') ? undefined : AccessKeyFromJSON(json['AccessKey']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateAccessKeyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessKey': AccessKeyToJSON(value.accessKey), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateAccountRequest.d.ts b/dist/esm/models/UpdateAccountRequest.d.ts new file mode 100644 index 00000000..2f858317 --- /dev/null +++ b/dist/esm/models/UpdateAccountRequest.d.ts @@ -0,0 +1,105 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateAccountRequest + */ +export interface UpdateAccountRequest { + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. If you already have a list of additional emails registered, you cannot add to it, only replace it. To remove all registered additional emails, specify an empty list. + * @type {Array} + * @memberof UpdateAccountRequest + */ + additionalEmails?: Array; + /** + * The new city of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + city?: string; + /** + * The new name of the company for the account. + * @type {string} + * @memberof UpdateAccountRequest + */ + companyName?: string; + /** + * The new country of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + country?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateAccountRequest + */ + dryRun?: boolean; + /** + * The main email address for the account. This address is used for your credentials and notifications. + * @type {string} + * @memberof UpdateAccountRequest + */ + email?: string; + /** + * The new first name of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + firstName?: string; + /** + * The new job title of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + jobTitle?: string; + /** + * The new last name of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + lastName?: string; + /** + * The new mobile phone number of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + mobileNumber?: string; + /** + * The new landline phone number of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + phoneNumber?: string; + /** + * The new state/province of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + stateProvince?: string; + /** + * The new value added tax (VAT) number for the account. + * @type {string} + * @memberof UpdateAccountRequest + */ + vatNumber?: string; + /** + * The new ZIP code of the city. + * @type {string} + * @memberof UpdateAccountRequest + */ + zipCode?: string; +} +export declare function UpdateAccountRequestFromJSON(json: any): UpdateAccountRequest; +export declare function UpdateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountRequest; +export declare function UpdateAccountRequestToJSON(value?: UpdateAccountRequest | null): any; diff --git a/dist/esm/models/UpdateAccountRequest.js b/dist/esm/models/UpdateAccountRequest.js new file mode 100644 index 00000000..d3f0c297 --- /dev/null +++ b/dist/esm/models/UpdateAccountRequest.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateAccountRequestFromJSON(json) { + return UpdateAccountRequestFromJSONTyped(json, false); +} +export function UpdateAccountRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'additionalEmails': !exists(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': !exists(json, 'City') ? undefined : json['City'], + 'companyName': !exists(json, 'CompanyName') ? undefined : json['CompanyName'], + 'country': !exists(json, 'Country') ? undefined : json['Country'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'email': !exists(json, 'Email') ? undefined : json['Email'], + 'firstName': !exists(json, 'FirstName') ? undefined : json['FirstName'], + 'jobTitle': !exists(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': !exists(json, 'LastName') ? undefined : json['LastName'], + 'mobileNumber': !exists(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !exists(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !exists(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !exists(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': !exists(json, 'ZipCode') ? undefined : json['ZipCode'], + }; +} +export function UpdateAccountRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'DryRun': value.dryRun, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} diff --git a/dist/esm/models/UpdateAccountResponse.d.ts b/dist/esm/models/UpdateAccountResponse.d.ts new file mode 100644 index 00000000..6734b089 --- /dev/null +++ b/dist/esm/models/UpdateAccountResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Account } from './Account'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateAccountResponse + */ +export interface UpdateAccountResponse { + /** + * + * @type {Account} + * @memberof UpdateAccountResponse + */ + account?: Account; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateAccountResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateAccountResponseFromJSON(json: any): UpdateAccountResponse; +export declare function UpdateAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountResponse; +export declare function UpdateAccountResponseToJSON(value?: UpdateAccountResponse | null): any; diff --git a/dist/esm/models/UpdateAccountResponse.js b/dist/esm/models/UpdateAccountResponse.js new file mode 100644 index 00000000..9c19fae3 --- /dev/null +++ b/dist/esm/models/UpdateAccountResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccountFromJSON, AccountToJSON, } from './Account'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateAccountResponseFromJSON(json) { + return UpdateAccountResponseFromJSONTyped(json, false); +} +export function UpdateAccountResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'account': !exists(json, 'Account') ? undefined : AccountFromJSON(json['Account']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateAccountResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Account': AccountToJSON(value.account), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateApiAccessPolicyRequest.d.ts b/dist/esm/models/UpdateApiAccessPolicyRequest.d.ts new file mode 100644 index 00000000..bd38f048 --- /dev/null +++ b/dist/esm/models/UpdateApiAccessPolicyRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateApiAccessPolicyRequest + */ +export interface UpdateApiAccessPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateApiAccessPolicyRequest + */ + dryRun?: boolean; + /** + * The maximum possible lifetime for your access keys, in seconds (between `0` and `3153600000`, both included). If set to `O`, your access keys can have unlimited lifetimes, but a trusted session cannot be activated. Otherwise, all your access keys must have an expiration date. This value must be greater than the remaining lifetime of each access key of your account. + * @type {number} + * @memberof UpdateApiAccessPolicyRequest + */ + maxAccessKeyExpirationSeconds: number; + /** + * If true, a trusted session is activated, provided that you specify the `MaxAccessKeyExpirationSeconds` parameter with a value greater than `0`. + * @type {boolean} + * @memberof UpdateApiAccessPolicyRequest + */ + requireTrustedEnv: boolean; +} +export declare function UpdateApiAccessPolicyRequestFromJSON(json: any): UpdateApiAccessPolicyRequest; +export declare function UpdateApiAccessPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessPolicyRequest; +export declare function UpdateApiAccessPolicyRequestToJSON(value?: UpdateApiAccessPolicyRequest | null): any; diff --git a/dist/esm/models/UpdateApiAccessPolicyRequest.js b/dist/esm/models/UpdateApiAccessPolicyRequest.js new file mode 100644 index 00000000..09f6328f --- /dev/null +++ b/dist/esm/models/UpdateApiAccessPolicyRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateApiAccessPolicyRequestFromJSON(json) { + return UpdateApiAccessPolicyRequestFromJSONTyped(json, false); +} +export function UpdateApiAccessPolicyRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'maxAccessKeyExpirationSeconds': json['MaxAccessKeyExpirationSeconds'], + 'requireTrustedEnv': json['RequireTrustedEnv'], + }; +} +export function UpdateApiAccessPolicyRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'MaxAccessKeyExpirationSeconds': value.maxAccessKeyExpirationSeconds, + 'RequireTrustedEnv': value.requireTrustedEnv, + }; +} diff --git a/dist/esm/models/UpdateApiAccessPolicyResponse.d.ts b/dist/esm/models/UpdateApiAccessPolicyResponse.d.ts new file mode 100644 index 00000000..a830705c --- /dev/null +++ b/dist/esm/models/UpdateApiAccessPolicyResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessPolicy } from './ApiAccessPolicy'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateApiAccessPolicyResponse + */ +export interface UpdateApiAccessPolicyResponse { + /** + * + * @type {ApiAccessPolicy} + * @memberof UpdateApiAccessPolicyResponse + */ + apiAccessPolicy?: ApiAccessPolicy; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateApiAccessPolicyResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateApiAccessPolicyResponseFromJSON(json: any): UpdateApiAccessPolicyResponse; +export declare function UpdateApiAccessPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessPolicyResponse; +export declare function UpdateApiAccessPolicyResponseToJSON(value?: UpdateApiAccessPolicyResponse | null): any; diff --git a/dist/esm/models/UpdateApiAccessPolicyResponse.js b/dist/esm/models/UpdateApiAccessPolicyResponse.js new file mode 100644 index 00000000..72087c6f --- /dev/null +++ b/dist/esm/models/UpdateApiAccessPolicyResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ApiAccessPolicyFromJSON, ApiAccessPolicyToJSON, } from './ApiAccessPolicy'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateApiAccessPolicyResponseFromJSON(json) { + return UpdateApiAccessPolicyResponseFromJSONTyped(json, false); +} +export function UpdateApiAccessPolicyResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessPolicy': !exists(json, 'ApiAccessPolicy') ? undefined : ApiAccessPolicyFromJSON(json['ApiAccessPolicy']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateApiAccessPolicyResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessPolicy': ApiAccessPolicyToJSON(value.apiAccessPolicy), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateApiAccessRuleRequest.d.ts b/dist/esm/models/UpdateApiAccessRuleRequest.d.ts new file mode 100644 index 00000000..ba8cd2b4 --- /dev/null +++ b/dist/esm/models/UpdateApiAccessRuleRequest.d.ts @@ -0,0 +1,57 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateApiAccessRuleRequest + */ +export interface UpdateApiAccessRuleRequest { + /** + * The ID of the API access rule you want to update. + * @type {string} + * @memberof UpdateApiAccessRuleRequest + */ + apiAccessRuleId: string; + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + cns?: Array; + /** + * A new description for the API access rule. + * @type {string} + * @memberof UpdateApiAccessRuleRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateApiAccessRuleRequest + */ + dryRun?: boolean; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + ipRanges?: Array; +} +export declare function UpdateApiAccessRuleRequestFromJSON(json: any): UpdateApiAccessRuleRequest; +export declare function UpdateApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessRuleRequest; +export declare function UpdateApiAccessRuleRequestToJSON(value?: UpdateApiAccessRuleRequest | null): any; diff --git a/dist/esm/models/UpdateApiAccessRuleRequest.js b/dist/esm/models/UpdateApiAccessRuleRequest.js new file mode 100644 index 00000000..0a7c4556 --- /dev/null +++ b/dist/esm/models/UpdateApiAccessRuleRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateApiAccessRuleRequestFromJSON(json) { + return UpdateApiAccessRuleRequestFromJSONTyped(json, false); +} +export function UpdateApiAccessRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRuleId': json['ApiAccessRuleId'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} +export function UpdateApiAccessRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRuleId': value.apiAccessRuleId, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'DryRun': value.dryRun, + 'IpRanges': value.ipRanges, + }; +} diff --git a/dist/esm/models/UpdateApiAccessRuleResponse.d.ts b/dist/esm/models/UpdateApiAccessRuleResponse.d.ts new file mode 100644 index 00000000..826c9456 --- /dev/null +++ b/dist/esm/models/UpdateApiAccessRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiAccessRule } from './ApiAccessRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateApiAccessRuleResponse + */ +export interface UpdateApiAccessRuleResponse { + /** + * + * @type {ApiAccessRule} + * @memberof UpdateApiAccessRuleResponse + */ + apiAccessRule?: ApiAccessRule; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateApiAccessRuleResponseFromJSON(json: any): UpdateApiAccessRuleResponse; +export declare function UpdateApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessRuleResponse; +export declare function UpdateApiAccessRuleResponseToJSON(value?: UpdateApiAccessRuleResponse | null): any; diff --git a/dist/esm/models/UpdateApiAccessRuleResponse.js b/dist/esm/models/UpdateApiAccessRuleResponse.js new file mode 100644 index 00000000..e71ee0f7 --- /dev/null +++ b/dist/esm/models/UpdateApiAccessRuleResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ApiAccessRuleFromJSON, ApiAccessRuleToJSON, } from './ApiAccessRule'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateApiAccessRuleResponseFromJSON(json) { + return UpdateApiAccessRuleResponseFromJSONTyped(json, false); +} +export function UpdateApiAccessRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'apiAccessRule': !exists(json, 'ApiAccessRule') ? undefined : ApiAccessRuleFromJSON(json['ApiAccessRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateApiAccessRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ApiAccessRule': ApiAccessRuleToJSON(value.apiAccessRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateCaRequest.d.ts b/dist/esm/models/UpdateCaRequest.d.ts new file mode 100644 index 00000000..3e8fa79b --- /dev/null +++ b/dist/esm/models/UpdateCaRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateCaRequest + */ +export interface UpdateCaRequest { + /** + * The ID of the CA. + * @type {string} + * @memberof UpdateCaRequest + */ + caId: string; + /** + * The description of the CA. + * @type {string} + * @memberof UpdateCaRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateCaRequest + */ + dryRun?: boolean; +} +export declare function UpdateCaRequestFromJSON(json: any): UpdateCaRequest; +export declare function UpdateCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCaRequest; +export declare function UpdateCaRequestToJSON(value?: UpdateCaRequest | null): any; diff --git a/dist/esm/models/UpdateCaRequest.js b/dist/esm/models/UpdateCaRequest.js new file mode 100644 index 00000000..1a23075f --- /dev/null +++ b/dist/esm/models/UpdateCaRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateCaRequestFromJSON(json) { + return UpdateCaRequestFromJSONTyped(json, false); +} +export function UpdateCaRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'caId': json['CaId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} +export function UpdateCaRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CaId': value.caId, + 'Description': value.description, + 'DryRun': value.dryRun, + }; +} diff --git a/dist/esm/models/UpdateCaResponse.d.ts b/dist/esm/models/UpdateCaResponse.d.ts new file mode 100644 index 00000000..085db6bc --- /dev/null +++ b/dist/esm/models/UpdateCaResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Ca } from './Ca'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateCaResponse + */ +export interface UpdateCaResponse { + /** + * + * @type {Ca} + * @memberof UpdateCaResponse + */ + ca?: Ca; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateCaResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateCaResponseFromJSON(json: any): UpdateCaResponse; +export declare function UpdateCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCaResponse; +export declare function UpdateCaResponseToJSON(value?: UpdateCaResponse | null): any; diff --git a/dist/esm/models/UpdateCaResponse.js b/dist/esm/models/UpdateCaResponse.js new file mode 100644 index 00000000..cd9b47e8 --- /dev/null +++ b/dist/esm/models/UpdateCaResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { CaFromJSON, CaToJSON, } from './Ca'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateCaResponseFromJSON(json) { + return UpdateCaResponseFromJSONTyped(json, false); +} +export function UpdateCaResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'ca': !exists(json, 'Ca') ? undefined : CaFromJSON(json['Ca']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateCaResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Ca': CaToJSON(value.ca), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateFlexibleGpuRequest.d.ts b/dist/esm/models/UpdateFlexibleGpuRequest.d.ts new file mode 100644 index 00000000..04cf770a --- /dev/null +++ b/dist/esm/models/UpdateFlexibleGpuRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateFlexibleGpuRequest + */ +export interface UpdateFlexibleGpuRequest { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof UpdateFlexibleGpuRequest + */ + deleteOnVmDeletion?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to modify. + * @type {string} + * @memberof UpdateFlexibleGpuRequest + */ + flexibleGpuId: string; +} +export declare function UpdateFlexibleGpuRequestFromJSON(json: any): UpdateFlexibleGpuRequest; +export declare function UpdateFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFlexibleGpuRequest; +export declare function UpdateFlexibleGpuRequestToJSON(value?: UpdateFlexibleGpuRequest | null): any; diff --git a/dist/esm/models/UpdateFlexibleGpuRequest.js b/dist/esm/models/UpdateFlexibleGpuRequest.js new file mode 100644 index 00000000..d14bcc73 --- /dev/null +++ b/dist/esm/models/UpdateFlexibleGpuRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateFlexibleGpuRequestFromJSON(json) { + return UpdateFlexibleGpuRequestFromJSONTyped(json, false); +} +export function UpdateFlexibleGpuRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} +export function UpdateFlexibleGpuRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} diff --git a/dist/esm/models/UpdateFlexibleGpuResponse.d.ts b/dist/esm/models/UpdateFlexibleGpuResponse.d.ts new file mode 100644 index 00000000..f1b07cf4 --- /dev/null +++ b/dist/esm/models/UpdateFlexibleGpuResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FlexibleGpu } from './FlexibleGpu'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateFlexibleGpuResponse + */ +export interface UpdateFlexibleGpuResponse { + /** + * + * @type {FlexibleGpu} + * @memberof UpdateFlexibleGpuResponse + */ + flexibleGpu?: FlexibleGpu; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateFlexibleGpuResponseFromJSON(json: any): UpdateFlexibleGpuResponse; +export declare function UpdateFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFlexibleGpuResponse; +export declare function UpdateFlexibleGpuResponseToJSON(value?: UpdateFlexibleGpuResponse | null): any; diff --git a/dist/esm/models/UpdateFlexibleGpuResponse.js b/dist/esm/models/UpdateFlexibleGpuResponse.js new file mode 100644 index 00000000..c0fa0ff7 --- /dev/null +++ b/dist/esm/models/UpdateFlexibleGpuResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { FlexibleGpuFromJSON, FlexibleGpuToJSON, } from './FlexibleGpu'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateFlexibleGpuResponseFromJSON(json) { + return UpdateFlexibleGpuResponseFromJSONTyped(json, false); +} +export function UpdateFlexibleGpuResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'flexibleGpu': !exists(json, 'FlexibleGpu') ? undefined : FlexibleGpuFromJSON(json['FlexibleGpu']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateFlexibleGpuResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'FlexibleGpu': FlexibleGpuToJSON(value.flexibleGpu), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateImageRequest.d.ts b/dist/esm/models/UpdateImageRequest.d.ts new file mode 100644 index 00000000..904dbdd9 --- /dev/null +++ b/dist/esm/models/UpdateImageRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResourceCreation } from './PermissionsOnResourceCreation'; +/** + * + * @export + * @interface UpdateImageRequest + */ +export interface UpdateImageRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateImageRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI you want to modify. + * @type {string} + * @memberof UpdateImageRequest + */ + imageId: string; + /** + * + * @type {PermissionsOnResourceCreation} + * @memberof UpdateImageRequest + */ + permissionsToLaunch: PermissionsOnResourceCreation; +} +export declare function UpdateImageRequestFromJSON(json: any): UpdateImageRequest; +export declare function UpdateImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateImageRequest; +export declare function UpdateImageRequestToJSON(value?: UpdateImageRequest | null): any; diff --git a/dist/esm/models/UpdateImageRequest.js b/dist/esm/models/UpdateImageRequest.js new file mode 100644 index 00000000..494c1ef0 --- /dev/null +++ b/dist/esm/models/UpdateImageRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PermissionsOnResourceCreationFromJSON, PermissionsOnResourceCreationToJSON, } from './PermissionsOnResourceCreation'; +export function UpdateImageRequestFromJSON(json) { + return UpdateImageRequestFromJSONTyped(json, false); +} +export function UpdateImageRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'permissionsToLaunch': PermissionsOnResourceCreationFromJSON(json['PermissionsToLaunch']), + }; +} +export function UpdateImageRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'PermissionsToLaunch': PermissionsOnResourceCreationToJSON(value.permissionsToLaunch), + }; +} diff --git a/dist/esm/models/UpdateImageResponse.d.ts b/dist/esm/models/UpdateImageResponse.d.ts new file mode 100644 index 00000000..657c2b4a --- /dev/null +++ b/dist/esm/models/UpdateImageResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Image } from './Image'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateImageResponse + */ +export interface UpdateImageResponse { + /** + * + * @type {Image} + * @memberof UpdateImageResponse + */ + image?: Image; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateImageResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateImageResponseFromJSON(json: any): UpdateImageResponse; +export declare function UpdateImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateImageResponse; +export declare function UpdateImageResponseToJSON(value?: UpdateImageResponse | null): any; diff --git a/dist/esm/models/UpdateImageResponse.js b/dist/esm/models/UpdateImageResponse.js new file mode 100644 index 00000000..91b820c2 --- /dev/null +++ b/dist/esm/models/UpdateImageResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ImageFromJSON, ImageToJSON, } from './Image'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateImageResponseFromJSON(json) { + return UpdateImageResponseFromJSONTyped(json, false); +} +export function UpdateImageResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'image': !exists(json, 'Image') ? undefined : ImageFromJSON(json['Image']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateImageResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Image': ImageToJSON(value.image), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateListenerRuleRequest.d.ts b/dist/esm/models/UpdateListenerRuleRequest.d.ts new file mode 100644 index 00000000..5cdd0aaf --- /dev/null +++ b/dist/esm/models/UpdateListenerRuleRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateListenerRuleRequest + */ +export interface UpdateListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateListenerRuleRequest + */ + dryRun?: boolean; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + hostPattern?: string | null; + /** + * The name of the listener rule. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + listenerRuleName: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + pathPattern?: string | null; +} +export declare function UpdateListenerRuleRequestFromJSON(json: any): UpdateListenerRuleRequest; +export declare function UpdateListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateListenerRuleRequest; +export declare function UpdateListenerRuleRequestToJSON(value?: UpdateListenerRuleRequest | null): any; diff --git a/dist/esm/models/UpdateListenerRuleRequest.js b/dist/esm/models/UpdateListenerRuleRequest.js new file mode 100644 index 00000000..94176c3a --- /dev/null +++ b/dist/esm/models/UpdateListenerRuleRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateListenerRuleRequestFromJSON(json) { + return UpdateListenerRuleRequestFromJSONTyped(json, false); +} +export function UpdateListenerRuleRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'hostPattern': !exists(json, 'HostPattern') ? undefined : json['HostPattern'], + 'listenerRuleName': json['ListenerRuleName'], + 'pathPattern': !exists(json, 'PathPattern') ? undefined : json['PathPattern'], + }; +} +export function UpdateListenerRuleRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'HostPattern': value.hostPattern, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + }; +} diff --git a/dist/esm/models/UpdateListenerRuleResponse.d.ts b/dist/esm/models/UpdateListenerRuleResponse.d.ts new file mode 100644 index 00000000..c0bf417f --- /dev/null +++ b/dist/esm/models/UpdateListenerRuleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListenerRule } from './ListenerRule'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateListenerRuleResponse + */ +export interface UpdateListenerRuleResponse { + /** + * + * @type {ListenerRule} + * @memberof UpdateListenerRuleResponse + */ + listenerRule?: ListenerRule; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateListenerRuleResponseFromJSON(json: any): UpdateListenerRuleResponse; +export declare function UpdateListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateListenerRuleResponse; +export declare function UpdateListenerRuleResponseToJSON(value?: UpdateListenerRuleResponse | null): any; diff --git a/dist/esm/models/UpdateListenerRuleResponse.js b/dist/esm/models/UpdateListenerRuleResponse.js new file mode 100644 index 00000000..bbe66580 --- /dev/null +++ b/dist/esm/models/UpdateListenerRuleResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ListenerRuleFromJSON, ListenerRuleToJSON, } from './ListenerRule'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateListenerRuleResponseFromJSON(json) { + return UpdateListenerRuleResponseFromJSONTyped(json, false); +} +export function UpdateListenerRuleResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'listenerRule': !exists(json, 'ListenerRule') ? undefined : ListenerRuleFromJSON(json['ListenerRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateListenerRuleResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ListenerRule': ListenerRuleToJSON(value.listenerRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateLoadBalancerRequest.d.ts b/dist/esm/models/UpdateLoadBalancerRequest.d.ts new file mode 100644 index 00000000..5dea7564 --- /dev/null +++ b/dist/esm/models/UpdateLoadBalancerRequest.d.ts @@ -0,0 +1,77 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AccessLog } from './AccessLog'; +import { HealthCheck } from './HealthCheck'; +/** + * + * @export + * @interface UpdateLoadBalancerRequest + */ +export interface UpdateLoadBalancerRequest { + /** + * + * @type {AccessLog} + * @memberof UpdateLoadBalancerRequest + */ + accessLog?: AccessLog; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateLoadBalancerRequest + */ + dryRun?: boolean; + /** + * + * @type {HealthCheck} + * @memberof UpdateLoadBalancerRequest + */ + healthCheck?: HealthCheck; + /** + * The name of the load balancer. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + loadBalancerName: string; + /** + * The port on which the load balancer is listening (between `1` and `65535`, both included). This parameter is required if you want to update the server certificate. + * @type {number} + * @memberof UpdateLoadBalancerRequest + */ + loadBalancerPort?: number; + /** + * The name of the policy you want to enable for the listener. + * @type {Array} + * @memberof UpdateLoadBalancerRequest + */ + policyNames?: Array; + /** + * (internet-facing only) The public IP you want to associate with the load balancer. The former public IP of the load balancer is then disassociated. If you specify an empty string and the former public IP belonged to you, it is disassociated and replaced by a public IP owned by 3DS OUTSCALE. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + publicIp?: string; + /** + * (Net only) One or more IDs of security groups you want to assign to the load balancer. You need to specify the already assigned security groups that you want to keep along with the new ones you are assigning. If the list is empty, the default security group of the Net is assigned to the load balancer. + * @type {Array} + * @memberof UpdateLoadBalancerRequest + */ + securityGroups?: Array; + /** + * The Outscale Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > Outscale Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). If this parameter is specified, you must also specify the `LoadBalancerPort` parameter. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + serverCertificateId?: string; +} +export declare function UpdateLoadBalancerRequestFromJSON(json: any): UpdateLoadBalancerRequest; +export declare function UpdateLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLoadBalancerRequest; +export declare function UpdateLoadBalancerRequestToJSON(value?: UpdateLoadBalancerRequest | null): any; diff --git a/dist/esm/models/UpdateLoadBalancerRequest.js b/dist/esm/models/UpdateLoadBalancerRequest.js new file mode 100644 index 00000000..0b66d0ad --- /dev/null +++ b/dist/esm/models/UpdateLoadBalancerRequest.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { AccessLogFromJSON, AccessLogToJSON, } from './AccessLog'; +import { HealthCheckFromJSON, HealthCheckToJSON, } from './HealthCheck'; +export function UpdateLoadBalancerRequestFromJSON(json) { + return UpdateLoadBalancerRequestFromJSONTyped(json, false); +} +export function UpdateLoadBalancerRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accessLog': !exists(json, 'AccessLog') ? undefined : AccessLogFromJSON(json['AccessLog']), + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'healthCheck': !exists(json, 'HealthCheck') ? undefined : HealthCheckFromJSON(json['HealthCheck']), + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPort': !exists(json, 'LoadBalancerPort') ? undefined : json['LoadBalancerPort'], + 'policyNames': !exists(json, 'PolicyNames') ? undefined : json['PolicyNames'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'serverCertificateId': !exists(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} +export function UpdateLoadBalancerRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccessLog': AccessLogToJSON(value.accessLog), + 'DryRun': value.dryRun, + 'HealthCheck': HealthCheckToJSON(value.healthCheck), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPort': value.loadBalancerPort, + 'PolicyNames': value.policyNames, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'ServerCertificateId': value.serverCertificateId, + }; +} diff --git a/dist/esm/models/UpdateLoadBalancerResponse.d.ts b/dist/esm/models/UpdateLoadBalancerResponse.d.ts new file mode 100644 index 00000000..525c3605 --- /dev/null +++ b/dist/esm/models/UpdateLoadBalancerResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LoadBalancer } from './LoadBalancer'; +import { ModelResponseContext } from './ModelResponseContext'; +/** + * + * @export + * @interface UpdateLoadBalancerResponse + */ +export interface UpdateLoadBalancerResponse { + /** + * + * @type {LoadBalancer} + * @memberof UpdateLoadBalancerResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateLoadBalancerResponseFromJSON(json: any): UpdateLoadBalancerResponse; +export declare function UpdateLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLoadBalancerResponse; +export declare function UpdateLoadBalancerResponseToJSON(value?: UpdateLoadBalancerResponse | null): any; diff --git a/dist/esm/models/UpdateLoadBalancerResponse.js b/dist/esm/models/UpdateLoadBalancerResponse.js new file mode 100644 index 00000000..a48472b8 --- /dev/null +++ b/dist/esm/models/UpdateLoadBalancerResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LoadBalancerFromJSON, LoadBalancerToJSON, } from './LoadBalancer'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +export function UpdateLoadBalancerResponseFromJSON(json) { + return UpdateLoadBalancerResponseFromJSONTyped(json, false); +} +export function UpdateLoadBalancerResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateLoadBalancerResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateNetAccessPointRequest.d.ts b/dist/esm/models/UpdateNetAccessPointRequest.d.ts new file mode 100644 index 00000000..af8bed3c --- /dev/null +++ b/dist/esm/models/UpdateNetAccessPointRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateNetAccessPointRequest + */ +export interface UpdateNetAccessPointRequest { + /** + * One or more IDs of route tables to associate with the specified Net access point. + * @type {Array} + * @memberof UpdateNetAccessPointRequest + */ + addRouteTableIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net access point. + * @type {string} + * @memberof UpdateNetAccessPointRequest + */ + netAccessPointId: string; + /** + * One or more IDs of route tables to disassociate from the specified Net access point. + * @type {Array} + * @memberof UpdateNetAccessPointRequest + */ + removeRouteTableIds?: Array; +} +export declare function UpdateNetAccessPointRequestFromJSON(json: any): UpdateNetAccessPointRequest; +export declare function UpdateNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetAccessPointRequest; +export declare function UpdateNetAccessPointRequestToJSON(value?: UpdateNetAccessPointRequest | null): any; diff --git a/dist/esm/models/UpdateNetAccessPointRequest.js b/dist/esm/models/UpdateNetAccessPointRequest.js new file mode 100644 index 00000000..1f06b8e4 --- /dev/null +++ b/dist/esm/models/UpdateNetAccessPointRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateNetAccessPointRequestFromJSON(json) { + return UpdateNetAccessPointRequestFromJSONTyped(json, false); +} +export function UpdateNetAccessPointRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'addRouteTableIds': !exists(json, 'AddRouteTableIds') ? undefined : json['AddRouteTableIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netAccessPointId': json['NetAccessPointId'], + 'removeRouteTableIds': !exists(json, 'RemoveRouteTableIds') ? undefined : json['RemoveRouteTableIds'], + }; +} +export function UpdateNetAccessPointRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AddRouteTableIds': value.addRouteTableIds, + 'DryRun': value.dryRun, + 'NetAccessPointId': value.netAccessPointId, + 'RemoveRouteTableIds': value.removeRouteTableIds, + }; +} diff --git a/dist/esm/models/UpdateNetAccessPointResponse.d.ts b/dist/esm/models/UpdateNetAccessPointResponse.d.ts new file mode 100644 index 00000000..81fee9b0 --- /dev/null +++ b/dist/esm/models/UpdateNetAccessPointResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { NetAccessPoint } from './NetAccessPoint'; +/** + * + * @export + * @interface UpdateNetAccessPointResponse + */ +export interface UpdateNetAccessPointResponse { + /** + * + * @type {NetAccessPoint} + * @memberof UpdateNetAccessPointResponse + */ + netAccessPoint?: NetAccessPoint; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateNetAccessPointResponseFromJSON(json: any): UpdateNetAccessPointResponse; +export declare function UpdateNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetAccessPointResponse; +export declare function UpdateNetAccessPointResponseToJSON(value?: UpdateNetAccessPointResponse | null): any; diff --git a/dist/esm/models/UpdateNetAccessPointResponse.js b/dist/esm/models/UpdateNetAccessPointResponse.js new file mode 100644 index 00000000..1c87a000 --- /dev/null +++ b/dist/esm/models/UpdateNetAccessPointResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetAccessPointFromJSON, NetAccessPointToJSON, } from './NetAccessPoint'; +export function UpdateNetAccessPointResponseFromJSON(json) { + return UpdateNetAccessPointResponseFromJSONTyped(json, false); +} +export function UpdateNetAccessPointResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'netAccessPoint': !exists(json, 'NetAccessPoint') ? undefined : NetAccessPointFromJSON(json['NetAccessPoint']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateNetAccessPointResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'NetAccessPoint': NetAccessPointToJSON(value.netAccessPoint), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateNetRequest.d.ts b/dist/esm/models/UpdateNetRequest.d.ts new file mode 100644 index 00000000..fddfe339 --- /dev/null +++ b/dist/esm/models/UpdateNetRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateNetRequest + */ +export interface UpdateNetRequest { + /** + * The ID of the DHCP options set (or `default` if you want to associate the default one). + * @type {string} + * @memberof UpdateNetRequest + */ + dhcpOptionsSetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNetRequest + */ + dryRun?: boolean; + /** + * The ID of the Net. + * @type {string} + * @memberof UpdateNetRequest + */ + netId: string; +} +export declare function UpdateNetRequestFromJSON(json: any): UpdateNetRequest; +export declare function UpdateNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetRequest; +export declare function UpdateNetRequestToJSON(value?: UpdateNetRequest | null): any; diff --git a/dist/esm/models/UpdateNetRequest.js b/dist/esm/models/UpdateNetRequest.js new file mode 100644 index 00000000..f7ce6e8f --- /dev/null +++ b/dist/esm/models/UpdateNetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateNetRequestFromJSON(json) { + return UpdateNetRequestFromJSONTyped(json, false); +} +export function UpdateNetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dhcpOptionsSetId': json['DhcpOptionsSetId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} +export function UpdateNetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} diff --git a/dist/esm/models/UpdateNetResponse.d.ts b/dist/esm/models/UpdateNetResponse.d.ts new file mode 100644 index 00000000..2f7255dc --- /dev/null +++ b/dist/esm/models/UpdateNetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Net } from './Net'; +/** + * + * @export + * @interface UpdateNetResponse + */ +export interface UpdateNetResponse { + /** + * + * @type {Net} + * @memberof UpdateNetResponse + */ + net?: Net; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNetResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateNetResponseFromJSON(json: any): UpdateNetResponse; +export declare function UpdateNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetResponse; +export declare function UpdateNetResponseToJSON(value?: UpdateNetResponse | null): any; diff --git a/dist/esm/models/UpdateNetResponse.js b/dist/esm/models/UpdateNetResponse.js new file mode 100644 index 00000000..ad9325f6 --- /dev/null +++ b/dist/esm/models/UpdateNetResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NetFromJSON, NetToJSON, } from './Net'; +export function UpdateNetResponseFromJSON(json) { + return UpdateNetResponseFromJSONTyped(json, false); +} +export function UpdateNetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'net': !exists(json, 'Net') ? undefined : NetFromJSON(json['Net']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateNetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Net': NetToJSON(value.net), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateNicRequest.d.ts b/dist/esm/models/UpdateNicRequest.d.ts new file mode 100644 index 00000000..8251c84f --- /dev/null +++ b/dist/esm/models/UpdateNicRequest.d.ts @@ -0,0 +1,53 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkNicToUpdate } from './LinkNicToUpdate'; +/** + * + * @export + * @interface UpdateNicRequest + */ +export interface UpdateNicRequest { + /** + * A new description for the NIC. + * @type {string} + * @memberof UpdateNicRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNicRequest + */ + dryRun?: boolean; + /** + * + * @type {LinkNicToUpdate} + * @memberof UpdateNicRequest + */ + linkNic?: LinkNicToUpdate; + /** + * The ID of the NIC you want to modify. + * @type {string} + * @memberof UpdateNicRequest + */ + nicId: string; + /** + * One or more IDs of security groups for the NIC.
+ * You must specify at least one group, even if you use the default security group in the Net. + * @type {Array} + * @memberof UpdateNicRequest + */ + securityGroupIds?: Array; +} +export declare function UpdateNicRequestFromJSON(json: any): UpdateNicRequest; +export declare function UpdateNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNicRequest; +export declare function UpdateNicRequestToJSON(value?: UpdateNicRequest | null): any; diff --git a/dist/esm/models/UpdateNicRequest.js b/dist/esm/models/UpdateNicRequest.js new file mode 100644 index 00000000..9d8e0ea6 --- /dev/null +++ b/dist/esm/models/UpdateNicRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkNicToUpdateFromJSON, LinkNicToUpdateToJSON, } from './LinkNicToUpdate'; +export function UpdateNicRequestFromJSON(json) { + return UpdateNicRequestFromJSONTyped(json, false); +} +export function UpdateNicRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkNic': !exists(json, 'LinkNic') ? undefined : LinkNicToUpdateFromJSON(json['LinkNic']), + 'nicId': json['NicId'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + }; +} +export function UpdateNicRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Description': value.description, + 'DryRun': value.dryRun, + 'LinkNic': LinkNicToUpdateToJSON(value.linkNic), + 'NicId': value.nicId, + 'SecurityGroupIds': value.securityGroupIds, + }; +} diff --git a/dist/esm/models/UpdateNicResponse.d.ts b/dist/esm/models/UpdateNicResponse.d.ts new file mode 100644 index 00000000..7f97580a --- /dev/null +++ b/dist/esm/models/UpdateNicResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Nic } from './Nic'; +/** + * + * @export + * @interface UpdateNicResponse + */ +export interface UpdateNicResponse { + /** + * + * @type {Nic} + * @memberof UpdateNicResponse + */ + nic?: Nic; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNicResponse + */ + responseContext?: ModelResponseContext; +} +export declare function UpdateNicResponseFromJSON(json: any): UpdateNicResponse; +export declare function UpdateNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNicResponse; +export declare function UpdateNicResponseToJSON(value?: UpdateNicResponse | null): any; diff --git a/dist/esm/models/UpdateNicResponse.js b/dist/esm/models/UpdateNicResponse.js new file mode 100644 index 00000000..939a42ff --- /dev/null +++ b/dist/esm/models/UpdateNicResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { NicFromJSON, NicToJSON, } from './Nic'; +export function UpdateNicResponseFromJSON(json) { + return UpdateNicResponseFromJSONTyped(json, false); +} +export function UpdateNicResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'nic': !exists(json, 'Nic') ? undefined : NicFromJSON(json['Nic']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} +export function UpdateNicResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Nic': NicToJSON(value.nic), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} diff --git a/dist/esm/models/UpdateRoutePropagationRequest.d.ts b/dist/esm/models/UpdateRoutePropagationRequest.d.ts new file mode 100644 index 00000000..d4aa1ae6 --- /dev/null +++ b/dist/esm/models/UpdateRoutePropagationRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateRoutePropagationRequest + */ +export interface UpdateRoutePropagationRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateRoutePropagationRequest + */ + dryRun?: boolean; + /** + * If true, a virtual gateway can propagate routes to a specified route table of a Net. If false, the propagation is disabled. + * @type {boolean} + * @memberof UpdateRoutePropagationRequest + */ + enable: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof UpdateRoutePropagationRequest + */ + routeTableId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UpdateRoutePropagationRequest + */ + virtualGatewayId: string; +} +export declare function UpdateRoutePropagationRequestFromJSON(json: any): UpdateRoutePropagationRequest; +export declare function UpdateRoutePropagationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoutePropagationRequest; +export declare function UpdateRoutePropagationRequestToJSON(value?: UpdateRoutePropagationRequest | null): any; diff --git a/dist/esm/models/UpdateRoutePropagationRequest.js b/dist/esm/models/UpdateRoutePropagationRequest.js new file mode 100644 index 00000000..14235e4e --- /dev/null +++ b/dist/esm/models/UpdateRoutePropagationRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateRoutePropagationRequestFromJSON(json) { + return UpdateRoutePropagationRequestFromJSONTyped(json, false); +} +export function UpdateRoutePropagationRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'enable': json['Enable'], + 'routeTableId': json['RouteTableId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} +export function UpdateRoutePropagationRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Enable': value.enable, + 'RouteTableId': value.routeTableId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/UpdateRoutePropagationResponse.d.ts b/dist/esm/models/UpdateRoutePropagationResponse.d.ts new file mode 100644 index 00000000..8c94c4de --- /dev/null +++ b/dist/esm/models/UpdateRoutePropagationResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface UpdateRoutePropagationResponse + */ +export interface UpdateRoutePropagationResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateRoutePropagationResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof UpdateRoutePropagationResponse + */ + routeTable?: RouteTable; +} +export declare function UpdateRoutePropagationResponseFromJSON(json: any): UpdateRoutePropagationResponse; +export declare function UpdateRoutePropagationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoutePropagationResponse; +export declare function UpdateRoutePropagationResponseToJSON(value?: UpdateRoutePropagationResponse | null): any; diff --git a/dist/esm/models/UpdateRoutePropagationResponse.js b/dist/esm/models/UpdateRoutePropagationResponse.js new file mode 100644 index 00000000..92a59da2 --- /dev/null +++ b/dist/esm/models/UpdateRoutePropagationResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RouteTableFromJSON, RouteTableToJSON, } from './RouteTable'; +export function UpdateRoutePropagationResponseFromJSON(json) { + return UpdateRoutePropagationResponseFromJSONTyped(json, false); +} +export function UpdateRoutePropagationResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} +export function UpdateRoutePropagationResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} diff --git a/dist/esm/models/UpdateRouteRequest.d.ts b/dist/esm/models/UpdateRouteRequest.d.ts new file mode 100644 index 00000000..cd24f3a0 --- /dev/null +++ b/dist/esm/models/UpdateRouteRequest.d.ts @@ -0,0 +1,69 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateRouteRequest + */ +export interface UpdateRouteRequest { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof UpdateRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateRouteRequest + */ + dryRun?: boolean; + /** + * The ID of an Internet service or virtual gateway attached to your Net. + * @type {string} + * @memberof UpdateRouteRequest + */ + gatewayId?: string; + /** + * The ID of a NAT service. + * @type {string} + * @memberof UpdateRouteRequest + */ + natServiceId?: string; + /** + * The ID of a Net peering connection. + * @type {string} + * @memberof UpdateRouteRequest + */ + netPeeringId?: string; + /** + * The ID of a network interface card (NIC). + * @type {string} + * @memberof UpdateRouteRequest + */ + nicId?: string; + /** + * The ID of the route table. + * @type {string} + * @memberof UpdateRouteRequest + */ + routeTableId: string; + /** + * The ID of a NAT VM in your Net. + * @type {string} + * @memberof UpdateRouteRequest + */ + vmId?: string; +} +export declare function UpdateRouteRequestFromJSON(json: any): UpdateRouteRequest; +export declare function UpdateRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRouteRequest; +export declare function UpdateRouteRequestToJSON(value?: UpdateRouteRequest | null): any; diff --git a/dist/esm/models/UpdateRouteRequest.js b/dist/esm/models/UpdateRouteRequest.js new file mode 100644 index 00000000..3a90b7b4 --- /dev/null +++ b/dist/esm/models/UpdateRouteRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateRouteRequestFromJSON(json) { + return UpdateRouteRequestFromJSONTyped(json, false); +} +export function UpdateRouteRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'gatewayId': !exists(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'routeTableId': json['RouteTableId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function UpdateRouteRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'RouteTableId': value.routeTableId, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/UpdateRouteResponse.d.ts b/dist/esm/models/UpdateRouteResponse.d.ts new file mode 100644 index 00000000..be88c188 --- /dev/null +++ b/dist/esm/models/UpdateRouteResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { RouteTable } from './RouteTable'; +/** + * + * @export + * @interface UpdateRouteResponse + */ +export interface UpdateRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof UpdateRouteResponse + */ + routeTable?: RouteTable; +} +export declare function UpdateRouteResponseFromJSON(json: any): UpdateRouteResponse; +export declare function UpdateRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRouteResponse; +export declare function UpdateRouteResponseToJSON(value?: UpdateRouteResponse | null): any; diff --git a/dist/esm/models/UpdateRouteResponse.js b/dist/esm/models/UpdateRouteResponse.js new file mode 100644 index 00000000..55b73711 --- /dev/null +++ b/dist/esm/models/UpdateRouteResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { RouteTableFromJSON, RouteTableToJSON, } from './RouteTable'; +export function UpdateRouteResponseFromJSON(json) { + return UpdateRouteResponseFromJSONTyped(json, false); +} +export function UpdateRouteResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} +export function UpdateRouteResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} diff --git a/dist/esm/models/UpdateServerCertificateRequest.d.ts b/dist/esm/models/UpdateServerCertificateRequest.d.ts new file mode 100644 index 00000000..620bda00 --- /dev/null +++ b/dist/esm/models/UpdateServerCertificateRequest.d.ts @@ -0,0 +1,45 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateServerCertificateRequest + */ +export interface UpdateServerCertificateRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateServerCertificateRequest + */ + dryRun?: boolean; + /** + * The name of the server certificate you want to modify. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + name: string; + /** + * A new name for the server certificate. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + newName?: string; + /** + * A new path for the server certificate. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + newPath?: string; +} +export declare function UpdateServerCertificateRequestFromJSON(json: any): UpdateServerCertificateRequest; +export declare function UpdateServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateServerCertificateRequest; +export declare function UpdateServerCertificateRequestToJSON(value?: UpdateServerCertificateRequest | null): any; diff --git a/dist/esm/models/UpdateServerCertificateRequest.js b/dist/esm/models/UpdateServerCertificateRequest.js new file mode 100644 index 00000000..65e26e0a --- /dev/null +++ b/dist/esm/models/UpdateServerCertificateRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateServerCertificateRequestFromJSON(json) { + return UpdateServerCertificateRequestFromJSONTyped(json, false); +} +export function UpdateServerCertificateRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + 'newName': !exists(json, 'NewName') ? undefined : json['NewName'], + 'newPath': !exists(json, 'NewPath') ? undefined : json['NewPath'], + }; +} +export function UpdateServerCertificateRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Name': value.name, + 'NewName': value.newName, + 'NewPath': value.newPath, + }; +} diff --git a/dist/esm/models/UpdateServerCertificateResponse.d.ts b/dist/esm/models/UpdateServerCertificateResponse.d.ts new file mode 100644 index 00000000..f58ede89 --- /dev/null +++ b/dist/esm/models/UpdateServerCertificateResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { ServerCertificate } from './ServerCertificate'; +/** + * + * @export + * @interface UpdateServerCertificateResponse + */ +export interface UpdateServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateServerCertificateResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {ServerCertificate} + * @memberof UpdateServerCertificateResponse + */ + serverCertificate?: ServerCertificate; +} +export declare function UpdateServerCertificateResponseFromJSON(json: any): UpdateServerCertificateResponse; +export declare function UpdateServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateServerCertificateResponse; +export declare function UpdateServerCertificateResponseToJSON(value?: UpdateServerCertificateResponse | null): any; diff --git a/dist/esm/models/UpdateServerCertificateResponse.js b/dist/esm/models/UpdateServerCertificateResponse.js new file mode 100644 index 00000000..4cbb1505 --- /dev/null +++ b/dist/esm/models/UpdateServerCertificateResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { ServerCertificateFromJSON, ServerCertificateToJSON, } from './ServerCertificate'; +export function UpdateServerCertificateResponseFromJSON(json) { + return UpdateServerCertificateResponseFromJSONTyped(json, false); +} +export function UpdateServerCertificateResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'serverCertificate': !exists(json, 'ServerCertificate') ? undefined : ServerCertificateFromJSON(json['ServerCertificate']), + }; +} +export function UpdateServerCertificateResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'ServerCertificate': ServerCertificateToJSON(value.serverCertificate), + }; +} diff --git a/dist/esm/models/UpdateSnapshotRequest.d.ts b/dist/esm/models/UpdateSnapshotRequest.d.ts new file mode 100644 index 00000000..f8e82d6b --- /dev/null +++ b/dist/esm/models/UpdateSnapshotRequest.d.ts @@ -0,0 +1,40 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PermissionsOnResourceCreation } from './PermissionsOnResourceCreation'; +/** + * + * @export + * @interface UpdateSnapshotRequest + */ +export interface UpdateSnapshotRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateSnapshotRequest + */ + dryRun?: boolean; + /** + * + * @type {PermissionsOnResourceCreation} + * @memberof UpdateSnapshotRequest + */ + permissionsToCreateVolume: PermissionsOnResourceCreation; + /** + * The ID of the snapshot. + * @type {string} + * @memberof UpdateSnapshotRequest + */ + snapshotId: string; +} +export declare function UpdateSnapshotRequestFromJSON(json: any): UpdateSnapshotRequest; +export declare function UpdateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotRequest; +export declare function UpdateSnapshotRequestToJSON(value?: UpdateSnapshotRequest | null): any; diff --git a/dist/esm/models/UpdateSnapshotRequest.js b/dist/esm/models/UpdateSnapshotRequest.js new file mode 100644 index 00000000..37554bf9 --- /dev/null +++ b/dist/esm/models/UpdateSnapshotRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { PermissionsOnResourceCreationFromJSON, PermissionsOnResourceCreationToJSON, } from './PermissionsOnResourceCreation'; +export function UpdateSnapshotRequestFromJSON(json) { + return UpdateSnapshotRequestFromJSONTyped(json, false); +} +export function UpdateSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'permissionsToCreateVolume': PermissionsOnResourceCreationFromJSON(json['PermissionsToCreateVolume']), + 'snapshotId': json['SnapshotId'], + }; +} +export function UpdateSnapshotRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'PermissionsToCreateVolume': PermissionsOnResourceCreationToJSON(value.permissionsToCreateVolume), + 'SnapshotId': value.snapshotId, + }; +} diff --git a/dist/esm/models/UpdateSnapshotResponse.d.ts b/dist/esm/models/UpdateSnapshotResponse.d.ts new file mode 100644 index 00000000..5b85895f --- /dev/null +++ b/dist/esm/models/UpdateSnapshotResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Snapshot } from './Snapshot'; +/** + * + * @export + * @interface UpdateSnapshotResponse + */ +export interface UpdateSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateSnapshotResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Snapshot} + * @memberof UpdateSnapshotResponse + */ + snapshot?: Snapshot; +} +export declare function UpdateSnapshotResponseFromJSON(json: any): UpdateSnapshotResponse; +export declare function UpdateSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotResponse; +export declare function UpdateSnapshotResponseToJSON(value?: UpdateSnapshotResponse | null): any; diff --git a/dist/esm/models/UpdateSnapshotResponse.js b/dist/esm/models/UpdateSnapshotResponse.js new file mode 100644 index 00000000..fb0a2119 --- /dev/null +++ b/dist/esm/models/UpdateSnapshotResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot'; +export function UpdateSnapshotResponseFromJSON(json) { + return UpdateSnapshotResponseFromJSONTyped(json, false); +} +export function UpdateSnapshotResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshot': !exists(json, 'Snapshot') ? undefined : SnapshotFromJSON(json['Snapshot']), + }; +} +export function UpdateSnapshotResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Snapshot': SnapshotToJSON(value.snapshot), + }; +} diff --git a/dist/esm/models/UpdateSubnetRequest.d.ts b/dist/esm/models/UpdateSubnetRequest.d.ts new file mode 100644 index 00000000..a8a1477f --- /dev/null +++ b/dist/esm/models/UpdateSubnetRequest.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateSubnetRequest + */ +export interface UpdateSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateSubnetRequest + */ + dryRun?: boolean; + /** + * If true, a public IP is assigned to the network interface cards (NICs) created in the specified Subnet. + * @type {boolean} + * @memberof UpdateSubnetRequest + */ + mapPublicIpOnLaunch: boolean; + /** + * The ID of the Subnet. + * @type {string} + * @memberof UpdateSubnetRequest + */ + subnetId: string; +} +export declare function UpdateSubnetRequestFromJSON(json: any): UpdateSubnetRequest; +export declare function UpdateSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubnetRequest; +export declare function UpdateSubnetRequestToJSON(value?: UpdateSubnetRequest | null): any; diff --git a/dist/esm/models/UpdateSubnetRequest.js b/dist/esm/models/UpdateSubnetRequest.js new file mode 100644 index 00000000..2b4fe1eb --- /dev/null +++ b/dist/esm/models/UpdateSubnetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateSubnetRequestFromJSON(json) { + return UpdateSubnetRequestFromJSONTyped(json, false); +} +export function UpdateSubnetRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'mapPublicIpOnLaunch': json['MapPublicIpOnLaunch'], + 'subnetId': json['SubnetId'], + }; +} +export function UpdateSubnetRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'MapPublicIpOnLaunch': value.mapPublicIpOnLaunch, + 'SubnetId': value.subnetId, + }; +} diff --git a/dist/esm/models/UpdateSubnetResponse.d.ts b/dist/esm/models/UpdateSubnetResponse.d.ts new file mode 100644 index 00000000..9581b12a --- /dev/null +++ b/dist/esm/models/UpdateSubnetResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Subnet } from './Subnet'; +/** + * + * @export + * @interface UpdateSubnetResponse + */ +export interface UpdateSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateSubnetResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Subnet} + * @memberof UpdateSubnetResponse + */ + subnet?: Subnet; +} +export declare function UpdateSubnetResponseFromJSON(json: any): UpdateSubnetResponse; +export declare function UpdateSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubnetResponse; +export declare function UpdateSubnetResponseToJSON(value?: UpdateSubnetResponse | null): any; diff --git a/dist/esm/models/UpdateSubnetResponse.js b/dist/esm/models/UpdateSubnetResponse.js new file mode 100644 index 00000000..63550b48 --- /dev/null +++ b/dist/esm/models/UpdateSubnetResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { SubnetFromJSON, SubnetToJSON, } from './Subnet'; +export function UpdateSubnetResponseFromJSON(json) { + return UpdateSubnetResponseFromJSONTyped(json, false); +} +export function UpdateSubnetResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subnet': !exists(json, 'Subnet') ? undefined : SubnetFromJSON(json['Subnet']), + }; +} +export function UpdateSubnetResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subnet': SubnetToJSON(value.subnet), + }; +} diff --git a/dist/esm/models/UpdateVmRequest.d.ts b/dist/esm/models/UpdateVmRequest.d.ts new file mode 100644 index 00000000..33ce9ebb --- /dev/null +++ b/dist/esm/models/UpdateVmRequest.d.ts @@ -0,0 +1,104 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingVmUpdate } from './BlockDeviceMappingVmUpdate'; +/** + * + * @export + * @interface UpdateVmRequest + */ +export interface UpdateVmRequest { + /** + * One or more block device mappings of the VM. + * @type {Array} + * @memberof UpdateVmRequest + */ + blockDeviceMappings?: Array; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof UpdateVmRequest + */ + bsuOptimized?: boolean; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof UpdateVmRequest + */ + deletionProtection?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVmRequest + */ + dryRun?: boolean; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof UpdateVmRequest + */ + isSourceDestChecked?: boolean; + /** + * The name of the keypair.
+ * To complete the replacement, manually replace the old public key with the new public key in the ~/.ssh/authorized_keys file located in the VM. Restart the VM to apply the change. + * @type {string} + * @memberof UpdateVmRequest + */ + keypairName?: string; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof UpdateVmRequest + */ + performance?: UpdateVmRequestPerformanceEnum; + /** + * One or more IDs of security groups for the VM. + * @type {Array} + * @memberof UpdateVmRequest + */ + securityGroupIds?: Array; + /** + * The Base64-encoded MIME user data, limited to 500 kibibytes (KiB). + * @type {string} + * @memberof UpdateVmRequest + */ + userData?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof UpdateVmRequest + */ + vmId: string; + /** + * The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. + * @type {string} + * @memberof UpdateVmRequest + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof UpdateVmRequest + */ + vmType?: string; +} +/** + * @export + */ +export declare const UpdateVmRequestPerformanceEnum: { + readonly Medium: "medium"; + readonly High: "high"; + readonly Highest: "highest"; +}; +export declare type UpdateVmRequestPerformanceEnum = typeof UpdateVmRequestPerformanceEnum[keyof typeof UpdateVmRequestPerformanceEnum]; +export declare function UpdateVmRequestFromJSON(json: any): UpdateVmRequest; +export declare function UpdateVmRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVmRequest; +export declare function UpdateVmRequestToJSON(value?: UpdateVmRequest | null): any; diff --git a/dist/esm/models/UpdateVmRequest.js b/dist/esm/models/UpdateVmRequest.js new file mode 100644 index 00000000..2df2bdd1 --- /dev/null +++ b/dist/esm/models/UpdateVmRequest.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BlockDeviceMappingVmUpdateFromJSON, BlockDeviceMappingVmUpdateToJSON, } from './BlockDeviceMappingVmUpdate'; +/** + * @export + */ +export const UpdateVmRequestPerformanceEnum = { + Medium: 'medium', + High: 'high', + Highest: 'highest' +}; +export function UpdateVmRequestFromJSON(json) { + return UpdateVmRequestFromJSONTyped(json, false); +} +export function UpdateVmRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingVmUpdateFromJSON)), + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'deletionProtection': !exists(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'performance': !exists(json, 'Performance') ? undefined : json['Performance'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'userData': !exists(json, 'UserData') ? undefined : json['UserData'], + 'vmId': json['VmId'], + 'vmInitiatedShutdownBehavior': !exists(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !exists(json, 'VmType') ? undefined : json['VmType'], + }; +} +export function UpdateVmRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingVmUpdateToJSON)), + 'BsuOptimized': value.bsuOptimized, + 'DeletionProtection': value.deletionProtection, + 'DryRun': value.dryRun, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'KeypairName': value.keypairName, + 'Performance': value.performance, + 'SecurityGroupIds': value.securityGroupIds, + 'UserData': value.userData, + 'VmId': value.vmId, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} diff --git a/dist/esm/models/UpdateVmResponse.d.ts b/dist/esm/models/UpdateVmResponse.d.ts new file mode 100644 index 00000000..2e1c66a5 --- /dev/null +++ b/dist/esm/models/UpdateVmResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Vm } from './Vm'; +/** + * + * @export + * @interface UpdateVmResponse + */ +export interface UpdateVmResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVmResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Vm} + * @memberof UpdateVmResponse + */ + vm?: Vm; +} +export declare function UpdateVmResponseFromJSON(json: any): UpdateVmResponse; +export declare function UpdateVmResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVmResponse; +export declare function UpdateVmResponseToJSON(value?: UpdateVmResponse | null): any; diff --git a/dist/esm/models/UpdateVmResponse.js b/dist/esm/models/UpdateVmResponse.js new file mode 100644 index 00000000..bf7add4d --- /dev/null +++ b/dist/esm/models/UpdateVmResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VmFromJSON, VmToJSON, } from './Vm'; +export function UpdateVmResponseFromJSON(json) { + return UpdateVmResponseFromJSONTyped(json, false); +} +export function UpdateVmResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vm': !exists(json, 'Vm') ? undefined : VmFromJSON(json['Vm']), + }; +} +export function UpdateVmResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vm': VmToJSON(value.vm), + }; +} diff --git a/dist/esm/models/UpdateVolumeRequest.d.ts b/dist/esm/models/UpdateVolumeRequest.d.ts new file mode 100644 index 00000000..6b90d2bf --- /dev/null +++ b/dist/esm/models/UpdateVolumeRequest.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateVolumeRequest + */ +export interface UpdateVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVolumeRequest + */ + dryRun?: boolean; + /** + * The new number of I/O operations per second (IOPS). This parameter can be specified only if you update an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. This modification is instantaneous on a cold volume, not on a hot one. + * @type {number} + * @memberof UpdateVolumeRequest + */ + iops?: number; + /** + * (cold volume only) The new size of the volume, in gibibytes (GiB). This value must be equal to or greater than the current size of the volume. This modification is not instantaneous. + * @type {number} + * @memberof UpdateVolumeRequest + */ + size?: number; + /** + * The ID of the volume you want to update. + * @type {string} + * @memberof UpdateVolumeRequest + */ + volumeId: string; + /** + * (cold volume only) The new type of the volume (`standard` \| `io1` \| `gp2`). This modification is instantaneous. If you update to an `io1` volume, you must also specify the `Iops` parameter. + * @type {string} + * @memberof UpdateVolumeRequest + */ + volumeType?: string; +} +export declare function UpdateVolumeRequestFromJSON(json: any): UpdateVolumeRequest; +export declare function UpdateVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVolumeRequest; +export declare function UpdateVolumeRequestToJSON(value?: UpdateVolumeRequest | null): any; diff --git a/dist/esm/models/UpdateVolumeRequest.js b/dist/esm/models/UpdateVolumeRequest.js new file mode 100644 index 00000000..5d0721b9 --- /dev/null +++ b/dist/esm/models/UpdateVolumeRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function UpdateVolumeRequestFromJSON(json) { + return UpdateVolumeRequestFromJSONTyped(json, false); +} +export function UpdateVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'size': !exists(json, 'Size') ? undefined : json['Size'], + 'volumeId': json['VolumeId'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +export function UpdateVolumeRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'DryRun': value.dryRun, + 'Iops': value.iops, + 'Size': value.size, + 'VolumeId': value.volumeId, + 'VolumeType': value.volumeType, + }; +} diff --git a/dist/esm/models/UpdateVolumeResponse.d.ts b/dist/esm/models/UpdateVolumeResponse.d.ts new file mode 100644 index 00000000..e370089e --- /dev/null +++ b/dist/esm/models/UpdateVolumeResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { Volume } from './Volume'; +/** + * + * @export + * @interface UpdateVolumeResponse + */ +export interface UpdateVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVolumeResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Volume} + * @memberof UpdateVolumeResponse + */ + volume?: Volume; +} +export declare function UpdateVolumeResponseFromJSON(json: any): UpdateVolumeResponse; +export declare function UpdateVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVolumeResponse; +export declare function UpdateVolumeResponseToJSON(value?: UpdateVolumeResponse | null): any; diff --git a/dist/esm/models/UpdateVolumeResponse.js b/dist/esm/models/UpdateVolumeResponse.js new file mode 100644 index 00000000..5214e216 --- /dev/null +++ b/dist/esm/models/UpdateVolumeResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VolumeFromJSON, VolumeToJSON, } from './Volume'; +export function UpdateVolumeResponseFromJSON(json) { + return UpdateVolumeResponseFromJSONTyped(json, false); +} +export function UpdateVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'volume': !exists(json, 'Volume') ? undefined : VolumeFromJSON(json['Volume']), + }; +} +export function UpdateVolumeResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Volume': VolumeToJSON(value.volume), + }; +} diff --git a/dist/esm/models/UpdateVpnConnectionRequest.d.ts b/dist/esm/models/UpdateVpnConnectionRequest.d.ts new file mode 100644 index 00000000..c1a3af32 --- /dev/null +++ b/dist/esm/models/UpdateVpnConnectionRequest.d.ts @@ -0,0 +1,52 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { VpnOptions } from './VpnOptions'; +/** + * + * @export + * @interface UpdateVpnConnectionRequest + */ +export interface UpdateVpnConnectionRequest { + /** + * The ID of the client gateway. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + clientGatewayId?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVpnConnectionRequest + */ + dryRun?: boolean; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + virtualGatewayId?: string; + /** + * The ID of the VPN connection you want to modify. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + vpnConnectionId: string; + /** + * + * @type {VpnOptions} + * @memberof UpdateVpnConnectionRequest + */ + vpnOptions?: VpnOptions; +} +export declare function UpdateVpnConnectionRequestFromJSON(json: any): UpdateVpnConnectionRequest; +export declare function UpdateVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVpnConnectionRequest; +export declare function UpdateVpnConnectionRequestToJSON(value?: UpdateVpnConnectionRequest | null): any; diff --git a/dist/esm/models/UpdateVpnConnectionRequest.js b/dist/esm/models/UpdateVpnConnectionRequest.js new file mode 100644 index 00000000..4a880315 --- /dev/null +++ b/dist/esm/models/UpdateVpnConnectionRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { VpnOptionsFromJSON, VpnOptionsToJSON, } from './VpnOptions'; +export function UpdateVpnConnectionRequestFromJSON(json) { + return UpdateVpnConnectionRequestFromJSONTyped(json, false); +} +export function UpdateVpnConnectionRequestFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayId': !exists(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vpnConnectionId': json['VpnConnectionId'], + 'vpnOptions': !exists(json, 'VpnOptions') ? undefined : VpnOptionsFromJSON(json['VpnOptions']), + }; +} +export function UpdateVpnConnectionRequestToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayId': value.clientGatewayId, + 'DryRun': value.dryRun, + 'VirtualGatewayId': value.virtualGatewayId, + 'VpnConnectionId': value.vpnConnectionId, + 'VpnOptions': VpnOptionsToJSON(value.vpnOptions), + }; +} diff --git a/dist/esm/models/UpdateVpnConnectionResponse.d.ts b/dist/esm/models/UpdateVpnConnectionResponse.d.ts new file mode 100644 index 00000000..1ff49834 --- /dev/null +++ b/dist/esm/models/UpdateVpnConnectionResponse.d.ts @@ -0,0 +1,35 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ModelResponseContext } from './ModelResponseContext'; +import { VpnConnection } from './VpnConnection'; +/** + * + * @export + * @interface UpdateVpnConnectionResponse + */ +export interface UpdateVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVpnConnectionResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VpnConnection} + * @memberof UpdateVpnConnectionResponse + */ + vpnConnection?: VpnConnection; +} +export declare function UpdateVpnConnectionResponseFromJSON(json: any): UpdateVpnConnectionResponse; +export declare function UpdateVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVpnConnectionResponse; +export declare function UpdateVpnConnectionResponseToJSON(value?: UpdateVpnConnectionResponse | null): any; diff --git a/dist/esm/models/UpdateVpnConnectionResponse.js b/dist/esm/models/UpdateVpnConnectionResponse.js new file mode 100644 index 00000000..98a118d4 --- /dev/null +++ b/dist/esm/models/UpdateVpnConnectionResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ModelResponseContextFromJSON, ModelResponseContextToJSON, } from './ModelResponseContext'; +import { VpnConnectionFromJSON, VpnConnectionToJSON, } from './VpnConnection'; +export function UpdateVpnConnectionResponseFromJSON(json) { + return UpdateVpnConnectionResponseFromJSONTyped(json, false); +} +export function UpdateVpnConnectionResponseFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vpnConnection': !exists(json, 'VpnConnection') ? undefined : VpnConnectionFromJSON(json['VpnConnection']), + }; +} +export function UpdateVpnConnectionResponseToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VpnConnection': VpnConnectionToJSON(value.vpnConnection), + }; +} diff --git a/dist/esm/models/VgwTelemetry.d.ts b/dist/esm/models/VgwTelemetry.d.ts new file mode 100644 index 00000000..c5f0c30f --- /dev/null +++ b/dist/esm/models/VgwTelemetry.d.ts @@ -0,0 +1,51 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the current state of a VPN tunnel. + * @export + * @interface VgwTelemetry + */ +export interface VgwTelemetry { + /** + * The number of routes accepted through BGP (Border Gateway Protocol) route exchanges. + * @type {number} + * @memberof VgwTelemetry + */ + acceptedRouteCount?: number; + /** + * The date and time (UTC) of the latest state update. + * @type {string} + * @memberof VgwTelemetry + */ + lastStateChangeDate?: string; + /** + * The IP on the OUTSCALE side of the tunnel. + * @type {string} + * @memberof VgwTelemetry + */ + outsideIpAddress?: string; + /** + * The state of the IPSEC tunnel (`UP` \| `DOWN`). + * @type {string} + * @memberof VgwTelemetry + */ + state?: string; + /** + * A description of the current state of the tunnel. + * @type {string} + * @memberof VgwTelemetry + */ + stateDescription?: string; +} +export declare function VgwTelemetryFromJSON(json: any): VgwTelemetry; +export declare function VgwTelemetryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VgwTelemetry; +export declare function VgwTelemetryToJSON(value?: VgwTelemetry | null): any; diff --git a/dist/esm/models/VgwTelemetry.js b/dist/esm/models/VgwTelemetry.js new file mode 100644 index 00000000..4c85794b --- /dev/null +++ b/dist/esm/models/VgwTelemetry.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function VgwTelemetryFromJSON(json) { + return VgwTelemetryFromJSONTyped(json, false); +} +export function VgwTelemetryFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'acceptedRouteCount': !exists(json, 'AcceptedRouteCount') ? undefined : json['AcceptedRouteCount'], + 'lastStateChangeDate': !exists(json, 'LastStateChangeDate') ? undefined : json['LastStateChangeDate'], + 'outsideIpAddress': !exists(json, 'OutsideIpAddress') ? undefined : json['OutsideIpAddress'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateDescription': !exists(json, 'StateDescription') ? undefined : json['StateDescription'], + }; +} +export function VgwTelemetryToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AcceptedRouteCount': value.acceptedRouteCount, + 'LastStateChangeDate': value.lastStateChangeDate, + 'OutsideIpAddress': value.outsideIpAddress, + 'State': value.state, + 'StateDescription': value.stateDescription, + }; +} diff --git a/dist/esm/models/VirtualGateway.d.ts b/dist/esm/models/VirtualGateway.d.ts new file mode 100644 index 00000000..5e952315 --- /dev/null +++ b/dist/esm/models/VirtualGateway.d.ts @@ -0,0 +1,53 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NetToVirtualGatewayLink } from './NetToVirtualGatewayLink'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the virtual gateway. + * @export + * @interface VirtualGateway + */ +export interface VirtualGateway { + /** + * The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof VirtualGateway + */ + connectionType?: string; + /** + * The Net to which the virtual gateway is attached. + * @type {Array} + * @memberof VirtualGateway + */ + netToVirtualGatewayLinks?: Array; + /** + * The state of the virtual gateway (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof VirtualGateway + */ + state?: string; + /** + * One or more tags associated with the virtual gateway. + * @type {Array} + * @memberof VirtualGateway + */ + tags?: Array; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof VirtualGateway + */ + virtualGatewayId?: string; +} +export declare function VirtualGatewayFromJSON(json: any): VirtualGateway; +export declare function VirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualGateway; +export declare function VirtualGatewayToJSON(value?: VirtualGateway | null): any; diff --git a/dist/esm/models/VirtualGateway.js b/dist/esm/models/VirtualGateway.js new file mode 100644 index 00000000..2e5611ac --- /dev/null +++ b/dist/esm/models/VirtualGateway.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { NetToVirtualGatewayLinkFromJSON, NetToVirtualGatewayLinkToJSON, } from './NetToVirtualGatewayLink'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function VirtualGatewayFromJSON(json) { + return VirtualGatewayFromJSONTyped(json, false); +} +export function VirtualGatewayFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'connectionType': !exists(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'netToVirtualGatewayLinks': !exists(json, 'NetToVirtualGatewayLinks') ? undefined : (json['NetToVirtualGatewayLinks'].map(NetToVirtualGatewayLinkFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + }; +} +export function VirtualGatewayToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ConnectionType': value.connectionType, + 'NetToVirtualGatewayLinks': value.netToVirtualGatewayLinks === undefined ? undefined : (value.netToVirtualGatewayLinks.map(NetToVirtualGatewayLinkToJSON)), + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'VirtualGatewayId': value.virtualGatewayId, + }; +} diff --git a/dist/esm/models/Vm.d.ts b/dist/esm/models/Vm.d.ts new file mode 100644 index 00000000..3c5f7ae3 --- /dev/null +++ b/dist/esm/models/Vm.d.ts @@ -0,0 +1,224 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BlockDeviceMappingCreated } from './BlockDeviceMappingCreated'; +import { NicLight } from './NicLight'; +import { Placement } from './Placement'; +import { ResourceTag } from './ResourceTag'; +import { SecurityGroupLight } from './SecurityGroupLight'; +/** + * Information about the VM. + * @export + * @interface Vm + */ +export interface Vm { + /** + * The architecture of the VM (`i386` \| `x86_64`). + * @type {string} + * @memberof Vm + */ + architecture?: string; + /** + * The block device mapping of the VM. + * @type {Array} + * @memberof Vm + */ + blockDeviceMappings?: Array; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof Vm + */ + bsuOptimized?: boolean; + /** + * The idempotency token provided when launching the VM. + * @type {string} + * @memberof Vm + */ + clientToken?: string; + /** + * The date and time at which the VM was created. + * @type {string} + * @memberof Vm + */ + creationDate?: string; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof Vm + */ + deletionProtection?: boolean; + /** + * The hypervisor type of the VMs (`ovm` \| `xen`). + * @type {string} + * @memberof Vm + */ + hypervisor?: string; + /** + * The ID of the OMI used to create the VM. + * @type {string} + * @memberof Vm + */ + imageId?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof Vm + */ + isSourceDestChecked?: boolean; + /** + * The name of the keypair used when launching the VM. + * @type {string} + * @memberof Vm + */ + keypairName?: string; + /** + * The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on). + * @type {number} + * @memberof Vm + */ + launchNumber?: number; + /** + * The ID of the Net in which the VM is running. + * @type {string} + * @memberof Vm + */ + netId?: string; + /** + * (Net only) The network interface cards (NICs) the VMs are attached to. + * @type {Array} + * @memberof Vm + */ + nics?: Array; + /** + * Indicates the operating system (OS) of the VM. + * @type {string} + * @memberof Vm + */ + osFamily?: string; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof Vm + */ + performance?: string; + /** + * + * @type {Placement} + * @memberof Vm + */ + placement?: Placement; + /** + * The name of the private DNS. + * @type {string} + * @memberof Vm + */ + privateDnsName?: string; + /** + * The primary private IP of the VM. + * @type {string} + * @memberof Vm + */ + privateIp?: string; + /** + * The product code associated with the OMI used to create the VM (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof Vm + */ + productCodes?: Array; + /** + * The name of the public DNS. + * @type {string} + * @memberof Vm + */ + publicDnsName?: string; + /** + * The public IP of the VM. + * @type {string} + * @memberof Vm + */ + publicIp?: string; + /** + * The reservation ID of the VM. + * @type {string} + * @memberof Vm + */ + reservationId?: string; + /** + * The name of the root device for the VM (for example, `/dev/vda1`). + * @type {string} + * @memberof Vm + */ + rootDeviceName?: string; + /** + * The type of root device used by the VM (always `bsu`). + * @type {string} + * @memberof Vm + */ + rootDeviceType?: string; + /** + * One or more security groups associated with the VM. + * @type {Array} + * @memberof Vm + */ + securityGroups?: Array; + /** + * The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {string} + * @memberof Vm + */ + state?: string; + /** + * The reason explaining the current state of the VM. + * @type {string} + * @memberof Vm + */ + stateReason?: string; + /** + * The ID of the Subnet for the VM. + * @type {string} + * @memberof Vm + */ + subnetId?: string; + /** + * One or more tags associated with the VM. + * @type {Array} + * @memberof Vm + */ + tags?: Array; + /** + * The Base64-encoded MIME user data. + * @type {string} + * @memberof Vm + */ + userData?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof Vm + */ + vmId?: string; + /** + * The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is deleted. + * @type {string} + * @memberof Vm + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof Vm + */ + vmType?: string; +} +export declare function VmFromJSON(json: any): Vm; +export declare function VmFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vm; +export declare function VmToJSON(value?: Vm | null): any; diff --git a/dist/esm/models/Vm.js b/dist/esm/models/Vm.js new file mode 100644 index 00000000..df7deef6 --- /dev/null +++ b/dist/esm/models/Vm.js @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { BlockDeviceMappingCreatedFromJSON, BlockDeviceMappingCreatedToJSON, } from './BlockDeviceMappingCreated'; +import { NicLightFromJSON, NicLightToJSON, } from './NicLight'; +import { PlacementFromJSON, PlacementToJSON, } from './Placement'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { SecurityGroupLightFromJSON, SecurityGroupLightToJSON, } from './SecurityGroupLight'; +export function VmFromJSON(json) { + return VmFromJSONTyped(json, false); +} +export function VmFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'architecture': !exists(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : (json['BlockDeviceMappings'].map(BlockDeviceMappingCreatedFromJSON)), + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'clientToken': !exists(json, 'ClientToken') ? undefined : json['ClientToken'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'deletionProtection': !exists(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'hypervisor': !exists(json, 'Hypervisor') ? undefined : json['Hypervisor'], + 'imageId': !exists(json, 'ImageId') ? undefined : json['ImageId'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'launchNumber': !exists(json, 'LaunchNumber') ? undefined : json['LaunchNumber'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'nics': !exists(json, 'Nics') ? undefined : (json['Nics'].map(NicLightFromJSON)), + 'osFamily': !exists(json, 'OsFamily') ? undefined : json['OsFamily'], + 'performance': !exists(json, 'Performance') ? undefined : json['Performance'], + 'placement': !exists(json, 'Placement') ? undefined : PlacementFromJSON(json['Placement']), + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'productCodes': !exists(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'publicDnsName': !exists(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'reservationId': !exists(json, 'ReservationId') ? undefined : json['ReservationId'], + 'rootDeviceName': !exists(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'rootDeviceType': !exists(json, 'RootDeviceType') ? undefined : json['RootDeviceType'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : (json['SecurityGroups'].map(SecurityGroupLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateReason': !exists(json, 'StateReason') ? undefined : json['StateReason'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'userData': !exists(json, 'UserData') ? undefined : json['UserData'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + 'vmInitiatedShutdownBehavior': !exists(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !exists(json, 'VmType') ? undefined : json['VmType'], + }; +} +export function VmToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : (value.blockDeviceMappings.map(BlockDeviceMappingCreatedToJSON)), + 'BsuOptimized': value.bsuOptimized, + 'ClientToken': value.clientToken, + 'CreationDate': value.creationDate, + 'DeletionProtection': value.deletionProtection, + 'Hypervisor': value.hypervisor, + 'ImageId': value.imageId, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'KeypairName': value.keypairName, + 'LaunchNumber': value.launchNumber, + 'NetId': value.netId, + 'Nics': value.nics === undefined ? undefined : (value.nics.map(NicLightToJSON)), + 'OsFamily': value.osFamily, + 'Performance': value.performance, + 'Placement': PlacementToJSON(value.placement), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + 'ProductCodes': value.productCodes, + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'ReservationId': value.reservationId, + 'RootDeviceName': value.rootDeviceName, + 'RootDeviceType': value.rootDeviceType, + 'SecurityGroups': value.securityGroups === undefined ? undefined : (value.securityGroups.map(SecurityGroupLightToJSON)), + 'State': value.state, + 'StateReason': value.stateReason, + 'SubnetId': value.subnetId, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'UserData': value.userData, + 'VmId': value.vmId, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} diff --git a/dist/esm/models/VmState.d.ts b/dist/esm/models/VmState.d.ts new file mode 100644 index 00000000..b67dca9b --- /dev/null +++ b/dist/esm/models/VmState.d.ts @@ -0,0 +1,39 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the state of the VM. + * @export + * @interface VmState + */ +export interface VmState { + /** + * The current state of the VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof VmState + */ + currentState?: string; + /** + * The previous state of the VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof VmState + */ + previousState?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof VmState + */ + vmId?: string; +} +export declare function VmStateFromJSON(json: any): VmState; +export declare function VmStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmState; +export declare function VmStateToJSON(value?: VmState | null): any; diff --git a/dist/esm/models/VmState.js b/dist/esm/models/VmState.js new file mode 100644 index 00000000..35a30400 --- /dev/null +++ b/dist/esm/models/VmState.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function VmStateFromJSON(json) { + return VmStateFromJSONTyped(json, false); +} +export function VmStateFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'currentState': !exists(json, 'CurrentState') ? undefined : json['CurrentState'], + 'previousState': !exists(json, 'PreviousState') ? undefined : json['PreviousState'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} +export function VmStateToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CurrentState': value.currentState, + 'PreviousState': value.previousState, + 'VmId': value.vmId, + }; +} diff --git a/dist/esm/models/VmStates.d.ts b/dist/esm/models/VmStates.d.ts new file mode 100644 index 00000000..f2a17252 --- /dev/null +++ b/dist/esm/models/VmStates.d.ts @@ -0,0 +1,46 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MaintenanceEvent } from './MaintenanceEvent'; +/** + * Information about the states of the VMs. + * @export + * @interface VmStates + */ +export interface VmStates { + /** + * One or more scheduled events associated with the VM. + * @type {Array} + * @memberof VmStates + */ + maintenanceEvents?: Array; + /** + * The name of the Subregion of the VM. + * @type {string} + * @memberof VmStates + */ + subregionName?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof VmStates + */ + vmId?: string; + /** + * The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {string} + * @memberof VmStates + */ + vmState?: string; +} +export declare function VmStatesFromJSON(json: any): VmStates; +export declare function VmStatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmStates; +export declare function VmStatesToJSON(value?: VmStates | null): any; diff --git a/dist/esm/models/VmStates.js b/dist/esm/models/VmStates.js new file mode 100644 index 00000000..4e00cd48 --- /dev/null +++ b/dist/esm/models/VmStates.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { MaintenanceEventFromJSON, MaintenanceEventToJSON, } from './MaintenanceEvent'; +export function VmStatesFromJSON(json) { + return VmStatesFromJSONTyped(json, false); +} +export function VmStatesFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'maintenanceEvents': !exists(json, 'MaintenanceEvents') ? undefined : (json['MaintenanceEvents'].map(MaintenanceEventFromJSON)), + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + 'vmState': !exists(json, 'VmState') ? undefined : json['VmState'], + }; +} +export function VmStatesToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'MaintenanceEvents': value.maintenanceEvents === undefined ? undefined : (value.maintenanceEvents.map(MaintenanceEventToJSON)), + 'SubregionName': value.subregionName, + 'VmId': value.vmId, + 'VmState': value.vmState, + }; +} diff --git a/dist/esm/models/VmType.d.ts b/dist/esm/models/VmType.d.ts new file mode 100644 index 00000000..04bf0056 --- /dev/null +++ b/dist/esm/models/VmType.d.ts @@ -0,0 +1,63 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Information about the VM type. + * @export + * @interface VmType + */ +export interface VmType { + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof VmType + */ + bsuOptimized?: boolean; + /** + * The maximum number of private IPs per network interface card (NIC). + * @type {number} + * @memberof VmType + */ + maxPrivateIps?: number; + /** + * The amount of memory, in gibibytes. + * @type {number} + * @memberof VmType + */ + memorySize?: number; + /** + * The number of vCores. + * @type {number} + * @memberof VmType + */ + vcoreCount?: number; + /** + * The name of the VM type. + * @type {string} + * @memberof VmType + */ + vmTypeName?: string; + /** + * The maximum number of ephemeral storage disks. + * @type {number} + * @memberof VmType + */ + volumeCount?: number; + /** + * The size of one ephemeral storage disk, in gibibytes (GiB). + * @type {number} + * @memberof VmType + */ + volumeSize?: number; +} +export declare function VmTypeFromJSON(json: any): VmType; +export declare function VmTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmType; +export declare function VmTypeToJSON(value?: VmType | null): any; diff --git a/dist/esm/models/VmType.js b/dist/esm/models/VmType.js new file mode 100644 index 00000000..88a32db1 --- /dev/null +++ b/dist/esm/models/VmType.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function VmTypeFromJSON(json) { + return VmTypeFromJSONTyped(json, false); +} +export function VmTypeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'maxPrivateIps': !exists(json, 'MaxPrivateIps') ? undefined : json['MaxPrivateIps'], + 'memorySize': !exists(json, 'MemorySize') ? undefined : json['MemorySize'], + 'vcoreCount': !exists(json, 'VcoreCount') ? undefined : json['VcoreCount'], + 'vmTypeName': !exists(json, 'VmTypeName') ? undefined : json['VmTypeName'], + 'volumeCount': !exists(json, 'VolumeCount') ? undefined : json['VolumeCount'], + 'volumeSize': !exists(json, 'VolumeSize') ? undefined : json['VolumeSize'], + }; +} +export function VmTypeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'BsuOptimized': value.bsuOptimized, + 'MaxPrivateIps': value.maxPrivateIps, + 'MemorySize': value.memorySize, + 'VcoreCount': value.vcoreCount, + 'VmTypeName': value.vmTypeName, + 'VolumeCount': value.volumeCount, + 'VolumeSize': value.volumeSize, + }; +} diff --git a/dist/esm/models/Volume.d.ts b/dist/esm/models/Volume.d.ts new file mode 100644 index 00000000..f3bca110 --- /dev/null +++ b/dist/esm/models/Volume.d.ts @@ -0,0 +1,85 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LinkedVolume } from './LinkedVolume'; +import { ResourceTag } from './ResourceTag'; +/** + * Information about the volume. + * @export + * @interface Volume + */ +export interface Volume { + /** + * The date and time of creation of the volume. + * @type {string} + * @memberof Volume + */ + creationDate?: string; + /** + * The number of I/O operations per second (IOPS):
+ * - For `io1` volumes, the number of provisioned IOPS
+ * - For `gp2` volumes, the baseline performance of the volume + * @type {number} + * @memberof Volume + */ + iops?: number; + /** + * Information about your volume attachment. + * @type {Array} + * @memberof Volume + */ + linkedVolumes?: Array; + /** + * The size of the volume, in gibibytes (GiB). + * @type {number} + * @memberof Volume + */ + size?: number; + /** + * The snapshot from which the volume was created. + * @type {string} + * @memberof Volume + */ + snapshotId?: string; + /** + * The state of the volume (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). + * @type {string} + * @memberof Volume + */ + state?: string; + /** + * The Subregion in which the volume was created. + * @type {string} + * @memberof Volume + */ + subregionName?: string; + /** + * One or more tags associated with the volume. + * @type {Array} + * @memberof Volume + */ + tags?: Array; + /** + * The ID of the volume. + * @type {string} + * @memberof Volume + */ + volumeId?: string; + /** + * The type of the volume (`standard` \| `gp2` \| `io1`). + * @type {string} + * @memberof Volume + */ + volumeType?: string; +} +export declare function VolumeFromJSON(json: any): Volume; +export declare function VolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume; +export declare function VolumeToJSON(value?: Volume | null): any; diff --git a/dist/esm/models/Volume.js b/dist/esm/models/Volume.js new file mode 100644 index 00000000..c293be85 --- /dev/null +++ b/dist/esm/models/Volume.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { LinkedVolumeFromJSON, LinkedVolumeToJSON, } from './LinkedVolume'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +export function VolumeFromJSON(json) { + return VolumeFromJSONTyped(json, false); +} +export function VolumeFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'linkedVolumes': !exists(json, 'LinkedVolumes') ? undefined : (json['LinkedVolumes'].map(LinkedVolumeFromJSON)), + 'size': !exists(json, 'Size') ? undefined : json['Size'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} +export function VolumeToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'CreationDate': value.creationDate, + 'Iops': value.iops, + 'LinkedVolumes': value.linkedVolumes === undefined ? undefined : (value.linkedVolumes.map(LinkedVolumeToJSON)), + 'Size': value.size, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'VolumeId': value.volumeId, + 'VolumeType': value.volumeType, + }; +} diff --git a/dist/esm/models/VpnConnection.d.ts b/dist/esm/models/VpnConnection.d.ts new file mode 100644 index 00000000..5b35ab9d --- /dev/null +++ b/dist/esm/models/VpnConnection.d.ts @@ -0,0 +1,91 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResourceTag } from './ResourceTag'; +import { RouteLight } from './RouteLight'; +import { VgwTelemetry } from './VgwTelemetry'; +import { VpnOptions } from './VpnOptions'; +/** + * Information about a VPN connection. + * @export + * @interface VpnConnection + */ +export interface VpnConnection { + /** + * Example configuration for the client gateway. + * @type {string} + * @memberof VpnConnection + */ + clientGatewayConfiguration?: string; + /** + * The ID of the client gateway used on the client end of the connection. + * @type {string} + * @memberof VpnConnection + */ + clientGatewayId?: string; + /** + * The type of VPN connection (always `ipsec.1`). + * @type {string} + * @memberof VpnConnection + */ + connectionType?: string; + /** + * Information about one or more static routes associated with the VPN connection, if any. + * @type {Array} + * @memberof VpnConnection + */ + routes?: Array; + /** + * The state of the VPN connection (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof VpnConnection + */ + state?: string; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof VpnConnection + */ + staticRoutesOnly?: boolean; + /** + * One or more tags associated with the VPN connection. + * @type {Array} + * @memberof VpnConnection + */ + tags?: Array; + /** + * Information about the current state of one or more of the VPN tunnels. + * @type {Array} + * @memberof VpnConnection + */ + vgwTelemetries?: Array; + /** + * The ID of the virtual gateway used on the OUTSCALE end of the connection. + * @type {string} + * @memberof VpnConnection + */ + virtualGatewayId?: string; + /** + * The ID of the VPN connection. + * @type {string} + * @memberof VpnConnection + */ + vpnConnectionId?: string; + /** + * + * @type {VpnOptions} + * @memberof VpnConnection + */ + vpnOptions?: VpnOptions; +} +export declare function VpnConnectionFromJSON(json: any): VpnConnection; +export declare function VpnConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpnConnection; +export declare function VpnConnectionToJSON(value?: VpnConnection | null): any; diff --git a/dist/esm/models/VpnConnection.js b/dist/esm/models/VpnConnection.js new file mode 100644 index 00000000..7a86fc57 --- /dev/null +++ b/dist/esm/models/VpnConnection.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { ResourceTagFromJSON, ResourceTagToJSON, } from './ResourceTag'; +import { RouteLightFromJSON, RouteLightToJSON, } from './RouteLight'; +import { VgwTelemetryFromJSON, VgwTelemetryToJSON, } from './VgwTelemetry'; +import { VpnOptionsFromJSON, VpnOptionsToJSON, } from './VpnOptions'; +export function VpnConnectionFromJSON(json) { + return VpnConnectionFromJSONTyped(json, false); +} +export function VpnConnectionFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'clientGatewayConfiguration': !exists(json, 'ClientGatewayConfiguration') ? undefined : json['ClientGatewayConfiguration'], + 'clientGatewayId': !exists(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'connectionType': !exists(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'routes': !exists(json, 'Routes') ? undefined : (json['Routes'].map(RouteLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'staticRoutesOnly': !exists(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'tags': !exists(json, 'Tags') ? undefined : (json['Tags'].map(ResourceTagFromJSON)), + 'vgwTelemetries': !exists(json, 'VgwTelemetries') ? undefined : (json['VgwTelemetries'].map(VgwTelemetryFromJSON)), + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vpnConnectionId': !exists(json, 'VpnConnectionId') ? undefined : json['VpnConnectionId'], + 'vpnOptions': !exists(json, 'VpnOptions') ? undefined : VpnOptionsFromJSON(json['VpnOptions']), + }; +} +export function VpnConnectionToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'ClientGatewayConfiguration': value.clientGatewayConfiguration, + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'Routes': value.routes === undefined ? undefined : (value.routes.map(RouteLightToJSON)), + 'State': value.state, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'Tags': value.tags === undefined ? undefined : (value.tags.map(ResourceTagToJSON)), + 'VgwTelemetries': value.vgwTelemetries === undefined ? undefined : (value.vgwTelemetries.map(VgwTelemetryToJSON)), + 'VirtualGatewayId': value.virtualGatewayId, + 'VpnConnectionId': value.vpnConnectionId, + 'VpnOptions': VpnOptionsToJSON(value.vpnOptions), + }; +} diff --git a/dist/esm/models/VpnOptions.d.ts b/dist/esm/models/VpnOptions.d.ts new file mode 100644 index 00000000..bae8c4d5 --- /dev/null +++ b/dist/esm/models/VpnOptions.d.ts @@ -0,0 +1,41 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Phase1Options } from './Phase1Options'; +import { Phase2Options } from './Phase2Options'; +/** + * Information about the VPN options. + * @export + * @interface VpnOptions + */ +export interface VpnOptions { + /** + * + * @type {Phase1Options} + * @memberof VpnOptions + */ + phase1Options?: Phase1Options; + /** + * + * @type {Phase2Options} + * @memberof VpnOptions + */ + phase2Options?: Phase2Options; + /** + * The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range. + * @type {string} + * @memberof VpnOptions + */ + tunnelInsideIpRange?: string; +} +export declare function VpnOptionsFromJSON(json: any): VpnOptions; +export declare function VpnOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpnOptions; +export declare function VpnOptionsToJSON(value?: VpnOptions | null): any; diff --git a/dist/esm/models/VpnOptions.js b/dist/esm/models/VpnOptions.js new file mode 100644 index 00000000..93a01778 --- /dev/null +++ b/dist/esm/models/VpnOptions.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +import { Phase1OptionsFromJSON, Phase1OptionsToJSON, } from './Phase1Options'; +import { Phase2OptionsFromJSON, Phase2OptionsToJSON, } from './Phase2Options'; +export function VpnOptionsFromJSON(json) { + return VpnOptionsFromJSONTyped(json, false); +} +export function VpnOptionsFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'phase1Options': !exists(json, 'Phase1Options') ? undefined : Phase1OptionsFromJSON(json['Phase1Options']), + 'phase2Options': !exists(json, 'Phase2Options') ? undefined : Phase2OptionsFromJSON(json['Phase2Options']), + 'tunnelInsideIpRange': !exists(json, 'TunnelInsideIpRange') ? undefined : json['TunnelInsideIpRange'], + }; +} +export function VpnOptionsToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'Phase1Options': Phase1OptionsToJSON(value.phase1Options), + 'Phase2Options': Phase2OptionsToJSON(value.phase2Options), + 'TunnelInsideIpRange': value.tunnelInsideIpRange, + }; +} diff --git a/dist/esm/models/With.d.ts b/dist/esm/models/With.d.ts new file mode 100644 index 00000000..02d1b877 --- /dev/null +++ b/dist/esm/models/With.d.ts @@ -0,0 +1,117 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The information to display in each returned log. If this parameter is not specified, all available response elements are displayed. If this parameter is specified, by default `AccountId` and `RequestId` are also included in the response, unless you explicitly specify them as false. + * @export + * @interface With + */ +export interface With { + /** + * By default or if set to true, the account ID is displayed. + * @type {boolean} + * @memberof With + */ + accountId?: boolean; + /** + * If set to true, the duration of the call is displayed. + * @type {boolean} + * @memberof With + */ + callDuration?: boolean; + /** + * If set to true, the access key is displayed. + * @type {boolean} + * @memberof With + */ + queryAccessKey?: boolean; + /** + * If set to true, the name of the API is displayed. + * @type {boolean} + * @memberof With + */ + queryApiName?: boolean; + /** + * If set to true, the version of the API is displayed. + * @type {boolean} + * @memberof With + */ + queryApiVersion?: boolean; + /** + * If set to true, the name of the call is displayed. + * @type {boolean} + * @memberof With + */ + queryCallName?: boolean; + /** + * If set to true, the date of the call is displayed. + * @type {boolean} + * @memberof With + */ + queryDate?: boolean; + /** + * If set to true, the raw header of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryHeaderRaw?: boolean; + /** + * If set to true, the size of the raw header of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryHeaderSize?: boolean; + /** + * If set to true, the IP is displayed. + * @type {boolean} + * @memberof With + */ + queryIpAddress?: boolean; + /** + * If set to true, the raw payload of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryPayloadRaw?: boolean; + /** + * If set to true, the size of the raw payload of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryPayloadSize?: boolean; + /** + * If set to true, the user agent of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryUserAgent?: boolean; + /** + * By default or if set to true, the request ID is displayed. + * @type {boolean} + * @memberof With + */ + requestId?: boolean; + /** + * If set to true, the size of the response is displayed. + * @type {boolean} + * @memberof With + */ + responseSize?: boolean; + /** + * If set to true, the HTTP status code of the response is displayed. + * @type {boolean} + * @memberof With + */ + responseStatusCode?: boolean; +} +export declare function WithFromJSON(json: any): With; +export declare function WithFromJSONTyped(json: any, ignoreDiscriminator: boolean): With; +export declare function WithToJSON(value?: With | null): any; diff --git a/dist/esm/models/With.js b/dist/esm/models/With.js new file mode 100644 index 00000000..37601d57 --- /dev/null +++ b/dist/esm/models/With.js @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { exists } from '../runtime'; +export function WithFromJSON(json) { + return WithFromJSONTyped(json, false); +} +export function WithFromJSONTyped(json, ignoreDiscriminator) { + if ((json === undefined) || (json === null)) { + return json; + } + return { + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'callDuration': !exists(json, 'CallDuration') ? undefined : json['CallDuration'], + 'queryAccessKey': !exists(json, 'QueryAccessKey') ? undefined : json['QueryAccessKey'], + 'queryApiName': !exists(json, 'QueryApiName') ? undefined : json['QueryApiName'], + 'queryApiVersion': !exists(json, 'QueryApiVersion') ? undefined : json['QueryApiVersion'], + 'queryCallName': !exists(json, 'QueryCallName') ? undefined : json['QueryCallName'], + 'queryDate': !exists(json, 'QueryDate') ? undefined : json['QueryDate'], + 'queryHeaderRaw': !exists(json, 'QueryHeaderRaw') ? undefined : json['QueryHeaderRaw'], + 'queryHeaderSize': !exists(json, 'QueryHeaderSize') ? undefined : json['QueryHeaderSize'], + 'queryIpAddress': !exists(json, 'QueryIpAddress') ? undefined : json['QueryIpAddress'], + 'queryPayloadRaw': !exists(json, 'QueryPayloadRaw') ? undefined : json['QueryPayloadRaw'], + 'queryPayloadSize': !exists(json, 'QueryPayloadSize') ? undefined : json['QueryPayloadSize'], + 'queryUserAgent': !exists(json, 'QueryUserAgent') ? undefined : json['QueryUserAgent'], + 'requestId': !exists(json, 'RequestId') ? undefined : json['RequestId'], + 'responseSize': !exists(json, 'ResponseSize') ? undefined : json['ResponseSize'], + 'responseStatusCode': !exists(json, 'ResponseStatusCode') ? undefined : json['ResponseStatusCode'], + }; +} +export function WithToJSON(value) { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + 'AccountId': value.accountId, + 'CallDuration': value.callDuration, + 'QueryAccessKey': value.queryAccessKey, + 'QueryApiName': value.queryApiName, + 'QueryApiVersion': value.queryApiVersion, + 'QueryCallName': value.queryCallName, + 'QueryDate': value.queryDate, + 'QueryHeaderRaw': value.queryHeaderRaw, + 'QueryHeaderSize': value.queryHeaderSize, + 'QueryIpAddress': value.queryIpAddress, + 'QueryPayloadRaw': value.queryPayloadRaw, + 'QueryPayloadSize': value.queryPayloadSize, + 'QueryUserAgent': value.queryUserAgent, + 'RequestId': value.requestId, + 'ResponseSize': value.responseSize, + 'ResponseStatusCode': value.responseStatusCode, + }; +} diff --git a/dist/esm/models/index.d.ts b/dist/esm/models/index.d.ts new file mode 100644 index 00000000..e750cf26 --- /dev/null +++ b/dist/esm/models/index.d.ts @@ -0,0 +1,496 @@ +export * from './AcceptNetPeeringRequest'; +export * from './AcceptNetPeeringResponse'; +export * from './AccepterNet'; +export * from './AccessKey'; +export * from './AccessKeySecretKey'; +export * from './AccessLog'; +export * from './Account'; +export * from './ApiAccessPolicy'; +export * from './ApiAccessRule'; +export * from './ApplicationStickyCookiePolicy'; +export * from './BackendVmHealth'; +export * from './BlockDeviceMappingCreated'; +export * from './BlockDeviceMappingImage'; +export * from './BlockDeviceMappingVmCreation'; +export * from './BlockDeviceMappingVmUpdate'; +export * from './BsuCreated'; +export * from './BsuToCreate'; +export * from './BsuToUpdateVm'; +export * from './Ca'; +export * from './Catalog'; +export * from './CatalogEntry'; +export * from './CheckAuthenticationRequest'; +export * from './CheckAuthenticationResponse'; +export * from './ClientGateway'; +export * from './ConsumptionEntry'; +export * from './CreateAccessKeyRequest'; +export * from './CreateAccessKeyResponse'; +export * from './CreateAccountRequest'; +export * from './CreateAccountResponse'; +export * from './CreateApiAccessRuleRequest'; +export * from './CreateApiAccessRuleResponse'; +export * from './CreateCaRequest'; +export * from './CreateCaResponse'; +export * from './CreateClientGatewayRequest'; +export * from './CreateClientGatewayResponse'; +export * from './CreateDhcpOptionsRequest'; +export * from './CreateDhcpOptionsResponse'; +export * from './CreateDirectLinkInterfaceRequest'; +export * from './CreateDirectLinkInterfaceResponse'; +export * from './CreateDirectLinkRequest'; +export * from './CreateDirectLinkResponse'; +export * from './CreateFlexibleGpuRequest'; +export * from './CreateFlexibleGpuResponse'; +export * from './CreateImageExportTaskRequest'; +export * from './CreateImageExportTaskResponse'; +export * from './CreateImageRequest'; +export * from './CreateImageResponse'; +export * from './CreateInternetServiceRequest'; +export * from './CreateInternetServiceResponse'; +export * from './CreateKeypairRequest'; +export * from './CreateKeypairResponse'; +export * from './CreateListenerRuleRequest'; +export * from './CreateListenerRuleResponse'; +export * from './CreateLoadBalancerListenersRequest'; +export * from './CreateLoadBalancerListenersResponse'; +export * from './CreateLoadBalancerPolicyRequest'; +export * from './CreateLoadBalancerPolicyResponse'; +export * from './CreateLoadBalancerRequest'; +export * from './CreateLoadBalancerResponse'; +export * from './CreateLoadBalancerTagsRequest'; +export * from './CreateLoadBalancerTagsResponse'; +export * from './CreateNatServiceRequest'; +export * from './CreateNatServiceResponse'; +export * from './CreateNetAccessPointRequest'; +export * from './CreateNetAccessPointResponse'; +export * from './CreateNetPeeringRequest'; +export * from './CreateNetPeeringResponse'; +export * from './CreateNetRequest'; +export * from './CreateNetResponse'; +export * from './CreateNicRequest'; +export * from './CreateNicResponse'; +export * from './CreatePublicIpRequest'; +export * from './CreatePublicIpResponse'; +export * from './CreateRouteRequest'; +export * from './CreateRouteResponse'; +export * from './CreateRouteTableRequest'; +export * from './CreateRouteTableResponse'; +export * from './CreateSecurityGroupRequest'; +export * from './CreateSecurityGroupResponse'; +export * from './CreateSecurityGroupRuleRequest'; +export * from './CreateSecurityGroupRuleResponse'; +export * from './CreateServerCertificateRequest'; +export * from './CreateServerCertificateResponse'; +export * from './CreateSnapshotExportTaskRequest'; +export * from './CreateSnapshotExportTaskResponse'; +export * from './CreateSnapshotRequest'; +export * from './CreateSnapshotResponse'; +export * from './CreateSubnetRequest'; +export * from './CreateSubnetResponse'; +export * from './CreateTagsRequest'; +export * from './CreateTagsResponse'; +export * from './CreateVirtualGatewayRequest'; +export * from './CreateVirtualGatewayResponse'; +export * from './CreateVmsRequest'; +export * from './CreateVmsResponse'; +export * from './CreateVolumeRequest'; +export * from './CreateVolumeResponse'; +export * from './CreateVpnConnectionRequest'; +export * from './CreateVpnConnectionResponse'; +export * from './CreateVpnConnectionRouteRequest'; +export * from './CreateVpnConnectionRouteResponse'; +export * from './DeleteAccessKeyRequest'; +export * from './DeleteAccessKeyResponse'; +export * from './DeleteApiAccessRuleRequest'; +export * from './DeleteApiAccessRuleResponse'; +export * from './DeleteCaRequest'; +export * from './DeleteCaResponse'; +export * from './DeleteClientGatewayRequest'; +export * from './DeleteClientGatewayResponse'; +export * from './DeleteDhcpOptionsRequest'; +export * from './DeleteDhcpOptionsResponse'; +export * from './DeleteDirectLinkInterfaceRequest'; +export * from './DeleteDirectLinkInterfaceResponse'; +export * from './DeleteDirectLinkRequest'; +export * from './DeleteDirectLinkResponse'; +export * from './DeleteExportTaskRequest'; +export * from './DeleteExportTaskResponse'; +export * from './DeleteFlexibleGpuRequest'; +export * from './DeleteFlexibleGpuResponse'; +export * from './DeleteImageRequest'; +export * from './DeleteImageResponse'; +export * from './DeleteInternetServiceRequest'; +export * from './DeleteInternetServiceResponse'; +export * from './DeleteKeypairRequest'; +export * from './DeleteKeypairResponse'; +export * from './DeleteListenerRuleRequest'; +export * from './DeleteListenerRuleResponse'; +export * from './DeleteLoadBalancerListenersRequest'; +export * from './DeleteLoadBalancerListenersResponse'; +export * from './DeleteLoadBalancerPolicyRequest'; +export * from './DeleteLoadBalancerPolicyResponse'; +export * from './DeleteLoadBalancerRequest'; +export * from './DeleteLoadBalancerResponse'; +export * from './DeleteLoadBalancerTagsRequest'; +export * from './DeleteLoadBalancerTagsResponse'; +export * from './DeleteNatServiceRequest'; +export * from './DeleteNatServiceResponse'; +export * from './DeleteNetAccessPointRequest'; +export * from './DeleteNetAccessPointResponse'; +export * from './DeleteNetPeeringRequest'; +export * from './DeleteNetPeeringResponse'; +export * from './DeleteNetRequest'; +export * from './DeleteNetResponse'; +export * from './DeleteNicRequest'; +export * from './DeleteNicResponse'; +export * from './DeletePublicIpRequest'; +export * from './DeletePublicIpResponse'; +export * from './DeleteRouteRequest'; +export * from './DeleteRouteResponse'; +export * from './DeleteRouteTableRequest'; +export * from './DeleteRouteTableResponse'; +export * from './DeleteSecurityGroupRequest'; +export * from './DeleteSecurityGroupResponse'; +export * from './DeleteSecurityGroupRuleRequest'; +export * from './DeleteSecurityGroupRuleResponse'; +export * from './DeleteServerCertificateRequest'; +export * from './DeleteServerCertificateResponse'; +export * from './DeleteSnapshotRequest'; +export * from './DeleteSnapshotResponse'; +export * from './DeleteSubnetRequest'; +export * from './DeleteSubnetResponse'; +export * from './DeleteTagsRequest'; +export * from './DeleteTagsResponse'; +export * from './DeleteVirtualGatewayRequest'; +export * from './DeleteVirtualGatewayResponse'; +export * from './DeleteVmsRequest'; +export * from './DeleteVmsResponse'; +export * from './DeleteVolumeRequest'; +export * from './DeleteVolumeResponse'; +export * from './DeleteVpnConnectionRequest'; +export * from './DeleteVpnConnectionResponse'; +export * from './DeleteVpnConnectionRouteRequest'; +export * from './DeleteVpnConnectionRouteResponse'; +export * from './DeregisterVmsInLoadBalancerRequest'; +export * from './DeregisterVmsInLoadBalancerResponse'; +export * from './DhcpOptionsSet'; +export * from './DirectLink'; +export * from './DirectLinkInterface'; +export * from './DirectLinkInterfaces'; +export * from './ErrorResponse'; +export * from './Errors'; +export * from './FiltersAccessKeys'; +export * from './FiltersApiAccessRule'; +export * from './FiltersApiLog'; +export * from './FiltersCa'; +export * from './FiltersClientGateway'; +export * from './FiltersDhcpOptions'; +export * from './FiltersDirectLink'; +export * from './FiltersDirectLinkInterface'; +export * from './FiltersExportTask'; +export * from './FiltersFlexibleGpu'; +export * from './FiltersImage'; +export * from './FiltersInternetService'; +export * from './FiltersKeypair'; +export * from './FiltersListenerRule'; +export * from './FiltersLoadBalancer'; +export * from './FiltersNatService'; +export * from './FiltersNet'; +export * from './FiltersNetAccessPoint'; +export * from './FiltersNetPeering'; +export * from './FiltersNic'; +export * from './FiltersProductType'; +export * from './FiltersPublicIp'; +export * from './FiltersQuota'; +export * from './FiltersRouteTable'; +export * from './FiltersSecurityGroup'; +export * from './FiltersServerCertificate'; +export * from './FiltersService'; +export * from './FiltersSnapshot'; +export * from './FiltersSubnet'; +export * from './FiltersSubregion'; +export * from './FiltersTag'; +export * from './FiltersVirtualGateway'; +export * from './FiltersVm'; +export * from './FiltersVmType'; +export * from './FiltersVmsState'; +export * from './FiltersVolume'; +export * from './FiltersVpnConnection'; +export * from './FlexibleGpu'; +export * from './FlexibleGpuCatalog'; +export * from './HealthCheck'; +export * from './Image'; +export * from './ImageExportTask'; +export * from './InternetService'; +export * from './Keypair'; +export * from './KeypairCreated'; +export * from './LinkFlexibleGpuRequest'; +export * from './LinkFlexibleGpuResponse'; +export * from './LinkInternetServiceRequest'; +export * from './LinkInternetServiceResponse'; +export * from './LinkLoadBalancerBackendMachinesRequest'; +export * from './LinkLoadBalancerBackendMachinesResponse'; +export * from './LinkNic'; +export * from './LinkNicLight'; +export * from './LinkNicRequest'; +export * from './LinkNicResponse'; +export * from './LinkNicToUpdate'; +export * from './LinkPrivateIpsRequest'; +export * from './LinkPrivateIpsResponse'; +export * from './LinkPublicIp'; +export * from './LinkPublicIpLightForVm'; +export * from './LinkPublicIpRequest'; +export * from './LinkPublicIpResponse'; +export * from './LinkRouteTable'; +export * from './LinkRouteTableRequest'; +export * from './LinkRouteTableResponse'; +export * from './LinkVirtualGatewayRequest'; +export * from './LinkVirtualGatewayResponse'; +export * from './LinkVolumeRequest'; +export * from './LinkVolumeResponse'; +export * from './LinkedVolume'; +export * from './Listener'; +export * from './ListenerForCreation'; +export * from './ListenerRule'; +export * from './ListenerRuleForCreation'; +export * from './LoadBalancer'; +export * from './LoadBalancerLight'; +export * from './LoadBalancerStickyCookiePolicy'; +export * from './LoadBalancerTag'; +export * from './Location'; +export * from './Log'; +export * from './MaintenanceEvent'; +export * from './ModelResponseContext'; +export * from './NatService'; +export * from './Net'; +export * from './NetAccessPoint'; +export * from './NetPeering'; +export * from './NetPeeringState'; +export * from './NetToVirtualGatewayLink'; +export * from './Nic'; +export * from './NicForVmCreation'; +export * from './NicLight'; +export * from './OsuApiKey'; +export * from './OsuExportImageExportTask'; +export * from './OsuExportSnapshotExportTask'; +export * from './OsuExportToCreate'; +export * from './PermissionsOnResource'; +export * from './PermissionsOnResourceCreation'; +export * from './Phase1Options'; +export * from './Phase2Options'; +export * from './Placement'; +export * from './PrivateIp'; +export * from './PrivateIpLight'; +export * from './PrivateIpLightForVm'; +export * from './ProductType'; +export * from './PublicIp'; +export * from './PublicIpLight'; +export * from './Quota'; +export * from './QuotaTypes'; +export * from './ReadAccessKeysRequest'; +export * from './ReadAccessKeysResponse'; +export * from './ReadAccountsRequest'; +export * from './ReadAccountsResponse'; +export * from './ReadAdminPasswordRequest'; +export * from './ReadAdminPasswordResponse'; +export * from './ReadApiAccessPolicyRequest'; +export * from './ReadApiAccessPolicyResponse'; +export * from './ReadApiAccessRulesRequest'; +export * from './ReadApiAccessRulesResponse'; +export * from './ReadApiLogsRequest'; +export * from './ReadApiLogsResponse'; +export * from './ReadCasRequest'; +export * from './ReadCasResponse'; +export * from './ReadCatalogRequest'; +export * from './ReadCatalogResponse'; +export * from './ReadClientGatewaysRequest'; +export * from './ReadClientGatewaysResponse'; +export * from './ReadConsoleOutputRequest'; +export * from './ReadConsoleOutputResponse'; +export * from './ReadConsumptionAccountRequest'; +export * from './ReadConsumptionAccountResponse'; +export * from './ReadDhcpOptionsRequest'; +export * from './ReadDhcpOptionsResponse'; +export * from './ReadDirectLinkInterfacesRequest'; +export * from './ReadDirectLinkInterfacesResponse'; +export * from './ReadDirectLinksRequest'; +export * from './ReadDirectLinksResponse'; +export * from './ReadFlexibleGpuCatalogRequest'; +export * from './ReadFlexibleGpuCatalogResponse'; +export * from './ReadFlexibleGpusRequest'; +export * from './ReadFlexibleGpusResponse'; +export * from './ReadImageExportTasksRequest'; +export * from './ReadImageExportTasksResponse'; +export * from './ReadImagesRequest'; +export * from './ReadImagesResponse'; +export * from './ReadInternetServicesRequest'; +export * from './ReadInternetServicesResponse'; +export * from './ReadKeypairsRequest'; +export * from './ReadKeypairsResponse'; +export * from './ReadListenerRulesRequest'; +export * from './ReadListenerRulesResponse'; +export * from './ReadLoadBalancerTagsRequest'; +export * from './ReadLoadBalancerTagsResponse'; +export * from './ReadLoadBalancersRequest'; +export * from './ReadLoadBalancersResponse'; +export * from './ReadLocationsRequest'; +export * from './ReadLocationsResponse'; +export * from './ReadNatServicesRequest'; +export * from './ReadNatServicesResponse'; +export * from './ReadNetAccessPointServicesRequest'; +export * from './ReadNetAccessPointServicesResponse'; +export * from './ReadNetAccessPointsRequest'; +export * from './ReadNetAccessPointsResponse'; +export * from './ReadNetPeeringsRequest'; +export * from './ReadNetPeeringsResponse'; +export * from './ReadNetsRequest'; +export * from './ReadNetsResponse'; +export * from './ReadNicsRequest'; +export * from './ReadNicsResponse'; +export * from './ReadProductTypesRequest'; +export * from './ReadProductTypesResponse'; +export * from './ReadPublicCatalogRequest'; +export * from './ReadPublicCatalogResponse'; +export * from './ReadPublicIpRangesRequest'; +export * from './ReadPublicIpRangesResponse'; +export * from './ReadPublicIpsRequest'; +export * from './ReadPublicIpsResponse'; +export * from './ReadQuotasRequest'; +export * from './ReadQuotasResponse'; +export * from './ReadRegionsRequest'; +export * from './ReadRegionsResponse'; +export * from './ReadRouteTablesRequest'; +export * from './ReadRouteTablesResponse'; +export * from './ReadSecretAccessKeyRequest'; +export * from './ReadSecretAccessKeyResponse'; +export * from './ReadSecurityGroupsRequest'; +export * from './ReadSecurityGroupsResponse'; +export * from './ReadServerCertificatesRequest'; +export * from './ReadServerCertificatesResponse'; +export * from './ReadSnapshotExportTasksRequest'; +export * from './ReadSnapshotExportTasksResponse'; +export * from './ReadSnapshotsRequest'; +export * from './ReadSnapshotsResponse'; +export * from './ReadSubnetsRequest'; +export * from './ReadSubnetsResponse'; +export * from './ReadSubregionsRequest'; +export * from './ReadSubregionsResponse'; +export * from './ReadTagsRequest'; +export * from './ReadTagsResponse'; +export * from './ReadVirtualGatewaysRequest'; +export * from './ReadVirtualGatewaysResponse'; +export * from './ReadVmTypesRequest'; +export * from './ReadVmTypesResponse'; +export * from './ReadVmsHealthRequest'; +export * from './ReadVmsHealthResponse'; +export * from './ReadVmsRequest'; +export * from './ReadVmsResponse'; +export * from './ReadVmsStateRequest'; +export * from './ReadVmsStateResponse'; +export * from './ReadVolumesRequest'; +export * from './ReadVolumesResponse'; +export * from './ReadVpnConnectionsRequest'; +export * from './ReadVpnConnectionsResponse'; +export * from './RebootVmsRequest'; +export * from './RebootVmsResponse'; +export * from './Region'; +export * from './RegisterVmsInLoadBalancerRequest'; +export * from './RegisterVmsInLoadBalancerResponse'; +export * from './RejectNetPeeringRequest'; +export * from './RejectNetPeeringResponse'; +export * from './ResetAccountPasswordRequest'; +export * from './ResetAccountPasswordResponse'; +export * from './ResourceLoadBalancerTag'; +export * from './ResourceTag'; +export * from './Route'; +export * from './RouteLight'; +export * from './RoutePropagatingVirtualGateway'; +export * from './RouteTable'; +export * from './SecurityGroup'; +export * from './SecurityGroupLight'; +export * from './SecurityGroupRule'; +export * from './SecurityGroupsMember'; +export * from './SendResetPasswordEmailRequest'; +export * from './SendResetPasswordEmailResponse'; +export * from './ServerCertificate'; +export * from './Service'; +export * from './Snapshot'; +export * from './SnapshotExportTask'; +export * from './SourceNet'; +export * from './SourceSecurityGroup'; +export * from './StartVmsRequest'; +export * from './StartVmsResponse'; +export * from './StateComment'; +export * from './StopVmsRequest'; +export * from './StopVmsResponse'; +export * from './Subnet'; +export * from './Subregion'; +export * from './Tag'; +export * from './UnlinkFlexibleGpuRequest'; +export * from './UnlinkFlexibleGpuResponse'; +export * from './UnlinkInternetServiceRequest'; +export * from './UnlinkInternetServiceResponse'; +export * from './UnlinkLoadBalancerBackendMachinesRequest'; +export * from './UnlinkLoadBalancerBackendMachinesResponse'; +export * from './UnlinkNicRequest'; +export * from './UnlinkNicResponse'; +export * from './UnlinkPrivateIpsRequest'; +export * from './UnlinkPrivateIpsResponse'; +export * from './UnlinkPublicIpRequest'; +export * from './UnlinkPublicIpResponse'; +export * from './UnlinkRouteTableRequest'; +export * from './UnlinkRouteTableResponse'; +export * from './UnlinkVirtualGatewayRequest'; +export * from './UnlinkVirtualGatewayResponse'; +export * from './UnlinkVolumeRequest'; +export * from './UnlinkVolumeResponse'; +export * from './UpdateAccessKeyRequest'; +export * from './UpdateAccessKeyResponse'; +export * from './UpdateAccountRequest'; +export * from './UpdateAccountResponse'; +export * from './UpdateApiAccessPolicyRequest'; +export * from './UpdateApiAccessPolicyResponse'; +export * from './UpdateApiAccessRuleRequest'; +export * from './UpdateApiAccessRuleResponse'; +export * from './UpdateCaRequest'; +export * from './UpdateCaResponse'; +export * from './UpdateFlexibleGpuRequest'; +export * from './UpdateFlexibleGpuResponse'; +export * from './UpdateImageRequest'; +export * from './UpdateImageResponse'; +export * from './UpdateListenerRuleRequest'; +export * from './UpdateListenerRuleResponse'; +export * from './UpdateLoadBalancerRequest'; +export * from './UpdateLoadBalancerResponse'; +export * from './UpdateNetAccessPointRequest'; +export * from './UpdateNetAccessPointResponse'; +export * from './UpdateNetRequest'; +export * from './UpdateNetResponse'; +export * from './UpdateNicRequest'; +export * from './UpdateNicResponse'; +export * from './UpdateRoutePropagationRequest'; +export * from './UpdateRoutePropagationResponse'; +export * from './UpdateRouteRequest'; +export * from './UpdateRouteResponse'; +export * from './UpdateServerCertificateRequest'; +export * from './UpdateServerCertificateResponse'; +export * from './UpdateSnapshotRequest'; +export * from './UpdateSnapshotResponse'; +export * from './UpdateSubnetRequest'; +export * from './UpdateSubnetResponse'; +export * from './UpdateVmRequest'; +export * from './UpdateVmResponse'; +export * from './UpdateVolumeRequest'; +export * from './UpdateVolumeResponse'; +export * from './UpdateVpnConnectionRequest'; +export * from './UpdateVpnConnectionResponse'; +export * from './VgwTelemetry'; +export * from './VirtualGateway'; +export * from './Vm'; +export * from './VmState'; +export * from './VmStates'; +export * from './VmType'; +export * from './Volume'; +export * from './VpnConnection'; +export * from './VpnOptions'; +export * from './With'; diff --git a/dist/esm/models/index.js b/dist/esm/models/index.js new file mode 100644 index 00000000..2b3630d0 --- /dev/null +++ b/dist/esm/models/index.js @@ -0,0 +1,498 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AcceptNetPeeringRequest'; +export * from './AcceptNetPeeringResponse'; +export * from './AccepterNet'; +export * from './AccessKey'; +export * from './AccessKeySecretKey'; +export * from './AccessLog'; +export * from './Account'; +export * from './ApiAccessPolicy'; +export * from './ApiAccessRule'; +export * from './ApplicationStickyCookiePolicy'; +export * from './BackendVmHealth'; +export * from './BlockDeviceMappingCreated'; +export * from './BlockDeviceMappingImage'; +export * from './BlockDeviceMappingVmCreation'; +export * from './BlockDeviceMappingVmUpdate'; +export * from './BsuCreated'; +export * from './BsuToCreate'; +export * from './BsuToUpdateVm'; +export * from './Ca'; +export * from './Catalog'; +export * from './CatalogEntry'; +export * from './CheckAuthenticationRequest'; +export * from './CheckAuthenticationResponse'; +export * from './ClientGateway'; +export * from './ConsumptionEntry'; +export * from './CreateAccessKeyRequest'; +export * from './CreateAccessKeyResponse'; +export * from './CreateAccountRequest'; +export * from './CreateAccountResponse'; +export * from './CreateApiAccessRuleRequest'; +export * from './CreateApiAccessRuleResponse'; +export * from './CreateCaRequest'; +export * from './CreateCaResponse'; +export * from './CreateClientGatewayRequest'; +export * from './CreateClientGatewayResponse'; +export * from './CreateDhcpOptionsRequest'; +export * from './CreateDhcpOptionsResponse'; +export * from './CreateDirectLinkInterfaceRequest'; +export * from './CreateDirectLinkInterfaceResponse'; +export * from './CreateDirectLinkRequest'; +export * from './CreateDirectLinkResponse'; +export * from './CreateFlexibleGpuRequest'; +export * from './CreateFlexibleGpuResponse'; +export * from './CreateImageExportTaskRequest'; +export * from './CreateImageExportTaskResponse'; +export * from './CreateImageRequest'; +export * from './CreateImageResponse'; +export * from './CreateInternetServiceRequest'; +export * from './CreateInternetServiceResponse'; +export * from './CreateKeypairRequest'; +export * from './CreateKeypairResponse'; +export * from './CreateListenerRuleRequest'; +export * from './CreateListenerRuleResponse'; +export * from './CreateLoadBalancerListenersRequest'; +export * from './CreateLoadBalancerListenersResponse'; +export * from './CreateLoadBalancerPolicyRequest'; +export * from './CreateLoadBalancerPolicyResponse'; +export * from './CreateLoadBalancerRequest'; +export * from './CreateLoadBalancerResponse'; +export * from './CreateLoadBalancerTagsRequest'; +export * from './CreateLoadBalancerTagsResponse'; +export * from './CreateNatServiceRequest'; +export * from './CreateNatServiceResponse'; +export * from './CreateNetAccessPointRequest'; +export * from './CreateNetAccessPointResponse'; +export * from './CreateNetPeeringRequest'; +export * from './CreateNetPeeringResponse'; +export * from './CreateNetRequest'; +export * from './CreateNetResponse'; +export * from './CreateNicRequest'; +export * from './CreateNicResponse'; +export * from './CreatePublicIpRequest'; +export * from './CreatePublicIpResponse'; +export * from './CreateRouteRequest'; +export * from './CreateRouteResponse'; +export * from './CreateRouteTableRequest'; +export * from './CreateRouteTableResponse'; +export * from './CreateSecurityGroupRequest'; +export * from './CreateSecurityGroupResponse'; +export * from './CreateSecurityGroupRuleRequest'; +export * from './CreateSecurityGroupRuleResponse'; +export * from './CreateServerCertificateRequest'; +export * from './CreateServerCertificateResponse'; +export * from './CreateSnapshotExportTaskRequest'; +export * from './CreateSnapshotExportTaskResponse'; +export * from './CreateSnapshotRequest'; +export * from './CreateSnapshotResponse'; +export * from './CreateSubnetRequest'; +export * from './CreateSubnetResponse'; +export * from './CreateTagsRequest'; +export * from './CreateTagsResponse'; +export * from './CreateVirtualGatewayRequest'; +export * from './CreateVirtualGatewayResponse'; +export * from './CreateVmsRequest'; +export * from './CreateVmsResponse'; +export * from './CreateVolumeRequest'; +export * from './CreateVolumeResponse'; +export * from './CreateVpnConnectionRequest'; +export * from './CreateVpnConnectionResponse'; +export * from './CreateVpnConnectionRouteRequest'; +export * from './CreateVpnConnectionRouteResponse'; +export * from './DeleteAccessKeyRequest'; +export * from './DeleteAccessKeyResponse'; +export * from './DeleteApiAccessRuleRequest'; +export * from './DeleteApiAccessRuleResponse'; +export * from './DeleteCaRequest'; +export * from './DeleteCaResponse'; +export * from './DeleteClientGatewayRequest'; +export * from './DeleteClientGatewayResponse'; +export * from './DeleteDhcpOptionsRequest'; +export * from './DeleteDhcpOptionsResponse'; +export * from './DeleteDirectLinkInterfaceRequest'; +export * from './DeleteDirectLinkInterfaceResponse'; +export * from './DeleteDirectLinkRequest'; +export * from './DeleteDirectLinkResponse'; +export * from './DeleteExportTaskRequest'; +export * from './DeleteExportTaskResponse'; +export * from './DeleteFlexibleGpuRequest'; +export * from './DeleteFlexibleGpuResponse'; +export * from './DeleteImageRequest'; +export * from './DeleteImageResponse'; +export * from './DeleteInternetServiceRequest'; +export * from './DeleteInternetServiceResponse'; +export * from './DeleteKeypairRequest'; +export * from './DeleteKeypairResponse'; +export * from './DeleteListenerRuleRequest'; +export * from './DeleteListenerRuleResponse'; +export * from './DeleteLoadBalancerListenersRequest'; +export * from './DeleteLoadBalancerListenersResponse'; +export * from './DeleteLoadBalancerPolicyRequest'; +export * from './DeleteLoadBalancerPolicyResponse'; +export * from './DeleteLoadBalancerRequest'; +export * from './DeleteLoadBalancerResponse'; +export * from './DeleteLoadBalancerTagsRequest'; +export * from './DeleteLoadBalancerTagsResponse'; +export * from './DeleteNatServiceRequest'; +export * from './DeleteNatServiceResponse'; +export * from './DeleteNetAccessPointRequest'; +export * from './DeleteNetAccessPointResponse'; +export * from './DeleteNetPeeringRequest'; +export * from './DeleteNetPeeringResponse'; +export * from './DeleteNetRequest'; +export * from './DeleteNetResponse'; +export * from './DeleteNicRequest'; +export * from './DeleteNicResponse'; +export * from './DeletePublicIpRequest'; +export * from './DeletePublicIpResponse'; +export * from './DeleteRouteRequest'; +export * from './DeleteRouteResponse'; +export * from './DeleteRouteTableRequest'; +export * from './DeleteRouteTableResponse'; +export * from './DeleteSecurityGroupRequest'; +export * from './DeleteSecurityGroupResponse'; +export * from './DeleteSecurityGroupRuleRequest'; +export * from './DeleteSecurityGroupRuleResponse'; +export * from './DeleteServerCertificateRequest'; +export * from './DeleteServerCertificateResponse'; +export * from './DeleteSnapshotRequest'; +export * from './DeleteSnapshotResponse'; +export * from './DeleteSubnetRequest'; +export * from './DeleteSubnetResponse'; +export * from './DeleteTagsRequest'; +export * from './DeleteTagsResponse'; +export * from './DeleteVirtualGatewayRequest'; +export * from './DeleteVirtualGatewayResponse'; +export * from './DeleteVmsRequest'; +export * from './DeleteVmsResponse'; +export * from './DeleteVolumeRequest'; +export * from './DeleteVolumeResponse'; +export * from './DeleteVpnConnectionRequest'; +export * from './DeleteVpnConnectionResponse'; +export * from './DeleteVpnConnectionRouteRequest'; +export * from './DeleteVpnConnectionRouteResponse'; +export * from './DeregisterVmsInLoadBalancerRequest'; +export * from './DeregisterVmsInLoadBalancerResponse'; +export * from './DhcpOptionsSet'; +export * from './DirectLink'; +export * from './DirectLinkInterface'; +export * from './DirectLinkInterfaces'; +export * from './ErrorResponse'; +export * from './Errors'; +export * from './FiltersAccessKeys'; +export * from './FiltersApiAccessRule'; +export * from './FiltersApiLog'; +export * from './FiltersCa'; +export * from './FiltersClientGateway'; +export * from './FiltersDhcpOptions'; +export * from './FiltersDirectLink'; +export * from './FiltersDirectLinkInterface'; +export * from './FiltersExportTask'; +export * from './FiltersFlexibleGpu'; +export * from './FiltersImage'; +export * from './FiltersInternetService'; +export * from './FiltersKeypair'; +export * from './FiltersListenerRule'; +export * from './FiltersLoadBalancer'; +export * from './FiltersNatService'; +export * from './FiltersNet'; +export * from './FiltersNetAccessPoint'; +export * from './FiltersNetPeering'; +export * from './FiltersNic'; +export * from './FiltersProductType'; +export * from './FiltersPublicIp'; +export * from './FiltersQuota'; +export * from './FiltersRouteTable'; +export * from './FiltersSecurityGroup'; +export * from './FiltersServerCertificate'; +export * from './FiltersService'; +export * from './FiltersSnapshot'; +export * from './FiltersSubnet'; +export * from './FiltersSubregion'; +export * from './FiltersTag'; +export * from './FiltersVirtualGateway'; +export * from './FiltersVm'; +export * from './FiltersVmType'; +export * from './FiltersVmsState'; +export * from './FiltersVolume'; +export * from './FiltersVpnConnection'; +export * from './FlexibleGpu'; +export * from './FlexibleGpuCatalog'; +export * from './HealthCheck'; +export * from './Image'; +export * from './ImageExportTask'; +export * from './InternetService'; +export * from './Keypair'; +export * from './KeypairCreated'; +export * from './LinkFlexibleGpuRequest'; +export * from './LinkFlexibleGpuResponse'; +export * from './LinkInternetServiceRequest'; +export * from './LinkInternetServiceResponse'; +export * from './LinkLoadBalancerBackendMachinesRequest'; +export * from './LinkLoadBalancerBackendMachinesResponse'; +export * from './LinkNic'; +export * from './LinkNicLight'; +export * from './LinkNicRequest'; +export * from './LinkNicResponse'; +export * from './LinkNicToUpdate'; +export * from './LinkPrivateIpsRequest'; +export * from './LinkPrivateIpsResponse'; +export * from './LinkPublicIp'; +export * from './LinkPublicIpLightForVm'; +export * from './LinkPublicIpRequest'; +export * from './LinkPublicIpResponse'; +export * from './LinkRouteTable'; +export * from './LinkRouteTableRequest'; +export * from './LinkRouteTableResponse'; +export * from './LinkVirtualGatewayRequest'; +export * from './LinkVirtualGatewayResponse'; +export * from './LinkVolumeRequest'; +export * from './LinkVolumeResponse'; +export * from './LinkedVolume'; +export * from './Listener'; +export * from './ListenerForCreation'; +export * from './ListenerRule'; +export * from './ListenerRuleForCreation'; +export * from './LoadBalancer'; +export * from './LoadBalancerLight'; +export * from './LoadBalancerStickyCookiePolicy'; +export * from './LoadBalancerTag'; +export * from './Location'; +export * from './Log'; +export * from './MaintenanceEvent'; +export * from './ModelResponseContext'; +export * from './NatService'; +export * from './Net'; +export * from './NetAccessPoint'; +export * from './NetPeering'; +export * from './NetPeeringState'; +export * from './NetToVirtualGatewayLink'; +export * from './Nic'; +export * from './NicForVmCreation'; +export * from './NicLight'; +export * from './OsuApiKey'; +export * from './OsuExportImageExportTask'; +export * from './OsuExportSnapshotExportTask'; +export * from './OsuExportToCreate'; +export * from './PermissionsOnResource'; +export * from './PermissionsOnResourceCreation'; +export * from './Phase1Options'; +export * from './Phase2Options'; +export * from './Placement'; +export * from './PrivateIp'; +export * from './PrivateIpLight'; +export * from './PrivateIpLightForVm'; +export * from './ProductType'; +export * from './PublicIp'; +export * from './PublicIpLight'; +export * from './Quota'; +export * from './QuotaTypes'; +export * from './ReadAccessKeysRequest'; +export * from './ReadAccessKeysResponse'; +export * from './ReadAccountsRequest'; +export * from './ReadAccountsResponse'; +export * from './ReadAdminPasswordRequest'; +export * from './ReadAdminPasswordResponse'; +export * from './ReadApiAccessPolicyRequest'; +export * from './ReadApiAccessPolicyResponse'; +export * from './ReadApiAccessRulesRequest'; +export * from './ReadApiAccessRulesResponse'; +export * from './ReadApiLogsRequest'; +export * from './ReadApiLogsResponse'; +export * from './ReadCasRequest'; +export * from './ReadCasResponse'; +export * from './ReadCatalogRequest'; +export * from './ReadCatalogResponse'; +export * from './ReadClientGatewaysRequest'; +export * from './ReadClientGatewaysResponse'; +export * from './ReadConsoleOutputRequest'; +export * from './ReadConsoleOutputResponse'; +export * from './ReadConsumptionAccountRequest'; +export * from './ReadConsumptionAccountResponse'; +export * from './ReadDhcpOptionsRequest'; +export * from './ReadDhcpOptionsResponse'; +export * from './ReadDirectLinkInterfacesRequest'; +export * from './ReadDirectLinkInterfacesResponse'; +export * from './ReadDirectLinksRequest'; +export * from './ReadDirectLinksResponse'; +export * from './ReadFlexibleGpuCatalogRequest'; +export * from './ReadFlexibleGpuCatalogResponse'; +export * from './ReadFlexibleGpusRequest'; +export * from './ReadFlexibleGpusResponse'; +export * from './ReadImageExportTasksRequest'; +export * from './ReadImageExportTasksResponse'; +export * from './ReadImagesRequest'; +export * from './ReadImagesResponse'; +export * from './ReadInternetServicesRequest'; +export * from './ReadInternetServicesResponse'; +export * from './ReadKeypairsRequest'; +export * from './ReadKeypairsResponse'; +export * from './ReadListenerRulesRequest'; +export * from './ReadListenerRulesResponse'; +export * from './ReadLoadBalancerTagsRequest'; +export * from './ReadLoadBalancerTagsResponse'; +export * from './ReadLoadBalancersRequest'; +export * from './ReadLoadBalancersResponse'; +export * from './ReadLocationsRequest'; +export * from './ReadLocationsResponse'; +export * from './ReadNatServicesRequest'; +export * from './ReadNatServicesResponse'; +export * from './ReadNetAccessPointServicesRequest'; +export * from './ReadNetAccessPointServicesResponse'; +export * from './ReadNetAccessPointsRequest'; +export * from './ReadNetAccessPointsResponse'; +export * from './ReadNetPeeringsRequest'; +export * from './ReadNetPeeringsResponse'; +export * from './ReadNetsRequest'; +export * from './ReadNetsResponse'; +export * from './ReadNicsRequest'; +export * from './ReadNicsResponse'; +export * from './ReadProductTypesRequest'; +export * from './ReadProductTypesResponse'; +export * from './ReadPublicCatalogRequest'; +export * from './ReadPublicCatalogResponse'; +export * from './ReadPublicIpRangesRequest'; +export * from './ReadPublicIpRangesResponse'; +export * from './ReadPublicIpsRequest'; +export * from './ReadPublicIpsResponse'; +export * from './ReadQuotasRequest'; +export * from './ReadQuotasResponse'; +export * from './ReadRegionsRequest'; +export * from './ReadRegionsResponse'; +export * from './ReadRouteTablesRequest'; +export * from './ReadRouteTablesResponse'; +export * from './ReadSecretAccessKeyRequest'; +export * from './ReadSecretAccessKeyResponse'; +export * from './ReadSecurityGroupsRequest'; +export * from './ReadSecurityGroupsResponse'; +export * from './ReadServerCertificatesRequest'; +export * from './ReadServerCertificatesResponse'; +export * from './ReadSnapshotExportTasksRequest'; +export * from './ReadSnapshotExportTasksResponse'; +export * from './ReadSnapshotsRequest'; +export * from './ReadSnapshotsResponse'; +export * from './ReadSubnetsRequest'; +export * from './ReadSubnetsResponse'; +export * from './ReadSubregionsRequest'; +export * from './ReadSubregionsResponse'; +export * from './ReadTagsRequest'; +export * from './ReadTagsResponse'; +export * from './ReadVirtualGatewaysRequest'; +export * from './ReadVirtualGatewaysResponse'; +export * from './ReadVmTypesRequest'; +export * from './ReadVmTypesResponse'; +export * from './ReadVmsHealthRequest'; +export * from './ReadVmsHealthResponse'; +export * from './ReadVmsRequest'; +export * from './ReadVmsResponse'; +export * from './ReadVmsStateRequest'; +export * from './ReadVmsStateResponse'; +export * from './ReadVolumesRequest'; +export * from './ReadVolumesResponse'; +export * from './ReadVpnConnectionsRequest'; +export * from './ReadVpnConnectionsResponse'; +export * from './RebootVmsRequest'; +export * from './RebootVmsResponse'; +export * from './Region'; +export * from './RegisterVmsInLoadBalancerRequest'; +export * from './RegisterVmsInLoadBalancerResponse'; +export * from './RejectNetPeeringRequest'; +export * from './RejectNetPeeringResponse'; +export * from './ResetAccountPasswordRequest'; +export * from './ResetAccountPasswordResponse'; +export * from './ResourceLoadBalancerTag'; +export * from './ResourceTag'; +export * from './Route'; +export * from './RouteLight'; +export * from './RoutePropagatingVirtualGateway'; +export * from './RouteTable'; +export * from './SecurityGroup'; +export * from './SecurityGroupLight'; +export * from './SecurityGroupRule'; +export * from './SecurityGroupsMember'; +export * from './SendResetPasswordEmailRequest'; +export * from './SendResetPasswordEmailResponse'; +export * from './ServerCertificate'; +export * from './Service'; +export * from './Snapshot'; +export * from './SnapshotExportTask'; +export * from './SourceNet'; +export * from './SourceSecurityGroup'; +export * from './StartVmsRequest'; +export * from './StartVmsResponse'; +export * from './StateComment'; +export * from './StopVmsRequest'; +export * from './StopVmsResponse'; +export * from './Subnet'; +export * from './Subregion'; +export * from './Tag'; +export * from './UnlinkFlexibleGpuRequest'; +export * from './UnlinkFlexibleGpuResponse'; +export * from './UnlinkInternetServiceRequest'; +export * from './UnlinkInternetServiceResponse'; +export * from './UnlinkLoadBalancerBackendMachinesRequest'; +export * from './UnlinkLoadBalancerBackendMachinesResponse'; +export * from './UnlinkNicRequest'; +export * from './UnlinkNicResponse'; +export * from './UnlinkPrivateIpsRequest'; +export * from './UnlinkPrivateIpsResponse'; +export * from './UnlinkPublicIpRequest'; +export * from './UnlinkPublicIpResponse'; +export * from './UnlinkRouteTableRequest'; +export * from './UnlinkRouteTableResponse'; +export * from './UnlinkVirtualGatewayRequest'; +export * from './UnlinkVirtualGatewayResponse'; +export * from './UnlinkVolumeRequest'; +export * from './UnlinkVolumeResponse'; +export * from './UpdateAccessKeyRequest'; +export * from './UpdateAccessKeyResponse'; +export * from './UpdateAccountRequest'; +export * from './UpdateAccountResponse'; +export * from './UpdateApiAccessPolicyRequest'; +export * from './UpdateApiAccessPolicyResponse'; +export * from './UpdateApiAccessRuleRequest'; +export * from './UpdateApiAccessRuleResponse'; +export * from './UpdateCaRequest'; +export * from './UpdateCaResponse'; +export * from './UpdateFlexibleGpuRequest'; +export * from './UpdateFlexibleGpuResponse'; +export * from './UpdateImageRequest'; +export * from './UpdateImageResponse'; +export * from './UpdateListenerRuleRequest'; +export * from './UpdateListenerRuleResponse'; +export * from './UpdateLoadBalancerRequest'; +export * from './UpdateLoadBalancerResponse'; +export * from './UpdateNetAccessPointRequest'; +export * from './UpdateNetAccessPointResponse'; +export * from './UpdateNetRequest'; +export * from './UpdateNetResponse'; +export * from './UpdateNicRequest'; +export * from './UpdateNicResponse'; +export * from './UpdateRoutePropagationRequest'; +export * from './UpdateRoutePropagationResponse'; +export * from './UpdateRouteRequest'; +export * from './UpdateRouteResponse'; +export * from './UpdateServerCertificateRequest'; +export * from './UpdateServerCertificateResponse'; +export * from './UpdateSnapshotRequest'; +export * from './UpdateSnapshotResponse'; +export * from './UpdateSubnetRequest'; +export * from './UpdateSubnetResponse'; +export * from './UpdateVmRequest'; +export * from './UpdateVmResponse'; +export * from './UpdateVolumeRequest'; +export * from './UpdateVolumeResponse'; +export * from './UpdateVpnConnectionRequest'; +export * from './UpdateVpnConnectionResponse'; +export * from './VgwTelemetry'; +export * from './VirtualGateway'; +export * from './Vm'; +export * from './VmState'; +export * from './VmStates'; +export * from './VmType'; +export * from './Volume'; +export * from './VpnConnection'; +export * from './VpnOptions'; +export * from './With'; diff --git a/dist/esm/runtime.d.ts b/dist/esm/runtime.d.ts new file mode 100644 index 00000000..a29f01fd --- /dev/null +++ b/dist/esm/runtime.d.ts @@ -0,0 +1,173 @@ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export declare const BASE_PATH: string; +export interface ConfigurationParameters { + basePath?: string; + fetchApi?: FetchAPI; + middleware?: Middleware[]; + queryParamsStringify?: (params: HTTPQuery) => string; + username?: string; + password?: string; + apiKey?: string | ((name: string) => string); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); + headers?: HTTPHeaders; + credentials?: RequestCredentials; + awsV4SignParameters?: AwsV4SignerParameters; +} +export interface AwsV4SignerParameters { + accessKeyId: string; + secretAccessKey: string; + region: string; + service?: string; +} +export declare class AwsV4Signer { + private configuration; + constructor(configuration: AwsV4SignerParameters); + sign(method: string, url: string, headers: HTTPHeaders, body: any): Promise<{ + url: URL; + headers: HTTPHeaders; + }>; +} +export declare class Configuration { + private configuration; + constructor(configuration?: ConfigurationParameters); + set config(configuration: Configuration); + get basePath(): string; + get fetchApi(): FetchAPI | undefined; + get middleware(): Middleware[]; + get queryParamsStringify(): (params: HTTPQuery) => string; + get username(): string | undefined; + get password(): string | undefined; + get apiKey(): ((name: string) => string) | undefined; + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; + get headers(): HTTPHeaders | undefined; + get credentials(): RequestCredentials | undefined; + get awsV4SignerParameters(): AwsV4SignerParameters | undefined; +} +export declare const DefaultConfig: Configuration; +/** + * This is the base class for all generated API classes. + */ +export declare class BaseAPI { + protected configuration: Configuration; + private middleware; + constructor(configuration?: Configuration); + withMiddleware(this: T, ...middlewares: Middleware[]): T; + withPreMiddleware(this: T, ...preMiddlewares: Array): T; + withPostMiddleware(this: T, ...postMiddlewares: Array): T; + protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverideFunction): Promise; + private createFetchParams; + private fetchApi; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone; +} +export declare class ResponseError extends Error { + response: Response; + name: "ResponseError"; + constructor(response: Response, msg?: string); +} +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export declare type Json = any; +export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export declare type HTTPHeaders = { + [key: string]: string; +}; +export declare type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | HTTPQuery; +}; +export declare type HTTPBody = Json | FormData | URLSearchParams; +export declare type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export declare type InitOverideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; +export interface FetchParams { + url: string; + init: RequestInit; +} +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} +export declare function exists(json: any, key: string): boolean; +export declare function querystring(params: HTTPQuery, prefix?: string): string; +export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function canConsumeForm(consumes: Consume[]): boolean; +export interface Consume { + contentType: string; +} +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; +} +export interface ApiResponse { + raw: Response; + value(): Promise; +} +export interface ResponseTransformer { + (json: any): T; +} +export declare class JSONApiResponse { + raw: Response; + private transformer; + constructor(raw: Response, transformer?: ResponseTransformer); + value(): Promise; +} +export declare class VoidApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class BlobApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class TextApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} diff --git a/dist/esm/runtime.js b/dist/esm/runtime.js new file mode 100644 index 00000000..8f346dde --- /dev/null +++ b/dist/esm/runtime.js @@ -0,0 +1,300 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { AwsV4Signer as AwsV4SignerLib } from "aws4fetch"; +export const BASE_PATH = "https://api.eu-west-2.outscale.com/api/v1".replace(/\/+$/, ""); +export class AwsV4Signer { + constructor(configuration) { + this.configuration = configuration; + } + sign(method, url, headers, body) { + return __awaiter(this, void 0, void 0, function* () { + const signer = new AwsV4SignerLib({ + method: method, + url: url, + headers: headers, + body: body, + accessKeyId: this.configuration.accessKeyId, + secretAccessKey: this.configuration.secretAccessKey, + service: this.configuration.service, + region: this.configuration.region, + }); + const signResult = yield signer.sign(); + // Convert Headers to HTTPHeaders + let newHeaders = {}; + for (const [key, value] of signResult.headers.entries()) { + newHeaders[key] = value; + } + return { url: signResult.url, headers: newHeaders }; + }); + } +} +export class Configuration { + constructor(configuration = {}) { + this.configuration = configuration; + } + set config(configuration) { + this.configuration = configuration; + } + get basePath() { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + get fetchApi() { + return this.configuration.fetchApi; + } + get middleware() { + return this.configuration.middleware || []; + } + get queryParamsStringify() { + return this.configuration.queryParamsStringify || querystring; + } + get username() { + return this.configuration.username; + } + get password() { + return this.configuration.password; + } + get apiKey() { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + get accessToken() { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; }); + } + return undefined; + } + get headers() { + return this.configuration.headers; + } + get credentials() { + return this.configuration.credentials; + } + get awsV4SignerParameters() { + return this.configuration.awsV4SignParameters; + } +} +export const DefaultConfig = new Configuration(); +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + constructor(configuration = DefaultConfig) { + this.configuration = configuration; + this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams; + } + } + let response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + for (const middleware of this.middleware) { + if (middleware.post) { + response = (yield middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response; + } + } + return response; + }); + this.middleware = configuration.middleware; + } + withMiddleware(...middlewares) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + withPreMiddleware(...preMiddlewares) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + withPostMiddleware(...postMiddlewares) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + request(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const { url, init } = yield this.createFetchParams(context, initOverrides); + const response = yield this.fetchApi(url, init); + if (response.status >= 200 && response.status < 300) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + }); + } + createFetchParams(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const initOverrideFn = typeof initOverrides === "function" + ? initOverrides + : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; }); + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + const overridedInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({ + init: initParams, + context, + }))); + const init = Object.assign(Object.assign({}, overridedInit), { body: isFormData(overridedInit.body) || + overridedInit.body instanceof URLSearchParams || + isBlob(overridedInit.body) + ? overridedInit.body + : JSON.stringify(overridedInit.body) }); + return { url, init }; + }); + } + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + clone() { + const constructor = this.constructor; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} +; +function isBlob(value) { + return typeof Blob !== 'undefined' && value instanceof Blob; +} +function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; +} +export class ResponseError extends Error { + constructor(response, msg) { + super(msg); + this.response = response; + this.name = "ResponseError"; + } +} +export class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +export function exists(json, key) { + const value = json[key]; + return value !== null && value !== undefined; +} +export function querystring(params, prefix = '') { + return Object.keys(params) + .map((key) => { + const fullKey = prefix + (prefix.length ? `[${key}]` : key); + const value = params[key]; + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; + }) + .filter(part => part.length > 0) + .join('&'); +} +export function mapValues(data, fn) { + return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {}); +} +export function canConsumeForm(consumes) { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} +export class JSONApiResponse { + constructor(raw, transformer = (jsonValue) => jsonValue) { + this.raw = raw; + this.transformer = transformer; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return this.transformer(yield this.raw.json()); + }); + } +} +export class VoidApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return undefined; + }); + } +} +export class BlobApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.blob(); + }); + } + ; +} +export class TextApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.text(); + }); + } + ; +} diff --git a/examples/node-volumes/.gitignore b/examples/node-volumes/.gitignore new file mode 100644 index 00000000..7f850106 --- /dev/null +++ b/examples/node-volumes/.gitignore @@ -0,0 +1 @@ +src/index.js \ No newline at end of file diff --git a/examples/node-volumes/.nvmrc b/examples/node-volumes/.nvmrc new file mode 100644 index 00000000..585739b6 --- /dev/null +++ b/examples/node-volumes/.nvmrc @@ -0,0 +1 @@ +18.2.0 \ No newline at end of file diff --git a/examples/node-volumes/README.md b/examples/node-volumes/README.md new file mode 100644 index 00000000..d519c33b --- /dev/null +++ b/examples/node-volumes/README.md @@ -0,0 +1,24 @@ +# Introduction + +This is a basic node application using Outscale API using typescript. + +You will need an [Access Key and Secret Key](https://docs.outscale.com/en/userguide/Managing-Your-Access-Keys.html). + +# Build & Run + +First, generate `src/index.js`: +``` +nvm install +npm install --local --install-links +``` + +You can now set your AK/SK and run the example: +``` +export OUTSCALE_ACCESS_KEY="XXX" +export OUTSCALE_SECRET_KEY="XXX" +node src/index.js +``` + +# Next step? + +If you want to use this example as a starting point, don't forget to set `outscale-api` reference path in [package.json](package.json) from `file:../..` to `github:outscale/osc-sdk-js`. \ No newline at end of file diff --git a/examples/node-volumes/package-lock.json b/examples/node-volumes/package-lock.json new file mode 100644 index 00000000..25c93e59 --- /dev/null +++ b/examples/node-volumes/package-lock.json @@ -0,0 +1,56 @@ +{ + "name": "osc-sdk-js-volumes-node-example", + "version": "0.1.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "osc-sdk-js-volumes-node-example", + "version": "0.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "outscale-api": "file:../.." + }, + "devDependencies": { + "@types/node": "^17.0.35" + } + }, + "node_modules/@types/node": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.35.tgz", + "integrity": "sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==", + "dev": true + }, + "node_modules/aws4fetch": { + "version": "1.0.13", + "resolved": "git+ssh://git@github.com/outscale-dev/aws4fetch.git#dcd7e13ee42facf987272bf17b1cc8efaaf03d1d", + "license": "MIT" + }, + "node_modules/outscale-api": { + "version": "0.1.0", + "resolved": "file:../..", + "license": "BSD-3-Clause", + "dependencies": { + "aws4fetch": "github:outscale-dev/aws4fetch" + } + } + }, + "dependencies": { + "@types/node": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.35.tgz", + "integrity": "sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==", + "dev": true + }, + "aws4fetch": { + "version": "git+ssh://git@github.com/outscale-dev/aws4fetch.git#dcd7e13ee42facf987272bf17b1cc8efaaf03d1d", + "from": "aws4fetch@github:outscale-dev/aws4fetch" + }, + "outscale-api": { + "version": "0.1.0", + "requires": { + "aws4fetch": "github:outscale-dev/aws4fetch" + } + } + } +} diff --git a/examples/node-volumes/package.json b/examples/node-volumes/package.json new file mode 100644 index 00000000..519f2b49 --- /dev/null +++ b/examples/node-volumes/package.json @@ -0,0 +1,20 @@ +{ + "name": "osc-sdk-js-volumes-node-example", + "version": "0.1.0", + "description": "Example of using osc-sdk-js and virtual volumes", + "main": "index.js", + "type": "module", + "scripts": { + "build": "tsc", + "prepare": "npm run build", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Outscale SAS", + "license": "BSD-3-Clause", + "dependencies": { + "outscale-api": "file:../.." + }, + "devDependencies": { + "@types/node": "^17.0.35" + } +} diff --git a/examples/node-volumes/src/index.ts b/examples/node-volumes/src/index.ts new file mode 100644 index 00000000..d83bdb1f --- /dev/null +++ b/examples/node-volumes/src/index.ts @@ -0,0 +1,78 @@ +import * as workaroundCrypto from "crypto"; +global.crypto = workaroundCrypto.webcrypto; +import * as osc from "outscale-api"; + +async function getVolumes(accessKey: string, secretKey: string, region: string): Promise | string> { + let config = new osc.Configuration({ + basePath: "https://api." + region + ".outscale.com/api/v1", + awsV4SignParameters: { + accessKeyId: accessKey, + secretAccessKey: secretKey, + service: "api", + region: region, + } + }); + const readParameters : osc.ReadVolumesOperationRequest = { + readVolumesRequest: {} + }; + + const api = new osc.VolumeApi(config) + return await api.readVolumes(readParameters) + .catch((error) => { + return "Promise error" + error; + }) + .then((result: osc.ReadVolumesResponse | string) => { + if (typeof result === "string") { + return result; + } + if (result.volumes === undefined || result.volumes.length == 0) { + return "listing suceeded but it seems you have no volumes"; + } + return result.volumes; + }, (err_: any) => { + return "bad credential or region?"; + }); +} + +function printVolumes(volumes: Array) { + for (const volume of volumes) { + console.log("- volumeId: " + volume.volumeId); + console.log(" size: " + volume.size); + console.log(" state: " + volume.state); + console.log(" volumeType: " + volume.volumeType); + console.log(" subregionName: " + volume.subregionName); + console.log(" iops: " + volume.iops); + } +} + +async function main() { + const accessKey = process.env.OSC_ACCESS_KEY; + if (accessKey == undefined) { + console.error("OSC_ACCESS_KEY environment variable not set"); + process.exit(1); + } + + const secretKey = process.env.OSC_SECRET_KEY; + if (secretKey == undefined) { + console.error("OSC_SECRET_KEY environment variable not set"); + process.exit(1); + } + + const region = process.env.OSC_REGION; + if (region == undefined) { + console.error("OSC_REGION environment variable not set"); + process.exit(1); + } + + const result = await getVolumes(accessKey, secretKey, region); +/* .catch((reason: any) => { + return "Promise error 2"; + });*/ + if (typeof result === "string") { + console.error("error: " + result); + process.exit(1); + } + printVolumes(result); +} + +main(); \ No newline at end of file diff --git a/examples/node-volumes/src/types/index.d.ts b/examples/node-volumes/src/types/index.d.ts new file mode 100644 index 00000000..139ae3d7 --- /dev/null +++ b/examples/node-volumes/src/types/index.d.ts @@ -0,0 +1,8 @@ +// Note: this should not be needed in a close future (2022/05) as this should be integrated in node types. +declare module "crypto" { + namespace webcrypto { + const subtle: SubtleCrypto; + function getRandomValues(array: T): T; + function randomUUID(): string; + } + } \ No newline at end of file diff --git a/examples/node-volumes/tsconfig.json b/examples/node-volumes/tsconfig.json new file mode 100644 index 00000000..a04ecb20 --- /dev/null +++ b/examples/node-volumes/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "lib": ["es2022", "dom"], + "target": "es2022", + "module": "es2022", + "moduleResolution": "node", + "declaration": false, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "typeRoots": ["./node_modules/@types", "./src/types"] + }, + "include": [ + "./src" + ] +} diff --git a/examples/web-vms/.gitignore b/examples/web-vms/.gitignore new file mode 100644 index 00000000..e0aec105 --- /dev/null +++ b/examples/web-vms/.gitignore @@ -0,0 +1,2 @@ +dist/index.bundle.js +src/index.js \ No newline at end of file diff --git a/examples/web-vms/.nvmrc b/examples/web-vms/.nvmrc new file mode 100644 index 00000000..585739b6 --- /dev/null +++ b/examples/web-vms/.nvmrc @@ -0,0 +1 @@ +18.2.0 \ No newline at end of file diff --git a/examples/web-vms/README.md b/examples/web-vms/README.md new file mode 100644 index 00000000..ea7d1868 --- /dev/null +++ b/examples/web-vms/README.md @@ -0,0 +1,19 @@ +# Introduction + +This is a basic web application using Outscale API with typescript. + +Provide your [Access Key and Secret Key](https://docs.outscale.com/en/userguide/Managing-Your-Access-Keys.html) and hit "Show Virtual Machines" button. + +# Build & Run + +``` +nvm install +npm install --local --install-links +``` + +You should now have `dist/index.bundle.js` generated and be able to access `/dist` folder with your browser. + +# Next step? + +If you want to use this example as a starting point, don't forget to set `outscale-api` reference path in [package.json](package.json) from `file:../..` to `github:outscale/osc-sdk-js`. +You might also want to edit [webpack.config.js](webpack.config.js) to set `mode` from `development` to `production` if you are planning to make a real application. \ No newline at end of file diff --git a/examples/web-vms/dist/index.html b/examples/web-vms/dist/index.html new file mode 100644 index 00000000..5f58707c --- /dev/null +++ b/examples/web-vms/dist/index.html @@ -0,0 +1,26 @@ + + + + View My Virtual Machines + + + +
+
+ + + + + +
+
+
+
+ + diff --git a/examples/web-vms/package-lock.json b/examples/web-vms/package-lock.json new file mode 100644 index 00000000..6da839c2 --- /dev/null +++ b/examples/web-vms/package-lock.json @@ -0,0 +1,2599 @@ +{ + "name": "osc-sdk-js-vm-web-example", + "version": "0.1.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "osc-sdk-js-vm-web-example", + "version": "0.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "outscale-api": "file:../.." + }, + "devDependencies": { + "typescript": "^4.6", + "webpack-cli": "^4.9.2" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@types/eslint": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.2.tgz", + "integrity": "sha512-Z1nseZON+GEnFjJc04sv4NSALGjhFwy6K0HXt7qsn5ArfAKtb63dXNJHf+1YW6IpOIYRBGUbu3GwJdj8DGnCjA==", + "dev": true, + "peer": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", + "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true, + "peer": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true, + "peer": true + }, + "node_modules/@types/node": { + "version": "17.0.34", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.34.tgz", + "integrity": "sha512-XImEz7XwTvDBtzlTnm8YvMqGW/ErMWBsKZ+hMTvnDIjGCKxwK5Xpc+c/oQjOauwq8M4OS11hEkpjX8rrI/eEgA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.1.tgz", + "integrity": "sha512-1FBc1f9G4P/AxMqIgfZgeOTuRnwZMten8E7zap5zgpPInnCrP8D4Q81+4CWIch8i/Nf7nXjP0v6CjjbHOrXhKg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.1.tgz", + "integrity": "sha512-PKVGmazEq3oAo46Q63tpMr4HipI3OPfP7LiNOEJg963RMgT0rqheag28NCML0o3GIzA3DmxP1ZIAv9oTX1CUIA==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.1.tgz", + "integrity": "sha512-gNGTiTrjEVQ0OcVnzsRSqTxaBSr+dmTfm+qJsCDluky8uhdLWep7Gcr62QsAKHTMxjCS/8nEITsmFAhfIx+QSw==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "peer": true + }, + "node_modules/acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "dev": true, + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "peer": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peer": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/aws4fetch": { + "version": "1.0.13", + "resolved": "git+ssh://git@github.com/outscale-dev/aws4fetch.git#dcd7e13ee42facf987272bf17b1cc8efaaf03d1d", + "license": "MIT" + }, + "node_modules/browserslist": { + "version": "4.20.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.3.tgz", + "integrity": "sha512-NBhymBQl1zM0Y5dQT/O+xiLP9/rzOIQdKM/eMJBAq7yBgaB6krIYLGejrwVYnSHZdqjscB1SPuAjHwxjvN6Wdg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "peer": true, + "dependencies": { + "caniuse-lite": "^1.0.30001332", + "electron-to-chromium": "^1.4.118", + "escalade": "^3.1.1", + "node-releases": "^2.0.3", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "peer": true + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001341", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001341.tgz", + "integrity": "sha512-2SodVrFFtvGENGCv0ChVJIDQ0KPaS1cg7/qtfMaICgeMolDdo/Z2OD32F0Aq9yl6F4YFwGPBS5AaPqNYiW4PoA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ], + "peer": true + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/colorette": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", + "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", + "dev": true + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true, + "peer": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.137", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.137.tgz", + "integrity": "sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==", + "dev": true, + "peer": true + }, + "node_modules/enhanced-resolve": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.3.tgz", + "integrity": "sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==", + "dev": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true, + "peer": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "peer": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "peer": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "peer": true + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true, + "peer": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-core-module": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "peer": true + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true, + "peer": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "peer": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "peer": true + }, + "node_modules/node-releases": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.4.tgz", + "integrity": "sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==", + "dev": true, + "peer": true + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/outscale-api": { + "version": "0.1.0", + "resolved": "file:../..", + "license": "BSD-3-Clause", + "dependencies": { + "aws4fetch": "github:outscale-dev/aws4fetch" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true, + "peer": true + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "peer": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/resolve": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", + "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.8.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "peer": true + }, + "node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", + "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", + "dev": true, + "peer": true, + "dependencies": { + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map": "~0.8.0-beta.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz", + "integrity": "sha512-GvlZdT6wPQKbDNW/GDQzZFg/j4vKU96yl2q6mcUkzKOgW4gwf1Z8cZToUCrz31XHlPWH8MVb1r2tFtdDtTGJ7g==", + "dev": true, + "peer": true, + "dependencies": { + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1", + "terser": "^5.7.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser/node_modules/source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "dev": true, + "peer": true, + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "dev": true, + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/watchpack": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", + "integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==", + "dev": true, + "peer": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true, + "peer": true + }, + "node_modules/webpack": { + "version": "5.72.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.72.1.tgz", + "integrity": "sha512-dXG5zXCLspQR4krZVR6QgajnZOjW2K/djHvdcRaDQvsjV9z9vaW6+ja5dZOYbqBBjF6kGXka/2ZyxNdc+8Jung==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.4.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.9.3", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.3.1", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.2.tgz", + "integrity": "sha512-m3/AACnBBzK/kMTcxWHcZFPrw/eQuY4Df1TxvIWfWM2x7mRqBQCqKEd96oCUa9jkapLBaFfRce33eGDb4Pr7YQ==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.1.1", + "@webpack-cli/info": "^1.4.1", + "@webpack-cli/serve": "^1.6.1", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "execa": "^5.0.0", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "peer": true, + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + } + }, + "dependencies": { + "@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true + }, + "@types/eslint": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.2.tgz", + "integrity": "sha512-Z1nseZON+GEnFjJc04sv4NSALGjhFwy6K0HXt7qsn5ArfAKtb63dXNJHf+1YW6IpOIYRBGUbu3GwJdj8DGnCjA==", + "dev": true, + "peer": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", + "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", + "dev": true, + "peer": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true, + "peer": true + }, + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true, + "peer": true + }, + "@types/node": { + "version": "17.0.34", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.34.tgz", + "integrity": "sha512-XImEz7XwTvDBtzlTnm8YvMqGW/ErMWBsKZ+hMTvnDIjGCKxwK5Xpc+c/oQjOauwq8M4OS11hEkpjX8rrI/eEgA==", + "dev": true, + "peer": true + }, + "@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "peer": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "peer": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true, + "peer": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webpack-cli/configtest": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.1.tgz", + "integrity": "sha512-1FBc1f9G4P/AxMqIgfZgeOTuRnwZMten8E7zap5zgpPInnCrP8D4Q81+4CWIch8i/Nf7nXjP0v6CjjbHOrXhKg==", + "dev": true, + "requires": {} + }, + "@webpack-cli/info": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.1.tgz", + "integrity": "sha512-PKVGmazEq3oAo46Q63tpMr4HipI3OPfP7LiNOEJg963RMgT0rqheag28NCML0o3GIzA3DmxP1ZIAv9oTX1CUIA==", + "dev": true, + "requires": { + "envinfo": "^7.7.3" + } + }, + "@webpack-cli/serve": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.1.tgz", + "integrity": "sha512-gNGTiTrjEVQ0OcVnzsRSqTxaBSr+dmTfm+qJsCDluky8uhdLWep7Gcr62QsAKHTMxjCS/8nEITsmFAhfIx+QSw==", + "dev": true, + "requires": {} + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "peer": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "peer": true + }, + "acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "dev": true, + "peer": true + }, + "acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "peer": true, + "requires": {} + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "peer": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peer": true, + "requires": {} + }, + "aws4fetch": { + "version": "git+ssh://git@github.com/outscale-dev/aws4fetch.git#dcd7e13ee42facf987272bf17b1cc8efaaf03d1d", + "from": "aws4fetch@github:outscale-dev/aws4fetch" + }, + "browserslist": { + "version": "4.20.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.3.tgz", + "integrity": "sha512-NBhymBQl1zM0Y5dQT/O+xiLP9/rzOIQdKM/eMJBAq7yBgaB6krIYLGejrwVYnSHZdqjscB1SPuAjHwxjvN6Wdg==", + "dev": true, + "peer": true, + "requires": { + "caniuse-lite": "^1.0.30001332", + "electron-to-chromium": "^1.4.118", + "escalade": "^3.1.1", + "node-releases": "^2.0.3", + "picocolors": "^1.0.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "peer": true + }, + "caniuse-lite": { + "version": "1.0.30001341", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001341.tgz", + "integrity": "sha512-2SodVrFFtvGENGCv0ChVJIDQ0KPaS1cg7/qtfMaICgeMolDdo/Z2OD32F0Aq9yl6F4YFwGPBS5AaPqNYiW4PoA==", + "dev": true, + "peer": true + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "peer": true + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + } + }, + "colorette": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", + "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true, + "peer": true + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "electron-to-chromium": { + "version": "1.4.137", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.137.tgz", + "integrity": "sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==", + "dev": true, + "peer": true + }, + "enhanced-resolve": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.3.tgz", + "integrity": "sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==", + "dev": true, + "peer": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true + }, + "es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true, + "peer": true + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "peer": true + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "peer": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "peer": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "peer": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "peer": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "peer": true + }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "peer": true + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "peer": true + }, + "fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "peer": true + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true, + "peer": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "peer": true + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true + }, + "is-core-module": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "peer": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "peer": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "peer": true + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "peer": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true, + "peer": true + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "peer": true + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "peer": true, + "requires": { + "mime-db": "1.52.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "peer": true + }, + "node-releases": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.4.tgz", + "integrity": "sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==", + "dev": true, + "peer": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "outscale-api": { + "version": "0.1.0", + "requires": { + "aws4fetch": "github:outscale-dev/aws4fetch" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true, + "peer": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "peer": true + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "peer": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "requires": { + "resolve": "^1.9.0" + } + }, + "resolve": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", + "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "dev": true, + "requires": { + "is-core-module": "^2.8.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "peer": true + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "peer": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "peer": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "peer": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "peer": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "peer": true + }, + "terser": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", + "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", + "dev": true, + "peer": true, + "requires": { + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map": "~0.8.0-beta.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "dev": true, + "peer": true, + "requires": { + "whatwg-url": "^7.0.0" + } + } + } + }, + "terser-webpack-plugin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz", + "integrity": "sha512-GvlZdT6wPQKbDNW/GDQzZFg/j4vKU96yl2q6mcUkzKOgW4gwf1Z8cZToUCrz31XHlPWH8MVb1r2tFtdDtTGJ7g==", + "dev": true, + "peer": true, + "requires": { + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1", + "terser": "^5.7.2" + } + }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "dev": true, + "peer": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "peer": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "watchpack": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", + "integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==", + "dev": true, + "peer": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true, + "peer": true + }, + "webpack": { + "version": "5.72.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.72.1.tgz", + "integrity": "sha512-dXG5zXCLspQR4krZVR6QgajnZOjW2K/djHvdcRaDQvsjV9z9vaW6+ja5dZOYbqBBjF6kGXka/2ZyxNdc+8Jung==", + "dev": true, + "peer": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.4.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.9.3", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.3.1", + "webpack-sources": "^3.2.3" + } + }, + "webpack-cli": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.2.tgz", + "integrity": "sha512-m3/AACnBBzK/kMTcxWHcZFPrw/eQuY4Df1TxvIWfWM2x7mRqBQCqKEd96oCUa9jkapLBaFfRce33eGDb4Pr7YQ==", + "dev": true, + "requires": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.1.1", + "@webpack-cli/info": "^1.4.1", + "@webpack-cli/serve": "^1.6.1", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "execa": "^5.0.0", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + } + } + }, + "webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "peer": true + }, + "whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "peer": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + } + } +} diff --git a/examples/web-vms/package.json b/examples/web-vms/package.json new file mode 100644 index 00000000..af1262d6 --- /dev/null +++ b/examples/web-vms/package.json @@ -0,0 +1,20 @@ +{ + "name": "osc-sdk-js-vm-web-example", + "version": "0.1.0", + "description": "Example of using osc-sdk-js and virtual machines", + "author": "Outscale SAS", + "license": "BSD-3-Clause", + "main": "src/index.js", + "scripts": { + "build": "tsc && webpack", + "prepare": "npm run build", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "devDependencies": { + "typescript": "^4.6", + "webpack-cli": "^4.9.2" + }, + "dependencies": { + "outscale-api": "file:../.." + } +} diff --git a/examples/web-vms/src/index.ts b/examples/web-vms/src/index.ts new file mode 100644 index 00000000..12b3d0fd --- /dev/null +++ b/examples/web-vms/src/index.ts @@ -0,0 +1,139 @@ +import * as osc from "outscale-api"; + +export default function ShowVms() { + printResult("Quering Outscale API ..."); + + const accessKeyField = document.getElementById("accessKey") as HTMLInputElement; + if (!accessKeyField) { + console.error("Cannot getElementById(\"accessKey\")"); + return; + } + const accessKey = accessKeyField.value; + + const secretKeyField = document.getElementById("secretKey") as HTMLInputElement;; + if (!secretKeyField) { + console.error("Cannot getElementById(\"secretKey\")"); + return; + } + const secretKey = secretKeyField.value; + + const regionField = document.getElementById("region") as HTMLInputElement;; + if (!regionField) { + console.error("Cannot getElementById(\"region\")"); + return; + } + const region = regionField.value; + + getVms(accessKey, secretKey, region).then(vmsResult => { + if (typeof vmsResult == "string") { + printResult(vmsResult); + return; + } + printResult(vms2Html(vmsResult)); + }); +} + +function printResult(content: string | HTMLDivElement) { + let result = document.getElementById("result"); + if (!result) { + console.error("Cannot getElementById(\"result\")"); + return; + } + result.textContent = ''; + if (typeof content == "string") { + const querying = document.createElement('p'); + querying.innerHTML = content; + result.appendChild(querying); + } else { + result.appendChild(content); + } +} + + async function getVms(accessKey: string, secretKey: string, region: string): Promise | string> { + let config = new osc.Configuration({ + basePath: "https://api." + region + ".outscale.com/api/v1", + awsV4SignParameters: { + accessKeyId: accessKey, + secretAccessKey: secretKey, + service: "api", + region: region, + } + }); + let readParameters : osc.ReadVmsOperationRequest = { + readVmsRequest: {} + }; + + let api = new osc.VmApi(config) + return api.readVms(readParameters) + .then((res: osc.ReadVmsResponse | string) => { + if (typeof res == "string") { + return res; + } + if (res.vms === undefined || res.vms.length == 0) { + return "Listing suceeded but it seems you have no vm"; + } + return res.vms; + }, (err_: any) => { + return "Error, bad credential or region?"; + }); +} + +function vms2Html(vms: Array): HTMLDivElement { + const result = document.createElement('div'); + + const intro = document.createElement('p'); + intro.innerHTML = "You have "+ vms.length + " Virtual Machines:"; + result.appendChild(intro); + + const table = document.createElement('table'); + result.appendChild(table); + + const header = document.createElement('tr'); + table.appendChild(header); + + const idHeader = document.createElement('th'); + idHeader.innerHTML = "VmId"; + header.appendChild(idHeader); + + const stateHeader = document.createElement('th'); + stateHeader.innerHTML = "State"; + header.appendChild(stateHeader); + + const typeHeader = document.createElement('th'); + typeHeader.innerHTML = "VmType"; + header.appendChild(typeHeader); + + const perfHeader = document.createElement('th'); + perfHeader.innerHTML = "Performance"; + header.appendChild(perfHeader); + + const publicIpHeader = document.createElement('th'); + publicIpHeader.innerHTML = "PublicIp"; + header.appendChild(publicIpHeader); + + for (const vm of vms) { + const vmRow = document.createElement('tr'); + table.appendChild(vmRow); + + const vmId = document.createElement('td'); + vmId.innerHTML = vm.vmId?.toString() ?? "Unknown"; + vmRow.appendChild(vmId); + + const state = document.createElement('td'); + state.innerHTML = vm.state?.toString() ?? "Unknown"; + vmRow.appendChild(state); + + const vmType = document.createElement('td'); + vmType.innerHTML = vm.vmType?.toString() ?? "Unknown"; + vmRow.appendChild(vmType); + + const performance = document.createElement('td'); + performance.innerHTML = vm.performance?.toString() ?? "Unknown"; + vmRow.appendChild(performance); + + const publicIp = document.createElement('td'); + publicIp.innerHTML = vm.publicIp?.toString() ?? "Unknown"; + vmRow.appendChild(publicIp); + } + return result; +} \ No newline at end of file diff --git a/examples/web-vms/tsconfig.json b/examples/web-vms/tsconfig.json new file mode 100644 index 00000000..46deda4a --- /dev/null +++ b/examples/web-vms/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "es6", + "moduleResolution": "node", + "declaration": false, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + }, + "include": [ + "./src" + ] +} diff --git a/examples/web-vms/webpack.config.js b/examples/web-vms/webpack.config.js new file mode 100644 index 00000000..5e49466c --- /dev/null +++ b/examples/web-vms/webpack.config.js @@ -0,0 +1,13 @@ +const path = require('path'); + +module.exports = { + entry: './src/index.js', + mode: 'development', + output: { + filename: 'index.bundle.js', + path: path.resolve(__dirname, 'dist'), + library: 'ShowVms', + libraryTarget: 'window', + libraryExport: 'default' + }, +}; \ No newline at end of file diff --git a/gen.yml b/gen.yml new file mode 100644 index 00000000..19f4a10c --- /dev/null +++ b/gen.yml @@ -0,0 +1,6 @@ +# OpenAPI Generator configuration file +npmName: outscale-api +npmRepository: https://github.com/outscale/osc-sdk-js +withInterfaces: true +typescriptThreePlus: true +withAWSV4Signature: true diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..b17165ee --- /dev/null +++ b/package-lock.json @@ -0,0 +1,49 @@ +{ + "name": "outscale-api", + "version": "0.1.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "outscale-api", + "version": "0.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "aws4fetch": "github:outscale-dev/aws4fetch" + }, + "devDependencies": { + "typescript": "^4.6" + } + }, + "node_modules/aws4fetch": { + "version": "1.0.13", + "resolved": "git+ssh://git@github.com/outscale-dev/aws4fetch.git#dcd7e13ee42facf987272bf17b1cc8efaaf03d1d", + "license": "MIT" + }, + "node_modules/typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + }, + "dependencies": { + "aws4fetch": { + "version": "git+ssh://git@github.com/outscale-dev/aws4fetch.git#dcd7e13ee42facf987272bf17b1cc8efaaf03d1d", + "from": "aws4fetch@github:outscale-dev/aws4fetch" + }, + "typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..bc144264 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "outscale-api", + "version": "0.1.0", + "description": "OpenAPI client for outscale-api", + "author": "Outscale SAS", + "license": "BSD-3-Clause", + "module": "./dist/esm/index.js", + "typings": "./dist/esm/index.d.ts", + "main": "./dist/cjs/index.js", + "files": [ + "/dist" + ], + "scripts": { + "build-esm": "tsc -p tsconfig-esm.json", + "build-cjs": "tsc -p tsconfig-cjs.json", + "build": "npm run build-esm && npm run build-cjs", + "prepublish": "npm run build" + }, + "devDependencies": { + "typescript": "^4.6" + }, + "publishConfig": { + "registry": "https://github.com/outscale/osc-sdk-js" + }, + "dependencies": { + "aws4fetch": "github:outscale-dev/aws4fetch" + } +} diff --git a/sdk_version b/sdk_version new file mode 100644 index 00000000..6e8bf73a --- /dev/null +++ b/sdk_version @@ -0,0 +1 @@ +0.1.0 diff --git a/src/apis/AccessKeyApi.ts b/src/apis/AccessKeyApi.ts new file mode 100644 index 00000000..f6c6a97f --- /dev/null +++ b/src/apis/AccessKeyApi.ts @@ -0,0 +1,389 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateAccessKeyRequest, + CreateAccessKeyRequestFromJSON, + CreateAccessKeyRequestToJSON, + CreateAccessKeyResponse, + CreateAccessKeyResponseFromJSON, + CreateAccessKeyResponseToJSON, + DeleteAccessKeyRequest, + DeleteAccessKeyRequestFromJSON, + DeleteAccessKeyRequestToJSON, + DeleteAccessKeyResponse, + DeleteAccessKeyResponseFromJSON, + DeleteAccessKeyResponseToJSON, + ReadAccessKeysRequest, + ReadAccessKeysRequestFromJSON, + ReadAccessKeysRequestToJSON, + ReadAccessKeysResponse, + ReadAccessKeysResponseFromJSON, + ReadAccessKeysResponseToJSON, + ReadSecretAccessKeyRequest, + ReadSecretAccessKeyRequestFromJSON, + ReadSecretAccessKeyRequestToJSON, + ReadSecretAccessKeyResponse, + ReadSecretAccessKeyResponseFromJSON, + ReadSecretAccessKeyResponseToJSON, + UpdateAccessKeyRequest, + UpdateAccessKeyRequestFromJSON, + UpdateAccessKeyRequestToJSON, + UpdateAccessKeyResponse, + UpdateAccessKeyResponseFromJSON, + UpdateAccessKeyResponseToJSON, +} from '../models'; + +export interface CreateAccessKeyOperationRequest { + createAccessKeyRequest?: CreateAccessKeyRequest; +} + +export interface DeleteAccessKeyOperationRequest { + deleteAccessKeyRequest?: DeleteAccessKeyRequest; +} + +export interface ReadAccessKeysOperationRequest { + readAccessKeysRequest?: ReadAccessKeysRequest; +} + +export interface ReadSecretAccessKeyOperationRequest { + readSecretAccessKeyRequest?: ReadSecretAccessKeyRequest; +} + +export interface UpdateAccessKeyOperationRequest { + updateAccessKeyRequest?: UpdateAccessKeyRequest; +} + +/** + * AccessKeyApi - interface + * + * @export + * @interface AccessKeyApiInterface + */ +export interface AccessKeyApiInterface { + /** + * + * @param {CreateAccessKeyRequest} [createAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + createAccessKeyRaw(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createAccessKey(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteAccessKeyRequest} [deleteAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + deleteAccessKeyRaw(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteAccessKey(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadAccessKeysRequest} [readAccessKeysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + readAccessKeysRaw(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readAccessKeys(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadSecretAccessKeyRequest} [readSecretAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + readSecretAccessKeyRaw(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readSecretAccessKey(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateAccessKeyRequest} [updateAccessKeyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccessKeyApiInterface + */ + updateAccessKeyRaw(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateAccessKey(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class AccessKeyApi extends runtime.BaseAPI implements AccessKeyApiInterface { + + /** + */ + async createAccessKeyRaw(requestParameters: CreateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = CreateAccessKeyRequestToJSON(requestParameters.createAccessKeyRequest); + + const request: runtime.RequestOpts = { + path: `/CreateAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateAccessKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async createAccessKey(requestParameters: CreateAccessKeyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createAccessKeyRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteAccessKeyRaw(requestParameters: DeleteAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = DeleteAccessKeyRequestToJSON(requestParameters.deleteAccessKeyRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteAccessKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteAccessKey(requestParameters: DeleteAccessKeyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteAccessKeyRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readAccessKeysRaw(requestParameters: ReadAccessKeysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = ReadAccessKeysRequestToJSON(requestParameters.readAccessKeysRequest); + + const request: runtime.RequestOpts = { + path: `/ReadAccessKeys`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadAccessKeysResponseFromJSON(jsonValue)); + } + + /** + */ + async readAccessKeys(requestParameters: ReadAccessKeysOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readAccessKeysRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readSecretAccessKeyRaw(requestParameters: ReadSecretAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = ReadSecretAccessKeyRequestToJSON(requestParameters.readSecretAccessKeyRequest); + + const request: runtime.RequestOpts = { + path: `/ReadSecretAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSecretAccessKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async readSecretAccessKey(requestParameters: ReadSecretAccessKeyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readSecretAccessKeyRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateAccessKeyRaw(requestParameters: UpdateAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = UpdateAccessKeyRequestToJSON(requestParameters.updateAccessKeyRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateAccessKey`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAccessKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async updateAccessKey(requestParameters: UpdateAccessKeyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateAccessKeyRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/AccountApi.ts b/src/apis/AccountApi.ts new file mode 100644 index 00000000..479aab85 --- /dev/null +++ b/src/apis/AccountApi.ts @@ -0,0 +1,502 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CheckAuthenticationRequest, + CheckAuthenticationRequestFromJSON, + CheckAuthenticationRequestToJSON, + CheckAuthenticationResponse, + CheckAuthenticationResponseFromJSON, + CheckAuthenticationResponseToJSON, + CreateAccountRequest, + CreateAccountRequestFromJSON, + CreateAccountRequestToJSON, + CreateAccountResponse, + CreateAccountResponseFromJSON, + CreateAccountResponseToJSON, + ReadAccountsRequest, + ReadAccountsRequestFromJSON, + ReadAccountsRequestToJSON, + ReadAccountsResponse, + ReadAccountsResponseFromJSON, + ReadAccountsResponseToJSON, + ReadConsumptionAccountRequest, + ReadConsumptionAccountRequestFromJSON, + ReadConsumptionAccountRequestToJSON, + ReadConsumptionAccountResponse, + ReadConsumptionAccountResponseFromJSON, + ReadConsumptionAccountResponseToJSON, + ResetAccountPasswordRequest, + ResetAccountPasswordRequestFromJSON, + ResetAccountPasswordRequestToJSON, + ResetAccountPasswordResponse, + ResetAccountPasswordResponseFromJSON, + ResetAccountPasswordResponseToJSON, + SendResetPasswordEmailRequest, + SendResetPasswordEmailRequestFromJSON, + SendResetPasswordEmailRequestToJSON, + SendResetPasswordEmailResponse, + SendResetPasswordEmailResponseFromJSON, + SendResetPasswordEmailResponseToJSON, + UpdateAccountRequest, + UpdateAccountRequestFromJSON, + UpdateAccountRequestToJSON, + UpdateAccountResponse, + UpdateAccountResponseFromJSON, + UpdateAccountResponseToJSON, +} from '../models'; + +export interface CheckAuthenticationOperationRequest { + checkAuthenticationRequest?: CheckAuthenticationRequest; +} + +export interface CreateAccountOperationRequest { + createAccountRequest?: CreateAccountRequest; +} + +export interface ReadAccountsOperationRequest { + readAccountsRequest?: ReadAccountsRequest; +} + +export interface ReadConsumptionAccountOperationRequest { + readConsumptionAccountRequest?: ReadConsumptionAccountRequest; +} + +export interface ResetAccountPasswordOperationRequest { + resetAccountPasswordRequest?: ResetAccountPasswordRequest; +} + +export interface SendResetPasswordEmailOperationRequest { + sendResetPasswordEmailRequest?: SendResetPasswordEmailRequest; +} + +export interface UpdateAccountOperationRequest { + updateAccountRequest?: UpdateAccountRequest; +} + +/** + * AccountApi - interface + * + * @export + * @interface AccountApiInterface + */ +export interface AccountApiInterface { + /** + * + * @param {CheckAuthenticationRequest} [checkAuthenticationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + checkAuthenticationRaw(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + checkAuthentication(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateAccountRequest} [createAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createAccount(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadAccountsRequest} [readAccountsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + readAccountsRaw(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readAccounts(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadConsumptionAccountRequest} [readConsumptionAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + readConsumptionAccountRaw(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readConsumptionAccount(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ResetAccountPasswordRequest} [resetAccountPasswordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + resetAccountPasswordRaw(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + resetAccountPassword(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {SendResetPasswordEmailRequest} [sendResetPasswordEmailRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + sendResetPasswordEmailRaw(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + sendResetPasswordEmail(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateAccountRequest} [updateAccountRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountApiInterface + */ + updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateAccount(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class AccountApi extends runtime.BaseAPI implements AccountApiInterface { + + /** + */ + async checkAuthenticationRaw(requestParameters: CheckAuthenticationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CheckAuthenticationRequestToJSON(requestParameters.checkAuthenticationRequest); + + const request: runtime.RequestOpts = { + path: `/CheckAuthentication`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CheckAuthenticationResponseFromJSON(jsonValue)); + } + + /** + */ + async checkAuthentication(requestParameters: CheckAuthenticationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.checkAuthenticationRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateAccountRequestToJSON(requestParameters.createAccountRequest); + + const request: runtime.RequestOpts = { + path: `/CreateAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateAccountResponseFromJSON(jsonValue)); + } + + /** + */ + async createAccount(requestParameters: CreateAccountOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createAccountRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readAccountsRaw(requestParameters: ReadAccountsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadAccountsRequestToJSON(requestParameters.readAccountsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadAccounts`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadAccountsResponseFromJSON(jsonValue)); + } + + /** + */ + async readAccounts(requestParameters: ReadAccountsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readAccountsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readConsumptionAccountRaw(requestParameters: ReadConsumptionAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadConsumptionAccountRequestToJSON(requestParameters.readConsumptionAccountRequest); + + const request: runtime.RequestOpts = { + path: `/ReadConsumptionAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadConsumptionAccountResponseFromJSON(jsonValue)); + } + + /** + */ + async readConsumptionAccount(requestParameters: ReadConsumptionAccountOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readConsumptionAccountRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async resetAccountPasswordRaw(requestParameters: ResetAccountPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ResetAccountPasswordRequestToJSON(requestParameters.resetAccountPasswordRequest); + + const request: runtime.RequestOpts = { + path: `/ResetAccountPassword`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ResetAccountPasswordResponseFromJSON(jsonValue)); + } + + /** + */ + async resetAccountPassword(requestParameters: ResetAccountPasswordOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.resetAccountPasswordRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async sendResetPasswordEmailRaw(requestParameters: SendResetPasswordEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = SendResetPasswordEmailRequestToJSON(requestParameters.sendResetPasswordEmailRequest); + + const request: runtime.RequestOpts = { + path: `/SendResetPasswordEmail`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SendResetPasswordEmailResponseFromJSON(jsonValue)); + } + + /** + */ + async sendResetPasswordEmail(requestParameters: SendResetPasswordEmailOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.sendResetPasswordEmailRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateAccountRequestToJSON(requestParameters.updateAccountRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateAccount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAccountResponseFromJSON(jsonValue)); + } + + /** + */ + async updateAccount(requestParameters: UpdateAccountOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateAccountRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ApiAccessPolicyApi.ts b/src/apis/ApiAccessPolicyApi.ts new file mode 100644 index 00000000..aa2a2e07 --- /dev/null +++ b/src/apis/ApiAccessPolicyApi.ts @@ -0,0 +1,179 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadApiAccessPolicyRequest, + ReadApiAccessPolicyRequestFromJSON, + ReadApiAccessPolicyRequestToJSON, + ReadApiAccessPolicyResponse, + ReadApiAccessPolicyResponseFromJSON, + ReadApiAccessPolicyResponseToJSON, + UpdateApiAccessPolicyRequest, + UpdateApiAccessPolicyRequestFromJSON, + UpdateApiAccessPolicyRequestToJSON, + UpdateApiAccessPolicyResponse, + UpdateApiAccessPolicyResponseFromJSON, + UpdateApiAccessPolicyResponseToJSON, +} from '../models'; + +export interface ReadApiAccessPolicyOperationRequest { + readApiAccessPolicyRequest?: ReadApiAccessPolicyRequest; +} + +export interface UpdateApiAccessPolicyOperationRequest { + updateApiAccessPolicyRequest?: UpdateApiAccessPolicyRequest; +} + +/** + * ApiAccessPolicyApi - interface + * + * @export + * @interface ApiAccessPolicyApiInterface + */ +export interface ApiAccessPolicyApiInterface { + /** + * + * @param {ReadApiAccessPolicyRequest} [readApiAccessPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessPolicyApiInterface + */ + readApiAccessPolicyRaw(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readApiAccessPolicy(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateApiAccessPolicyRequest} [updateApiAccessPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessPolicyApiInterface + */ + updateApiAccessPolicyRaw(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateApiAccessPolicy(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ApiAccessPolicyApi extends runtime.BaseAPI implements ApiAccessPolicyApiInterface { + + /** + */ + async readApiAccessPolicyRaw(requestParameters: ReadApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = ReadApiAccessPolicyRequestToJSON(requestParameters.readApiAccessPolicyRequest); + + const request: runtime.RequestOpts = { + path: `/ReadApiAccessPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadApiAccessPolicyResponseFromJSON(jsonValue)); + } + + /** + */ + async readApiAccessPolicy(requestParameters: ReadApiAccessPolicyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readApiAccessPolicyRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateApiAccessPolicyRaw(requestParameters: UpdateApiAccessPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = UpdateApiAccessPolicyRequestToJSON(requestParameters.updateApiAccessPolicyRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateApiAccessPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateApiAccessPolicyResponseFromJSON(jsonValue)); + } + + /** + */ + async updateApiAccessPolicy(requestParameters: UpdateApiAccessPolicyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateApiAccessPolicyRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ApiAccessRuleApi.ts b/src/apis/ApiAccessRuleApi.ts new file mode 100644 index 00000000..bde804bd --- /dev/null +++ b/src/apis/ApiAccessRuleApi.ts @@ -0,0 +1,318 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateApiAccessRuleRequest, + CreateApiAccessRuleRequestFromJSON, + CreateApiAccessRuleRequestToJSON, + CreateApiAccessRuleResponse, + CreateApiAccessRuleResponseFromJSON, + CreateApiAccessRuleResponseToJSON, + DeleteApiAccessRuleRequest, + DeleteApiAccessRuleRequestFromJSON, + DeleteApiAccessRuleRequestToJSON, + DeleteApiAccessRuleResponse, + DeleteApiAccessRuleResponseFromJSON, + DeleteApiAccessRuleResponseToJSON, + ReadApiAccessRulesRequest, + ReadApiAccessRulesRequestFromJSON, + ReadApiAccessRulesRequestToJSON, + ReadApiAccessRulesResponse, + ReadApiAccessRulesResponseFromJSON, + ReadApiAccessRulesResponseToJSON, + UpdateApiAccessRuleRequest, + UpdateApiAccessRuleRequestFromJSON, + UpdateApiAccessRuleRequestToJSON, + UpdateApiAccessRuleResponse, + UpdateApiAccessRuleResponseFromJSON, + UpdateApiAccessRuleResponseToJSON, +} from '../models'; + +export interface CreateApiAccessRuleOperationRequest { + createApiAccessRuleRequest?: CreateApiAccessRuleRequest; +} + +export interface DeleteApiAccessRuleOperationRequest { + deleteApiAccessRuleRequest?: DeleteApiAccessRuleRequest; +} + +export interface ReadApiAccessRulesOperationRequest { + readApiAccessRulesRequest?: ReadApiAccessRulesRequest; +} + +export interface UpdateApiAccessRuleOperationRequest { + updateApiAccessRuleRequest?: UpdateApiAccessRuleRequest; +} + +/** + * ApiAccessRuleApi - interface + * + * @export + * @interface ApiAccessRuleApiInterface + */ +export interface ApiAccessRuleApiInterface { + /** + * + * @param {CreateApiAccessRuleRequest} [createApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + createApiAccessRuleRaw(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createApiAccessRule(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteApiAccessRuleRequest} [deleteApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + deleteApiAccessRuleRaw(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteApiAccessRule(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadApiAccessRulesRequest} [readApiAccessRulesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + readApiAccessRulesRaw(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readApiAccessRules(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateApiAccessRuleRequest} [updateApiAccessRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiAccessRuleApiInterface + */ + updateApiAccessRuleRaw(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateApiAccessRule(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ApiAccessRuleApi extends runtime.BaseAPI implements ApiAccessRuleApiInterface { + + /** + */ + async createApiAccessRuleRaw(requestParameters: CreateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = CreateApiAccessRuleRequestToJSON(requestParameters.createApiAccessRuleRequest); + + const request: runtime.RequestOpts = { + path: `/CreateApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateApiAccessRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async createApiAccessRule(requestParameters: CreateApiAccessRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createApiAccessRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteApiAccessRuleRaw(requestParameters: DeleteApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = DeleteApiAccessRuleRequestToJSON(requestParameters.deleteApiAccessRuleRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteApiAccessRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteApiAccessRule(requestParameters: DeleteApiAccessRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteApiAccessRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readApiAccessRulesRaw(requestParameters: ReadApiAccessRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = ReadApiAccessRulesRequestToJSON(requestParameters.readApiAccessRulesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadApiAccessRules`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadApiAccessRulesResponseFromJSON(jsonValue)); + } + + /** + */ + async readApiAccessRules(requestParameters: ReadApiAccessRulesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readApiAccessRulesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateApiAccessRuleRaw(requestParameters: UpdateApiAccessRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = UpdateApiAccessRuleRequestToJSON(requestParameters.updateApiAccessRuleRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateApiAccessRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateApiAccessRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async updateApiAccessRule(requestParameters: UpdateApiAccessRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateApiAccessRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ApiLogApi.ts b/src/apis/ApiLogApi.ts new file mode 100644 index 00000000..ef9f3a6c --- /dev/null +++ b/src/apis/ApiLogApi.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadApiLogsRequest, + ReadApiLogsRequestFromJSON, + ReadApiLogsRequestToJSON, + ReadApiLogsResponse, + ReadApiLogsResponseFromJSON, + ReadApiLogsResponseToJSON, +} from '../models'; + +export interface ReadApiLogsOperationRequest { + readApiLogsRequest?: ReadApiLogsRequest; +} + +/** + * ApiLogApi - interface + * + * @export + * @interface ApiLogApiInterface + */ +export interface ApiLogApiInterface { + /** + * + * @param {ReadApiLogsRequest} [readApiLogsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiLogApiInterface + */ + readApiLogsRaw(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readApiLogs(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ApiLogApi extends runtime.BaseAPI implements ApiLogApiInterface { + + /** + */ + async readApiLogsRaw(requestParameters: ReadApiLogsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadApiLogsRequestToJSON(requestParameters.readApiLogsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadApiLogs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadApiLogsResponseFromJSON(jsonValue)); + } + + /** + */ + async readApiLogs(requestParameters: ReadApiLogsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readApiLogsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/CaApi.ts b/src/apis/CaApi.ts new file mode 100644 index 00000000..9172583b --- /dev/null +++ b/src/apis/CaApi.ts @@ -0,0 +1,318 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateCaRequest, + CreateCaRequestFromJSON, + CreateCaRequestToJSON, + CreateCaResponse, + CreateCaResponseFromJSON, + CreateCaResponseToJSON, + DeleteCaRequest, + DeleteCaRequestFromJSON, + DeleteCaRequestToJSON, + DeleteCaResponse, + DeleteCaResponseFromJSON, + DeleteCaResponseToJSON, + ReadCasRequest, + ReadCasRequestFromJSON, + ReadCasRequestToJSON, + ReadCasResponse, + ReadCasResponseFromJSON, + ReadCasResponseToJSON, + UpdateCaRequest, + UpdateCaRequestFromJSON, + UpdateCaRequestToJSON, + UpdateCaResponse, + UpdateCaResponseFromJSON, + UpdateCaResponseToJSON, +} from '../models'; + +export interface CreateCaOperationRequest { + createCaRequest?: CreateCaRequest; +} + +export interface DeleteCaOperationRequest { + deleteCaRequest?: DeleteCaRequest; +} + +export interface ReadCasOperationRequest { + readCasRequest?: ReadCasRequest; +} + +export interface UpdateCaOperationRequest { + updateCaRequest?: UpdateCaRequest; +} + +/** + * CaApi - interface + * + * @export + * @interface CaApiInterface + */ +export interface CaApiInterface { + /** + * + * @param {CreateCaRequest} [createCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + createCaRaw(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createCa(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteCaRequest} [deleteCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + deleteCaRaw(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteCa(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadCasRequest} [readCasRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + readCasRaw(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readCas(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateCaRequest} [updateCaRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CaApiInterface + */ + updateCaRaw(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateCa(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class CaApi extends runtime.BaseAPI implements CaApiInterface { + + /** + */ + async createCaRaw(requestParameters: CreateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = CreateCaRequestToJSON(requestParameters.createCaRequest); + + const request: runtime.RequestOpts = { + path: `/CreateCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateCaResponseFromJSON(jsonValue)); + } + + /** + */ + async createCa(requestParameters: CreateCaOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createCaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteCaRaw(requestParameters: DeleteCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = DeleteCaRequestToJSON(requestParameters.deleteCaRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteCaResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteCa(requestParameters: DeleteCaOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteCaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readCasRaw(requestParameters: ReadCasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = ReadCasRequestToJSON(requestParameters.readCasRequest); + + const request: runtime.RequestOpts = { + path: `/ReadCas`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadCasResponseFromJSON(jsonValue)); + } + + /** + */ + async readCas(requestParameters: ReadCasOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readCasRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateCaRaw(requestParameters: UpdateCaOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuthSec authentication + } + + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + + + const body: any = UpdateCaRequestToJSON(requestParameters.updateCaRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateCa`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateCaResponseFromJSON(jsonValue)); + } + + /** + */ + async updateCa(requestParameters: UpdateCaOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateCaRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/CatalogApi.ts b/src/apis/CatalogApi.ts new file mode 100644 index 00000000..9b65faa6 --- /dev/null +++ b/src/apis/CatalogApi.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadCatalogRequest, + ReadCatalogRequestFromJSON, + ReadCatalogRequestToJSON, + ReadCatalogResponse, + ReadCatalogResponseFromJSON, + ReadCatalogResponseToJSON, +} from '../models'; + +export interface ReadCatalogOperationRequest { + readCatalogRequest?: ReadCatalogRequest; +} + +/** + * CatalogApi - interface + * + * @export + * @interface CatalogApiInterface + */ +export interface CatalogApiInterface { + /** + * + * @param {ReadCatalogRequest} [readCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CatalogApiInterface + */ + readCatalogRaw(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readCatalog(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class CatalogApi extends runtime.BaseAPI implements CatalogApiInterface { + + /** + */ + async readCatalogRaw(requestParameters: ReadCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadCatalogRequestToJSON(requestParameters.readCatalogRequest); + + const request: runtime.RequestOpts = { + path: `/ReadCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadCatalogResponseFromJSON(jsonValue)); + } + + /** + */ + async readCatalog(requestParameters: ReadCatalogOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readCatalogRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ClientGatewayApi.ts b/src/apis/ClientGatewayApi.ts new file mode 100644 index 00000000..e5558aa6 --- /dev/null +++ b/src/apis/ClientGatewayApi.ts @@ -0,0 +1,238 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateClientGatewayRequest, + CreateClientGatewayRequestFromJSON, + CreateClientGatewayRequestToJSON, + CreateClientGatewayResponse, + CreateClientGatewayResponseFromJSON, + CreateClientGatewayResponseToJSON, + DeleteClientGatewayRequest, + DeleteClientGatewayRequestFromJSON, + DeleteClientGatewayRequestToJSON, + DeleteClientGatewayResponse, + DeleteClientGatewayResponseFromJSON, + DeleteClientGatewayResponseToJSON, + ReadClientGatewaysRequest, + ReadClientGatewaysRequestFromJSON, + ReadClientGatewaysRequestToJSON, + ReadClientGatewaysResponse, + ReadClientGatewaysResponseFromJSON, + ReadClientGatewaysResponseToJSON, +} from '../models'; + +export interface CreateClientGatewayOperationRequest { + createClientGatewayRequest?: CreateClientGatewayRequest; +} + +export interface DeleteClientGatewayOperationRequest { + deleteClientGatewayRequest?: DeleteClientGatewayRequest; +} + +export interface ReadClientGatewaysOperationRequest { + readClientGatewaysRequest?: ReadClientGatewaysRequest; +} + +/** + * ClientGatewayApi - interface + * + * @export + * @interface ClientGatewayApiInterface + */ +export interface ClientGatewayApiInterface { + /** + * + * @param {CreateClientGatewayRequest} [createClientGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + createClientGatewayRaw(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createClientGateway(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteClientGatewayRequest} [deleteClientGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + deleteClientGatewayRaw(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteClientGateway(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadClientGatewaysRequest} [readClientGatewaysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientGatewayApiInterface + */ + readClientGatewaysRaw(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readClientGateways(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ClientGatewayApi extends runtime.BaseAPI implements ClientGatewayApiInterface { + + /** + */ + async createClientGatewayRaw(requestParameters: CreateClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateClientGatewayRequestToJSON(requestParameters.createClientGatewayRequest); + + const request: runtime.RequestOpts = { + path: `/CreateClientGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateClientGatewayResponseFromJSON(jsonValue)); + } + + /** + */ + async createClientGateway(requestParameters: CreateClientGatewayOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createClientGatewayRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteClientGatewayRaw(requestParameters: DeleteClientGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteClientGatewayRequestToJSON(requestParameters.deleteClientGatewayRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteClientGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteClientGatewayResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteClientGateway(requestParameters: DeleteClientGatewayOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteClientGatewayRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readClientGatewaysRaw(requestParameters: ReadClientGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadClientGatewaysRequestToJSON(requestParameters.readClientGatewaysRequest); + + const request: runtime.RequestOpts = { + path: `/ReadClientGateways`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadClientGatewaysResponseFromJSON(jsonValue)); + } + + /** + */ + async readClientGateways(requestParameters: ReadClientGatewaysOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readClientGatewaysRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/DhcpOptionApi.ts b/src/apis/DhcpOptionApi.ts new file mode 100644 index 00000000..da3fca29 --- /dev/null +++ b/src/apis/DhcpOptionApi.ts @@ -0,0 +1,238 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateDhcpOptionsRequest, + CreateDhcpOptionsRequestFromJSON, + CreateDhcpOptionsRequestToJSON, + CreateDhcpOptionsResponse, + CreateDhcpOptionsResponseFromJSON, + CreateDhcpOptionsResponseToJSON, + DeleteDhcpOptionsRequest, + DeleteDhcpOptionsRequestFromJSON, + DeleteDhcpOptionsRequestToJSON, + DeleteDhcpOptionsResponse, + DeleteDhcpOptionsResponseFromJSON, + DeleteDhcpOptionsResponseToJSON, + ReadDhcpOptionsRequest, + ReadDhcpOptionsRequestFromJSON, + ReadDhcpOptionsRequestToJSON, + ReadDhcpOptionsResponse, + ReadDhcpOptionsResponseFromJSON, + ReadDhcpOptionsResponseToJSON, +} from '../models'; + +export interface CreateDhcpOptionsOperationRequest { + createDhcpOptionsRequest?: CreateDhcpOptionsRequest; +} + +export interface DeleteDhcpOptionsOperationRequest { + deleteDhcpOptionsRequest?: DeleteDhcpOptionsRequest; +} + +export interface ReadDhcpOptionsOperationRequest { + readDhcpOptionsRequest?: ReadDhcpOptionsRequest; +} + +/** + * DhcpOptionApi - interface + * + * @export + * @interface DhcpOptionApiInterface + */ +export interface DhcpOptionApiInterface { + /** + * + * @param {CreateDhcpOptionsRequest} [createDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + createDhcpOptionsRaw(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createDhcpOptions(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteDhcpOptionsRequest} [deleteDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + deleteDhcpOptionsRaw(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteDhcpOptions(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadDhcpOptionsRequest} [readDhcpOptionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DhcpOptionApiInterface + */ + readDhcpOptionsRaw(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readDhcpOptions(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class DhcpOptionApi extends runtime.BaseAPI implements DhcpOptionApiInterface { + + /** + */ + async createDhcpOptionsRaw(requestParameters: CreateDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateDhcpOptionsRequestToJSON(requestParameters.createDhcpOptionsRequest); + + const request: runtime.RequestOpts = { + path: `/CreateDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDhcpOptionsResponseFromJSON(jsonValue)); + } + + /** + */ + async createDhcpOptions(requestParameters: CreateDhcpOptionsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createDhcpOptionsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteDhcpOptionsRaw(requestParameters: DeleteDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteDhcpOptionsRequestToJSON(requestParameters.deleteDhcpOptionsRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDhcpOptionsResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteDhcpOptions(requestParameters: DeleteDhcpOptionsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteDhcpOptionsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readDhcpOptionsRaw(requestParameters: ReadDhcpOptionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadDhcpOptionsRequestToJSON(requestParameters.readDhcpOptionsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadDhcpOptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadDhcpOptionsResponseFromJSON(jsonValue)); + } + + /** + */ + async readDhcpOptions(requestParameters: ReadDhcpOptionsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readDhcpOptionsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/DirectLinkApi.ts b/src/apis/DirectLinkApi.ts new file mode 100644 index 00000000..86174bc2 --- /dev/null +++ b/src/apis/DirectLinkApi.ts @@ -0,0 +1,238 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateDirectLinkRequest, + CreateDirectLinkRequestFromJSON, + CreateDirectLinkRequestToJSON, + CreateDirectLinkResponse, + CreateDirectLinkResponseFromJSON, + CreateDirectLinkResponseToJSON, + DeleteDirectLinkRequest, + DeleteDirectLinkRequestFromJSON, + DeleteDirectLinkRequestToJSON, + DeleteDirectLinkResponse, + DeleteDirectLinkResponseFromJSON, + DeleteDirectLinkResponseToJSON, + ReadDirectLinksRequest, + ReadDirectLinksRequestFromJSON, + ReadDirectLinksRequestToJSON, + ReadDirectLinksResponse, + ReadDirectLinksResponseFromJSON, + ReadDirectLinksResponseToJSON, +} from '../models'; + +export interface CreateDirectLinkOperationRequest { + createDirectLinkRequest?: CreateDirectLinkRequest; +} + +export interface DeleteDirectLinkOperationRequest { + deleteDirectLinkRequest?: DeleteDirectLinkRequest; +} + +export interface ReadDirectLinksOperationRequest { + readDirectLinksRequest?: ReadDirectLinksRequest; +} + +/** + * DirectLinkApi - interface + * + * @export + * @interface DirectLinkApiInterface + */ +export interface DirectLinkApiInterface { + /** + * + * @param {CreateDirectLinkRequest} [createDirectLinkRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + createDirectLinkRaw(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createDirectLink(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteDirectLinkRequest} [deleteDirectLinkRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + deleteDirectLinkRaw(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteDirectLink(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadDirectLinksRequest} [readDirectLinksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkApiInterface + */ + readDirectLinksRaw(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readDirectLinks(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class DirectLinkApi extends runtime.BaseAPI implements DirectLinkApiInterface { + + /** + */ + async createDirectLinkRaw(requestParameters: CreateDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateDirectLinkRequestToJSON(requestParameters.createDirectLinkRequest); + + const request: runtime.RequestOpts = { + path: `/CreateDirectLink`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDirectLinkResponseFromJSON(jsonValue)); + } + + /** + */ + async createDirectLink(requestParameters: CreateDirectLinkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createDirectLinkRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteDirectLinkRaw(requestParameters: DeleteDirectLinkOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteDirectLinkRequestToJSON(requestParameters.deleteDirectLinkRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteDirectLink`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDirectLinkResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteDirectLink(requestParameters: DeleteDirectLinkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteDirectLinkRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readDirectLinksRaw(requestParameters: ReadDirectLinksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadDirectLinksRequestToJSON(requestParameters.readDirectLinksRequest); + + const request: runtime.RequestOpts = { + path: `/ReadDirectLinks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadDirectLinksResponseFromJSON(jsonValue)); + } + + /** + */ + async readDirectLinks(requestParameters: ReadDirectLinksOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readDirectLinksRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/DirectLinkInterfaceApi.ts b/src/apis/DirectLinkInterfaceApi.ts new file mode 100644 index 00000000..38169ae3 --- /dev/null +++ b/src/apis/DirectLinkInterfaceApi.ts @@ -0,0 +1,238 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateDirectLinkInterfaceRequest, + CreateDirectLinkInterfaceRequestFromJSON, + CreateDirectLinkInterfaceRequestToJSON, + CreateDirectLinkInterfaceResponse, + CreateDirectLinkInterfaceResponseFromJSON, + CreateDirectLinkInterfaceResponseToJSON, + DeleteDirectLinkInterfaceRequest, + DeleteDirectLinkInterfaceRequestFromJSON, + DeleteDirectLinkInterfaceRequestToJSON, + DeleteDirectLinkInterfaceResponse, + DeleteDirectLinkInterfaceResponseFromJSON, + DeleteDirectLinkInterfaceResponseToJSON, + ReadDirectLinkInterfacesRequest, + ReadDirectLinkInterfacesRequestFromJSON, + ReadDirectLinkInterfacesRequestToJSON, + ReadDirectLinkInterfacesResponse, + ReadDirectLinkInterfacesResponseFromJSON, + ReadDirectLinkInterfacesResponseToJSON, +} from '../models'; + +export interface CreateDirectLinkInterfaceOperationRequest { + createDirectLinkInterfaceRequest?: CreateDirectLinkInterfaceRequest; +} + +export interface DeleteDirectLinkInterfaceOperationRequest { + deleteDirectLinkInterfaceRequest?: DeleteDirectLinkInterfaceRequest; +} + +export interface ReadDirectLinkInterfacesOperationRequest { + readDirectLinkInterfacesRequest?: ReadDirectLinkInterfacesRequest; +} + +/** + * DirectLinkInterfaceApi - interface + * + * @export + * @interface DirectLinkInterfaceApiInterface + */ +export interface DirectLinkInterfaceApiInterface { + /** + * + * @param {CreateDirectLinkInterfaceRequest} [createDirectLinkInterfaceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + createDirectLinkInterfaceRaw(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createDirectLinkInterface(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteDirectLinkInterfaceRequest} [deleteDirectLinkInterfaceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + deleteDirectLinkInterfaceRaw(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteDirectLinkInterface(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadDirectLinkInterfacesRequest} [readDirectLinkInterfacesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DirectLinkInterfaceApiInterface + */ + readDirectLinkInterfacesRaw(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readDirectLinkInterfaces(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class DirectLinkInterfaceApi extends runtime.BaseAPI implements DirectLinkInterfaceApiInterface { + + /** + */ + async createDirectLinkInterfaceRaw(requestParameters: CreateDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateDirectLinkInterfaceRequestToJSON(requestParameters.createDirectLinkInterfaceRequest); + + const request: runtime.RequestOpts = { + path: `/CreateDirectLinkInterface`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDirectLinkInterfaceResponseFromJSON(jsonValue)); + } + + /** + */ + async createDirectLinkInterface(requestParameters: CreateDirectLinkInterfaceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createDirectLinkInterfaceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteDirectLinkInterfaceRaw(requestParameters: DeleteDirectLinkInterfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteDirectLinkInterfaceRequestToJSON(requestParameters.deleteDirectLinkInterfaceRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteDirectLinkInterface`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDirectLinkInterfaceResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteDirectLinkInterface(requestParameters: DeleteDirectLinkInterfaceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteDirectLinkInterfaceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readDirectLinkInterfacesRaw(requestParameters: ReadDirectLinkInterfacesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadDirectLinkInterfacesRequestToJSON(requestParameters.readDirectLinkInterfacesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadDirectLinkInterfaces`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadDirectLinkInterfacesResponseFromJSON(jsonValue)); + } + + /** + */ + async readDirectLinkInterfaces(requestParameters: ReadDirectLinkInterfacesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readDirectLinkInterfacesRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/FlexibleGpuApi.ts b/src/apis/FlexibleGpuApi.ts new file mode 100644 index 00000000..fe404027 --- /dev/null +++ b/src/apis/FlexibleGpuApi.ts @@ -0,0 +1,506 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateFlexibleGpuRequest, + CreateFlexibleGpuRequestFromJSON, + CreateFlexibleGpuRequestToJSON, + CreateFlexibleGpuResponse, + CreateFlexibleGpuResponseFromJSON, + CreateFlexibleGpuResponseToJSON, + DeleteFlexibleGpuRequest, + DeleteFlexibleGpuRequestFromJSON, + DeleteFlexibleGpuRequestToJSON, + DeleteFlexibleGpuResponse, + DeleteFlexibleGpuResponseFromJSON, + DeleteFlexibleGpuResponseToJSON, + LinkFlexibleGpuRequest, + LinkFlexibleGpuRequestFromJSON, + LinkFlexibleGpuRequestToJSON, + LinkFlexibleGpuResponse, + LinkFlexibleGpuResponseFromJSON, + LinkFlexibleGpuResponseToJSON, + ReadFlexibleGpuCatalogRequest, + ReadFlexibleGpuCatalogRequestFromJSON, + ReadFlexibleGpuCatalogRequestToJSON, + ReadFlexibleGpuCatalogResponse, + ReadFlexibleGpuCatalogResponseFromJSON, + ReadFlexibleGpuCatalogResponseToJSON, + ReadFlexibleGpusRequest, + ReadFlexibleGpusRequestFromJSON, + ReadFlexibleGpusRequestToJSON, + ReadFlexibleGpusResponse, + ReadFlexibleGpusResponseFromJSON, + ReadFlexibleGpusResponseToJSON, + UnlinkFlexibleGpuRequest, + UnlinkFlexibleGpuRequestFromJSON, + UnlinkFlexibleGpuRequestToJSON, + UnlinkFlexibleGpuResponse, + UnlinkFlexibleGpuResponseFromJSON, + UnlinkFlexibleGpuResponseToJSON, + UpdateFlexibleGpuRequest, + UpdateFlexibleGpuRequestFromJSON, + UpdateFlexibleGpuRequestToJSON, + UpdateFlexibleGpuResponse, + UpdateFlexibleGpuResponseFromJSON, + UpdateFlexibleGpuResponseToJSON, +} from '../models'; + +export interface CreateFlexibleGpuOperationRequest { + createFlexibleGpuRequest?: CreateFlexibleGpuRequest; +} + +export interface DeleteFlexibleGpuOperationRequest { + deleteFlexibleGpuRequest?: DeleteFlexibleGpuRequest; +} + +export interface LinkFlexibleGpuOperationRequest { + linkFlexibleGpuRequest?: LinkFlexibleGpuRequest; +} + +export interface ReadFlexibleGpuCatalogOperationRequest { + readFlexibleGpuCatalogRequest?: ReadFlexibleGpuCatalogRequest; +} + +export interface ReadFlexibleGpusOperationRequest { + readFlexibleGpusRequest?: ReadFlexibleGpusRequest; +} + +export interface UnlinkFlexibleGpuOperationRequest { + unlinkFlexibleGpuRequest?: UnlinkFlexibleGpuRequest; +} + +export interface UpdateFlexibleGpuOperationRequest { + updateFlexibleGpuRequest?: UpdateFlexibleGpuRequest; +} + +/** + * FlexibleGpuApi - interface + * + * @export + * @interface FlexibleGpuApiInterface + */ +export interface FlexibleGpuApiInterface { + /** + * + * @param {CreateFlexibleGpuRequest} [createFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + createFlexibleGpuRaw(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createFlexibleGpu(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteFlexibleGpuRequest} [deleteFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + deleteFlexibleGpuRaw(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteFlexibleGpu(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkFlexibleGpuRequest} [linkFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + linkFlexibleGpuRaw(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkFlexibleGpu(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadFlexibleGpuCatalogRequest} [readFlexibleGpuCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + readFlexibleGpuCatalogRaw(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readFlexibleGpuCatalog(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadFlexibleGpusRequest} [readFlexibleGpusRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + readFlexibleGpusRaw(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readFlexibleGpus(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkFlexibleGpuRequest} [unlinkFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + unlinkFlexibleGpuRaw(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkFlexibleGpu(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateFlexibleGpuRequest} [updateFlexibleGpuRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FlexibleGpuApiInterface + */ + updateFlexibleGpuRaw(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateFlexibleGpu(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class FlexibleGpuApi extends runtime.BaseAPI implements FlexibleGpuApiInterface { + + /** + */ + async createFlexibleGpuRaw(requestParameters: CreateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateFlexibleGpuRequestToJSON(requestParameters.createFlexibleGpuRequest); + + const request: runtime.RequestOpts = { + path: `/CreateFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateFlexibleGpuResponseFromJSON(jsonValue)); + } + + /** + */ + async createFlexibleGpu(requestParameters: CreateFlexibleGpuOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createFlexibleGpuRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteFlexibleGpuRaw(requestParameters: DeleteFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteFlexibleGpuRequestToJSON(requestParameters.deleteFlexibleGpuRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteFlexibleGpuResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteFlexibleGpu(requestParameters: DeleteFlexibleGpuOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteFlexibleGpuRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkFlexibleGpuRaw(requestParameters: LinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkFlexibleGpuRequestToJSON(requestParameters.linkFlexibleGpuRequest); + + const request: runtime.RequestOpts = { + path: `/LinkFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkFlexibleGpuResponseFromJSON(jsonValue)); + } + + /** + */ + async linkFlexibleGpu(requestParameters: LinkFlexibleGpuOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkFlexibleGpuRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readFlexibleGpuCatalogRaw(requestParameters: ReadFlexibleGpuCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadFlexibleGpuCatalogRequestToJSON(requestParameters.readFlexibleGpuCatalogRequest); + + const request: runtime.RequestOpts = { + path: `/ReadFlexibleGpuCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadFlexibleGpuCatalogResponseFromJSON(jsonValue)); + } + + /** + */ + async readFlexibleGpuCatalog(requestParameters: ReadFlexibleGpuCatalogOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readFlexibleGpuCatalogRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readFlexibleGpusRaw(requestParameters: ReadFlexibleGpusOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadFlexibleGpusRequestToJSON(requestParameters.readFlexibleGpusRequest); + + const request: runtime.RequestOpts = { + path: `/ReadFlexibleGpus`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadFlexibleGpusResponseFromJSON(jsonValue)); + } + + /** + */ + async readFlexibleGpus(requestParameters: ReadFlexibleGpusOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readFlexibleGpusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkFlexibleGpuRaw(requestParameters: UnlinkFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkFlexibleGpuRequestToJSON(requestParameters.unlinkFlexibleGpuRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkFlexibleGpuResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkFlexibleGpu(requestParameters: UnlinkFlexibleGpuOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkFlexibleGpuRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateFlexibleGpuRaw(requestParameters: UpdateFlexibleGpuOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateFlexibleGpuRequestToJSON(requestParameters.updateFlexibleGpuRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateFlexibleGpu`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateFlexibleGpuResponseFromJSON(jsonValue)); + } + + /** + */ + async updateFlexibleGpu(requestParameters: UpdateFlexibleGpuOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateFlexibleGpuRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ImageApi.ts b/src/apis/ImageApi.ts new file mode 100644 index 00000000..4b434767 --- /dev/null +++ b/src/apis/ImageApi.ts @@ -0,0 +1,445 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateImageExportTaskRequest, + CreateImageExportTaskRequestFromJSON, + CreateImageExportTaskRequestToJSON, + CreateImageExportTaskResponse, + CreateImageExportTaskResponseFromJSON, + CreateImageExportTaskResponseToJSON, + CreateImageRequest, + CreateImageRequestFromJSON, + CreateImageRequestToJSON, + CreateImageResponse, + CreateImageResponseFromJSON, + CreateImageResponseToJSON, + DeleteImageRequest, + DeleteImageRequestFromJSON, + DeleteImageRequestToJSON, + DeleteImageResponse, + DeleteImageResponseFromJSON, + DeleteImageResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadImageExportTasksRequest, + ReadImageExportTasksRequestFromJSON, + ReadImageExportTasksRequestToJSON, + ReadImageExportTasksResponse, + ReadImageExportTasksResponseFromJSON, + ReadImageExportTasksResponseToJSON, + ReadImagesRequest, + ReadImagesRequestFromJSON, + ReadImagesRequestToJSON, + ReadImagesResponse, + ReadImagesResponseFromJSON, + ReadImagesResponseToJSON, + UpdateImageRequest, + UpdateImageRequestFromJSON, + UpdateImageRequestToJSON, + UpdateImageResponse, + UpdateImageResponseFromJSON, + UpdateImageResponseToJSON, +} from '../models'; + +export interface CreateImageOperationRequest { + createImageRequest?: CreateImageRequest; +} + +export interface CreateImageExportTaskOperationRequest { + createImageExportTaskRequest?: CreateImageExportTaskRequest; +} + +export interface DeleteImageOperationRequest { + deleteImageRequest?: DeleteImageRequest; +} + +export interface ReadImageExportTasksOperationRequest { + readImageExportTasksRequest?: ReadImageExportTasksRequest; +} + +export interface ReadImagesOperationRequest { + readImagesRequest?: ReadImagesRequest; +} + +export interface UpdateImageOperationRequest { + updateImageRequest?: UpdateImageRequest; +} + +/** + * ImageApi - interface + * + * @export + * @interface ImageApiInterface + */ +export interface ImageApiInterface { + /** + * + * @param {CreateImageRequest} [createImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + createImageRaw(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createImage(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateImageExportTaskRequest} [createImageExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + createImageExportTaskRaw(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createImageExportTask(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteImageRequest} [deleteImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + deleteImageRaw(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteImage(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadImageExportTasksRequest} [readImageExportTasksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + readImageExportTasksRaw(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readImageExportTasks(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadImagesRequest} [readImagesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + readImagesRaw(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readImages(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateImageRequest} [updateImageRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApiInterface + */ + updateImageRaw(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateImage(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ImageApi extends runtime.BaseAPI implements ImageApiInterface { + + /** + */ + async createImageRaw(requestParameters: CreateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateImageRequestToJSON(requestParameters.createImageRequest); + + const request: runtime.RequestOpts = { + path: `/CreateImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateImageResponseFromJSON(jsonValue)); + } + + /** + */ + async createImage(requestParameters: CreateImageOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createImageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createImageExportTaskRaw(requestParameters: CreateImageExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateImageExportTaskRequestToJSON(requestParameters.createImageExportTaskRequest); + + const request: runtime.RequestOpts = { + path: `/CreateImageExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateImageExportTaskResponseFromJSON(jsonValue)); + } + + /** + */ + async createImageExportTask(requestParameters: CreateImageExportTaskOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createImageExportTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteImageRaw(requestParameters: DeleteImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteImageRequestToJSON(requestParameters.deleteImageRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteImageResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteImage(requestParameters: DeleteImageOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteImageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readImageExportTasksRaw(requestParameters: ReadImageExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadImageExportTasksRequestToJSON(requestParameters.readImageExportTasksRequest); + + const request: runtime.RequestOpts = { + path: `/ReadImageExportTasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadImageExportTasksResponseFromJSON(jsonValue)); + } + + /** + */ + async readImageExportTasks(requestParameters: ReadImageExportTasksOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readImageExportTasksRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readImagesRaw(requestParameters: ReadImagesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadImagesRequestToJSON(requestParameters.readImagesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadImages`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadImagesResponseFromJSON(jsonValue)); + } + + /** + */ + async readImages(requestParameters: ReadImagesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readImagesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateImageRaw(requestParameters: UpdateImageOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateImageRequestToJSON(requestParameters.updateImageRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateImage`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateImageResponseFromJSON(jsonValue)); + } + + /** + */ + async updateImage(requestParameters: UpdateImageOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateImageRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/InternetServiceApi.ts b/src/apis/InternetServiceApi.ts new file mode 100644 index 00000000..59762977 --- /dev/null +++ b/src/apis/InternetServiceApi.ts @@ -0,0 +1,377 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateInternetServiceRequest, + CreateInternetServiceRequestFromJSON, + CreateInternetServiceRequestToJSON, + CreateInternetServiceResponse, + CreateInternetServiceResponseFromJSON, + CreateInternetServiceResponseToJSON, + DeleteInternetServiceRequest, + DeleteInternetServiceRequestFromJSON, + DeleteInternetServiceRequestToJSON, + DeleteInternetServiceResponse, + DeleteInternetServiceResponseFromJSON, + DeleteInternetServiceResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + LinkInternetServiceRequest, + LinkInternetServiceRequestFromJSON, + LinkInternetServiceRequestToJSON, + LinkInternetServiceResponse, + LinkInternetServiceResponseFromJSON, + LinkInternetServiceResponseToJSON, + ReadInternetServicesRequest, + ReadInternetServicesRequestFromJSON, + ReadInternetServicesRequestToJSON, + ReadInternetServicesResponse, + ReadInternetServicesResponseFromJSON, + ReadInternetServicesResponseToJSON, + UnlinkInternetServiceRequest, + UnlinkInternetServiceRequestFromJSON, + UnlinkInternetServiceRequestToJSON, + UnlinkInternetServiceResponse, + UnlinkInternetServiceResponseFromJSON, + UnlinkInternetServiceResponseToJSON, +} from '../models'; + +export interface CreateInternetServiceOperationRequest { + createInternetServiceRequest?: CreateInternetServiceRequest; +} + +export interface DeleteInternetServiceOperationRequest { + deleteInternetServiceRequest?: DeleteInternetServiceRequest; +} + +export interface LinkInternetServiceOperationRequest { + linkInternetServiceRequest?: LinkInternetServiceRequest; +} + +export interface ReadInternetServicesOperationRequest { + readInternetServicesRequest?: ReadInternetServicesRequest; +} + +export interface UnlinkInternetServiceOperationRequest { + unlinkInternetServiceRequest?: UnlinkInternetServiceRequest; +} + +/** + * InternetServiceApi - interface + * + * @export + * @interface InternetServiceApiInterface + */ +export interface InternetServiceApiInterface { + /** + * + * @param {CreateInternetServiceRequest} [createInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + createInternetServiceRaw(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createInternetService(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteInternetServiceRequest} [deleteInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + deleteInternetServiceRaw(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteInternetService(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkInternetServiceRequest} [linkInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + linkInternetServiceRaw(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkInternetService(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadInternetServicesRequest} [readInternetServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + readInternetServicesRaw(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readInternetServices(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkInternetServiceRequest} [unlinkInternetServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InternetServiceApiInterface + */ + unlinkInternetServiceRaw(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkInternetService(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class InternetServiceApi extends runtime.BaseAPI implements InternetServiceApiInterface { + + /** + */ + async createInternetServiceRaw(requestParameters: CreateInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateInternetServiceRequestToJSON(requestParameters.createInternetServiceRequest); + + const request: runtime.RequestOpts = { + path: `/CreateInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateInternetServiceResponseFromJSON(jsonValue)); + } + + /** + */ + async createInternetService(requestParameters: CreateInternetServiceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createInternetServiceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteInternetServiceRaw(requestParameters: DeleteInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteInternetServiceRequestToJSON(requestParameters.deleteInternetServiceRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteInternetServiceResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteInternetService(requestParameters: DeleteInternetServiceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteInternetServiceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkInternetServiceRaw(requestParameters: LinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkInternetServiceRequestToJSON(requestParameters.linkInternetServiceRequest); + + const request: runtime.RequestOpts = { + path: `/LinkInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkInternetServiceResponseFromJSON(jsonValue)); + } + + /** + */ + async linkInternetService(requestParameters: LinkInternetServiceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkInternetServiceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readInternetServicesRaw(requestParameters: ReadInternetServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadInternetServicesRequestToJSON(requestParameters.readInternetServicesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadInternetServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadInternetServicesResponseFromJSON(jsonValue)); + } + + /** + */ + async readInternetServices(requestParameters: ReadInternetServicesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readInternetServicesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkInternetServiceRaw(requestParameters: UnlinkInternetServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkInternetServiceRequestToJSON(requestParameters.unlinkInternetServiceRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkInternetService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkInternetServiceResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkInternetService(requestParameters: UnlinkInternetServiceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkInternetServiceRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/KeypairApi.ts b/src/apis/KeypairApi.ts new file mode 100644 index 00000000..5de4cce5 --- /dev/null +++ b/src/apis/KeypairApi.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateKeypairRequest, + CreateKeypairRequestFromJSON, + CreateKeypairRequestToJSON, + CreateKeypairResponse, + CreateKeypairResponseFromJSON, + CreateKeypairResponseToJSON, + DeleteKeypairRequest, + DeleteKeypairRequestFromJSON, + DeleteKeypairRequestToJSON, + DeleteKeypairResponse, + DeleteKeypairResponseFromJSON, + DeleteKeypairResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadKeypairsRequest, + ReadKeypairsRequestFromJSON, + ReadKeypairsRequestToJSON, + ReadKeypairsResponse, + ReadKeypairsResponseFromJSON, + ReadKeypairsResponseToJSON, +} from '../models'; + +export interface CreateKeypairOperationRequest { + createKeypairRequest?: CreateKeypairRequest; +} + +export interface DeleteKeypairOperationRequest { + deleteKeypairRequest?: DeleteKeypairRequest; +} + +export interface ReadKeypairsOperationRequest { + readKeypairsRequest?: ReadKeypairsRequest; +} + +/** + * KeypairApi - interface + * + * @export + * @interface KeypairApiInterface + */ +export interface KeypairApiInterface { + /** + * + * @param {CreateKeypairRequest} [createKeypairRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + createKeypairRaw(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createKeypair(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteKeypairRequest} [deleteKeypairRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + deleteKeypairRaw(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteKeypair(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadKeypairsRequest} [readKeypairsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeypairApiInterface + */ + readKeypairsRaw(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readKeypairs(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class KeypairApi extends runtime.BaseAPI implements KeypairApiInterface { + + /** + */ + async createKeypairRaw(requestParameters: CreateKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateKeypairRequestToJSON(requestParameters.createKeypairRequest); + + const request: runtime.RequestOpts = { + path: `/CreateKeypair`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateKeypairResponseFromJSON(jsonValue)); + } + + /** + */ + async createKeypair(requestParameters: CreateKeypairOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createKeypairRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteKeypairRaw(requestParameters: DeleteKeypairOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteKeypairRequestToJSON(requestParameters.deleteKeypairRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteKeypair`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteKeypairResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteKeypair(requestParameters: DeleteKeypairOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteKeypairRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readKeypairsRaw(requestParameters: ReadKeypairsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadKeypairsRequestToJSON(requestParameters.readKeypairsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadKeypairs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadKeypairsResponseFromJSON(jsonValue)); + } + + /** + */ + async readKeypairs(requestParameters: ReadKeypairsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readKeypairsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ListenerApi.ts b/src/apis/ListenerApi.ts new file mode 100644 index 00000000..2e1a5ea2 --- /dev/null +++ b/src/apis/ListenerApi.ts @@ -0,0 +1,442 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateListenerRuleRequest, + CreateListenerRuleRequestFromJSON, + CreateListenerRuleRequestToJSON, + CreateListenerRuleResponse, + CreateListenerRuleResponseFromJSON, + CreateListenerRuleResponseToJSON, + CreateLoadBalancerListenersRequest, + CreateLoadBalancerListenersRequestFromJSON, + CreateLoadBalancerListenersRequestToJSON, + CreateLoadBalancerListenersResponse, + CreateLoadBalancerListenersResponseFromJSON, + CreateLoadBalancerListenersResponseToJSON, + DeleteListenerRuleRequest, + DeleteListenerRuleRequestFromJSON, + DeleteListenerRuleRequestToJSON, + DeleteListenerRuleResponse, + DeleteListenerRuleResponseFromJSON, + DeleteListenerRuleResponseToJSON, + DeleteLoadBalancerListenersRequest, + DeleteLoadBalancerListenersRequestFromJSON, + DeleteLoadBalancerListenersRequestToJSON, + DeleteLoadBalancerListenersResponse, + DeleteLoadBalancerListenersResponseFromJSON, + DeleteLoadBalancerListenersResponseToJSON, + ReadListenerRulesRequest, + ReadListenerRulesRequestFromJSON, + ReadListenerRulesRequestToJSON, + ReadListenerRulesResponse, + ReadListenerRulesResponseFromJSON, + ReadListenerRulesResponseToJSON, + UpdateListenerRuleRequest, + UpdateListenerRuleRequestFromJSON, + UpdateListenerRuleRequestToJSON, + UpdateListenerRuleResponse, + UpdateListenerRuleResponseFromJSON, + UpdateListenerRuleResponseToJSON, +} from '../models'; + +export interface CreateListenerRuleOperationRequest { + createListenerRuleRequest?: CreateListenerRuleRequest; +} + +export interface CreateLoadBalancerListenersOperationRequest { + createLoadBalancerListenersRequest?: CreateLoadBalancerListenersRequest; +} + +export interface DeleteListenerRuleOperationRequest { + deleteListenerRuleRequest?: DeleteListenerRuleRequest; +} + +export interface DeleteLoadBalancerListenersOperationRequest { + deleteLoadBalancerListenersRequest?: DeleteLoadBalancerListenersRequest; +} + +export interface ReadListenerRulesOperationRequest { + readListenerRulesRequest?: ReadListenerRulesRequest; +} + +export interface UpdateListenerRuleOperationRequest { + updateListenerRuleRequest?: UpdateListenerRuleRequest; +} + +/** + * ListenerApi - interface + * + * @export + * @interface ListenerApiInterface + */ +export interface ListenerApiInterface { + /** + * + * @param {CreateListenerRuleRequest} [createListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + createListenerRuleRaw(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createListenerRule(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateLoadBalancerListenersRequest} [createLoadBalancerListenersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + createLoadBalancerListenersRaw(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createLoadBalancerListeners(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteListenerRuleRequest} [deleteListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + deleteListenerRuleRaw(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteListenerRule(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteLoadBalancerListenersRequest} [deleteLoadBalancerListenersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + deleteLoadBalancerListenersRaw(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteLoadBalancerListeners(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadListenerRulesRequest} [readListenerRulesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + readListenerRulesRaw(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readListenerRules(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateListenerRuleRequest} [updateListenerRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ListenerApiInterface + */ + updateListenerRuleRaw(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateListenerRule(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ListenerApi extends runtime.BaseAPI implements ListenerApiInterface { + + /** + */ + async createListenerRuleRaw(requestParameters: CreateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateListenerRuleRequestToJSON(requestParameters.createListenerRuleRequest); + + const request: runtime.RequestOpts = { + path: `/CreateListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateListenerRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async createListenerRule(requestParameters: CreateListenerRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createListenerRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createLoadBalancerListenersRaw(requestParameters: CreateLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateLoadBalancerListenersRequestToJSON(requestParameters.createLoadBalancerListenersRequest); + + const request: runtime.RequestOpts = { + path: `/CreateLoadBalancerListeners`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerListenersResponseFromJSON(jsonValue)); + } + + /** + */ + async createLoadBalancerListeners(requestParameters: CreateLoadBalancerListenersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createLoadBalancerListenersRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteListenerRuleRaw(requestParameters: DeleteListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteListenerRuleRequestToJSON(requestParameters.deleteListenerRuleRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteListenerRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteListenerRule(requestParameters: DeleteListenerRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteListenerRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteLoadBalancerListenersRaw(requestParameters: DeleteLoadBalancerListenersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteLoadBalancerListenersRequestToJSON(requestParameters.deleteLoadBalancerListenersRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteLoadBalancerListeners`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerListenersResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteLoadBalancerListeners(requestParameters: DeleteLoadBalancerListenersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteLoadBalancerListenersRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readListenerRulesRaw(requestParameters: ReadListenerRulesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadListenerRulesRequestToJSON(requestParameters.readListenerRulesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadListenerRules`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadListenerRulesResponseFromJSON(jsonValue)); + } + + /** + */ + async readListenerRules(requestParameters: ReadListenerRulesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readListenerRulesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateListenerRuleRaw(requestParameters: UpdateListenerRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateListenerRuleRequestToJSON(requestParameters.updateListenerRuleRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateListenerRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateListenerRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async updateListenerRule(requestParameters: UpdateListenerRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateListenerRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/LoadBalancerApi.ts b/src/apis/LoadBalancerApi.ts new file mode 100644 index 00000000..03c595eb --- /dev/null +++ b/src/apis/LoadBalancerApi.ts @@ -0,0 +1,850 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateLoadBalancerRequest, + CreateLoadBalancerRequestFromJSON, + CreateLoadBalancerRequestToJSON, + CreateLoadBalancerResponse, + CreateLoadBalancerResponseFromJSON, + CreateLoadBalancerResponseToJSON, + CreateLoadBalancerTagsRequest, + CreateLoadBalancerTagsRequestFromJSON, + CreateLoadBalancerTagsRequestToJSON, + CreateLoadBalancerTagsResponse, + CreateLoadBalancerTagsResponseFromJSON, + CreateLoadBalancerTagsResponseToJSON, + DeleteLoadBalancerRequest, + DeleteLoadBalancerRequestFromJSON, + DeleteLoadBalancerRequestToJSON, + DeleteLoadBalancerResponse, + DeleteLoadBalancerResponseFromJSON, + DeleteLoadBalancerResponseToJSON, + DeleteLoadBalancerTagsRequest, + DeleteLoadBalancerTagsRequestFromJSON, + DeleteLoadBalancerTagsRequestToJSON, + DeleteLoadBalancerTagsResponse, + DeleteLoadBalancerTagsResponseFromJSON, + DeleteLoadBalancerTagsResponseToJSON, + DeregisterVmsInLoadBalancerRequest, + DeregisterVmsInLoadBalancerRequestFromJSON, + DeregisterVmsInLoadBalancerRequestToJSON, + DeregisterVmsInLoadBalancerResponse, + DeregisterVmsInLoadBalancerResponseFromJSON, + DeregisterVmsInLoadBalancerResponseToJSON, + LinkLoadBalancerBackendMachinesRequest, + LinkLoadBalancerBackendMachinesRequestFromJSON, + LinkLoadBalancerBackendMachinesRequestToJSON, + LinkLoadBalancerBackendMachinesResponse, + LinkLoadBalancerBackendMachinesResponseFromJSON, + LinkLoadBalancerBackendMachinesResponseToJSON, + ReadLoadBalancerTagsRequest, + ReadLoadBalancerTagsRequestFromJSON, + ReadLoadBalancerTagsRequestToJSON, + ReadLoadBalancerTagsResponse, + ReadLoadBalancerTagsResponseFromJSON, + ReadLoadBalancerTagsResponseToJSON, + ReadLoadBalancersRequest, + ReadLoadBalancersRequestFromJSON, + ReadLoadBalancersRequestToJSON, + ReadLoadBalancersResponse, + ReadLoadBalancersResponseFromJSON, + ReadLoadBalancersResponseToJSON, + ReadVmsHealthRequest, + ReadVmsHealthRequestFromJSON, + ReadVmsHealthRequestToJSON, + ReadVmsHealthResponse, + ReadVmsHealthResponseFromJSON, + ReadVmsHealthResponseToJSON, + RegisterVmsInLoadBalancerRequest, + RegisterVmsInLoadBalancerRequestFromJSON, + RegisterVmsInLoadBalancerRequestToJSON, + RegisterVmsInLoadBalancerResponse, + RegisterVmsInLoadBalancerResponseFromJSON, + RegisterVmsInLoadBalancerResponseToJSON, + UnlinkLoadBalancerBackendMachinesRequest, + UnlinkLoadBalancerBackendMachinesRequestFromJSON, + UnlinkLoadBalancerBackendMachinesRequestToJSON, + UnlinkLoadBalancerBackendMachinesResponse, + UnlinkLoadBalancerBackendMachinesResponseFromJSON, + UnlinkLoadBalancerBackendMachinesResponseToJSON, + UpdateLoadBalancerRequest, + UpdateLoadBalancerRequestFromJSON, + UpdateLoadBalancerRequestToJSON, + UpdateLoadBalancerResponse, + UpdateLoadBalancerResponseFromJSON, + UpdateLoadBalancerResponseToJSON, +} from '../models'; + +export interface CreateLoadBalancerOperationRequest { + createLoadBalancerRequest?: CreateLoadBalancerRequest; +} + +export interface CreateLoadBalancerTagsOperationRequest { + createLoadBalancerTagsRequest?: CreateLoadBalancerTagsRequest; +} + +export interface DeleteLoadBalancerOperationRequest { + deleteLoadBalancerRequest?: DeleteLoadBalancerRequest; +} + +export interface DeleteLoadBalancerTagsOperationRequest { + deleteLoadBalancerTagsRequest?: DeleteLoadBalancerTagsRequest; +} + +export interface DeregisterVmsInLoadBalancerOperationRequest { + deregisterVmsInLoadBalancerRequest?: DeregisterVmsInLoadBalancerRequest; +} + +export interface LinkLoadBalancerBackendMachinesOperationRequest { + linkLoadBalancerBackendMachinesRequest?: LinkLoadBalancerBackendMachinesRequest; +} + +export interface ReadLoadBalancerTagsOperationRequest { + readLoadBalancerTagsRequest?: ReadLoadBalancerTagsRequest; +} + +export interface ReadLoadBalancersOperationRequest { + readLoadBalancersRequest?: ReadLoadBalancersRequest; +} + +export interface ReadVmsHealthOperationRequest { + readVmsHealthRequest?: ReadVmsHealthRequest; +} + +export interface RegisterVmsInLoadBalancerOperationRequest { + registerVmsInLoadBalancerRequest?: RegisterVmsInLoadBalancerRequest; +} + +export interface UnlinkLoadBalancerBackendMachinesOperationRequest { + unlinkLoadBalancerBackendMachinesRequest?: UnlinkLoadBalancerBackendMachinesRequest; +} + +export interface UpdateLoadBalancerOperationRequest { + updateLoadBalancerRequest?: UpdateLoadBalancerRequest; +} + +/** + * LoadBalancerApi - interface + * + * @export + * @interface LoadBalancerApiInterface + */ +export interface LoadBalancerApiInterface { + /** + * + * @param {CreateLoadBalancerRequest} [createLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + createLoadBalancerRaw(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createLoadBalancer(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateLoadBalancerTagsRequest} [createLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + createLoadBalancerTagsRaw(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createLoadBalancerTags(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteLoadBalancerRequest} [deleteLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deleteLoadBalancerRaw(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteLoadBalancer(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteLoadBalancerTagsRequest} [deleteLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deleteLoadBalancerTagsRaw(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteLoadBalancerTags(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeregisterVmsInLoadBalancerRequest} [deregisterVmsInLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + deregisterVmsInLoadBalancerRaw(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deregisterVmsInLoadBalancer(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkLoadBalancerBackendMachinesRequest} [linkLoadBalancerBackendMachinesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + linkLoadBalancerBackendMachinesRaw(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkLoadBalancerBackendMachines(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadLoadBalancerTagsRequest} [readLoadBalancerTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readLoadBalancerTagsRaw(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readLoadBalancerTags(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadLoadBalancersRequest} [readLoadBalancersRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readLoadBalancersRaw(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readLoadBalancers(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVmsHealthRequest} [readVmsHealthRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + readVmsHealthRaw(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVmsHealth(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {RegisterVmsInLoadBalancerRequest} [registerVmsInLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + registerVmsInLoadBalancerRaw(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + registerVmsInLoadBalancer(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkLoadBalancerBackendMachinesRequest} [unlinkLoadBalancerBackendMachinesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + unlinkLoadBalancerBackendMachinesRaw(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkLoadBalancerBackendMachines(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateLoadBalancerRequest} [updateLoadBalancerRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerApiInterface + */ + updateLoadBalancerRaw(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateLoadBalancer(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class LoadBalancerApi extends runtime.BaseAPI implements LoadBalancerApiInterface { + + /** + */ + async createLoadBalancerRaw(requestParameters: CreateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateLoadBalancerRequestToJSON(requestParameters.createLoadBalancerRequest); + + const request: runtime.RequestOpts = { + path: `/CreateLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerResponseFromJSON(jsonValue)); + } + + /** + */ + async createLoadBalancer(requestParameters: CreateLoadBalancerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createLoadBalancerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createLoadBalancerTagsRaw(requestParameters: CreateLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateLoadBalancerTagsRequestToJSON(requestParameters.createLoadBalancerTagsRequest); + + const request: runtime.RequestOpts = { + path: `/CreateLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerTagsResponseFromJSON(jsonValue)); + } + + /** + */ + async createLoadBalancerTags(requestParameters: CreateLoadBalancerTagsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createLoadBalancerTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteLoadBalancerRaw(requestParameters: DeleteLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteLoadBalancerRequestToJSON(requestParameters.deleteLoadBalancerRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteLoadBalancer(requestParameters: DeleteLoadBalancerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteLoadBalancerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteLoadBalancerTagsRaw(requestParameters: DeleteLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteLoadBalancerTagsRequestToJSON(requestParameters.deleteLoadBalancerTagsRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerTagsResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteLoadBalancerTags(requestParameters: DeleteLoadBalancerTagsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteLoadBalancerTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deregisterVmsInLoadBalancerRaw(requestParameters: DeregisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeregisterVmsInLoadBalancerRequestToJSON(requestParameters.deregisterVmsInLoadBalancerRequest); + + const request: runtime.RequestOpts = { + path: `/DeregisterVmsInLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeregisterVmsInLoadBalancerResponseFromJSON(jsonValue)); + } + + /** + */ + async deregisterVmsInLoadBalancer(requestParameters: DeregisterVmsInLoadBalancerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deregisterVmsInLoadBalancerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkLoadBalancerBackendMachinesRaw(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkLoadBalancerBackendMachinesRequestToJSON(requestParameters.linkLoadBalancerBackendMachinesRequest); + + const request: runtime.RequestOpts = { + path: `/LinkLoadBalancerBackendMachines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkLoadBalancerBackendMachinesResponseFromJSON(jsonValue)); + } + + /** + */ + async linkLoadBalancerBackendMachines(requestParameters: LinkLoadBalancerBackendMachinesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readLoadBalancerTagsRaw(requestParameters: ReadLoadBalancerTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadLoadBalancerTagsRequestToJSON(requestParameters.readLoadBalancerTagsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadLoadBalancerTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadLoadBalancerTagsResponseFromJSON(jsonValue)); + } + + /** + */ + async readLoadBalancerTags(requestParameters: ReadLoadBalancerTagsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readLoadBalancerTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readLoadBalancersRaw(requestParameters: ReadLoadBalancersOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadLoadBalancersRequestToJSON(requestParameters.readLoadBalancersRequest); + + const request: runtime.RequestOpts = { + path: `/ReadLoadBalancers`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadLoadBalancersResponseFromJSON(jsonValue)); + } + + /** + */ + async readLoadBalancers(requestParameters: ReadLoadBalancersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readLoadBalancersRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVmsHealthRaw(requestParameters: ReadVmsHealthOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadVmsHealthRequestToJSON(requestParameters.readVmsHealthRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVmsHealth`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmsHealthResponseFromJSON(jsonValue)); + } + + /** + */ + async readVmsHealth(requestParameters: ReadVmsHealthOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVmsHealthRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async registerVmsInLoadBalancerRaw(requestParameters: RegisterVmsInLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = RegisterVmsInLoadBalancerRequestToJSON(requestParameters.registerVmsInLoadBalancerRequest); + + const request: runtime.RequestOpts = { + path: `/RegisterVmsInLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RegisterVmsInLoadBalancerResponseFromJSON(jsonValue)); + } + + /** + */ + async registerVmsInLoadBalancer(requestParameters: RegisterVmsInLoadBalancerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.registerVmsInLoadBalancerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkLoadBalancerBackendMachinesRaw(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkLoadBalancerBackendMachinesRequestToJSON(requestParameters.unlinkLoadBalancerBackendMachinesRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkLoadBalancerBackendMachines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkLoadBalancerBackendMachinesResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkLoadBalancerBackendMachines(requestParameters: UnlinkLoadBalancerBackendMachinesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkLoadBalancerBackendMachinesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateLoadBalancerRaw(requestParameters: UpdateLoadBalancerOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateLoadBalancerRequestToJSON(requestParameters.updateLoadBalancerRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateLoadBalancer`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateLoadBalancerResponseFromJSON(jsonValue)); + } + + /** + */ + async updateLoadBalancer(requestParameters: UpdateLoadBalancerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateLoadBalancerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/LoadBalancerPolicyApi.ts b/src/apis/LoadBalancerPolicyApi.ts new file mode 100644 index 00000000..2c99c743 --- /dev/null +++ b/src/apis/LoadBalancerPolicyApi.ts @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateLoadBalancerPolicyRequest, + CreateLoadBalancerPolicyRequestFromJSON, + CreateLoadBalancerPolicyRequestToJSON, + CreateLoadBalancerPolicyResponse, + CreateLoadBalancerPolicyResponseFromJSON, + CreateLoadBalancerPolicyResponseToJSON, + DeleteLoadBalancerPolicyRequest, + DeleteLoadBalancerPolicyRequestFromJSON, + DeleteLoadBalancerPolicyRequestToJSON, + DeleteLoadBalancerPolicyResponse, + DeleteLoadBalancerPolicyResponseFromJSON, + DeleteLoadBalancerPolicyResponseToJSON, +} from '../models'; + +export interface CreateLoadBalancerPolicyOperationRequest { + createLoadBalancerPolicyRequest?: CreateLoadBalancerPolicyRequest; +} + +export interface DeleteLoadBalancerPolicyOperationRequest { + deleteLoadBalancerPolicyRequest?: DeleteLoadBalancerPolicyRequest; +} + +/** + * LoadBalancerPolicyApi - interface + * + * @export + * @interface LoadBalancerPolicyApiInterface + */ +export interface LoadBalancerPolicyApiInterface { + /** + * + * @param {CreateLoadBalancerPolicyRequest} [createLoadBalancerPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerPolicyApiInterface + */ + createLoadBalancerPolicyRaw(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createLoadBalancerPolicy(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteLoadBalancerPolicyRequest} [deleteLoadBalancerPolicyRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadBalancerPolicyApiInterface + */ + deleteLoadBalancerPolicyRaw(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteLoadBalancerPolicy(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class LoadBalancerPolicyApi extends runtime.BaseAPI implements LoadBalancerPolicyApiInterface { + + /** + */ + async createLoadBalancerPolicyRaw(requestParameters: CreateLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateLoadBalancerPolicyRequestToJSON(requestParameters.createLoadBalancerPolicyRequest); + + const request: runtime.RequestOpts = { + path: `/CreateLoadBalancerPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateLoadBalancerPolicyResponseFromJSON(jsonValue)); + } + + /** + */ + async createLoadBalancerPolicy(requestParameters: CreateLoadBalancerPolicyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createLoadBalancerPolicyRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteLoadBalancerPolicyRaw(requestParameters: DeleteLoadBalancerPolicyOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteLoadBalancerPolicyRequestToJSON(requestParameters.deleteLoadBalancerPolicyRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteLoadBalancerPolicy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLoadBalancerPolicyResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteLoadBalancerPolicy(requestParameters: DeleteLoadBalancerPolicyOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteLoadBalancerPolicyRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/LocationApi.ts b/src/apis/LocationApi.ts new file mode 100644 index 00000000..a8cf599c --- /dev/null +++ b/src/apis/LocationApi.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadLocationsRequest, + ReadLocationsRequestFromJSON, + ReadLocationsRequestToJSON, + ReadLocationsResponse, + ReadLocationsResponseFromJSON, + ReadLocationsResponseToJSON, +} from '../models'; + +export interface ReadLocationsOperationRequest { + readLocationsRequest?: ReadLocationsRequest; +} + +/** + * LocationApi - interface + * + * @export + * @interface LocationApiInterface + */ +export interface LocationApiInterface { + /** + * + * @param {ReadLocationsRequest} [readLocationsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LocationApiInterface + */ + readLocationsRaw(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readLocations(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class LocationApi extends runtime.BaseAPI implements LocationApiInterface { + + /** + */ + async readLocationsRaw(requestParameters: ReadLocationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadLocationsRequestToJSON(requestParameters.readLocationsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadLocations`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadLocationsResponseFromJSON(jsonValue)); + } + + /** + */ + async readLocations(requestParameters: ReadLocationsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readLocationsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/NatServiceApi.ts b/src/apis/NatServiceApi.ts new file mode 100644 index 00000000..245b30bc --- /dev/null +++ b/src/apis/NatServiceApi.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateNatServiceRequest, + CreateNatServiceRequestFromJSON, + CreateNatServiceRequestToJSON, + CreateNatServiceResponse, + CreateNatServiceResponseFromJSON, + CreateNatServiceResponseToJSON, + DeleteNatServiceRequest, + DeleteNatServiceRequestFromJSON, + DeleteNatServiceRequestToJSON, + DeleteNatServiceResponse, + DeleteNatServiceResponseFromJSON, + DeleteNatServiceResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadNatServicesRequest, + ReadNatServicesRequestFromJSON, + ReadNatServicesRequestToJSON, + ReadNatServicesResponse, + ReadNatServicesResponseFromJSON, + ReadNatServicesResponseToJSON, +} from '../models'; + +export interface CreateNatServiceOperationRequest { + createNatServiceRequest?: CreateNatServiceRequest; +} + +export interface DeleteNatServiceOperationRequest { + deleteNatServiceRequest?: DeleteNatServiceRequest; +} + +export interface ReadNatServicesOperationRequest { + readNatServicesRequest?: ReadNatServicesRequest; +} + +/** + * NatServiceApi - interface + * + * @export + * @interface NatServiceApiInterface + */ +export interface NatServiceApiInterface { + /** + * + * @param {CreateNatServiceRequest} [createNatServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + createNatServiceRaw(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createNatService(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteNatServiceRequest} [deleteNatServiceRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + deleteNatServiceRaw(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteNatService(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadNatServicesRequest} [readNatServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NatServiceApiInterface + */ + readNatServicesRaw(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readNatServices(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class NatServiceApi extends runtime.BaseAPI implements NatServiceApiInterface { + + /** + */ + async createNatServiceRaw(requestParameters: CreateNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateNatServiceRequestToJSON(requestParameters.createNatServiceRequest); + + const request: runtime.RequestOpts = { + path: `/CreateNatService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNatServiceResponseFromJSON(jsonValue)); + } + + /** + */ + async createNatService(requestParameters: CreateNatServiceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createNatServiceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteNatServiceRaw(requestParameters: DeleteNatServiceOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteNatServiceRequestToJSON(requestParameters.deleteNatServiceRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteNatService`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNatServiceResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteNatService(requestParameters: DeleteNatServiceOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteNatServiceRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readNatServicesRaw(requestParameters: ReadNatServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadNatServicesRequestToJSON(requestParameters.readNatServicesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadNatServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNatServicesResponseFromJSON(jsonValue)); + } + + /** + */ + async readNatServices(requestParameters: ReadNatServicesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readNatServicesRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/NetAccessPointApi.ts b/src/apis/NetAccessPointApi.ts new file mode 100644 index 00000000..256c9386 --- /dev/null +++ b/src/apis/NetAccessPointApi.ts @@ -0,0 +1,370 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateNetAccessPointRequest, + CreateNetAccessPointRequestFromJSON, + CreateNetAccessPointRequestToJSON, + CreateNetAccessPointResponse, + CreateNetAccessPointResponseFromJSON, + CreateNetAccessPointResponseToJSON, + DeleteNetAccessPointRequest, + DeleteNetAccessPointRequestFromJSON, + DeleteNetAccessPointRequestToJSON, + DeleteNetAccessPointResponse, + DeleteNetAccessPointResponseFromJSON, + DeleteNetAccessPointResponseToJSON, + ReadNetAccessPointServicesRequest, + ReadNetAccessPointServicesRequestFromJSON, + ReadNetAccessPointServicesRequestToJSON, + ReadNetAccessPointServicesResponse, + ReadNetAccessPointServicesResponseFromJSON, + ReadNetAccessPointServicesResponseToJSON, + ReadNetAccessPointsRequest, + ReadNetAccessPointsRequestFromJSON, + ReadNetAccessPointsRequestToJSON, + ReadNetAccessPointsResponse, + ReadNetAccessPointsResponseFromJSON, + ReadNetAccessPointsResponseToJSON, + UpdateNetAccessPointRequest, + UpdateNetAccessPointRequestFromJSON, + UpdateNetAccessPointRequestToJSON, + UpdateNetAccessPointResponse, + UpdateNetAccessPointResponseFromJSON, + UpdateNetAccessPointResponseToJSON, +} from '../models'; + +export interface CreateNetAccessPointOperationRequest { + createNetAccessPointRequest?: CreateNetAccessPointRequest; +} + +export interface DeleteNetAccessPointOperationRequest { + deleteNetAccessPointRequest?: DeleteNetAccessPointRequest; +} + +export interface ReadNetAccessPointServicesOperationRequest { + readNetAccessPointServicesRequest?: ReadNetAccessPointServicesRequest; +} + +export interface ReadNetAccessPointsOperationRequest { + readNetAccessPointsRequest?: ReadNetAccessPointsRequest; +} + +export interface UpdateNetAccessPointOperationRequest { + updateNetAccessPointRequest?: UpdateNetAccessPointRequest; +} + +/** + * NetAccessPointApi - interface + * + * @export + * @interface NetAccessPointApiInterface + */ +export interface NetAccessPointApiInterface { + /** + * + * @param {CreateNetAccessPointRequest} [createNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + createNetAccessPointRaw(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createNetAccessPoint(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteNetAccessPointRequest} [deleteNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + deleteNetAccessPointRaw(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteNetAccessPoint(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadNetAccessPointServicesRequest} [readNetAccessPointServicesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + readNetAccessPointServicesRaw(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readNetAccessPointServices(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadNetAccessPointsRequest} [readNetAccessPointsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + readNetAccessPointsRaw(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readNetAccessPoints(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateNetAccessPointRequest} [updateNetAccessPointRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetAccessPointApiInterface + */ + updateNetAccessPointRaw(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateNetAccessPoint(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class NetAccessPointApi extends runtime.BaseAPI implements NetAccessPointApiInterface { + + /** + */ + async createNetAccessPointRaw(requestParameters: CreateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateNetAccessPointRequestToJSON(requestParameters.createNetAccessPointRequest); + + const request: runtime.RequestOpts = { + path: `/CreateNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNetAccessPointResponseFromJSON(jsonValue)); + } + + /** + */ + async createNetAccessPoint(requestParameters: CreateNetAccessPointOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createNetAccessPointRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteNetAccessPointRaw(requestParameters: DeleteNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteNetAccessPointRequestToJSON(requestParameters.deleteNetAccessPointRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNetAccessPointResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteNetAccessPoint(requestParameters: DeleteNetAccessPointOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteNetAccessPointRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readNetAccessPointServicesRaw(requestParameters: ReadNetAccessPointServicesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadNetAccessPointServicesRequestToJSON(requestParameters.readNetAccessPointServicesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadNetAccessPointServices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetAccessPointServicesResponseFromJSON(jsonValue)); + } + + /** + */ + async readNetAccessPointServices(requestParameters: ReadNetAccessPointServicesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readNetAccessPointServicesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readNetAccessPointsRaw(requestParameters: ReadNetAccessPointsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadNetAccessPointsRequestToJSON(requestParameters.readNetAccessPointsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadNetAccessPoints`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetAccessPointsResponseFromJSON(jsonValue)); + } + + /** + */ + async readNetAccessPoints(requestParameters: ReadNetAccessPointsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readNetAccessPointsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateNetAccessPointRaw(requestParameters: UpdateNetAccessPointOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateNetAccessPointRequestToJSON(requestParameters.updateNetAccessPointRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateNetAccessPoint`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateNetAccessPointResponseFromJSON(jsonValue)); + } + + /** + */ + async updateNetAccessPoint(requestParameters: UpdateNetAccessPointOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateNetAccessPointRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/NetApi.ts b/src/apis/NetApi.ts new file mode 100644 index 00000000..4324e760 --- /dev/null +++ b/src/apis/NetApi.ts @@ -0,0 +1,309 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateNetRequest, + CreateNetRequestFromJSON, + CreateNetRequestToJSON, + CreateNetResponse, + CreateNetResponseFromJSON, + CreateNetResponseToJSON, + DeleteNetRequest, + DeleteNetRequestFromJSON, + DeleteNetRequestToJSON, + DeleteNetResponse, + DeleteNetResponseFromJSON, + DeleteNetResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadNetsRequest, + ReadNetsRequestFromJSON, + ReadNetsRequestToJSON, + ReadNetsResponse, + ReadNetsResponseFromJSON, + ReadNetsResponseToJSON, + UpdateNetRequest, + UpdateNetRequestFromJSON, + UpdateNetRequestToJSON, + UpdateNetResponse, + UpdateNetResponseFromJSON, + UpdateNetResponseToJSON, +} from '../models'; + +export interface CreateNetOperationRequest { + createNetRequest?: CreateNetRequest; +} + +export interface DeleteNetOperationRequest { + deleteNetRequest?: DeleteNetRequest; +} + +export interface ReadNetsOperationRequest { + readNetsRequest?: ReadNetsRequest; +} + +export interface UpdateNetOperationRequest { + updateNetRequest?: UpdateNetRequest; +} + +/** + * NetApi - interface + * + * @export + * @interface NetApiInterface + */ +export interface NetApiInterface { + /** + * + * @param {CreateNetRequest} [createNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + createNetRaw(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createNet(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteNetRequest} [deleteNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + deleteNetRaw(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteNet(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadNetsRequest} [readNetsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + readNetsRaw(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readNets(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateNetRequest} [updateNetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetApiInterface + */ + updateNetRaw(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateNet(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class NetApi extends runtime.BaseAPI implements NetApiInterface { + + /** + */ + async createNetRaw(requestParameters: CreateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateNetRequestToJSON(requestParameters.createNetRequest); + + const request: runtime.RequestOpts = { + path: `/CreateNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNetResponseFromJSON(jsonValue)); + } + + /** + */ + async createNet(requestParameters: CreateNetOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createNetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteNetRaw(requestParameters: DeleteNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteNetRequestToJSON(requestParameters.deleteNetRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNetResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteNet(requestParameters: DeleteNetOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteNetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readNetsRaw(requestParameters: ReadNetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadNetsRequestToJSON(requestParameters.readNetsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadNets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetsResponseFromJSON(jsonValue)); + } + + /** + */ + async readNets(requestParameters: ReadNetsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readNetsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateNetRaw(requestParameters: UpdateNetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateNetRequestToJSON(requestParameters.updateNetRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateNet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateNetResponseFromJSON(jsonValue)); + } + + /** + */ + async updateNet(requestParameters: UpdateNetOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateNetRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/NetPeeringApi.ts b/src/apis/NetPeeringApi.ts new file mode 100644 index 00000000..7b2111aa --- /dev/null +++ b/src/apis/NetPeeringApi.ts @@ -0,0 +1,377 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + AcceptNetPeeringRequest, + AcceptNetPeeringRequestFromJSON, + AcceptNetPeeringRequestToJSON, + AcceptNetPeeringResponse, + AcceptNetPeeringResponseFromJSON, + AcceptNetPeeringResponseToJSON, + CreateNetPeeringRequest, + CreateNetPeeringRequestFromJSON, + CreateNetPeeringRequestToJSON, + CreateNetPeeringResponse, + CreateNetPeeringResponseFromJSON, + CreateNetPeeringResponseToJSON, + DeleteNetPeeringRequest, + DeleteNetPeeringRequestFromJSON, + DeleteNetPeeringRequestToJSON, + DeleteNetPeeringResponse, + DeleteNetPeeringResponseFromJSON, + DeleteNetPeeringResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadNetPeeringsRequest, + ReadNetPeeringsRequestFromJSON, + ReadNetPeeringsRequestToJSON, + ReadNetPeeringsResponse, + ReadNetPeeringsResponseFromJSON, + ReadNetPeeringsResponseToJSON, + RejectNetPeeringRequest, + RejectNetPeeringRequestFromJSON, + RejectNetPeeringRequestToJSON, + RejectNetPeeringResponse, + RejectNetPeeringResponseFromJSON, + RejectNetPeeringResponseToJSON, +} from '../models'; + +export interface AcceptNetPeeringOperationRequest { + acceptNetPeeringRequest?: AcceptNetPeeringRequest; +} + +export interface CreateNetPeeringOperationRequest { + createNetPeeringRequest?: CreateNetPeeringRequest; +} + +export interface DeleteNetPeeringOperationRequest { + deleteNetPeeringRequest?: DeleteNetPeeringRequest; +} + +export interface ReadNetPeeringsOperationRequest { + readNetPeeringsRequest?: ReadNetPeeringsRequest; +} + +export interface RejectNetPeeringOperationRequest { + rejectNetPeeringRequest?: RejectNetPeeringRequest; +} + +/** + * NetPeeringApi - interface + * + * @export + * @interface NetPeeringApiInterface + */ +export interface NetPeeringApiInterface { + /** + * + * @param {AcceptNetPeeringRequest} [acceptNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + acceptNetPeeringRaw(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + acceptNetPeering(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateNetPeeringRequest} [createNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + createNetPeeringRaw(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createNetPeering(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteNetPeeringRequest} [deleteNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + deleteNetPeeringRaw(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteNetPeering(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadNetPeeringsRequest} [readNetPeeringsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + readNetPeeringsRaw(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readNetPeerings(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {RejectNetPeeringRequest} [rejectNetPeeringRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NetPeeringApiInterface + */ + rejectNetPeeringRaw(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + rejectNetPeering(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class NetPeeringApi extends runtime.BaseAPI implements NetPeeringApiInterface { + + /** + */ + async acceptNetPeeringRaw(requestParameters: AcceptNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = AcceptNetPeeringRequestToJSON(requestParameters.acceptNetPeeringRequest); + + const request: runtime.RequestOpts = { + path: `/AcceptNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AcceptNetPeeringResponseFromJSON(jsonValue)); + } + + /** + */ + async acceptNetPeering(requestParameters: AcceptNetPeeringOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.acceptNetPeeringRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createNetPeeringRaw(requestParameters: CreateNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateNetPeeringRequestToJSON(requestParameters.createNetPeeringRequest); + + const request: runtime.RequestOpts = { + path: `/CreateNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNetPeeringResponseFromJSON(jsonValue)); + } + + /** + */ + async createNetPeering(requestParameters: CreateNetPeeringOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createNetPeeringRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteNetPeeringRaw(requestParameters: DeleteNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteNetPeeringRequestToJSON(requestParameters.deleteNetPeeringRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNetPeeringResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteNetPeering(requestParameters: DeleteNetPeeringOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteNetPeeringRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readNetPeeringsRaw(requestParameters: ReadNetPeeringsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadNetPeeringsRequestToJSON(requestParameters.readNetPeeringsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadNetPeerings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNetPeeringsResponseFromJSON(jsonValue)); + } + + /** + */ + async readNetPeerings(requestParameters: ReadNetPeeringsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readNetPeeringsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async rejectNetPeeringRaw(requestParameters: RejectNetPeeringOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = RejectNetPeeringRequestToJSON(requestParameters.rejectNetPeeringRequest); + + const request: runtime.RequestOpts = { + path: `/RejectNetPeering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RejectNetPeeringResponseFromJSON(jsonValue)); + } + + /** + */ + async rejectNetPeering(requestParameters: RejectNetPeeringOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.rejectNetPeeringRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/NicApi.ts b/src/apis/NicApi.ts new file mode 100644 index 00000000..ee53183a --- /dev/null +++ b/src/apis/NicApi.ts @@ -0,0 +1,581 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateNicRequest, + CreateNicRequestFromJSON, + CreateNicRequestToJSON, + CreateNicResponse, + CreateNicResponseFromJSON, + CreateNicResponseToJSON, + DeleteNicRequest, + DeleteNicRequestFromJSON, + DeleteNicRequestToJSON, + DeleteNicResponse, + DeleteNicResponseFromJSON, + DeleteNicResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + LinkNicRequest, + LinkNicRequestFromJSON, + LinkNicRequestToJSON, + LinkNicResponse, + LinkNicResponseFromJSON, + LinkNicResponseToJSON, + LinkPrivateIpsRequest, + LinkPrivateIpsRequestFromJSON, + LinkPrivateIpsRequestToJSON, + LinkPrivateIpsResponse, + LinkPrivateIpsResponseFromJSON, + LinkPrivateIpsResponseToJSON, + ReadNicsRequest, + ReadNicsRequestFromJSON, + ReadNicsRequestToJSON, + ReadNicsResponse, + ReadNicsResponseFromJSON, + ReadNicsResponseToJSON, + UnlinkNicRequest, + UnlinkNicRequestFromJSON, + UnlinkNicRequestToJSON, + UnlinkNicResponse, + UnlinkNicResponseFromJSON, + UnlinkNicResponseToJSON, + UnlinkPrivateIpsRequest, + UnlinkPrivateIpsRequestFromJSON, + UnlinkPrivateIpsRequestToJSON, + UnlinkPrivateIpsResponse, + UnlinkPrivateIpsResponseFromJSON, + UnlinkPrivateIpsResponseToJSON, + UpdateNicRequest, + UpdateNicRequestFromJSON, + UpdateNicRequestToJSON, + UpdateNicResponse, + UpdateNicResponseFromJSON, + UpdateNicResponseToJSON, +} from '../models'; + +export interface CreateNicOperationRequest { + createNicRequest?: CreateNicRequest; +} + +export interface DeleteNicOperationRequest { + deleteNicRequest?: DeleteNicRequest; +} + +export interface LinkNicOperationRequest { + linkNicRequest?: LinkNicRequest; +} + +export interface LinkPrivateIpsOperationRequest { + linkPrivateIpsRequest?: LinkPrivateIpsRequest; +} + +export interface ReadNicsOperationRequest { + readNicsRequest?: ReadNicsRequest; +} + +export interface UnlinkNicOperationRequest { + unlinkNicRequest?: UnlinkNicRequest; +} + +export interface UnlinkPrivateIpsOperationRequest { + unlinkPrivateIpsRequest?: UnlinkPrivateIpsRequest; +} + +export interface UpdateNicOperationRequest { + updateNicRequest?: UpdateNicRequest; +} + +/** + * NicApi - interface + * + * @export + * @interface NicApiInterface + */ +export interface NicApiInterface { + /** + * + * @param {CreateNicRequest} [createNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + createNicRaw(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createNic(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteNicRequest} [deleteNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + deleteNicRaw(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteNic(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkNicRequest} [linkNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + linkNicRaw(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkNic(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkPrivateIpsRequest} [linkPrivateIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + linkPrivateIpsRaw(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkPrivateIps(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadNicsRequest} [readNicsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + readNicsRaw(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readNics(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkNicRequest} [unlinkNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + unlinkNicRaw(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkNic(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkPrivateIpsRequest} [unlinkPrivateIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + unlinkPrivateIpsRaw(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkPrivateIps(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateNicRequest} [updateNicRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NicApiInterface + */ + updateNicRaw(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateNic(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class NicApi extends runtime.BaseAPI implements NicApiInterface { + + /** + */ + async createNicRaw(requestParameters: CreateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateNicRequestToJSON(requestParameters.createNicRequest); + + const request: runtime.RequestOpts = { + path: `/CreateNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateNicResponseFromJSON(jsonValue)); + } + + /** + */ + async createNic(requestParameters: CreateNicOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createNicRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteNicRaw(requestParameters: DeleteNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteNicRequestToJSON(requestParameters.deleteNicRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteNicResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteNic(requestParameters: DeleteNicOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteNicRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkNicRaw(requestParameters: LinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkNicRequestToJSON(requestParameters.linkNicRequest); + + const request: runtime.RequestOpts = { + path: `/LinkNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkNicResponseFromJSON(jsonValue)); + } + + /** + */ + async linkNic(requestParameters: LinkNicOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkNicRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkPrivateIpsRaw(requestParameters: LinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkPrivateIpsRequestToJSON(requestParameters.linkPrivateIpsRequest); + + const request: runtime.RequestOpts = { + path: `/LinkPrivateIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkPrivateIpsResponseFromJSON(jsonValue)); + } + + /** + */ + async linkPrivateIps(requestParameters: LinkPrivateIpsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkPrivateIpsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readNicsRaw(requestParameters: ReadNicsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadNicsRequestToJSON(requestParameters.readNicsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadNics`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadNicsResponseFromJSON(jsonValue)); + } + + /** + */ + async readNics(requestParameters: ReadNicsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readNicsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkNicRaw(requestParameters: UnlinkNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkNicRequestToJSON(requestParameters.unlinkNicRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkNicResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkNic(requestParameters: UnlinkNicOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkNicRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkPrivateIpsRaw(requestParameters: UnlinkPrivateIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkPrivateIpsRequestToJSON(requestParameters.unlinkPrivateIpsRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkPrivateIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkPrivateIpsResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkPrivateIps(requestParameters: UnlinkPrivateIpsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkPrivateIpsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateNicRaw(requestParameters: UpdateNicOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateNicRequestToJSON(requestParameters.updateNicRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateNic`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateNicResponseFromJSON(jsonValue)); + } + + /** + */ + async updateNic(requestParameters: UpdateNicOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateNicRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ProductTypeApi.ts b/src/apis/ProductTypeApi.ts new file mode 100644 index 00000000..107f2196 --- /dev/null +++ b/src/apis/ProductTypeApi.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadProductTypesRequest, + ReadProductTypesRequestFromJSON, + ReadProductTypesRequestToJSON, + ReadProductTypesResponse, + ReadProductTypesResponseFromJSON, + ReadProductTypesResponseToJSON, +} from '../models'; + +export interface ReadProductTypesOperationRequest { + readProductTypesRequest?: ReadProductTypesRequest; +} + +/** + * ProductTypeApi - interface + * + * @export + * @interface ProductTypeApiInterface + */ +export interface ProductTypeApiInterface { + /** + * + * @param {ReadProductTypesRequest} [readProductTypesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProductTypeApiInterface + */ + readProductTypesRaw(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readProductTypes(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ProductTypeApi extends runtime.BaseAPI implements ProductTypeApiInterface { + + /** + */ + async readProductTypesRaw(requestParameters: ReadProductTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadProductTypesRequestToJSON(requestParameters.readProductTypesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadProductTypes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadProductTypesResponseFromJSON(jsonValue)); + } + + /** + */ + async readProductTypes(requestParameters: ReadProductTypesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readProductTypesRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/PublicCatalogApi.ts b/src/apis/PublicCatalogApi.ts new file mode 100644 index 00000000..2cab8b48 --- /dev/null +++ b/src/apis/PublicCatalogApi.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadPublicCatalogRequest, + ReadPublicCatalogRequestFromJSON, + ReadPublicCatalogRequestToJSON, + ReadPublicCatalogResponse, + ReadPublicCatalogResponseFromJSON, + ReadPublicCatalogResponseToJSON, +} from '../models'; + +export interface ReadPublicCatalogOperationRequest { + readPublicCatalogRequest?: ReadPublicCatalogRequest; +} + +/** + * PublicCatalogApi - interface + * + * @export + * @interface PublicCatalogApiInterface + */ +export interface PublicCatalogApiInterface { + /** + * + * @param {ReadPublicCatalogRequest} [readPublicCatalogRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicCatalogApiInterface + */ + readPublicCatalogRaw(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readPublicCatalog(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class PublicCatalogApi extends runtime.BaseAPI implements PublicCatalogApiInterface { + + /** + */ + async readPublicCatalogRaw(requestParameters: ReadPublicCatalogOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadPublicCatalogRequestToJSON(requestParameters.readPublicCatalogRequest); + + const request: runtime.RequestOpts = { + path: `/ReadPublicCatalog`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadPublicCatalogResponseFromJSON(jsonValue)); + } + + /** + */ + async readPublicCatalog(requestParameters: ReadPublicCatalogOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readPublicCatalogRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/PublicIpApi.ts b/src/apis/PublicIpApi.ts new file mode 100644 index 00000000..16d19a0e --- /dev/null +++ b/src/apis/PublicIpApi.ts @@ -0,0 +1,441 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreatePublicIpRequest, + CreatePublicIpRequestFromJSON, + CreatePublicIpRequestToJSON, + CreatePublicIpResponse, + CreatePublicIpResponseFromJSON, + CreatePublicIpResponseToJSON, + DeletePublicIpRequest, + DeletePublicIpRequestFromJSON, + DeletePublicIpRequestToJSON, + DeletePublicIpResponse, + DeletePublicIpResponseFromJSON, + DeletePublicIpResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + LinkPublicIpRequest, + LinkPublicIpRequestFromJSON, + LinkPublicIpRequestToJSON, + LinkPublicIpResponse, + LinkPublicIpResponseFromJSON, + LinkPublicIpResponseToJSON, + ReadPublicIpRangesRequest, + ReadPublicIpRangesRequestFromJSON, + ReadPublicIpRangesRequestToJSON, + ReadPublicIpRangesResponse, + ReadPublicIpRangesResponseFromJSON, + ReadPublicIpRangesResponseToJSON, + ReadPublicIpsRequest, + ReadPublicIpsRequestFromJSON, + ReadPublicIpsRequestToJSON, + ReadPublicIpsResponse, + ReadPublicIpsResponseFromJSON, + ReadPublicIpsResponseToJSON, + UnlinkPublicIpRequest, + UnlinkPublicIpRequestFromJSON, + UnlinkPublicIpRequestToJSON, + UnlinkPublicIpResponse, + UnlinkPublicIpResponseFromJSON, + UnlinkPublicIpResponseToJSON, +} from '../models'; + +export interface CreatePublicIpOperationRequest { + createPublicIpRequest?: CreatePublicIpRequest; +} + +export interface DeletePublicIpOperationRequest { + deletePublicIpRequest?: DeletePublicIpRequest; +} + +export interface LinkPublicIpOperationRequest { + linkPublicIpRequest?: LinkPublicIpRequest; +} + +export interface ReadPublicIpRangesOperationRequest { + readPublicIpRangesRequest?: ReadPublicIpRangesRequest; +} + +export interface ReadPublicIpsOperationRequest { + readPublicIpsRequest?: ReadPublicIpsRequest; +} + +export interface UnlinkPublicIpOperationRequest { + unlinkPublicIpRequest?: UnlinkPublicIpRequest; +} + +/** + * PublicIpApi - interface + * + * @export + * @interface PublicIpApiInterface + */ +export interface PublicIpApiInterface { + /** + * + * @param {CreatePublicIpRequest} [createPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + createPublicIpRaw(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createPublicIp(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeletePublicIpRequest} [deletePublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + deletePublicIpRaw(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deletePublicIp(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkPublicIpRequest} [linkPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + linkPublicIpRaw(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkPublicIp(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadPublicIpRangesRequest} [readPublicIpRangesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + readPublicIpRangesRaw(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readPublicIpRanges(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadPublicIpsRequest} [readPublicIpsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + readPublicIpsRaw(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readPublicIps(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkPublicIpRequest} [unlinkPublicIpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PublicIpApiInterface + */ + unlinkPublicIpRaw(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkPublicIp(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class PublicIpApi extends runtime.BaseAPI implements PublicIpApiInterface { + + /** + */ + async createPublicIpRaw(requestParameters: CreatePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreatePublicIpRequestToJSON(requestParameters.createPublicIpRequest); + + const request: runtime.RequestOpts = { + path: `/CreatePublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreatePublicIpResponseFromJSON(jsonValue)); + } + + /** + */ + async createPublicIp(requestParameters: CreatePublicIpOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createPublicIpRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deletePublicIpRaw(requestParameters: DeletePublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeletePublicIpRequestToJSON(requestParameters.deletePublicIpRequest); + + const request: runtime.RequestOpts = { + path: `/DeletePublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeletePublicIpResponseFromJSON(jsonValue)); + } + + /** + */ + async deletePublicIp(requestParameters: DeletePublicIpOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deletePublicIpRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkPublicIpRaw(requestParameters: LinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkPublicIpRequestToJSON(requestParameters.linkPublicIpRequest); + + const request: runtime.RequestOpts = { + path: `/LinkPublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkPublicIpResponseFromJSON(jsonValue)); + } + + /** + */ + async linkPublicIp(requestParameters: LinkPublicIpOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkPublicIpRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readPublicIpRangesRaw(requestParameters: ReadPublicIpRangesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadPublicIpRangesRequestToJSON(requestParameters.readPublicIpRangesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadPublicIpRanges`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadPublicIpRangesResponseFromJSON(jsonValue)); + } + + /** + */ + async readPublicIpRanges(requestParameters: ReadPublicIpRangesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readPublicIpRangesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readPublicIpsRaw(requestParameters: ReadPublicIpsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadPublicIpsRequestToJSON(requestParameters.readPublicIpsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadPublicIps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadPublicIpsResponseFromJSON(jsonValue)); + } + + /** + */ + async readPublicIps(requestParameters: ReadPublicIpsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readPublicIpsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkPublicIpRaw(requestParameters: UnlinkPublicIpOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkPublicIpRequestToJSON(requestParameters.unlinkPublicIpRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkPublicIp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkPublicIpResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkPublicIp(requestParameters: UnlinkPublicIpOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkPublicIpRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/QuotaApi.ts b/src/apis/QuotaApi.ts new file mode 100644 index 00000000..5b0f2c05 --- /dev/null +++ b/src/apis/QuotaApi.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadQuotasRequest, + ReadQuotasRequestFromJSON, + ReadQuotasRequestToJSON, + ReadQuotasResponse, + ReadQuotasResponseFromJSON, + ReadQuotasResponseToJSON, +} from '../models'; + +export interface ReadQuotasOperationRequest { + readQuotasRequest?: ReadQuotasRequest; +} + +/** + * QuotaApi - interface + * + * @export + * @interface QuotaApiInterface + */ +export interface QuotaApiInterface { + /** + * + * @param {ReadQuotasRequest} [readQuotasRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QuotaApiInterface + */ + readQuotasRaw(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readQuotas(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class QuotaApi extends runtime.BaseAPI implements QuotaApiInterface { + + /** + */ + async readQuotasRaw(requestParameters: ReadQuotasOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadQuotasRequestToJSON(requestParameters.readQuotasRequest); + + const request: runtime.RequestOpts = { + path: `/ReadQuotas`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadQuotasResponseFromJSON(jsonValue)); + } + + /** + */ + async readQuotas(requestParameters: ReadQuotasOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readQuotasRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/RegionApi.ts b/src/apis/RegionApi.ts new file mode 100644 index 00000000..dab98bc2 --- /dev/null +++ b/src/apis/RegionApi.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadRegionsRequest, + ReadRegionsRequestFromJSON, + ReadRegionsRequestToJSON, + ReadRegionsResponse, + ReadRegionsResponseFromJSON, + ReadRegionsResponseToJSON, +} from '../models'; + +export interface ReadRegionsOperationRequest { + readRegionsRequest?: ReadRegionsRequest; +} + +/** + * RegionApi - interface + * + * @export + * @interface RegionApiInterface + */ +export interface RegionApiInterface { + /** + * + * @param {ReadRegionsRequest} [readRegionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegionApiInterface + */ + readRegionsRaw(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readRegions(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class RegionApi extends runtime.BaseAPI implements RegionApiInterface { + + /** + */ + async readRegionsRaw(requestParameters: ReadRegionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadRegionsRequestToJSON(requestParameters.readRegionsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadRegions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadRegionsResponseFromJSON(jsonValue)); + } + + /** + */ + async readRegions(requestParameters: ReadRegionsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readRegionsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/RouteApi.ts b/src/apis/RouteApi.ts new file mode 100644 index 00000000..33f0092b --- /dev/null +++ b/src/apis/RouteApi.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateRouteRequest, + CreateRouteRequestFromJSON, + CreateRouteRequestToJSON, + CreateRouteResponse, + CreateRouteResponseFromJSON, + CreateRouteResponseToJSON, + DeleteRouteRequest, + DeleteRouteRequestFromJSON, + DeleteRouteRequestToJSON, + DeleteRouteResponse, + DeleteRouteResponseFromJSON, + DeleteRouteResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + UpdateRouteRequest, + UpdateRouteRequestFromJSON, + UpdateRouteRequestToJSON, + UpdateRouteResponse, + UpdateRouteResponseFromJSON, + UpdateRouteResponseToJSON, +} from '../models'; + +export interface CreateRouteOperationRequest { + createRouteRequest?: CreateRouteRequest; +} + +export interface DeleteRouteOperationRequest { + deleteRouteRequest?: DeleteRouteRequest; +} + +export interface UpdateRouteOperationRequest { + updateRouteRequest?: UpdateRouteRequest; +} + +/** + * RouteApi - interface + * + * @export + * @interface RouteApiInterface + */ +export interface RouteApiInterface { + /** + * + * @param {CreateRouteRequest} [createRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + createRouteRaw(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createRoute(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteRouteRequest} [deleteRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + deleteRouteRaw(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteRoute(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateRouteRequest} [updateRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteApiInterface + */ + updateRouteRaw(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateRoute(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class RouteApi extends runtime.BaseAPI implements RouteApiInterface { + + /** + */ + async createRouteRaw(requestParameters: CreateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateRouteRequestToJSON(requestParameters.createRouteRequest); + + const request: runtime.RequestOpts = { + path: `/CreateRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateRouteResponseFromJSON(jsonValue)); + } + + /** + */ + async createRoute(requestParameters: CreateRouteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createRouteRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteRouteRaw(requestParameters: DeleteRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteRouteRequestToJSON(requestParameters.deleteRouteRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteRouteResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteRoute(requestParameters: DeleteRouteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteRouteRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateRouteRaw(requestParameters: UpdateRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateRouteRequestToJSON(requestParameters.updateRouteRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateRouteResponseFromJSON(jsonValue)); + } + + /** + */ + async updateRoute(requestParameters: UpdateRouteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateRouteRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/RouteTableApi.ts b/src/apis/RouteTableApi.ts new file mode 100644 index 00000000..7f9c09e5 --- /dev/null +++ b/src/apis/RouteTableApi.ts @@ -0,0 +1,377 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateRouteTableRequest, + CreateRouteTableRequestFromJSON, + CreateRouteTableRequestToJSON, + CreateRouteTableResponse, + CreateRouteTableResponseFromJSON, + CreateRouteTableResponseToJSON, + DeleteRouteTableRequest, + DeleteRouteTableRequestFromJSON, + DeleteRouteTableRequestToJSON, + DeleteRouteTableResponse, + DeleteRouteTableResponseFromJSON, + DeleteRouteTableResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + LinkRouteTableRequest, + LinkRouteTableRequestFromJSON, + LinkRouteTableRequestToJSON, + LinkRouteTableResponse, + LinkRouteTableResponseFromJSON, + LinkRouteTableResponseToJSON, + ReadRouteTablesRequest, + ReadRouteTablesRequestFromJSON, + ReadRouteTablesRequestToJSON, + ReadRouteTablesResponse, + ReadRouteTablesResponseFromJSON, + ReadRouteTablesResponseToJSON, + UnlinkRouteTableRequest, + UnlinkRouteTableRequestFromJSON, + UnlinkRouteTableRequestToJSON, + UnlinkRouteTableResponse, + UnlinkRouteTableResponseFromJSON, + UnlinkRouteTableResponseToJSON, +} from '../models'; + +export interface CreateRouteTableOperationRequest { + createRouteTableRequest?: CreateRouteTableRequest; +} + +export interface DeleteRouteTableOperationRequest { + deleteRouteTableRequest?: DeleteRouteTableRequest; +} + +export interface LinkRouteTableOperationRequest { + linkRouteTableRequest?: LinkRouteTableRequest; +} + +export interface ReadRouteTablesOperationRequest { + readRouteTablesRequest?: ReadRouteTablesRequest; +} + +export interface UnlinkRouteTableOperationRequest { + unlinkRouteTableRequest?: UnlinkRouteTableRequest; +} + +/** + * RouteTableApi - interface + * + * @export + * @interface RouteTableApiInterface + */ +export interface RouteTableApiInterface { + /** + * + * @param {CreateRouteTableRequest} [createRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + createRouteTableRaw(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createRouteTable(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteRouteTableRequest} [deleteRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + deleteRouteTableRaw(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteRouteTable(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkRouteTableRequest} [linkRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + linkRouteTableRaw(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkRouteTable(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadRouteTablesRequest} [readRouteTablesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + readRouteTablesRaw(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readRouteTables(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkRouteTableRequest} [unlinkRouteTableRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RouteTableApiInterface + */ + unlinkRouteTableRaw(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkRouteTable(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class RouteTableApi extends runtime.BaseAPI implements RouteTableApiInterface { + + /** + */ + async createRouteTableRaw(requestParameters: CreateRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateRouteTableRequestToJSON(requestParameters.createRouteTableRequest); + + const request: runtime.RequestOpts = { + path: `/CreateRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateRouteTableResponseFromJSON(jsonValue)); + } + + /** + */ + async createRouteTable(requestParameters: CreateRouteTableOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createRouteTableRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteRouteTableRaw(requestParameters: DeleteRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteRouteTableRequestToJSON(requestParameters.deleteRouteTableRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteRouteTableResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteRouteTable(requestParameters: DeleteRouteTableOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteRouteTableRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkRouteTableRaw(requestParameters: LinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkRouteTableRequestToJSON(requestParameters.linkRouteTableRequest); + + const request: runtime.RequestOpts = { + path: `/LinkRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkRouteTableResponseFromJSON(jsonValue)); + } + + /** + */ + async linkRouteTable(requestParameters: LinkRouteTableOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkRouteTableRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readRouteTablesRaw(requestParameters: ReadRouteTablesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadRouteTablesRequestToJSON(requestParameters.readRouteTablesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadRouteTables`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadRouteTablesResponseFromJSON(jsonValue)); + } + + /** + */ + async readRouteTables(requestParameters: ReadRouteTablesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readRouteTablesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkRouteTableRaw(requestParameters: UnlinkRouteTableOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkRouteTableRequestToJSON(requestParameters.unlinkRouteTableRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkRouteTable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkRouteTableResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkRouteTable(requestParameters: UnlinkRouteTableOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkRouteTableRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/SecurityGroupApi.ts b/src/apis/SecurityGroupApi.ts new file mode 100644 index 00000000..2973bdd5 --- /dev/null +++ b/src/apis/SecurityGroupApi.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateSecurityGroupRequest, + CreateSecurityGroupRequestFromJSON, + CreateSecurityGroupRequestToJSON, + CreateSecurityGroupResponse, + CreateSecurityGroupResponseFromJSON, + CreateSecurityGroupResponseToJSON, + DeleteSecurityGroupRequest, + DeleteSecurityGroupRequestFromJSON, + DeleteSecurityGroupRequestToJSON, + DeleteSecurityGroupResponse, + DeleteSecurityGroupResponseFromJSON, + DeleteSecurityGroupResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadSecurityGroupsRequest, + ReadSecurityGroupsRequestFromJSON, + ReadSecurityGroupsRequestToJSON, + ReadSecurityGroupsResponse, + ReadSecurityGroupsResponseFromJSON, + ReadSecurityGroupsResponseToJSON, +} from '../models'; + +export interface CreateSecurityGroupOperationRequest { + createSecurityGroupRequest?: CreateSecurityGroupRequest; +} + +export interface DeleteSecurityGroupOperationRequest { + deleteSecurityGroupRequest?: DeleteSecurityGroupRequest; +} + +export interface ReadSecurityGroupsOperationRequest { + readSecurityGroupsRequest?: ReadSecurityGroupsRequest; +} + +/** + * SecurityGroupApi - interface + * + * @export + * @interface SecurityGroupApiInterface + */ +export interface SecurityGroupApiInterface { + /** + * + * @param {CreateSecurityGroupRequest} [createSecurityGroupRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + createSecurityGroupRaw(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createSecurityGroup(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteSecurityGroupRequest} [deleteSecurityGroupRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + deleteSecurityGroupRaw(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteSecurityGroup(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadSecurityGroupsRequest} [readSecurityGroupsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupApiInterface + */ + readSecurityGroupsRaw(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readSecurityGroups(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class SecurityGroupApi extends runtime.BaseAPI implements SecurityGroupApiInterface { + + /** + */ + async createSecurityGroupRaw(requestParameters: CreateSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateSecurityGroupRequestToJSON(requestParameters.createSecurityGroupRequest); + + const request: runtime.RequestOpts = { + path: `/CreateSecurityGroup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSecurityGroupResponseFromJSON(jsonValue)); + } + + /** + */ + async createSecurityGroup(requestParameters: CreateSecurityGroupOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createSecurityGroupRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteSecurityGroupRaw(requestParameters: DeleteSecurityGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteSecurityGroupRequestToJSON(requestParameters.deleteSecurityGroupRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteSecurityGroup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSecurityGroupResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteSecurityGroup(requestParameters: DeleteSecurityGroupOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteSecurityGroupRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readSecurityGroupsRaw(requestParameters: ReadSecurityGroupsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadSecurityGroupsRequestToJSON(requestParameters.readSecurityGroupsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadSecurityGroups`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSecurityGroupsResponseFromJSON(jsonValue)); + } + + /** + */ + async readSecurityGroups(requestParameters: ReadSecurityGroupsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readSecurityGroupsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/SecurityGroupRuleApi.ts b/src/apis/SecurityGroupRuleApi.ts new file mode 100644 index 00000000..cd764956 --- /dev/null +++ b/src/apis/SecurityGroupRuleApi.ts @@ -0,0 +1,173 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateSecurityGroupRuleRequest, + CreateSecurityGroupRuleRequestFromJSON, + CreateSecurityGroupRuleRequestToJSON, + CreateSecurityGroupRuleResponse, + CreateSecurityGroupRuleResponseFromJSON, + CreateSecurityGroupRuleResponseToJSON, + DeleteSecurityGroupRuleRequest, + DeleteSecurityGroupRuleRequestFromJSON, + DeleteSecurityGroupRuleRequestToJSON, + DeleteSecurityGroupRuleResponse, + DeleteSecurityGroupRuleResponseFromJSON, + DeleteSecurityGroupRuleResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, +} from '../models'; + +export interface CreateSecurityGroupRuleOperationRequest { + createSecurityGroupRuleRequest?: CreateSecurityGroupRuleRequest; +} + +export interface DeleteSecurityGroupRuleOperationRequest { + deleteSecurityGroupRuleRequest?: DeleteSecurityGroupRuleRequest; +} + +/** + * SecurityGroupRuleApi - interface + * + * @export + * @interface SecurityGroupRuleApiInterface + */ +export interface SecurityGroupRuleApiInterface { + /** + * + * @param {CreateSecurityGroupRuleRequest} [createSecurityGroupRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupRuleApiInterface + */ + createSecurityGroupRuleRaw(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createSecurityGroupRule(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteSecurityGroupRuleRequest} [deleteSecurityGroupRuleRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityGroupRuleApiInterface + */ + deleteSecurityGroupRuleRaw(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteSecurityGroupRule(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class SecurityGroupRuleApi extends runtime.BaseAPI implements SecurityGroupRuleApiInterface { + + /** + */ + async createSecurityGroupRuleRaw(requestParameters: CreateSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateSecurityGroupRuleRequestToJSON(requestParameters.createSecurityGroupRuleRequest); + + const request: runtime.RequestOpts = { + path: `/CreateSecurityGroupRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSecurityGroupRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async createSecurityGroupRule(requestParameters: CreateSecurityGroupRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createSecurityGroupRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteSecurityGroupRuleRaw(requestParameters: DeleteSecurityGroupRuleOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteSecurityGroupRuleRequestToJSON(requestParameters.deleteSecurityGroupRuleRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteSecurityGroupRule`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSecurityGroupRuleResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteSecurityGroupRule(requestParameters: DeleteSecurityGroupRuleOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteSecurityGroupRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ServerCertificateApi.ts b/src/apis/ServerCertificateApi.ts new file mode 100644 index 00000000..203d7f89 --- /dev/null +++ b/src/apis/ServerCertificateApi.ts @@ -0,0 +1,306 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateServerCertificateRequest, + CreateServerCertificateRequestFromJSON, + CreateServerCertificateRequestToJSON, + CreateServerCertificateResponse, + CreateServerCertificateResponseFromJSON, + CreateServerCertificateResponseToJSON, + DeleteServerCertificateRequest, + DeleteServerCertificateRequestFromJSON, + DeleteServerCertificateRequestToJSON, + DeleteServerCertificateResponse, + DeleteServerCertificateResponseFromJSON, + DeleteServerCertificateResponseToJSON, + ReadServerCertificatesRequest, + ReadServerCertificatesRequestFromJSON, + ReadServerCertificatesRequestToJSON, + ReadServerCertificatesResponse, + ReadServerCertificatesResponseFromJSON, + ReadServerCertificatesResponseToJSON, + UpdateServerCertificateRequest, + UpdateServerCertificateRequestFromJSON, + UpdateServerCertificateRequestToJSON, + UpdateServerCertificateResponse, + UpdateServerCertificateResponseFromJSON, + UpdateServerCertificateResponseToJSON, +} from '../models'; + +export interface CreateServerCertificateOperationRequest { + createServerCertificateRequest?: CreateServerCertificateRequest; +} + +export interface DeleteServerCertificateOperationRequest { + deleteServerCertificateRequest?: DeleteServerCertificateRequest; +} + +export interface ReadServerCertificatesOperationRequest { + readServerCertificatesRequest?: ReadServerCertificatesRequest; +} + +export interface UpdateServerCertificateOperationRequest { + updateServerCertificateRequest?: UpdateServerCertificateRequest; +} + +/** + * ServerCertificateApi - interface + * + * @export + * @interface ServerCertificateApiInterface + */ +export interface ServerCertificateApiInterface { + /** + * + * @param {CreateServerCertificateRequest} [createServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + createServerCertificateRaw(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createServerCertificate(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteServerCertificateRequest} [deleteServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + deleteServerCertificateRaw(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteServerCertificate(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadServerCertificatesRequest} [readServerCertificatesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + readServerCertificatesRaw(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readServerCertificates(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateServerCertificateRequest} [updateServerCertificateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerCertificateApiInterface + */ + updateServerCertificateRaw(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateServerCertificate(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class ServerCertificateApi extends runtime.BaseAPI implements ServerCertificateApiInterface { + + /** + */ + async createServerCertificateRaw(requestParameters: CreateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateServerCertificateRequestToJSON(requestParameters.createServerCertificateRequest); + + const request: runtime.RequestOpts = { + path: `/CreateServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateServerCertificateResponseFromJSON(jsonValue)); + } + + /** + */ + async createServerCertificate(requestParameters: CreateServerCertificateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createServerCertificateRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteServerCertificateRaw(requestParameters: DeleteServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteServerCertificateRequestToJSON(requestParameters.deleteServerCertificateRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteServerCertificateResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteServerCertificate(requestParameters: DeleteServerCertificateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteServerCertificateRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readServerCertificatesRaw(requestParameters: ReadServerCertificatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadServerCertificatesRequestToJSON(requestParameters.readServerCertificatesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadServerCertificates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadServerCertificatesResponseFromJSON(jsonValue)); + } + + /** + */ + async readServerCertificates(requestParameters: ReadServerCertificatesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readServerCertificatesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateServerCertificateRaw(requestParameters: UpdateServerCertificateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateServerCertificateRequestToJSON(requestParameters.updateServerCertificateRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateServerCertificate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateServerCertificateResponseFromJSON(jsonValue)); + } + + /** + */ + async updateServerCertificate(requestParameters: UpdateServerCertificateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateServerCertificateRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/SnapshotApi.ts b/src/apis/SnapshotApi.ts new file mode 100644 index 00000000..09c10620 --- /dev/null +++ b/src/apis/SnapshotApi.ts @@ -0,0 +1,445 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateSnapshotExportTaskRequest, + CreateSnapshotExportTaskRequestFromJSON, + CreateSnapshotExportTaskRequestToJSON, + CreateSnapshotExportTaskResponse, + CreateSnapshotExportTaskResponseFromJSON, + CreateSnapshotExportTaskResponseToJSON, + CreateSnapshotRequest, + CreateSnapshotRequestFromJSON, + CreateSnapshotRequestToJSON, + CreateSnapshotResponse, + CreateSnapshotResponseFromJSON, + CreateSnapshotResponseToJSON, + DeleteSnapshotRequest, + DeleteSnapshotRequestFromJSON, + DeleteSnapshotRequestToJSON, + DeleteSnapshotResponse, + DeleteSnapshotResponseFromJSON, + DeleteSnapshotResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadSnapshotExportTasksRequest, + ReadSnapshotExportTasksRequestFromJSON, + ReadSnapshotExportTasksRequestToJSON, + ReadSnapshotExportTasksResponse, + ReadSnapshotExportTasksResponseFromJSON, + ReadSnapshotExportTasksResponseToJSON, + ReadSnapshotsRequest, + ReadSnapshotsRequestFromJSON, + ReadSnapshotsRequestToJSON, + ReadSnapshotsResponse, + ReadSnapshotsResponseFromJSON, + ReadSnapshotsResponseToJSON, + UpdateSnapshotRequest, + UpdateSnapshotRequestFromJSON, + UpdateSnapshotRequestToJSON, + UpdateSnapshotResponse, + UpdateSnapshotResponseFromJSON, + UpdateSnapshotResponseToJSON, +} from '../models'; + +export interface CreateSnapshotOperationRequest { + createSnapshotRequest?: CreateSnapshotRequest; +} + +export interface CreateSnapshotExportTaskOperationRequest { + createSnapshotExportTaskRequest?: CreateSnapshotExportTaskRequest; +} + +export interface DeleteSnapshotOperationRequest { + deleteSnapshotRequest?: DeleteSnapshotRequest; +} + +export interface ReadSnapshotExportTasksOperationRequest { + readSnapshotExportTasksRequest?: ReadSnapshotExportTasksRequest; +} + +export interface ReadSnapshotsOperationRequest { + readSnapshotsRequest?: ReadSnapshotsRequest; +} + +export interface UpdateSnapshotOperationRequest { + updateSnapshotRequest?: UpdateSnapshotRequest; +} + +/** + * SnapshotApi - interface + * + * @export + * @interface SnapshotApiInterface + */ +export interface SnapshotApiInterface { + /** + * + * @param {CreateSnapshotRequest} [createSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + createSnapshotRaw(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createSnapshot(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateSnapshotExportTaskRequest} [createSnapshotExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + createSnapshotExportTaskRaw(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createSnapshotExportTask(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteSnapshotRequest} [deleteSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + deleteSnapshotRaw(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteSnapshot(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadSnapshotExportTasksRequest} [readSnapshotExportTasksRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + readSnapshotExportTasksRaw(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readSnapshotExportTasks(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadSnapshotsRequest} [readSnapshotsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + readSnapshotsRaw(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readSnapshots(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateSnapshotRequest} [updateSnapshotRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SnapshotApiInterface + */ + updateSnapshotRaw(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateSnapshot(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class SnapshotApi extends runtime.BaseAPI implements SnapshotApiInterface { + + /** + */ + async createSnapshotRaw(requestParameters: CreateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateSnapshotRequestToJSON(requestParameters.createSnapshotRequest); + + const request: runtime.RequestOpts = { + path: `/CreateSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSnapshotResponseFromJSON(jsonValue)); + } + + /** + */ + async createSnapshot(requestParameters: CreateSnapshotOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createSnapshotRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createSnapshotExportTaskRaw(requestParameters: CreateSnapshotExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateSnapshotExportTaskRequestToJSON(requestParameters.createSnapshotExportTaskRequest); + + const request: runtime.RequestOpts = { + path: `/CreateSnapshotExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSnapshotExportTaskResponseFromJSON(jsonValue)); + } + + /** + */ + async createSnapshotExportTask(requestParameters: CreateSnapshotExportTaskOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createSnapshotExportTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteSnapshotRaw(requestParameters: DeleteSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteSnapshotRequestToJSON(requestParameters.deleteSnapshotRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSnapshotResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteSnapshot(requestParameters: DeleteSnapshotOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteSnapshotRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readSnapshotExportTasksRaw(requestParameters: ReadSnapshotExportTasksOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadSnapshotExportTasksRequestToJSON(requestParameters.readSnapshotExportTasksRequest); + + const request: runtime.RequestOpts = { + path: `/ReadSnapshotExportTasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSnapshotExportTasksResponseFromJSON(jsonValue)); + } + + /** + */ + async readSnapshotExportTasks(requestParameters: ReadSnapshotExportTasksOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readSnapshotExportTasksRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readSnapshotsRaw(requestParameters: ReadSnapshotsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadSnapshotsRequestToJSON(requestParameters.readSnapshotsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadSnapshots`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSnapshotsResponseFromJSON(jsonValue)); + } + + /** + */ + async readSnapshots(requestParameters: ReadSnapshotsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readSnapshotsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateSnapshotRaw(requestParameters: UpdateSnapshotOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateSnapshotRequestToJSON(requestParameters.updateSnapshotRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateSnapshot`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSnapshotResponseFromJSON(jsonValue)); + } + + /** + */ + async updateSnapshot(requestParameters: UpdateSnapshotOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateSnapshotRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/SubnetApi.ts b/src/apis/SubnetApi.ts new file mode 100644 index 00000000..ed8c5c9f --- /dev/null +++ b/src/apis/SubnetApi.ts @@ -0,0 +1,309 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateSubnetRequest, + CreateSubnetRequestFromJSON, + CreateSubnetRequestToJSON, + CreateSubnetResponse, + CreateSubnetResponseFromJSON, + CreateSubnetResponseToJSON, + DeleteSubnetRequest, + DeleteSubnetRequestFromJSON, + DeleteSubnetRequestToJSON, + DeleteSubnetResponse, + DeleteSubnetResponseFromJSON, + DeleteSubnetResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadSubnetsRequest, + ReadSubnetsRequestFromJSON, + ReadSubnetsRequestToJSON, + ReadSubnetsResponse, + ReadSubnetsResponseFromJSON, + ReadSubnetsResponseToJSON, + UpdateSubnetRequest, + UpdateSubnetRequestFromJSON, + UpdateSubnetRequestToJSON, + UpdateSubnetResponse, + UpdateSubnetResponseFromJSON, + UpdateSubnetResponseToJSON, +} from '../models'; + +export interface CreateSubnetOperationRequest { + createSubnetRequest?: CreateSubnetRequest; +} + +export interface DeleteSubnetOperationRequest { + deleteSubnetRequest?: DeleteSubnetRequest; +} + +export interface ReadSubnetsOperationRequest { + readSubnetsRequest?: ReadSubnetsRequest; +} + +export interface UpdateSubnetOperationRequest { + updateSubnetRequest?: UpdateSubnetRequest; +} + +/** + * SubnetApi - interface + * + * @export + * @interface SubnetApiInterface + */ +export interface SubnetApiInterface { + /** + * + * @param {CreateSubnetRequest} [createSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + createSubnetRaw(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createSubnet(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteSubnetRequest} [deleteSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + deleteSubnetRaw(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteSubnet(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadSubnetsRequest} [readSubnetsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + readSubnetsRaw(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readSubnets(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateSubnetRequest} [updateSubnetRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubnetApiInterface + */ + updateSubnetRaw(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateSubnet(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class SubnetApi extends runtime.BaseAPI implements SubnetApiInterface { + + /** + */ + async createSubnetRaw(requestParameters: CreateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateSubnetRequestToJSON(requestParameters.createSubnetRequest); + + const request: runtime.RequestOpts = { + path: `/CreateSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSubnetResponseFromJSON(jsonValue)); + } + + /** + */ + async createSubnet(requestParameters: CreateSubnetOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createSubnetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteSubnetRaw(requestParameters: DeleteSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteSubnetRequestToJSON(requestParameters.deleteSubnetRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSubnetResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteSubnet(requestParameters: DeleteSubnetOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteSubnetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readSubnetsRaw(requestParameters: ReadSubnetsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadSubnetsRequestToJSON(requestParameters.readSubnetsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadSubnets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSubnetsResponseFromJSON(jsonValue)); + } + + /** + */ + async readSubnets(requestParameters: ReadSubnetsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readSubnetsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateSubnetRaw(requestParameters: UpdateSubnetOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateSubnetRequestToJSON(requestParameters.updateSubnetRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateSubnet`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSubnetResponseFromJSON(jsonValue)); + } + + /** + */ + async updateSubnet(requestParameters: UpdateSubnetOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateSubnetRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/SubregionApi.ts b/src/apis/SubregionApi.ts new file mode 100644 index 00000000..06566685 --- /dev/null +++ b/src/apis/SubregionApi.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + ReadSubregionsRequest, + ReadSubregionsRequestFromJSON, + ReadSubregionsRequestToJSON, + ReadSubregionsResponse, + ReadSubregionsResponseFromJSON, + ReadSubregionsResponseToJSON, +} from '../models'; + +export interface ReadSubregionsOperationRequest { + readSubregionsRequest?: ReadSubregionsRequest; +} + +/** + * SubregionApi - interface + * + * @export + * @interface SubregionApiInterface + */ +export interface SubregionApiInterface { + /** + * + * @param {ReadSubregionsRequest} [readSubregionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubregionApiInterface + */ + readSubregionsRaw(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readSubregions(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class SubregionApi extends runtime.BaseAPI implements SubregionApiInterface { + + /** + */ + async readSubregionsRaw(requestParameters: ReadSubregionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadSubregionsRequestToJSON(requestParameters.readSubregionsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadSubregions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadSubregionsResponseFromJSON(jsonValue)); + } + + /** + */ + async readSubregions(requestParameters: ReadSubregionsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readSubregionsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/TagApi.ts b/src/apis/TagApi.ts new file mode 100644 index 00000000..58e5d09f --- /dev/null +++ b/src/apis/TagApi.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateTagsRequest, + CreateTagsRequestFromJSON, + CreateTagsRequestToJSON, + CreateTagsResponse, + CreateTagsResponseFromJSON, + CreateTagsResponseToJSON, + DeleteTagsRequest, + DeleteTagsRequestFromJSON, + DeleteTagsRequestToJSON, + DeleteTagsResponse, + DeleteTagsResponseFromJSON, + DeleteTagsResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadTagsRequest, + ReadTagsRequestFromJSON, + ReadTagsRequestToJSON, + ReadTagsResponse, + ReadTagsResponseFromJSON, + ReadTagsResponseToJSON, +} from '../models'; + +export interface CreateTagsOperationRequest { + createTagsRequest?: CreateTagsRequest; +} + +export interface DeleteTagsOperationRequest { + deleteTagsRequest?: DeleteTagsRequest; +} + +export interface ReadTagsOperationRequest { + readTagsRequest?: ReadTagsRequest; +} + +/** + * TagApi - interface + * + * @export + * @interface TagApiInterface + */ +export interface TagApiInterface { + /** + * + * @param {CreateTagsRequest} [createTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + createTagsRaw(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createTags(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteTagsRequest} [deleteTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + deleteTagsRaw(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteTags(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadTagsRequest} [readTagsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagApiInterface + */ + readTagsRaw(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readTags(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class TagApi extends runtime.BaseAPI implements TagApiInterface { + + /** + */ + async createTagsRaw(requestParameters: CreateTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateTagsRequestToJSON(requestParameters.createTagsRequest); + + const request: runtime.RequestOpts = { + path: `/CreateTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateTagsResponseFromJSON(jsonValue)); + } + + /** + */ + async createTags(requestParameters: CreateTagsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteTagsRaw(requestParameters: DeleteTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteTagsRequestToJSON(requestParameters.deleteTagsRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteTagsResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteTags(requestParameters: DeleteTagsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readTagsRaw(requestParameters: ReadTagsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadTagsRequestToJSON(requestParameters.readTagsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadTags`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadTagsResponseFromJSON(jsonValue)); + } + + /** + */ + async readTags(requestParameters: ReadTagsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/TaskApi.ts b/src/apis/TaskApi.ts new file mode 100644 index 00000000..1de9b2e1 --- /dev/null +++ b/src/apis/TaskApi.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + DeleteExportTaskRequest, + DeleteExportTaskRequestFromJSON, + DeleteExportTaskRequestToJSON, + DeleteExportTaskResponse, + DeleteExportTaskResponseFromJSON, + DeleteExportTaskResponseToJSON, +} from '../models'; + +export interface DeleteExportTaskOperationRequest { + deleteExportTaskRequest?: DeleteExportTaskRequest; +} + +/** + * TaskApi - interface + * + * @export + * @interface TaskApiInterface + */ +export interface TaskApiInterface { + /** + * + * @param {DeleteExportTaskRequest} [deleteExportTaskRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TaskApiInterface + */ + deleteExportTaskRaw(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteExportTask(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class TaskApi extends runtime.BaseAPI implements TaskApiInterface { + + /** + */ + async deleteExportTaskRaw(requestParameters: DeleteExportTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteExportTaskRequestToJSON(requestParameters.deleteExportTaskRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteExportTask`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteExportTaskResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteExportTask(requestParameters: DeleteExportTaskOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteExportTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/VirtualGatewayApi.ts b/src/apis/VirtualGatewayApi.ts new file mode 100644 index 00000000..6a43349f --- /dev/null +++ b/src/apis/VirtualGatewayApi.ts @@ -0,0 +1,442 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateVirtualGatewayRequest, + CreateVirtualGatewayRequestFromJSON, + CreateVirtualGatewayRequestToJSON, + CreateVirtualGatewayResponse, + CreateVirtualGatewayResponseFromJSON, + CreateVirtualGatewayResponseToJSON, + DeleteVirtualGatewayRequest, + DeleteVirtualGatewayRequestFromJSON, + DeleteVirtualGatewayRequestToJSON, + DeleteVirtualGatewayResponse, + DeleteVirtualGatewayResponseFromJSON, + DeleteVirtualGatewayResponseToJSON, + LinkVirtualGatewayRequest, + LinkVirtualGatewayRequestFromJSON, + LinkVirtualGatewayRequestToJSON, + LinkVirtualGatewayResponse, + LinkVirtualGatewayResponseFromJSON, + LinkVirtualGatewayResponseToJSON, + ReadVirtualGatewaysRequest, + ReadVirtualGatewaysRequestFromJSON, + ReadVirtualGatewaysRequestToJSON, + ReadVirtualGatewaysResponse, + ReadVirtualGatewaysResponseFromJSON, + ReadVirtualGatewaysResponseToJSON, + UnlinkVirtualGatewayRequest, + UnlinkVirtualGatewayRequestFromJSON, + UnlinkVirtualGatewayRequestToJSON, + UnlinkVirtualGatewayResponse, + UnlinkVirtualGatewayResponseFromJSON, + UnlinkVirtualGatewayResponseToJSON, + UpdateRoutePropagationRequest, + UpdateRoutePropagationRequestFromJSON, + UpdateRoutePropagationRequestToJSON, + UpdateRoutePropagationResponse, + UpdateRoutePropagationResponseFromJSON, + UpdateRoutePropagationResponseToJSON, +} from '../models'; + +export interface CreateVirtualGatewayOperationRequest { + createVirtualGatewayRequest?: CreateVirtualGatewayRequest; +} + +export interface DeleteVirtualGatewayOperationRequest { + deleteVirtualGatewayRequest?: DeleteVirtualGatewayRequest; +} + +export interface LinkVirtualGatewayOperationRequest { + linkVirtualGatewayRequest?: LinkVirtualGatewayRequest; +} + +export interface ReadVirtualGatewaysOperationRequest { + readVirtualGatewaysRequest?: ReadVirtualGatewaysRequest; +} + +export interface UnlinkVirtualGatewayOperationRequest { + unlinkVirtualGatewayRequest?: UnlinkVirtualGatewayRequest; +} + +export interface UpdateRoutePropagationOperationRequest { + updateRoutePropagationRequest?: UpdateRoutePropagationRequest; +} + +/** + * VirtualGatewayApi - interface + * + * @export + * @interface VirtualGatewayApiInterface + */ +export interface VirtualGatewayApiInterface { + /** + * + * @param {CreateVirtualGatewayRequest} [createVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + createVirtualGatewayRaw(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createVirtualGateway(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteVirtualGatewayRequest} [deleteVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + deleteVirtualGatewayRaw(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteVirtualGateway(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkVirtualGatewayRequest} [linkVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + linkVirtualGatewayRaw(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkVirtualGateway(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVirtualGatewaysRequest} [readVirtualGatewaysRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + readVirtualGatewaysRaw(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVirtualGateways(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkVirtualGatewayRequest} [unlinkVirtualGatewayRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + unlinkVirtualGatewayRaw(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkVirtualGateway(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateRoutePropagationRequest} [updateRoutePropagationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VirtualGatewayApiInterface + */ + updateRoutePropagationRaw(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateRoutePropagation(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class VirtualGatewayApi extends runtime.BaseAPI implements VirtualGatewayApiInterface { + + /** + */ + async createVirtualGatewayRaw(requestParameters: CreateVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateVirtualGatewayRequestToJSON(requestParameters.createVirtualGatewayRequest); + + const request: runtime.RequestOpts = { + path: `/CreateVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVirtualGatewayResponseFromJSON(jsonValue)); + } + + /** + */ + async createVirtualGateway(requestParameters: CreateVirtualGatewayOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createVirtualGatewayRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteVirtualGatewayRaw(requestParameters: DeleteVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteVirtualGatewayRequestToJSON(requestParameters.deleteVirtualGatewayRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVirtualGatewayResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteVirtualGateway(requestParameters: DeleteVirtualGatewayOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteVirtualGatewayRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkVirtualGatewayRaw(requestParameters: LinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkVirtualGatewayRequestToJSON(requestParameters.linkVirtualGatewayRequest); + + const request: runtime.RequestOpts = { + path: `/LinkVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkVirtualGatewayResponseFromJSON(jsonValue)); + } + + /** + */ + async linkVirtualGateway(requestParameters: LinkVirtualGatewayOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkVirtualGatewayRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVirtualGatewaysRaw(requestParameters: ReadVirtualGatewaysOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadVirtualGatewaysRequestToJSON(requestParameters.readVirtualGatewaysRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVirtualGateways`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVirtualGatewaysResponseFromJSON(jsonValue)); + } + + /** + */ + async readVirtualGateways(requestParameters: ReadVirtualGatewaysOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVirtualGatewaysRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkVirtualGatewayRaw(requestParameters: UnlinkVirtualGatewayOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkVirtualGatewayRequestToJSON(requestParameters.unlinkVirtualGatewayRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkVirtualGateway`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkVirtualGatewayResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkVirtualGateway(requestParameters: UnlinkVirtualGatewayOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkVirtualGatewayRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateRoutePropagationRaw(requestParameters: UpdateRoutePropagationOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateRoutePropagationRequestToJSON(requestParameters.updateRoutePropagationRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateRoutePropagation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateRoutePropagationResponseFromJSON(jsonValue)); + } + + /** + */ + async updateRoutePropagation(requestParameters: UpdateRoutePropagationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateRoutePropagationRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/VmApi.ts b/src/apis/VmApi.ts new file mode 100644 index 00000000..adfc2d3d --- /dev/null +++ b/src/apis/VmApi.ts @@ -0,0 +1,781 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateVmsRequest, + CreateVmsRequestFromJSON, + CreateVmsRequestToJSON, + CreateVmsResponse, + CreateVmsResponseFromJSON, + CreateVmsResponseToJSON, + DeleteVmsRequest, + DeleteVmsRequestFromJSON, + DeleteVmsRequestToJSON, + DeleteVmsResponse, + DeleteVmsResponseFromJSON, + DeleteVmsResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadAdminPasswordRequest, + ReadAdminPasswordRequestFromJSON, + ReadAdminPasswordRequestToJSON, + ReadAdminPasswordResponse, + ReadAdminPasswordResponseFromJSON, + ReadAdminPasswordResponseToJSON, + ReadConsoleOutputRequest, + ReadConsoleOutputRequestFromJSON, + ReadConsoleOutputRequestToJSON, + ReadConsoleOutputResponse, + ReadConsoleOutputResponseFromJSON, + ReadConsoleOutputResponseToJSON, + ReadVmTypesRequest, + ReadVmTypesRequestFromJSON, + ReadVmTypesRequestToJSON, + ReadVmTypesResponse, + ReadVmTypesResponseFromJSON, + ReadVmTypesResponseToJSON, + ReadVmsRequest, + ReadVmsRequestFromJSON, + ReadVmsRequestToJSON, + ReadVmsResponse, + ReadVmsResponseFromJSON, + ReadVmsResponseToJSON, + ReadVmsStateRequest, + ReadVmsStateRequestFromJSON, + ReadVmsStateRequestToJSON, + ReadVmsStateResponse, + ReadVmsStateResponseFromJSON, + ReadVmsStateResponseToJSON, + RebootVmsRequest, + RebootVmsRequestFromJSON, + RebootVmsRequestToJSON, + RebootVmsResponse, + RebootVmsResponseFromJSON, + RebootVmsResponseToJSON, + StartVmsRequest, + StartVmsRequestFromJSON, + StartVmsRequestToJSON, + StartVmsResponse, + StartVmsResponseFromJSON, + StartVmsResponseToJSON, + StopVmsRequest, + StopVmsRequestFromJSON, + StopVmsRequestToJSON, + StopVmsResponse, + StopVmsResponseFromJSON, + StopVmsResponseToJSON, + UpdateVmRequest, + UpdateVmRequestFromJSON, + UpdateVmRequestToJSON, + UpdateVmResponse, + UpdateVmResponseFromJSON, + UpdateVmResponseToJSON, +} from '../models'; + +export interface CreateVmsOperationRequest { + createVmsRequest?: CreateVmsRequest; +} + +export interface DeleteVmsOperationRequest { + deleteVmsRequest?: DeleteVmsRequest; +} + +export interface ReadAdminPasswordOperationRequest { + readAdminPasswordRequest?: ReadAdminPasswordRequest; +} + +export interface ReadConsoleOutputOperationRequest { + readConsoleOutputRequest?: ReadConsoleOutputRequest; +} + +export interface ReadVmTypesOperationRequest { + readVmTypesRequest?: ReadVmTypesRequest; +} + +export interface ReadVmsOperationRequest { + readVmsRequest?: ReadVmsRequest; +} + +export interface ReadVmsStateOperationRequest { + readVmsStateRequest?: ReadVmsStateRequest; +} + +export interface RebootVmsOperationRequest { + rebootVmsRequest?: RebootVmsRequest; +} + +export interface StartVmsOperationRequest { + startVmsRequest?: StartVmsRequest; +} + +export interface StopVmsOperationRequest { + stopVmsRequest?: StopVmsRequest; +} + +export interface UpdateVmOperationRequest { + updateVmRequest?: UpdateVmRequest; +} + +/** + * VmApi - interface + * + * @export + * @interface VmApiInterface + */ +export interface VmApiInterface { + /** + * + * @param {CreateVmsRequest} [createVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + createVmsRaw(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createVms(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteVmsRequest} [deleteVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + deleteVmsRaw(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteVms(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadAdminPasswordRequest} [readAdminPasswordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readAdminPasswordRaw(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readAdminPassword(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadConsoleOutputRequest} [readConsoleOutputRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readConsoleOutputRaw(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readConsoleOutput(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVmTypesRequest} [readVmTypesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmTypesRaw(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVmTypes(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVmsRequest} [readVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmsRaw(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVms(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVmsStateRequest} [readVmsStateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + readVmsStateRaw(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVmsState(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {RebootVmsRequest} [rebootVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + rebootVmsRaw(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + rebootVms(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {StartVmsRequest} [startVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + startVmsRaw(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + startVms(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {StopVmsRequest} [stopVmsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + stopVmsRaw(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + stopVms(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateVmRequest} [updateVmRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VmApiInterface + */ + updateVmRaw(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateVm(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class VmApi extends runtime.BaseAPI implements VmApiInterface { + + /** + */ + async createVmsRaw(requestParameters: CreateVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateVmsRequestToJSON(requestParameters.createVmsRequest); + + const request: runtime.RequestOpts = { + path: `/CreateVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVmsResponseFromJSON(jsonValue)); + } + + /** + */ + async createVms(requestParameters: CreateVmsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createVmsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteVmsRaw(requestParameters: DeleteVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteVmsRequestToJSON(requestParameters.deleteVmsRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVmsResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteVms(requestParameters: DeleteVmsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteVmsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readAdminPasswordRaw(requestParameters: ReadAdminPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadAdminPasswordRequestToJSON(requestParameters.readAdminPasswordRequest); + + const request: runtime.RequestOpts = { + path: `/ReadAdminPassword`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadAdminPasswordResponseFromJSON(jsonValue)); + } + + /** + */ + async readAdminPassword(requestParameters: ReadAdminPasswordOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readAdminPasswordRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readConsoleOutputRaw(requestParameters: ReadConsoleOutputOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadConsoleOutputRequestToJSON(requestParameters.readConsoleOutputRequest); + + const request: runtime.RequestOpts = { + path: `/ReadConsoleOutput`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadConsoleOutputResponseFromJSON(jsonValue)); + } + + /** + */ + async readConsoleOutput(requestParameters: ReadConsoleOutputOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readConsoleOutputRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVmTypesRaw(requestParameters: ReadVmTypesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + + + const body: any = ReadVmTypesRequestToJSON(requestParameters.readVmTypesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVmTypes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmTypesResponseFromJSON(jsonValue)); + } + + /** + */ + async readVmTypes(requestParameters: ReadVmTypesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVmTypesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVmsRaw(requestParameters: ReadVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadVmsRequestToJSON(requestParameters.readVmsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmsResponseFromJSON(jsonValue)); + } + + /** + */ + async readVms(requestParameters: ReadVmsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVmsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVmsStateRaw(requestParameters: ReadVmsStateOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadVmsStateRequestToJSON(requestParameters.readVmsStateRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVmsState`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVmsStateResponseFromJSON(jsonValue)); + } + + /** + */ + async readVmsState(requestParameters: ReadVmsStateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVmsStateRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async rebootVmsRaw(requestParameters: RebootVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = RebootVmsRequestToJSON(requestParameters.rebootVmsRequest); + + const request: runtime.RequestOpts = { + path: `/RebootVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RebootVmsResponseFromJSON(jsonValue)); + } + + /** + */ + async rebootVms(requestParameters: RebootVmsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.rebootVmsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async startVmsRaw(requestParameters: StartVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = StartVmsRequestToJSON(requestParameters.startVmsRequest); + + const request: runtime.RequestOpts = { + path: `/StartVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => StartVmsResponseFromJSON(jsonValue)); + } + + /** + */ + async startVms(requestParameters: StartVmsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.startVmsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async stopVmsRaw(requestParameters: StopVmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = StopVmsRequestToJSON(requestParameters.stopVmsRequest); + + const request: runtime.RequestOpts = { + path: `/StopVms`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => StopVmsResponseFromJSON(jsonValue)); + } + + /** + */ + async stopVms(requestParameters: StopVmsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.stopVmsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateVmRaw(requestParameters: UpdateVmOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateVmRequestToJSON(requestParameters.updateVmRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateVm`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateVmResponseFromJSON(jsonValue)); + } + + /** + */ + async updateVm(requestParameters: UpdateVmOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateVmRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/VolumeApi.ts b/src/apis/VolumeApi.ts new file mode 100644 index 00000000..52503722 --- /dev/null +++ b/src/apis/VolumeApi.ts @@ -0,0 +1,445 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateVolumeRequest, + CreateVolumeRequestFromJSON, + CreateVolumeRequestToJSON, + CreateVolumeResponse, + CreateVolumeResponseFromJSON, + CreateVolumeResponseToJSON, + DeleteVolumeRequest, + DeleteVolumeRequestFromJSON, + DeleteVolumeRequestToJSON, + DeleteVolumeResponse, + DeleteVolumeResponseFromJSON, + DeleteVolumeResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + LinkVolumeRequest, + LinkVolumeRequestFromJSON, + LinkVolumeRequestToJSON, + LinkVolumeResponse, + LinkVolumeResponseFromJSON, + LinkVolumeResponseToJSON, + ReadVolumesRequest, + ReadVolumesRequestFromJSON, + ReadVolumesRequestToJSON, + ReadVolumesResponse, + ReadVolumesResponseFromJSON, + ReadVolumesResponseToJSON, + UnlinkVolumeRequest, + UnlinkVolumeRequestFromJSON, + UnlinkVolumeRequestToJSON, + UnlinkVolumeResponse, + UnlinkVolumeResponseFromJSON, + UnlinkVolumeResponseToJSON, + UpdateVolumeRequest, + UpdateVolumeRequestFromJSON, + UpdateVolumeRequestToJSON, + UpdateVolumeResponse, + UpdateVolumeResponseFromJSON, + UpdateVolumeResponseToJSON, +} from '../models'; + +export interface CreateVolumeOperationRequest { + createVolumeRequest?: CreateVolumeRequest; +} + +export interface DeleteVolumeOperationRequest { + deleteVolumeRequest?: DeleteVolumeRequest; +} + +export interface LinkVolumeOperationRequest { + linkVolumeRequest?: LinkVolumeRequest; +} + +export interface ReadVolumesOperationRequest { + readVolumesRequest?: ReadVolumesRequest; +} + +export interface UnlinkVolumeOperationRequest { + unlinkVolumeRequest?: UnlinkVolumeRequest; +} + +export interface UpdateVolumeOperationRequest { + updateVolumeRequest?: UpdateVolumeRequest; +} + +/** + * VolumeApi - interface + * + * @export + * @interface VolumeApiInterface + */ +export interface VolumeApiInterface { + /** + * + * @param {CreateVolumeRequest} [createVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + createVolumeRaw(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createVolume(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteVolumeRequest} [deleteVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + deleteVolumeRaw(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteVolume(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {LinkVolumeRequest} [linkVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + linkVolumeRaw(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + linkVolume(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVolumesRequest} [readVolumesRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + readVolumesRaw(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVolumes(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UnlinkVolumeRequest} [unlinkVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + unlinkVolumeRaw(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + unlinkVolume(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateVolumeRequest} [updateVolumeRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VolumeApiInterface + */ + updateVolumeRaw(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateVolume(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class VolumeApi extends runtime.BaseAPI implements VolumeApiInterface { + + /** + */ + async createVolumeRaw(requestParameters: CreateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateVolumeRequestToJSON(requestParameters.createVolumeRequest); + + const request: runtime.RequestOpts = { + path: `/CreateVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVolumeResponseFromJSON(jsonValue)); + } + + /** + */ + async createVolume(requestParameters: CreateVolumeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createVolumeRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteVolumeRaw(requestParameters: DeleteVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteVolumeRequestToJSON(requestParameters.deleteVolumeRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVolumeResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteVolume(requestParameters: DeleteVolumeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteVolumeRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async linkVolumeRaw(requestParameters: LinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = LinkVolumeRequestToJSON(requestParameters.linkVolumeRequest); + + const request: runtime.RequestOpts = { + path: `/LinkVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LinkVolumeResponseFromJSON(jsonValue)); + } + + /** + */ + async linkVolume(requestParameters: LinkVolumeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.linkVolumeRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVolumesRaw(requestParameters: ReadVolumesOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadVolumesRequestToJSON(requestParameters.readVolumesRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVolumes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVolumesResponseFromJSON(jsonValue)); + } + + /** + */ + async readVolumes(requestParameters: ReadVolumesOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVolumesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async unlinkVolumeRaw(requestParameters: UnlinkVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UnlinkVolumeRequestToJSON(requestParameters.unlinkVolumeRequest); + + const request: runtime.RequestOpts = { + path: `/UnlinkVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnlinkVolumeResponseFromJSON(jsonValue)); + } + + /** + */ + async unlinkVolume(requestParameters: UnlinkVolumeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.unlinkVolumeRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateVolumeRaw(requestParameters: UpdateVolumeOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateVolumeRequestToJSON(requestParameters.updateVolumeRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateVolume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateVolumeResponseFromJSON(jsonValue)); + } + + /** + */ + async updateVolume(requestParameters: UpdateVolumeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateVolumeRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/VpnConnectionApi.ts b/src/apis/VpnConnectionApi.ts new file mode 100644 index 00000000..acb30902 --- /dev/null +++ b/src/apis/VpnConnectionApi.ts @@ -0,0 +1,445 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import { + CreateVpnConnectionRequest, + CreateVpnConnectionRequestFromJSON, + CreateVpnConnectionRequestToJSON, + CreateVpnConnectionResponse, + CreateVpnConnectionResponseFromJSON, + CreateVpnConnectionResponseToJSON, + CreateVpnConnectionRouteRequest, + CreateVpnConnectionRouteRequestFromJSON, + CreateVpnConnectionRouteRequestToJSON, + CreateVpnConnectionRouteResponse, + CreateVpnConnectionRouteResponseFromJSON, + CreateVpnConnectionRouteResponseToJSON, + DeleteVpnConnectionRequest, + DeleteVpnConnectionRequestFromJSON, + DeleteVpnConnectionRequestToJSON, + DeleteVpnConnectionResponse, + DeleteVpnConnectionResponseFromJSON, + DeleteVpnConnectionResponseToJSON, + DeleteVpnConnectionRouteRequest, + DeleteVpnConnectionRouteRequestFromJSON, + DeleteVpnConnectionRouteRequestToJSON, + DeleteVpnConnectionRouteResponse, + DeleteVpnConnectionRouteResponseFromJSON, + DeleteVpnConnectionRouteResponseToJSON, + ErrorResponse, + ErrorResponseFromJSON, + ErrorResponseToJSON, + ReadVpnConnectionsRequest, + ReadVpnConnectionsRequestFromJSON, + ReadVpnConnectionsRequestToJSON, + ReadVpnConnectionsResponse, + ReadVpnConnectionsResponseFromJSON, + ReadVpnConnectionsResponseToJSON, + UpdateVpnConnectionRequest, + UpdateVpnConnectionRequestFromJSON, + UpdateVpnConnectionRequestToJSON, + UpdateVpnConnectionResponse, + UpdateVpnConnectionResponseFromJSON, + UpdateVpnConnectionResponseToJSON, +} from '../models'; + +export interface CreateVpnConnectionOperationRequest { + createVpnConnectionRequest?: CreateVpnConnectionRequest; +} + +export interface CreateVpnConnectionRouteOperationRequest { + createVpnConnectionRouteRequest?: CreateVpnConnectionRouteRequest; +} + +export interface DeleteVpnConnectionOperationRequest { + deleteVpnConnectionRequest?: DeleteVpnConnectionRequest; +} + +export interface DeleteVpnConnectionRouteOperationRequest { + deleteVpnConnectionRouteRequest?: DeleteVpnConnectionRouteRequest; +} + +export interface ReadVpnConnectionsOperationRequest { + readVpnConnectionsRequest?: ReadVpnConnectionsRequest; +} + +export interface UpdateVpnConnectionOperationRequest { + updateVpnConnectionRequest?: UpdateVpnConnectionRequest; +} + +/** + * VpnConnectionApi - interface + * + * @export + * @interface VpnConnectionApiInterface + */ +export interface VpnConnectionApiInterface { + /** + * + * @param {CreateVpnConnectionRequest} [createVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + createVpnConnectionRaw(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createVpnConnection(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {CreateVpnConnectionRouteRequest} [createVpnConnectionRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + createVpnConnectionRouteRaw(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + createVpnConnectionRoute(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteVpnConnectionRequest} [deleteVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + deleteVpnConnectionRaw(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteVpnConnection(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {DeleteVpnConnectionRouteRequest} [deleteVpnConnectionRouteRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + deleteVpnConnectionRouteRaw(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + deleteVpnConnectionRoute(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {ReadVpnConnectionsRequest} [readVpnConnectionsRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + readVpnConnectionsRaw(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + readVpnConnections(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + + /** + * + * @param {UpdateVpnConnectionRequest} [updateVpnConnectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VpnConnectionApiInterface + */ + updateVpnConnectionRaw(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>; + + /** + */ + updateVpnConnection(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise; + +} + +/** + * + */ +export class VpnConnectionApi extends runtime.BaseAPI implements VpnConnectionApiInterface { + + /** + */ + async createVpnConnectionRaw(requestParameters: CreateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateVpnConnectionRequestToJSON(requestParameters.createVpnConnectionRequest); + + const request: runtime.RequestOpts = { + path: `/CreateVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVpnConnectionResponseFromJSON(jsonValue)); + } + + /** + */ + async createVpnConnection(requestParameters: CreateVpnConnectionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createVpnConnectionRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async createVpnConnectionRouteRaw(requestParameters: CreateVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = CreateVpnConnectionRouteRequestToJSON(requestParameters.createVpnConnectionRouteRequest); + + const request: runtime.RequestOpts = { + path: `/CreateVpnConnectionRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateVpnConnectionRouteResponseFromJSON(jsonValue)); + } + + /** + */ + async createVpnConnectionRoute(requestParameters: CreateVpnConnectionRouteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.createVpnConnectionRouteRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteVpnConnectionRaw(requestParameters: DeleteVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteVpnConnectionRequestToJSON(requestParameters.deleteVpnConnectionRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVpnConnectionResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteVpnConnection(requestParameters: DeleteVpnConnectionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteVpnConnectionRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async deleteVpnConnectionRouteRaw(requestParameters: DeleteVpnConnectionRouteOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = DeleteVpnConnectionRouteRequestToJSON(requestParameters.deleteVpnConnectionRouteRequest); + + const request: runtime.RequestOpts = { + path: `/DeleteVpnConnectionRoute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteVpnConnectionRouteResponseFromJSON(jsonValue)); + } + + /** + */ + async deleteVpnConnectionRoute(requestParameters: DeleteVpnConnectionRouteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.deleteVpnConnectionRouteRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async readVpnConnectionsRaw(requestParameters: ReadVpnConnectionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = ReadVpnConnectionsRequestToJSON(requestParameters.readVpnConnectionsRequest); + + const request: runtime.RequestOpts = { + path: `/ReadVpnConnections`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReadVpnConnectionsResponseFromJSON(jsonValue)); + } + + /** + */ + async readVpnConnections(requestParameters: ReadVpnConnectionsOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.readVpnConnectionsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async updateVpnConnectionRaw(requestParameters: UpdateVpnConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + + + const body: any = UpdateVpnConnectionRequestToJSON(requestParameters.updateVpnConnectionRequest); + + const request: runtime.RequestOpts = { + path: `/UpdateVpnConnection`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: body, + } + if (this.configuration && this.configuration.awsV4SignerParameters) { + const SignUrl = this.configuration.basePath + request.path; + const SignBody = JSON.stringify(request.body); + const signer = new runtime.AwsV4Signer(this.configuration.awsV4SignerParameters); + const signResult = await signer.sign('POST', SignUrl, headerParameters, SignBody); + //request.url = signResult.url; + //request.method = signResult.method; + request.headers = signResult.headers; + } + const response = await this.request(request, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateVpnConnectionResponseFromJSON(jsonValue)); + } + + /** + */ + async updateVpnConnection(requestParameters: UpdateVpnConnectionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { + const response = await this.updateVpnConnectionRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/index.ts b/src/apis/index.ts new file mode 100644 index 00000000..366003cc --- /dev/null +++ b/src/apis/index.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AccessKeyApi'; +export * from './AccountApi'; +export * from './ApiAccessPolicyApi'; +export * from './ApiAccessRuleApi'; +export * from './ApiLogApi'; +export * from './CaApi'; +export * from './CatalogApi'; +export * from './ClientGatewayApi'; +export * from './DhcpOptionApi'; +export * from './DirectLinkApi'; +export * from './DirectLinkInterfaceApi'; +export * from './FlexibleGpuApi'; +export * from './ImageApi'; +export * from './InternetServiceApi'; +export * from './KeypairApi'; +export * from './ListenerApi'; +export * from './LoadBalancerApi'; +export * from './LoadBalancerPolicyApi'; +export * from './LocationApi'; +export * from './NatServiceApi'; +export * from './NetApi'; +export * from './NetAccessPointApi'; +export * from './NetPeeringApi'; +export * from './NicApi'; +export * from './ProductTypeApi'; +export * from './PublicCatalogApi'; +export * from './PublicIpApi'; +export * from './QuotaApi'; +export * from './RegionApi'; +export * from './RouteApi'; +export * from './RouteTableApi'; +export * from './SecurityGroupApi'; +export * from './SecurityGroupRuleApi'; +export * from './ServerCertificateApi'; +export * from './SnapshotApi'; +export * from './SubnetApi'; +export * from './SubregionApi'; +export * from './TagApi'; +export * from './TaskApi'; +export * from './VirtualGatewayApi'; +export * from './VmApi'; +export * from './VolumeApi'; +export * from './VpnConnectionApi'; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..be9d1ede --- /dev/null +++ b/src/index.ts @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis'; +export * from './models'; diff --git a/src/models/AcceptNetPeeringRequest.ts b/src/models/AcceptNetPeeringRequest.ts new file mode 100644 index 00000000..befa3361 --- /dev/null +++ b/src/models/AcceptNetPeeringRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AcceptNetPeeringRequest + */ +export interface AcceptNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof AcceptNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to accept. + * @type {string} + * @memberof AcceptNetPeeringRequest + */ + netPeeringId: string; +} + +export function AcceptNetPeeringRequestFromJSON(json: any): AcceptNetPeeringRequest { + return AcceptNetPeeringRequestFromJSONTyped(json, false); +} + +export function AcceptNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptNetPeeringRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} + +export function AcceptNetPeeringRequestToJSON(value?: AcceptNetPeeringRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} + diff --git a/src/models/AcceptNetPeeringResponse.ts b/src/models/AcceptNetPeeringResponse.ts new file mode 100644 index 00000000..72eda3ab --- /dev/null +++ b/src/models/AcceptNetPeeringResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetPeering, + NetPeeringFromJSON, + NetPeeringFromJSONTyped, + NetPeeringToJSON, +} from './NetPeering'; + +/** + * + * @export + * @interface AcceptNetPeeringResponse + */ +export interface AcceptNetPeeringResponse { + /** + * + * @type {NetPeering} + * @memberof AcceptNetPeeringResponse + */ + netPeering?: NetPeering; + /** + * + * @type {ModelResponseContext} + * @memberof AcceptNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} + +export function AcceptNetPeeringResponseFromJSON(json: any): AcceptNetPeeringResponse { + return AcceptNetPeeringResponseFromJSONTyped(json, false); +} + +export function AcceptNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptNetPeeringResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netPeering': !exists(json, 'NetPeering') ? undefined : NetPeeringFromJSON(json['NetPeering']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function AcceptNetPeeringResponseToJSON(value?: AcceptNetPeeringResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetPeering': NetPeeringToJSON(value.netPeering), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/AccepterNet.ts b/src/models/AccepterNet.ts new file mode 100644 index 00000000..641ccc41 --- /dev/null +++ b/src/models/AccepterNet.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the accepter Net. + * @export + * @interface AccepterNet + */ +export interface AccepterNet { + /** + * The account ID of the owner of the accepter Net. + * @type {string} + * @memberof AccepterNet + */ + accountId?: string; + /** + * The IP range for the accepter Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof AccepterNet + */ + ipRange?: string; + /** + * The ID of the accepter Net. + * @type {string} + * @memberof AccepterNet + */ + netId?: string; +} + +export function AccepterNetFromJSON(json: any): AccepterNet { + return AccepterNetFromJSONTyped(json, false); +} + +export function AccepterNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccepterNet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + }; +} + +export function AccepterNetToJSON(value?: AccepterNet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + }; +} + diff --git a/src/models/AccessKey.ts b/src/models/AccessKey.ts new file mode 100644 index 00000000..efa5ab8f --- /dev/null +++ b/src/models/AccessKey.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the access key. + * @export + * @interface AccessKey + */ +export interface AccessKey { + /** + * The ID of the access key. + * @type {string} + * @memberof AccessKey + */ + accessKeyId?: string; + /** + * The date and time (UTC) of creation of the access key. + * @type {string} + * @memberof AccessKey + */ + creationDate?: string; + /** + * The date (UTC) at which the access key expires. + * @type {string} + * @memberof AccessKey + */ + expirationDate?: string; + /** + * The date and time (UTC) of the last modification of the access key. + * @type {string} + * @memberof AccessKey + */ + lastModificationDate?: string; + /** + * The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not). + * @type {string} + * @memberof AccessKey + */ + state?: string; +} + +export function AccessKeyFromJSON(json: any): AccessKey { + return AccessKeyFromJSONTyped(json, false); +} + +export function AccessKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessKey { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeyId': !exists(json, 'AccessKeyId') ? undefined : json['AccessKeyId'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'lastModificationDate': !exists(json, 'LastModificationDate') ? undefined : json['LastModificationDate'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} + +export function AccessKeyToJSON(value?: AccessKey | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeyId': value.accessKeyId, + 'CreationDate': value.creationDate, + 'ExpirationDate': value.expirationDate, + 'LastModificationDate': value.lastModificationDate, + 'State': value.state, + }; +} + diff --git a/src/models/AccessKeySecretKey.ts b/src/models/AccessKeySecretKey.ts new file mode 100644 index 00000000..26283913 --- /dev/null +++ b/src/models/AccessKeySecretKey.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the access key. + * @export + * @interface AccessKeySecretKey + */ +export interface AccessKeySecretKey { + /** + * The ID of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + accessKeyId?: string; + /** + * The date and time (UTC) of creation of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + creationDate?: string; + /** + * The date and time (UTC) at which the access key expires. + * @type {string} + * @memberof AccessKeySecretKey + */ + expirationDate?: string; + /** + * The date and time (UTC) of the last modification of the access key. + * @type {string} + * @memberof AccessKeySecretKey + */ + lastModificationDate?: string; + /** + * The access key that enables you to send requests. + * @type {string} + * @memberof AccessKeySecretKey + */ + secretKey?: string; + /** + * The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not). + * @type {string} + * @memberof AccessKeySecretKey + */ + state?: string; +} + +export function AccessKeySecretKeyFromJSON(json: any): AccessKeySecretKey { + return AccessKeySecretKeyFromJSONTyped(json, false); +} + +export function AccessKeySecretKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessKeySecretKey { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeyId': !exists(json, 'AccessKeyId') ? undefined : json['AccessKeyId'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'lastModificationDate': !exists(json, 'LastModificationDate') ? undefined : json['LastModificationDate'], + 'secretKey': !exists(json, 'SecretKey') ? undefined : json['SecretKey'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} + +export function AccessKeySecretKeyToJSON(value?: AccessKeySecretKey | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeyId': value.accessKeyId, + 'CreationDate': value.creationDate, + 'ExpirationDate': value.expirationDate, + 'LastModificationDate': value.lastModificationDate, + 'SecretKey': value.secretKey, + 'State': value.state, + }; +} + diff --git a/src/models/AccessLog.ts b/src/models/AccessLog.ts new file mode 100644 index 00000000..24162e7a --- /dev/null +++ b/src/models/AccessLog.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about access logs. + * @export + * @interface AccessLog + */ +export interface AccessLog { + /** + * If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the `OsuBucketName` parameter is required. + * @type {boolean} + * @memberof AccessLog + */ + isEnabled?: boolean; + /** + * The name of the OOS bucket for the access logs. + * @type {string} + * @memberof AccessLog + */ + osuBucketName?: string; + /** + * The path to the folder of the access logs in your OOS bucket (by default, the `root` level of your bucket). + * @type {string} + * @memberof AccessLog + */ + osuBucketPrefix?: string; + /** + * The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5 or 60 (by default, 60). + * @type {number} + * @memberof AccessLog + */ + publicationInterval?: number; +} + +export function AccessLogFromJSON(json: any): AccessLog { + return AccessLogFromJSONTyped(json, false); +} + +export function AccessLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessLog { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'isEnabled': !exists(json, 'IsEnabled') ? undefined : json['IsEnabled'], + 'osuBucketName': !exists(json, 'OsuBucketName') ? undefined : json['OsuBucketName'], + 'osuBucketPrefix': !exists(json, 'OsuBucketPrefix') ? undefined : json['OsuBucketPrefix'], + 'publicationInterval': !exists(json, 'PublicationInterval') ? undefined : json['PublicationInterval'], + }; +} + +export function AccessLogToJSON(value?: AccessLog | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'IsEnabled': value.isEnabled, + 'OsuBucketName': value.osuBucketName, + 'OsuBucketPrefix': value.osuBucketPrefix, + 'PublicationInterval': value.publicationInterval, + }; +} + diff --git a/src/models/Account.ts b/src/models/Account.ts new file mode 100644 index 00000000..58dce22a --- /dev/null +++ b/src/models/Account.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the account. + * @export + * @interface Account + */ +export interface Account { + /** + * The ID of the account. + * @type {string} + * @memberof Account + */ + accountId?: string; + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. + * @type {Array} + * @memberof Account + */ + additionalEmails?: Array; + /** + * The city of the account owner. + * @type {string} + * @memberof Account + */ + city?: string; + /** + * The name of the company for the account. + * @type {string} + * @memberof Account + */ + companyName?: string; + /** + * The country of the account owner. + * @type {string} + * @memberof Account + */ + country?: string; + /** + * The ID of the customer. + * @type {string} + * @memberof Account + */ + customerId?: string; + /** + * The main email address for the account. This address is used for your credentials and for notifications. + * @type {string} + * @memberof Account + */ + email?: string; + /** + * The first name of the account owner. + * @type {string} + * @memberof Account + */ + firstName?: string; + /** + * The job title of the account owner. + * @type {string} + * @memberof Account + */ + jobTitle?: string; + /** + * The last name of the account owner. + * @type {string} + * @memberof Account + */ + lastName?: string; + /** + * The mobile phone number of the account owner. + * @type {string} + * @memberof Account + */ + mobileNumber?: string; + /** + * The landline phone number of the account owner. + * @type {string} + * @memberof Account + */ + phoneNumber?: string; + /** + * The state/province of the account. + * @type {string} + * @memberof Account + */ + stateProvince?: string; + /** + * The value added tax (VAT) number for the account. + * @type {string} + * @memberof Account + */ + vatNumber?: string; + /** + * The ZIP code of the city. + * @type {string} + * @memberof Account + */ + zipCode?: string; +} + +export function AccountFromJSON(json: any): Account { + return AccountFromJSONTyped(json, false); +} + +export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'additionalEmails': !exists(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': !exists(json, 'City') ? undefined : json['City'], + 'companyName': !exists(json, 'CompanyName') ? undefined : json['CompanyName'], + 'country': !exists(json, 'Country') ? undefined : json['Country'], + 'customerId': !exists(json, 'CustomerId') ? undefined : json['CustomerId'], + 'email': !exists(json, 'Email') ? undefined : json['Email'], + 'firstName': !exists(json, 'FirstName') ? undefined : json['FirstName'], + 'jobTitle': !exists(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': !exists(json, 'LastName') ? undefined : json['LastName'], + 'mobileNumber': !exists(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !exists(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !exists(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !exists(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': !exists(json, 'ZipCode') ? undefined : json['ZipCode'], + }; +} + +export function AccountToJSON(value?: Account | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'CustomerId': value.customerId, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} + diff --git a/src/models/ApiAccessPolicy.ts b/src/models/ApiAccessPolicy.ts new file mode 100644 index 00000000..723f021e --- /dev/null +++ b/src/models/ApiAccessPolicy.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the API access policy. + * @export + * @interface ApiAccessPolicy + */ +export interface ApiAccessPolicy { + /** + * The maximum possible lifetime for your access keys, in seconds. If `0`, your access keys can have unlimited lifetimes. + * @type {number} + * @memberof ApiAccessPolicy + */ + maxAccessKeyExpirationSeconds?: number; + /** + * If true, a trusted session is activated, allowing you to bypass Certificate Authorities (CAs) enforcement. For more information, see the `ApiKeyAuth` authentication scheme in the [Authentication](#authentication) section. + * @type {boolean} + * @memberof ApiAccessPolicy + */ + requireTrustedEnv?: boolean; +} + +export function ApiAccessPolicyFromJSON(json: any): ApiAccessPolicy { + return ApiAccessPolicyFromJSONTyped(json, false); +} + +export function ApiAccessPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAccessPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxAccessKeyExpirationSeconds': !exists(json, 'MaxAccessKeyExpirationSeconds') ? undefined : json['MaxAccessKeyExpirationSeconds'], + 'requireTrustedEnv': !exists(json, 'RequireTrustedEnv') ? undefined : json['RequireTrustedEnv'], + }; +} + +export function ApiAccessPolicyToJSON(value?: ApiAccessPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'MaxAccessKeyExpirationSeconds': value.maxAccessKeyExpirationSeconds, + 'RequireTrustedEnv': value.requireTrustedEnv, + }; +} + diff --git a/src/models/ApiAccessRule.ts b/src/models/ApiAccessRule.ts new file mode 100644 index 00000000..0b9fd1b8 --- /dev/null +++ b/src/models/ApiAccessRule.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the API access rule. + * @export + * @interface ApiAccessRule + */ +export interface ApiAccessRule { + /** + * The ID of the API access rule. + * @type {string} + * @memberof ApiAccessRule + */ + apiAccessRuleId?: string; + /** + * One or more IDs of Client Certificate Authorities (CAs) used for the API access rule. + * @type {Array} + * @memberof ApiAccessRule + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof ApiAccessRule + */ + cns?: Array; + /** + * The description of the API access rule. + * @type {string} + * @memberof ApiAccessRule + */ + description?: string; + /** + * One or more IP ranges used for the API access rule, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof ApiAccessRule + */ + ipRanges?: Array; +} + +export function ApiAccessRuleFromJSON(json: any): ApiAccessRule { + return ApiAccessRuleFromJSONTyped(json, false); +} + +export function ApiAccessRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAccessRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRuleId': !exists(json, 'ApiAccessRuleId') ? undefined : json['ApiAccessRuleId'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} + +export function ApiAccessRuleToJSON(value?: ApiAccessRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRuleId': value.apiAccessRuleId, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'IpRanges': value.ipRanges, + }; +} + diff --git a/src/models/ApplicationStickyCookiePolicy.ts b/src/models/ApplicationStickyCookiePolicy.ts new file mode 100644 index 00000000..45c3aae2 --- /dev/null +++ b/src/models/ApplicationStickyCookiePolicy.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the stickiness policy. + * @export + * @interface ApplicationStickyCookiePolicy + */ +export interface ApplicationStickyCookiePolicy { + /** + * The name of the application cookie used for stickiness. + * @type {string} + * @memberof ApplicationStickyCookiePolicy + */ + cookieName?: string; + /** + * The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer. + * @type {string} + * @memberof ApplicationStickyCookiePolicy + */ + policyName?: string; +} + +export function ApplicationStickyCookiePolicyFromJSON(json: any): ApplicationStickyCookiePolicy { + return ApplicationStickyCookiePolicyFromJSONTyped(json, false); +} + +export function ApplicationStickyCookiePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationStickyCookiePolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cookieName': !exists(json, 'CookieName') ? undefined : json['CookieName'], + 'policyName': !exists(json, 'PolicyName') ? undefined : json['PolicyName'], + }; +} + +export function ApplicationStickyCookiePolicyToJSON(value?: ApplicationStickyCookiePolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CookieName': value.cookieName, + 'PolicyName': value.policyName, + }; +} + diff --git a/src/models/BackendVmHealth.ts b/src/models/BackendVmHealth.ts new file mode 100644 index 00000000..bd216d73 --- /dev/null +++ b/src/models/BackendVmHealth.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the health of a back-end VM. + * @export + * @interface BackendVmHealth + */ +export interface BackendVmHealth { + /** + * The description of the state of the back-end VM. + * @type {string} + * @memberof BackendVmHealth + */ + description?: string; + /** + * The state of the back-end VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof BackendVmHealth + */ + state?: string; + /** + * Information about the cause of `OutOfService` VMs.
+ * Specifically, whether the cause is Elastic Load Balancing or the VM (`ELB` \| `Instance` \| `N/A`). + * @type {string} + * @memberof BackendVmHealth + */ + stateReason?: string; + /** + * The ID of the back-end VM. + * @type {string} + * @memberof BackendVmHealth + */ + vmId?: string; +} + +export function BackendVmHealthFromJSON(json: any): BackendVmHealth { + return BackendVmHealthFromJSONTyped(json, false); +} + +export function BackendVmHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackendVmHealth { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateReason': !exists(json, 'StateReason') ? undefined : json['StateReason'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function BackendVmHealthToJSON(value?: BackendVmHealth | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Description': value.description, + 'State': value.state, + 'StateReason': value.stateReason, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/BlockDeviceMappingCreated.ts b/src/models/BlockDeviceMappingCreated.ts new file mode 100644 index 00000000..ea0785aa --- /dev/null +++ b/src/models/BlockDeviceMappingCreated.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BsuCreated, + BsuCreatedFromJSON, + BsuCreatedFromJSONTyped, + BsuCreatedToJSON, +} from './BsuCreated'; + +/** + * Information about the created block device mapping. + * @export + * @interface BlockDeviceMappingCreated + */ +export interface BlockDeviceMappingCreated { + /** + * + * @type {BsuCreated} + * @memberof BlockDeviceMappingCreated + */ + bsu?: BsuCreated; + /** + * The name of the device. + * @type {string} + * @memberof BlockDeviceMappingCreated + */ + deviceName?: string; +} + +export function BlockDeviceMappingCreatedFromJSON(json: any): BlockDeviceMappingCreated { + return BlockDeviceMappingCreatedFromJSONTyped(json, false); +} + +export function BlockDeviceMappingCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingCreated { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bsu': !exists(json, 'Bsu') ? undefined : BsuCreatedFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + }; +} + +export function BlockDeviceMappingCreatedToJSON(value?: BlockDeviceMappingCreated | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Bsu': BsuCreatedToJSON(value.bsu), + 'DeviceName': value.deviceName, + }; +} + diff --git a/src/models/BlockDeviceMappingImage.ts b/src/models/BlockDeviceMappingImage.ts new file mode 100644 index 00000000..f146abbc --- /dev/null +++ b/src/models/BlockDeviceMappingImage.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BsuToCreate, + BsuToCreateFromJSON, + BsuToCreateFromJSONTyped, + BsuToCreateToJSON, +} from './BsuToCreate'; + +/** + * One or more parameters used to automatically set up volumes when the VM is created. + * @export + * @interface BlockDeviceMappingImage + */ +export interface BlockDeviceMappingImage { + /** + * + * @type {BsuToCreate} + * @memberof BlockDeviceMappingImage + */ + bsu?: BsuToCreate; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingImage + */ + deviceName?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingImage + */ + virtualDeviceName?: string; +} + +export function BlockDeviceMappingImageFromJSON(json: any): BlockDeviceMappingImage { + return BlockDeviceMappingImageFromJSONTyped(json, false); +} + +export function BlockDeviceMappingImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingImage { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bsu': !exists(json, 'Bsu') ? undefined : BsuToCreateFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'virtualDeviceName': !exists(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} + +export function BlockDeviceMappingImageToJSON(value?: BlockDeviceMappingImage | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Bsu': BsuToCreateToJSON(value.bsu), + 'DeviceName': value.deviceName, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} + diff --git a/src/models/BlockDeviceMappingVmCreation.ts b/src/models/BlockDeviceMappingVmCreation.ts new file mode 100644 index 00000000..92b1d4c2 --- /dev/null +++ b/src/models/BlockDeviceMappingVmCreation.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BsuToCreate, + BsuToCreateFromJSON, + BsuToCreateFromJSONTyped, + BsuToCreateToJSON, +} from './BsuToCreate'; + +/** + * Information about the block device mapping. + * @export + * @interface BlockDeviceMappingVmCreation + */ +export interface BlockDeviceMappingVmCreation { + /** + * + * @type {BsuToCreate} + * @memberof BlockDeviceMappingVmCreation + */ + bsu?: BsuToCreate; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + deviceName?: string; + /** + * Removes the device which is included in the block device mapping of the OMI. + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + noDevice?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingVmCreation + */ + virtualDeviceName?: string; +} + +export function BlockDeviceMappingVmCreationFromJSON(json: any): BlockDeviceMappingVmCreation { + return BlockDeviceMappingVmCreationFromJSONTyped(json, false); +} + +export function BlockDeviceMappingVmCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingVmCreation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bsu': !exists(json, 'Bsu') ? undefined : BsuToCreateFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'noDevice': !exists(json, 'NoDevice') ? undefined : json['NoDevice'], + 'virtualDeviceName': !exists(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} + +export function BlockDeviceMappingVmCreationToJSON(value?: BlockDeviceMappingVmCreation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Bsu': BsuToCreateToJSON(value.bsu), + 'DeviceName': value.deviceName, + 'NoDevice': value.noDevice, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} + diff --git a/src/models/BlockDeviceMappingVmUpdate.ts b/src/models/BlockDeviceMappingVmUpdate.ts new file mode 100644 index 00000000..4f78f2b8 --- /dev/null +++ b/src/models/BlockDeviceMappingVmUpdate.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BsuToUpdateVm, + BsuToUpdateVmFromJSON, + BsuToUpdateVmFromJSONTyped, + BsuToUpdateVmToJSON, +} from './BsuToUpdateVm'; + +/** + * Information about the block device mapping. + * @export + * @interface BlockDeviceMappingVmUpdate + */ +export interface BlockDeviceMappingVmUpdate { + /** + * + * @type {BsuToUpdateVm} + * @memberof BlockDeviceMappingVmUpdate + */ + bsu?: BsuToUpdateVm; + /** + * The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX` or `/dev/xvdX` (where `X` is a letter between `b` and `z`). + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + deviceName?: string; + /** + * Removes the device which is included in the block device mapping of the OMI. + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + noDevice?: string; + /** + * The name of the virtual device (ephemeralN). + * @type {string} + * @memberof BlockDeviceMappingVmUpdate + */ + virtualDeviceName?: string; +} + +export function BlockDeviceMappingVmUpdateFromJSON(json: any): BlockDeviceMappingVmUpdate { + return BlockDeviceMappingVmUpdateFromJSONTyped(json, false); +} + +export function BlockDeviceMappingVmUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockDeviceMappingVmUpdate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bsu': !exists(json, 'Bsu') ? undefined : BsuToUpdateVmFromJSON(json['Bsu']), + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'noDevice': !exists(json, 'NoDevice') ? undefined : json['NoDevice'], + 'virtualDeviceName': !exists(json, 'VirtualDeviceName') ? undefined : json['VirtualDeviceName'], + }; +} + +export function BlockDeviceMappingVmUpdateToJSON(value?: BlockDeviceMappingVmUpdate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Bsu': BsuToUpdateVmToJSON(value.bsu), + 'DeviceName': value.deviceName, + 'NoDevice': value.noDevice, + 'VirtualDeviceName': value.virtualDeviceName, + }; +} + diff --git a/src/models/BsuCreated.ts b/src/models/BsuCreated.ts new file mode 100644 index 00000000..06606233 --- /dev/null +++ b/src/models/BsuCreated.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the created BSU volume. + * @export + * @interface BsuCreated + */ +export interface BsuCreated { + /** + * If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuCreated + */ + deleteOnVmDeletion?: boolean; + /** + * The time and date of attachment of the volume to the VM. + * @type {Date} + * @memberof BsuCreated + */ + linkDate?: Date; + /** + * The state of the volume. + * @type {string} + * @memberof BsuCreated + */ + state?: string; + /** + * The ID of the volume. + * @type {string} + * @memberof BsuCreated + */ + volumeId?: string; +} + +export function BsuCreatedFromJSON(json: any): BsuCreated { + return BsuCreatedFromJSONTyped(json, false); +} + +export function BsuCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuCreated { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'linkDate': !exists(json, 'LinkDate') ? undefined : (new Date(json['LinkDate'])), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} + +export function BsuCreatedToJSON(value?: BsuCreated | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'LinkDate': value.linkDate === undefined ? undefined : (value.linkDate.toISOString().substr(0,10)), + 'State': value.state, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/BsuToCreate.ts b/src/models/BsuToCreate.ts new file mode 100644 index 00000000..11980bd9 --- /dev/null +++ b/src/models/BsuToCreate.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the BSU volume to create. + * @export + * @interface BsuToCreate + */ +export interface BsuToCreate { + /** + * By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuToCreate + */ + deleteOnVmDeletion?: boolean; + /** + * The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. + * @type {number} + * @memberof BsuToCreate + */ + iops?: number; + /** + * The ID of the snapshot used to create the volume. + * @type {string} + * @memberof BsuToCreate + */ + snapshotId?: string; + /** + * The size of the volume, in gibibytes (GiB).
+ * If you specify a snapshot ID, the volume size must be at least equal to the snapshot size.
+ * If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one. + * @type {number} + * @memberof BsuToCreate + */ + volumeSize?: number; + /** + * The type of the volume (`standard` \| `io1` \| `gp2`). If not specified in the request, a `standard` volume is created.
+ * For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). + * @type {string} + * @memberof BsuToCreate + */ + volumeType?: string; +} + +export function BsuToCreateFromJSON(json: any): BsuToCreate { + return BsuToCreateFromJSONTyped(json, false); +} + +export function BsuToCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuToCreate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'volumeSize': !exists(json, 'VolumeSize') ? undefined : json['VolumeSize'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} + +export function BsuToCreateToJSON(value?: BsuToCreate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'Iops': value.iops, + 'SnapshotId': value.snapshotId, + 'VolumeSize': value.volumeSize, + 'VolumeType': value.volumeType, + }; +} + diff --git a/src/models/BsuToUpdateVm.ts b/src/models/BsuToUpdateVm.ts new file mode 100644 index 00000000..70f9374d --- /dev/null +++ b/src/models/BsuToUpdateVm.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the BSU volume. + * @export + * @interface BsuToUpdateVm + */ +export interface BsuToUpdateVm { + /** + * If set to true, the volume is deleted when terminating the VM. If set to false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof BsuToUpdateVm + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the volume. + * @type {string} + * @memberof BsuToUpdateVm + */ + volumeId?: string; +} + +export function BsuToUpdateVmFromJSON(json: any): BsuToUpdateVm { + return BsuToUpdateVmFromJSONTyped(json, false); +} + +export function BsuToUpdateVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): BsuToUpdateVm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} + +export function BsuToUpdateVmToJSON(value?: BsuToUpdateVm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/Ca.ts b/src/models/Ca.ts new file mode 100644 index 00000000..4e3e1537 --- /dev/null +++ b/src/models/Ca.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the Client Certificate Authority (CA). + * @export + * @interface Ca + */ +export interface Ca { + /** + * The fingerprint of the CA. + * @type {string} + * @memberof Ca + */ + caFingerprint?: string; + /** + * The ID of the CA. + * @type {string} + * @memberof Ca + */ + caId?: string; + /** + * The description of the CA. + * @type {string} + * @memberof Ca + */ + description?: string; +} + +export function CaFromJSON(json: any): Ca { + return CaFromJSONTyped(json, false); +} + +export function CaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ca { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caFingerprint': !exists(json, 'CaFingerprint') ? undefined : json['CaFingerprint'], + 'caId': !exists(json, 'CaId') ? undefined : json['CaId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + }; +} + +export function CaToJSON(value?: Ca | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CaFingerprint': value.caFingerprint, + 'CaId': value.caId, + 'Description': value.description, + }; +} + diff --git a/src/models/Catalog.ts b/src/models/Catalog.ts new file mode 100644 index 00000000..2ce54744 --- /dev/null +++ b/src/models/Catalog.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + CatalogEntry, + CatalogEntryFromJSON, + CatalogEntryFromJSONTyped, + CatalogEntryToJSON, +} from './CatalogEntry'; + +/** + * Information about our catalog of prices. + * @export + * @interface Catalog + */ +export interface Catalog { + /** + * One or more catalog entries. + * @type {Array} + * @memberof Catalog + */ + entries?: Array; +} + +export function CatalogFromJSON(json: any): Catalog { + return CatalogFromJSONTyped(json, false); +} + +export function CatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Catalog { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'entries': !exists(json, 'Entries') ? undefined : ((json['Entries'] as Array).map(CatalogEntryFromJSON)), + }; +} + +export function CatalogToJSON(value?: Catalog | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Entries': value.entries === undefined ? undefined : ((value.entries as Array).map(CatalogEntryToJSON)), + }; +} + diff --git a/src/models/CatalogEntry.ts b/src/models/CatalogEntry.ts new file mode 100644 index 00000000..a4a7c1b8 --- /dev/null +++ b/src/models/CatalogEntry.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the catalog entry. + * @export + * @interface CatalogEntry + */ +export interface CatalogEntry { + /** + * The category of the catalog entry (for example, `network`). + * @type {string} + * @memberof CatalogEntry + */ + category?: string; + /** + * When returned and equal to `PER_MONTH`, the price of the catalog entry is calculated on a monthly basis. + * @type {string} + * @memberof CatalogEntry + */ + flags?: string; + /** + * The API call associated with the catalog entry (for example, `CreateVms` or `RunInstances`). + * @type {string} + * @memberof CatalogEntry + */ + operation?: string; + /** + * The service associated with the catalog entry (`TinaOS-FCU`, `TinaOS-LBU`, `TinaOS-DirectLink`, or `TinaOS-OOS`). + * @type {string} + * @memberof CatalogEntry + */ + service?: string; + /** + * The Subregion associated with the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + subregionName?: string; + /** + * The description of the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + title?: string; + /** + * The type of resource associated with the catalog entry. + * @type {string} + * @memberof CatalogEntry + */ + type?: string; + /** + * The unit price of the catalog entry, in the currency of the catalog of the Region where the API method was used. + * @type {number} + * @memberof CatalogEntry + */ + unitPrice?: number; +} + +export function CatalogEntryFromJSON(json: any): CatalogEntry { + return CatalogEntryFromJSONTyped(json, false); +} + +export function CatalogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CatalogEntry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'category': !exists(json, 'Category') ? undefined : json['Category'], + 'flags': !exists(json, 'Flags') ? undefined : json['Flags'], + 'operation': !exists(json, 'Operation') ? undefined : json['Operation'], + 'service': !exists(json, 'Service') ? undefined : json['Service'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'title': !exists(json, 'Title') ? undefined : json['Title'], + 'type': !exists(json, 'Type') ? undefined : json['Type'], + 'unitPrice': !exists(json, 'UnitPrice') ? undefined : json['UnitPrice'], + }; +} + +export function CatalogEntryToJSON(value?: CatalogEntry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Category': value.category, + 'Flags': value.flags, + 'Operation': value.operation, + 'Service': value.service, + 'SubregionName': value.subregionName, + 'Title': value.title, + 'Type': value.type, + 'UnitPrice': value.unitPrice, + }; +} + diff --git a/src/models/CheckAuthenticationRequest.ts b/src/models/CheckAuthenticationRequest.ts new file mode 100644 index 00000000..7cb46681 --- /dev/null +++ b/src/models/CheckAuthenticationRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CheckAuthenticationRequest + */ +export interface CheckAuthenticationRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CheckAuthenticationRequest + */ + dryRun?: boolean; + /** + * The email address of the account. + * @type {string} + * @memberof CheckAuthenticationRequest + */ + login: string; + /** + * The password of the account. + * @type {string} + * @memberof CheckAuthenticationRequest + */ + password: string; +} + +export function CheckAuthenticationRequestFromJSON(json: any): CheckAuthenticationRequest { + return CheckAuthenticationRequestFromJSONTyped(json, false); +} + +export function CheckAuthenticationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAuthenticationRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'login': json['Login'], + 'password': json['Password'], + }; +} + +export function CheckAuthenticationRequestToJSON(value?: CheckAuthenticationRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Login': value.login, + 'Password': value.password, + }; +} + diff --git a/src/models/CheckAuthenticationResponse.ts b/src/models/CheckAuthenticationResponse.ts new file mode 100644 index 00000000..0be8fa0a --- /dev/null +++ b/src/models/CheckAuthenticationResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CheckAuthenticationResponse + */ +export interface CheckAuthenticationResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CheckAuthenticationResponse + */ + responseContext?: ModelResponseContext; +} + +export function CheckAuthenticationResponseFromJSON(json: any): CheckAuthenticationResponse { + return CheckAuthenticationResponseFromJSONTyped(json, false); +} + +export function CheckAuthenticationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAuthenticationResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CheckAuthenticationResponseToJSON(value?: CheckAuthenticationResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ClientGateway.ts b/src/models/ClientGateway.ts new file mode 100644 index 00000000..48d78d1b --- /dev/null +++ b/src/models/ClientGateway.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the client gateway. + * @export + * @interface ClientGateway + */ +export interface ClientGateway { + /** + * The Autonomous System Number (ASN) used by the Border Gateway Protocol (BGP) to find the path to your client gateway through the Internet. + * @type {number} + * @memberof ClientGateway + */ + bgpAsn?: number; + /** + * The ID of the client gateway. + * @type {string} + * @memberof ClientGateway + */ + clientGatewayId?: string; + /** + * The type of communication tunnel used by the client gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof ClientGateway + */ + connectionType?: string; + /** + * The public IPv4 address of the client gateway (must be a fixed address into a NATed network). + * @type {string} + * @memberof ClientGateway + */ + publicIp?: string; + /** + * The state of the client gateway (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof ClientGateway + */ + state?: string; + /** + * One or more tags associated with the client gateway. + * @type {Array} + * @memberof ClientGateway + */ + tags?: Array; +} + +export function ClientGatewayFromJSON(json: any): ClientGateway { + return ClientGatewayFromJSONTyped(json, false); +} + +export function ClientGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGateway { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bgpAsn': !exists(json, 'BgpAsn') ? undefined : json['BgpAsn'], + 'clientGatewayId': !exists(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'connectionType': !exists(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function ClientGatewayToJSON(value?: ClientGateway | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BgpAsn': value.bgpAsn, + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'PublicIp': value.publicIp, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/ConsumptionEntry.ts b/src/models/ConsumptionEntry.ts new file mode 100644 index 00000000..2e3d6de5 --- /dev/null +++ b/src/models/ConsumptionEntry.ts @@ -0,0 +1,136 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the resources consumed during the specified time period. + * @export + * @interface ConsumptionEntry + */ +export interface ConsumptionEntry { + /** + * The ID of your TINA account. + * @type {string} + * @memberof ConsumptionEntry + */ + accountId?: string; + /** + * The category of the resource (for example, `network`). + * @type {string} + * @memberof ConsumptionEntry + */ + category?: string; + /** + * The beginning of the time period. + * @type {string} + * @memberof ConsumptionEntry + */ + fromDate?: string; + /** + * The API call that triggered the resource consumption (for example, `RunInstances` or `CreateVolume`). + * @type {string} + * @memberof ConsumptionEntry + */ + operation?: string; + /** + * The ID of the TINA account which is billed for your consumption. It can be different from your account in the `AccountId` parameter. + * @type {string} + * @memberof ConsumptionEntry + */ + payingAccountId?: string; + /** + * The service of the API call (`TinaOS-FCU`, `TinaOS-LBU`, `TinaOS-DirectLink`, `TinaOS-OOS`, or `TinaOS-OSU`). + * @type {string} + * @memberof ConsumptionEntry + */ + service?: string; + /** + * The name of the Subregion. + * @type {string} + * @memberof ConsumptionEntry + */ + subregionName?: string; + /** + * A description of the consumed resource. + * @type {string} + * @memberof ConsumptionEntry + */ + title?: string; + /** + * The end of the time period. + * @type {string} + * @memberof ConsumptionEntry + */ + toDate?: string; + /** + * The type of resource, depending on the API call. + * @type {string} + * @memberof ConsumptionEntry + */ + type?: string; + /** + * The consumed amount for the resource. The unit depends on the resource type. For more information, see the `Title` element. + * @type {number} + * @memberof ConsumptionEntry + */ + value?: number; +} + +export function ConsumptionEntryFromJSON(json: any): ConsumptionEntry { + return ConsumptionEntryFromJSONTyped(json, false); +} + +export function ConsumptionEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsumptionEntry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'category': !exists(json, 'Category') ? undefined : json['Category'], + 'fromDate': !exists(json, 'FromDate') ? undefined : json['FromDate'], + 'operation': !exists(json, 'Operation') ? undefined : json['Operation'], + 'payingAccountId': !exists(json, 'PayingAccountId') ? undefined : json['PayingAccountId'], + 'service': !exists(json, 'Service') ? undefined : json['Service'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'title': !exists(json, 'Title') ? undefined : json['Title'], + 'toDate': !exists(json, 'ToDate') ? undefined : json['ToDate'], + 'type': !exists(json, 'Type') ? undefined : json['Type'], + 'value': !exists(json, 'Value') ? undefined : json['Value'], + }; +} + +export function ConsumptionEntryToJSON(value?: ConsumptionEntry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'Category': value.category, + 'FromDate': value.fromDate, + 'Operation': value.operation, + 'PayingAccountId': value.payingAccountId, + 'Service': value.service, + 'SubregionName': value.subregionName, + 'Title': value.title, + 'ToDate': value.toDate, + 'Type': value.type, + 'Value': value.value, + }; +} + diff --git a/src/models/CreateAccessKeyRequest.ts b/src/models/CreateAccessKeyRequest.ts new file mode 100644 index 00000000..d97f8882 --- /dev/null +++ b/src/models/CreateAccessKeyRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateAccessKeyRequest + */ +export interface CreateAccessKeyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateAccessKeyRequest + */ + dryRun?: boolean; + /** + * The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). To remove an existing expiration date, use the method without specifying this parameter. + * @type {string} + * @memberof CreateAccessKeyRequest + */ + expirationDate?: string; +} + +export function CreateAccessKeyRequestFromJSON(json: any): CreateAccessKeyRequest { + return CreateAccessKeyRequestFromJSONTyped(json, false); +} + +export function CreateAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccessKeyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + }; +} + +export function CreateAccessKeyRequestToJSON(value?: CreateAccessKeyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ExpirationDate': value.expirationDate, + }; +} + diff --git a/src/models/CreateAccessKeyResponse.ts b/src/models/CreateAccessKeyResponse.ts new file mode 100644 index 00000000..7d82d296 --- /dev/null +++ b/src/models/CreateAccessKeyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccessKeySecretKey, + AccessKeySecretKeyFromJSON, + AccessKeySecretKeyFromJSONTyped, + AccessKeySecretKeyToJSON, +} from './AccessKeySecretKey'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateAccessKeyResponse + */ +export interface CreateAccessKeyResponse { + /** + * + * @type {AccessKeySecretKey} + * @memberof CreateAccessKeyResponse + */ + accessKey?: AccessKeySecretKey; + /** + * + * @type {ModelResponseContext} + * @memberof CreateAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateAccessKeyResponseFromJSON(json: any): CreateAccessKeyResponse { + return CreateAccessKeyResponseFromJSONTyped(json, false); +} + +export function CreateAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccessKeyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKey': !exists(json, 'AccessKey') ? undefined : AccessKeySecretKeyFromJSON(json['AccessKey']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateAccessKeyResponseToJSON(value?: CreateAccessKeyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKey': AccessKeySecretKeyToJSON(value.accessKey), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateAccountRequest.ts b/src/models/CreateAccountRequest.ts new file mode 100644 index 00000000..b0473a78 --- /dev/null +++ b/src/models/CreateAccountRequest.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateAccountRequest + */ +export interface CreateAccountRequest { + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. If you already have a list of additional emails registered, you cannot add to it, only replace it. To remove all registered additional emails, specify an empty list. + * @type {Array} + * @memberof CreateAccountRequest + */ + additionalEmails?: Array; + /** + * The city of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + city: string; + /** + * The name of the company for the account. + * @type {string} + * @memberof CreateAccountRequest + */ + companyName: string; + /** + * The country of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + country: string; + /** + * The ID of the customer. It must be 8 digits. + * @type {string} + * @memberof CreateAccountRequest + */ + customerId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateAccountRequest + */ + dryRun?: boolean; + /** + * The main email address for the account. This address is used for your credentials and notifications. + * @type {string} + * @memberof CreateAccountRequest + */ + email: string; + /** + * The first name of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + firstName: string; + /** + * The job title of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + jobTitle?: string; + /** + * The last name of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + lastName: string; + /** + * The mobile phone number of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + mobileNumber?: string; + /** + * The landline phone number of the account owner. + * @type {string} + * @memberof CreateAccountRequest + */ + phoneNumber?: string; + /** + * The state/province of the account. + * @type {string} + * @memberof CreateAccountRequest + */ + stateProvince?: string; + /** + * The value added tax (VAT) number for the account. + * @type {string} + * @memberof CreateAccountRequest + */ + vatNumber?: string; + /** + * The ZIP code of the city. + * @type {string} + * @memberof CreateAccountRequest + */ + zipCode: string; +} + +export function CreateAccountRequestFromJSON(json: any): CreateAccountRequest { + return CreateAccountRequestFromJSONTyped(json, false); +} + +export function CreateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'additionalEmails': !exists(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': json['City'], + 'companyName': json['CompanyName'], + 'country': json['Country'], + 'customerId': json['CustomerId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'email': json['Email'], + 'firstName': json['FirstName'], + 'jobTitle': !exists(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': json['LastName'], + 'mobileNumber': !exists(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !exists(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !exists(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !exists(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': json['ZipCode'], + }; +} + +export function CreateAccountRequestToJSON(value?: CreateAccountRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'CustomerId': value.customerId, + 'DryRun': value.dryRun, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} + diff --git a/src/models/CreateAccountResponse.ts b/src/models/CreateAccountResponse.ts new file mode 100644 index 00000000..ccc4f801 --- /dev/null +++ b/src/models/CreateAccountResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Account, + AccountFromJSON, + AccountFromJSONTyped, + AccountToJSON, +} from './Account'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateAccountResponse + */ +export interface CreateAccountResponse { + /** + * + * @type {Account} + * @memberof CreateAccountResponse + */ + account?: Account; + /** + * + * @type {ModelResponseContext} + * @memberof CreateAccountResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateAccountResponseFromJSON(json: any): CreateAccountResponse { + return CreateAccountResponseFromJSONTyped(json, false); +} + +export function CreateAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'account': !exists(json, 'Account') ? undefined : AccountFromJSON(json['Account']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateAccountResponseToJSON(value?: CreateAccountResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Account': AccountToJSON(value.account), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateApiAccessRuleRequest.ts b/src/models/CreateApiAccessRuleRequest.ts new file mode 100644 index 00000000..928943c9 --- /dev/null +++ b/src/models/CreateApiAccessRuleRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateApiAccessRuleRequest + */ +export interface CreateApiAccessRuleRequest { + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). If this parameter is specified, you must also specify the `CaIds` parameter. + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + cns?: Array; + /** + * A description for the API access rule. + * @type {string} + * @memberof CreateApiAccessRuleRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateApiAccessRuleRequest + */ + dryRun?: boolean; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof CreateApiAccessRuleRequest + */ + ipRanges?: Array; +} + +export function CreateApiAccessRuleRequestFromJSON(json: any): CreateApiAccessRuleRequest { + return CreateApiAccessRuleRequestFromJSONTyped(json, false); +} + +export function CreateApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiAccessRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} + +export function CreateApiAccessRuleRequestToJSON(value?: CreateApiAccessRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'DryRun': value.dryRun, + 'IpRanges': value.ipRanges, + }; +} + diff --git a/src/models/CreateApiAccessRuleResponse.ts b/src/models/CreateApiAccessRuleResponse.ts new file mode 100644 index 00000000..08532488 --- /dev/null +++ b/src/models/CreateApiAccessRuleResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ApiAccessRule, + ApiAccessRuleFromJSON, + ApiAccessRuleFromJSONTyped, + ApiAccessRuleToJSON, +} from './ApiAccessRule'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateApiAccessRuleResponse + */ +export interface CreateApiAccessRuleResponse { + /** + * + * @type {ApiAccessRule} + * @memberof CreateApiAccessRuleResponse + */ + apiAccessRule?: ApiAccessRule; + /** + * + * @type {ModelResponseContext} + * @memberof CreateApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateApiAccessRuleResponseFromJSON(json: any): CreateApiAccessRuleResponse { + return CreateApiAccessRuleResponseFromJSONTyped(json, false); +} + +export function CreateApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiAccessRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRule': !exists(json, 'ApiAccessRule') ? undefined : ApiAccessRuleFromJSON(json['ApiAccessRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateApiAccessRuleResponseToJSON(value?: CreateApiAccessRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRule': ApiAccessRuleToJSON(value.apiAccessRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateCaRequest.ts b/src/models/CreateCaRequest.ts new file mode 100644 index 00000000..e490650f --- /dev/null +++ b/src/models/CreateCaRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateCaRequest + */ +export interface CreateCaRequest { + /** + * The CA in PEM format. It must be a single-line string, containing literal line breaks (`\n`). + * @type {string} + * @memberof CreateCaRequest + */ + caPem: string; + /** + * The description of the CA. + * @type {string} + * @memberof CreateCaRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateCaRequest + */ + dryRun?: boolean; +} + +export function CreateCaRequestFromJSON(json: any): CreateCaRequest { + return CreateCaRequestFromJSONTyped(json, false); +} + +export function CreateCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCaRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caPem': json['CaPem'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function CreateCaRequestToJSON(value?: CreateCaRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CaPem': value.caPem, + 'Description': value.description, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/CreateCaResponse.ts b/src/models/CreateCaResponse.ts new file mode 100644 index 00000000..0f87d227 --- /dev/null +++ b/src/models/CreateCaResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Ca, + CaFromJSON, + CaFromJSONTyped, + CaToJSON, +} from './Ca'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateCaResponse + */ +export interface CreateCaResponse { + /** + * + * @type {Ca} + * @memberof CreateCaResponse + */ + ca?: Ca; + /** + * + * @type {ModelResponseContext} + * @memberof CreateCaResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateCaResponseFromJSON(json: any): CreateCaResponse { + return CreateCaResponseFromJSONTyped(json, false); +} + +export function CreateCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCaResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ca': !exists(json, 'Ca') ? undefined : CaFromJSON(json['Ca']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateCaResponseToJSON(value?: CreateCaResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Ca': CaToJSON(value.ca), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateClientGatewayRequest.ts b/src/models/CreateClientGatewayRequest.ts new file mode 100644 index 00000000..c8e98eea --- /dev/null +++ b/src/models/CreateClientGatewayRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateClientGatewayRequest + */ +export interface CreateClientGatewayRequest { + /** + * The Autonomous System Number (ASN) used by the Border Gateway Protocol (BGP) to find the path to your client gateway through the Internet. This number must be between 1 and 4294967295. + * @type {number} + * @memberof CreateClientGatewayRequest + */ + bgpAsn: number; + /** + * The communication protocol used to establish tunnel with your client gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateClientGatewayRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateClientGatewayRequest + */ + dryRun?: boolean; + /** + * The public fixed IPv4 address of your client gateway. + * @type {string} + * @memberof CreateClientGatewayRequest + */ + publicIp: string; +} + +export function CreateClientGatewayRequestFromJSON(json: any): CreateClientGatewayRequest { + return CreateClientGatewayRequestFromJSONTyped(json, false); +} + +export function CreateClientGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientGatewayRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bgpAsn': json['BgpAsn'], + 'connectionType': json['ConnectionType'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIp': json['PublicIp'], + }; +} + +export function CreateClientGatewayRequestToJSON(value?: CreateClientGatewayRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BgpAsn': value.bgpAsn, + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + 'PublicIp': value.publicIp, + }; +} + diff --git a/src/models/CreateClientGatewayResponse.ts b/src/models/CreateClientGatewayResponse.ts new file mode 100644 index 00000000..0ced658f --- /dev/null +++ b/src/models/CreateClientGatewayResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ClientGateway, + ClientGatewayFromJSON, + ClientGatewayFromJSONTyped, + ClientGatewayToJSON, +} from './ClientGateway'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateClientGatewayResponse + */ +export interface CreateClientGatewayResponse { + /** + * + * @type {ClientGateway} + * @memberof CreateClientGatewayResponse + */ + clientGateway?: ClientGateway; + /** + * + * @type {ModelResponseContext} + * @memberof CreateClientGatewayResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateClientGatewayResponseFromJSON(json: any): CreateClientGatewayResponse { + return CreateClientGatewayResponseFromJSONTyped(json, false); +} + +export function CreateClientGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientGatewayResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientGateway': !exists(json, 'ClientGateway') ? undefined : ClientGatewayFromJSON(json['ClientGateway']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateClientGatewayResponseToJSON(value?: CreateClientGatewayResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ClientGateway': ClientGatewayToJSON(value.clientGateway), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateDhcpOptionsRequest.ts b/src/models/CreateDhcpOptionsRequest.ts new file mode 100644 index 00000000..2e18727b --- /dev/null +++ b/src/models/CreateDhcpOptionsRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateDhcpOptionsRequest + */ +export interface CreateDhcpOptionsRequest { + /** + * Specify a domain name (for example, MyCompany.com). You can specify only one domain name. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {string} + * @memberof CreateDhcpOptionsRequest + */ + domainName?: string; + /** + * The IPs of domain name servers. If no IPs are specified, the `OutscaleProvidedDNS` value is set by default. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {Array} + * @memberof CreateDhcpOptionsRequest + */ + domainNameServers?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDhcpOptionsRequest + */ + dryRun?: boolean; + /** + * The IPs of the Network Time Protocol (NTP) servers. You must specify at least one of the following parameters: `DomainName`, `DomainNameServers` or `NtpServers`. + * @type {Array} + * @memberof CreateDhcpOptionsRequest + */ + ntpServers?: Array; +} + +export function CreateDhcpOptionsRequestFromJSON(json: any): CreateDhcpOptionsRequest { + return CreateDhcpOptionsRequestFromJSONTyped(json, false); +} + +export function CreateDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDhcpOptionsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'domainName': !exists(json, 'DomainName') ? undefined : json['DomainName'], + 'domainNameServers': !exists(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ntpServers': !exists(json, 'NtpServers') ? undefined : json['NtpServers'], + }; +} + +export function CreateDhcpOptionsRequestToJSON(value?: CreateDhcpOptionsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DomainName': value.domainName, + 'DomainNameServers': value.domainNameServers, + 'DryRun': value.dryRun, + 'NtpServers': value.ntpServers, + }; +} + diff --git a/src/models/CreateDhcpOptionsResponse.ts b/src/models/CreateDhcpOptionsResponse.ts new file mode 100644 index 00000000..85df0f32 --- /dev/null +++ b/src/models/CreateDhcpOptionsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DhcpOptionsSet, + DhcpOptionsSetFromJSON, + DhcpOptionsSetFromJSONTyped, + DhcpOptionsSetToJSON, +} from './DhcpOptionsSet'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateDhcpOptionsResponse + */ +export interface CreateDhcpOptionsResponse { + /** + * + * @type {DhcpOptionsSet} + * @memberof CreateDhcpOptionsResponse + */ + dhcpOptionsSet?: DhcpOptionsSet; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateDhcpOptionsResponseFromJSON(json: any): CreateDhcpOptionsResponse { + return CreateDhcpOptionsResponseFromJSONTyped(json, false); +} + +export function CreateDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDhcpOptionsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhcpOptionsSet': !exists(json, 'DhcpOptionsSet') ? undefined : DhcpOptionsSetFromJSON(json['DhcpOptionsSet']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateDhcpOptionsResponseToJSON(value?: CreateDhcpOptionsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DhcpOptionsSet': DhcpOptionsSetToJSON(value.dhcpOptionsSet), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateDirectLinkInterfaceRequest.ts b/src/models/CreateDirectLinkInterfaceRequest.ts new file mode 100644 index 00000000..15ce0aff --- /dev/null +++ b/src/models/CreateDirectLinkInterfaceRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DirectLinkInterface, + DirectLinkInterfaceFromJSON, + DirectLinkInterfaceFromJSONTyped, + DirectLinkInterfaceToJSON, +} from './DirectLinkInterface'; + +/** + * + * @export + * @interface CreateDirectLinkInterfaceRequest + */ +export interface CreateDirectLinkInterfaceRequest { + /** + * The ID of the existing DirectLink for which you want to create the DirectLink interface. + * @type {string} + * @memberof CreateDirectLinkInterfaceRequest + */ + directLinkId: string; + /** + * + * @type {DirectLinkInterface} + * @memberof CreateDirectLinkInterfaceRequest + */ + directLinkInterface: DirectLinkInterface; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDirectLinkInterfaceRequest + */ + dryRun?: boolean; +} + +export function CreateDirectLinkInterfaceRequestFromJSON(json: any): CreateDirectLinkInterfaceRequest { + return CreateDirectLinkInterfaceRequestFromJSONTyped(json, false); +} + +export function CreateDirectLinkInterfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkInterfaceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkId': json['DirectLinkId'], + 'directLinkInterface': DirectLinkInterfaceFromJSON(json['DirectLinkInterface']), + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function CreateDirectLinkInterfaceRequestToJSON(value?: CreateDirectLinkInterfaceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkId': value.directLinkId, + 'DirectLinkInterface': DirectLinkInterfaceToJSON(value.directLinkInterface), + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/CreateDirectLinkInterfaceResponse.ts b/src/models/CreateDirectLinkInterfaceResponse.ts new file mode 100644 index 00000000..39479961 --- /dev/null +++ b/src/models/CreateDirectLinkInterfaceResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DirectLinkInterfaces, + DirectLinkInterfacesFromJSON, + DirectLinkInterfacesFromJSONTyped, + DirectLinkInterfacesToJSON, +} from './DirectLinkInterfaces'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateDirectLinkInterfaceResponse + */ +export interface CreateDirectLinkInterfaceResponse { + /** + * + * @type {DirectLinkInterfaces} + * @memberof CreateDirectLinkInterfaceResponse + */ + directLinkInterface?: DirectLinkInterfaces; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDirectLinkInterfaceResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateDirectLinkInterfaceResponseFromJSON(json: any): CreateDirectLinkInterfaceResponse { + return CreateDirectLinkInterfaceResponseFromJSONTyped(json, false); +} + +export function CreateDirectLinkInterfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkInterfaceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkInterface': !exists(json, 'DirectLinkInterface') ? undefined : DirectLinkInterfacesFromJSON(json['DirectLinkInterface']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateDirectLinkInterfaceResponseToJSON(value?: CreateDirectLinkInterfaceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkInterface': DirectLinkInterfacesToJSON(value.directLinkInterface), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateDirectLinkRequest.ts b/src/models/CreateDirectLinkRequest.ts new file mode 100644 index 00000000..b39c2416 --- /dev/null +++ b/src/models/CreateDirectLinkRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateDirectLinkRequest + */ +export interface CreateDirectLinkRequest { + /** + * The bandwidth of the DirectLink (`1Gbps` \| `10Gbps`). + * @type {string} + * @memberof CreateDirectLinkRequest + */ + bandwidth: string; + /** + * The name of the DirectLink. + * @type {string} + * @memberof CreateDirectLinkRequest + */ + directLinkName: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateDirectLinkRequest + */ + dryRun?: boolean; + /** + * The code of the requested location for the DirectLink, returned by the [ReadLocations](#readlocations) method. + * @type {string} + * @memberof CreateDirectLinkRequest + */ + location: string; +} + +export function CreateDirectLinkRequestFromJSON(json: any): CreateDirectLinkRequest { + return CreateDirectLinkRequestFromJSONTyped(json, false); +} + +export function CreateDirectLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bandwidth': json['Bandwidth'], + 'directLinkName': json['DirectLinkName'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'location': json['Location'], + }; +} + +export function CreateDirectLinkRequestToJSON(value?: CreateDirectLinkRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Bandwidth': value.bandwidth, + 'DirectLinkName': value.directLinkName, + 'DryRun': value.dryRun, + 'Location': value.location, + }; +} + diff --git a/src/models/CreateDirectLinkResponse.ts b/src/models/CreateDirectLinkResponse.ts new file mode 100644 index 00000000..8b960856 --- /dev/null +++ b/src/models/CreateDirectLinkResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DirectLink, + DirectLinkFromJSON, + DirectLinkFromJSONTyped, + DirectLinkToJSON, +} from './DirectLink'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateDirectLinkResponse + */ +export interface CreateDirectLinkResponse { + /** + * + * @type {DirectLink} + * @memberof CreateDirectLinkResponse + */ + directLink?: DirectLink; + /** + * + * @type {ModelResponseContext} + * @memberof CreateDirectLinkResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateDirectLinkResponseFromJSON(json: any): CreateDirectLinkResponse { + return CreateDirectLinkResponseFromJSONTyped(json, false); +} + +export function CreateDirectLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectLinkResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLink': !exists(json, 'DirectLink') ? undefined : DirectLinkFromJSON(json['DirectLink']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateDirectLinkResponseToJSON(value?: CreateDirectLinkResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLink': DirectLinkToJSON(value.directLink), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateFlexibleGpuRequest.ts b/src/models/CreateFlexibleGpuRequest.ts new file mode 100644 index 00000000..2c5c30a7 --- /dev/null +++ b/src/models/CreateFlexibleGpuRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateFlexibleGpuRequest + */ +export interface CreateFlexibleGpuRequest { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof CreateFlexibleGpuRequest + */ + deleteOnVmDeletion?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by [ReadFlexibleGpuCatalog](#readflexiblegpucatalog) for the specified model of fGPU). + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + generation?: string; + /** + * The model of fGPU you want to allocate. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + modelName: string; + /** + * The Subregion in which you want to create the fGPU. + * @type {string} + * @memberof CreateFlexibleGpuRequest + */ + subregionName: string; +} + +export function CreateFlexibleGpuRequestFromJSON(json: any): CreateFlexibleGpuRequest { + return CreateFlexibleGpuRequestFromJSONTyped(json, false); +} + +export function CreateFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFlexibleGpuRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'generation': !exists(json, 'Generation') ? undefined : json['Generation'], + 'modelName': json['ModelName'], + 'subregionName': json['SubregionName'], + }; +} + +export function CreateFlexibleGpuRequestToJSON(value?: CreateFlexibleGpuRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DryRun': value.dryRun, + 'Generation': value.generation, + 'ModelName': value.modelName, + 'SubregionName': value.subregionName, + }; +} + diff --git a/src/models/CreateFlexibleGpuResponse.ts b/src/models/CreateFlexibleGpuResponse.ts new file mode 100644 index 00000000..d72a7322 --- /dev/null +++ b/src/models/CreateFlexibleGpuResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FlexibleGpu, + FlexibleGpuFromJSON, + FlexibleGpuFromJSONTyped, + FlexibleGpuToJSON, +} from './FlexibleGpu'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateFlexibleGpuResponse + */ +export interface CreateFlexibleGpuResponse { + /** + * + * @type {FlexibleGpu} + * @memberof CreateFlexibleGpuResponse + */ + flexibleGpu?: FlexibleGpu; + /** + * + * @type {ModelResponseContext} + * @memberof CreateFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateFlexibleGpuResponseFromJSON(json: any): CreateFlexibleGpuResponse { + return CreateFlexibleGpuResponseFromJSONTyped(json, false); +} + +export function CreateFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFlexibleGpuResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'flexibleGpu': !exists(json, 'FlexibleGpu') ? undefined : FlexibleGpuFromJSON(json['FlexibleGpu']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateFlexibleGpuResponseToJSON(value?: CreateFlexibleGpuResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'FlexibleGpu': FlexibleGpuToJSON(value.flexibleGpu), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateImageExportTaskRequest.ts b/src/models/CreateImageExportTaskRequest.ts new file mode 100644 index 00000000..561e9ccf --- /dev/null +++ b/src/models/CreateImageExportTaskRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + OsuExportToCreate, + OsuExportToCreateFromJSON, + OsuExportToCreateFromJSONTyped, + OsuExportToCreateToJSON, +} from './OsuExportToCreate'; + +/** + * + * @export + * @interface CreateImageExportTaskRequest + */ +export interface CreateImageExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateImageExportTaskRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI to export. + * @type {string} + * @memberof CreateImageExportTaskRequest + */ + imageId: string; + /** + * + * @type {OsuExportToCreate} + * @memberof CreateImageExportTaskRequest + */ + osuExport: OsuExportToCreate; +} + +export function CreateImageExportTaskRequestFromJSON(json: any): CreateImageExportTaskRequest { + return CreateImageExportTaskRequestFromJSONTyped(json, false); +} + +export function CreateImageExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageExportTaskRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'osuExport': OsuExportToCreateFromJSON(json['OsuExport']), + }; +} + +export function CreateImageExportTaskRequestToJSON(value?: CreateImageExportTaskRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'OsuExport': OsuExportToCreateToJSON(value.osuExport), + }; +} + diff --git a/src/models/CreateImageExportTaskResponse.ts b/src/models/CreateImageExportTaskResponse.ts new file mode 100644 index 00000000..1f3b9de1 --- /dev/null +++ b/src/models/CreateImageExportTaskResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ImageExportTask, + ImageExportTaskFromJSON, + ImageExportTaskFromJSONTyped, + ImageExportTaskToJSON, +} from './ImageExportTask'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateImageExportTaskResponse + */ +export interface CreateImageExportTaskResponse { + /** + * + * @type {ImageExportTask} + * @memberof CreateImageExportTaskResponse + */ + imageExportTask?: ImageExportTask; + /** + * + * @type {ModelResponseContext} + * @memberof CreateImageExportTaskResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateImageExportTaskResponseFromJSON(json: any): CreateImageExportTaskResponse { + return CreateImageExportTaskResponseFromJSONTyped(json, false); +} + +export function CreateImageExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageExportTaskResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'imageExportTask': !exists(json, 'ImageExportTask') ? undefined : ImageExportTaskFromJSON(json['ImageExportTask']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateImageExportTaskResponseToJSON(value?: CreateImageExportTaskResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ImageExportTask': ImageExportTaskToJSON(value.imageExportTask), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateImageRequest.ts b/src/models/CreateImageRequest.ts new file mode 100644 index 00000000..18e97bdc --- /dev/null +++ b/src/models/CreateImageRequest.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BlockDeviceMappingImage, + BlockDeviceMappingImageFromJSON, + BlockDeviceMappingImageFromJSONTyped, + BlockDeviceMappingImageToJSON, +} from './BlockDeviceMappingImage'; + +/** + * + * @export + * @interface CreateImageRequest + */ +export interface CreateImageRequest { + /** + * The architecture of the OMI (by default, `i386` if you specified the `FileLocation` or `RootDeviceName` parameter). + * @type {string} + * @memberof CreateImageRequest + */ + architecture?: string; + /** + * One or more block device mappings. + * @type {Array} + * @memberof CreateImageRequest + */ + blockDeviceMappings?: Array; + /** + * A description for the new OMI. + * @type {string} + * @memberof CreateImageRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateImageRequest + */ + dryRun?: boolean; + /** + * The pre-signed URL of the OMI manifest file, or the full path to the OMI stored in a bucket. If you specify this parameter, a copy of the OMI is created in your account. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + fileLocation?: string; + /** + * A unique name for the new OMI.
+ * Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-). + * @type {string} + * @memberof CreateImageRequest + */ + imageName?: string; + /** + * If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not. + * @type {boolean} + * @memberof CreateImageRequest + */ + noReboot?: boolean; + /** + * The name of the root device. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + rootDeviceName?: string; + /** + * The ID of the OMI you want to copy. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + sourceImageId?: string; + /** + * The name of the source Region, which must be the same as the Region of your account. + * @type {string} + * @memberof CreateImageRequest + */ + sourceRegionName?: string; + /** + * The ID of the VM from which you want to create the OMI. You must specify only one of the following parameters: `FileLocation`, `RootDeviceName`, `SourceImageId` or `VmId`. + * @type {string} + * @memberof CreateImageRequest + */ + vmId?: string; +} + +export function CreateImageRequestFromJSON(json: any): CreateImageRequest { + return CreateImageRequestFromJSONTyped(json, false); +} + +export function CreateImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'architecture': !exists(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : ((json['BlockDeviceMappings'] as Array).map(BlockDeviceMappingImageFromJSON)), + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'fileLocation': !exists(json, 'FileLocation') ? undefined : json['FileLocation'], + 'imageName': !exists(json, 'ImageName') ? undefined : json['ImageName'], + 'noReboot': !exists(json, 'NoReboot') ? undefined : json['NoReboot'], + 'rootDeviceName': !exists(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'sourceImageId': !exists(json, 'SourceImageId') ? undefined : json['SourceImageId'], + 'sourceRegionName': !exists(json, 'SourceRegionName') ? undefined : json['SourceRegionName'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function CreateImageRequestToJSON(value?: CreateImageRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : ((value.blockDeviceMappings as Array).map(BlockDeviceMappingImageToJSON)), + 'Description': value.description, + 'DryRun': value.dryRun, + 'FileLocation': value.fileLocation, + 'ImageName': value.imageName, + 'NoReboot': value.noReboot, + 'RootDeviceName': value.rootDeviceName, + 'SourceImageId': value.sourceImageId, + 'SourceRegionName': value.sourceRegionName, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/CreateImageResponse.ts b/src/models/CreateImageResponse.ts new file mode 100644 index 00000000..d21e7ff7 --- /dev/null +++ b/src/models/CreateImageResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Image, + ImageFromJSON, + ImageFromJSONTyped, + ImageToJSON, +} from './Image'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateImageResponse + */ +export interface CreateImageResponse { + /** + * + * @type {Image} + * @memberof CreateImageResponse + */ + image?: Image; + /** + * + * @type {ModelResponseContext} + * @memberof CreateImageResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateImageResponseFromJSON(json: any): CreateImageResponse { + return CreateImageResponseFromJSONTyped(json, false); +} + +export function CreateImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateImageResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'image': !exists(json, 'Image') ? undefined : ImageFromJSON(json['Image']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateImageResponseToJSON(value?: CreateImageResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Image': ImageToJSON(value.image), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateInternetServiceRequest.ts b/src/models/CreateInternetServiceRequest.ts new file mode 100644 index 00000000..787a00b3 --- /dev/null +++ b/src/models/CreateInternetServiceRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateInternetServiceRequest + */ +export interface CreateInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateInternetServiceRequest + */ + dryRun?: boolean; +} + +export function CreateInternetServiceRequestFromJSON(json: any): CreateInternetServiceRequest { + return CreateInternetServiceRequestFromJSONTyped(json, false); +} + +export function CreateInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInternetServiceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function CreateInternetServiceRequestToJSON(value?: CreateInternetServiceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/CreateInternetServiceResponse.ts b/src/models/CreateInternetServiceResponse.ts new file mode 100644 index 00000000..eb2b647b --- /dev/null +++ b/src/models/CreateInternetServiceResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + InternetService, + InternetServiceFromJSON, + InternetServiceFromJSONTyped, + InternetServiceToJSON, +} from './InternetService'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateInternetServiceResponse + */ +export interface CreateInternetServiceResponse { + /** + * + * @type {InternetService} + * @memberof CreateInternetServiceResponse + */ + internetService?: InternetService; + /** + * + * @type {ModelResponseContext} + * @memberof CreateInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateInternetServiceResponseFromJSON(json: any): CreateInternetServiceResponse { + return CreateInternetServiceResponseFromJSONTyped(json, false); +} + +export function CreateInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInternetServiceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'internetService': !exists(json, 'InternetService') ? undefined : InternetServiceFromJSON(json['InternetService']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateInternetServiceResponseToJSON(value?: CreateInternetServiceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'InternetService': InternetServiceToJSON(value.internetService), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateKeypairRequest.ts b/src/models/CreateKeypairRequest.ts new file mode 100644 index 00000000..a88c8892 --- /dev/null +++ b/src/models/CreateKeypairRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateKeypairRequest + */ +export interface CreateKeypairRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateKeypairRequest + */ + dryRun?: boolean; + /** + * A unique name for the keypair, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). + * @type {string} + * @memberof CreateKeypairRequest + */ + keypairName: string; + /** + * The public key. It must be Base64-encoded. + * @type {string} + * @memberof CreateKeypairRequest + */ + publicKey?: string; +} + +export function CreateKeypairRequestFromJSON(json: any): CreateKeypairRequest { + return CreateKeypairRequestFromJSONTyped(json, false); +} + +export function CreateKeypairRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeypairRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'keypairName': json['KeypairName'], + 'publicKey': !exists(json, 'PublicKey') ? undefined : json['PublicKey'], + }; +} + +export function CreateKeypairRequestToJSON(value?: CreateKeypairRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'KeypairName': value.keypairName, + 'PublicKey': value.publicKey, + }; +} + diff --git a/src/models/CreateKeypairResponse.ts b/src/models/CreateKeypairResponse.ts new file mode 100644 index 00000000..0b4ce663 --- /dev/null +++ b/src/models/CreateKeypairResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + KeypairCreated, + KeypairCreatedFromJSON, + KeypairCreatedFromJSONTyped, + KeypairCreatedToJSON, +} from './KeypairCreated'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateKeypairResponse + */ +export interface CreateKeypairResponse { + /** + * + * @type {KeypairCreated} + * @memberof CreateKeypairResponse + */ + keypair?: KeypairCreated; + /** + * + * @type {ModelResponseContext} + * @memberof CreateKeypairResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateKeypairResponseFromJSON(json: any): CreateKeypairResponse { + return CreateKeypairResponseFromJSONTyped(json, false); +} + +export function CreateKeypairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeypairResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'keypair': !exists(json, 'Keypair') ? undefined : KeypairCreatedFromJSON(json['Keypair']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateKeypairResponseToJSON(value?: CreateKeypairResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Keypair': KeypairCreatedToJSON(value.keypair), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateListenerRuleRequest.ts b/src/models/CreateListenerRuleRequest.ts new file mode 100644 index 00000000..52de2f9d --- /dev/null +++ b/src/models/CreateListenerRuleRequest.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ListenerRuleForCreation, + ListenerRuleForCreationFromJSON, + ListenerRuleForCreationFromJSONTyped, + ListenerRuleForCreationToJSON, +} from './ListenerRuleForCreation'; +import { + LoadBalancerLight, + LoadBalancerLightFromJSON, + LoadBalancerLightFromJSONTyped, + LoadBalancerLightToJSON, +} from './LoadBalancerLight'; + +/** + * + * @export + * @interface CreateListenerRuleRequest + */ +export interface CreateListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateListenerRuleRequest + */ + dryRun?: boolean; + /** + * + * @type {LoadBalancerLight} + * @memberof CreateListenerRuleRequest + */ + listener: LoadBalancerLight; + /** + * + * @type {ListenerRuleForCreation} + * @memberof CreateListenerRuleRequest + */ + listenerRule: ListenerRuleForCreation; + /** + * The IDs of the backend VMs. + * @type {Array} + * @memberof CreateListenerRuleRequest + */ + vmIds: Array; +} + +export function CreateListenerRuleRequestFromJSON(json: any): CreateListenerRuleRequest { + return CreateListenerRuleRequestFromJSONTyped(json, false); +} + +export function CreateListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateListenerRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listener': LoadBalancerLightFromJSON(json['Listener']), + 'listenerRule': ListenerRuleForCreationFromJSON(json['ListenerRule']), + 'vmIds': json['VmIds'], + }; +} + +export function CreateListenerRuleRequestToJSON(value?: CreateListenerRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Listener': LoadBalancerLightToJSON(value.listener), + 'ListenerRule': ListenerRuleForCreationToJSON(value.listenerRule), + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/CreateListenerRuleResponse.ts b/src/models/CreateListenerRuleResponse.ts new file mode 100644 index 00000000..45cc37bf --- /dev/null +++ b/src/models/CreateListenerRuleResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ListenerRule, + ListenerRuleFromJSON, + ListenerRuleFromJSONTyped, + ListenerRuleToJSON, +} from './ListenerRule'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateListenerRuleResponse + */ +export interface CreateListenerRuleResponse { + /** + * + * @type {ListenerRule} + * @memberof CreateListenerRuleResponse + */ + listenerRule?: ListenerRule; + /** + * + * @type {ModelResponseContext} + * @memberof CreateListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateListenerRuleResponseFromJSON(json: any): CreateListenerRuleResponse { + return CreateListenerRuleResponseFromJSONTyped(json, false); +} + +export function CreateListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateListenerRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'listenerRule': !exists(json, 'ListenerRule') ? undefined : ListenerRuleFromJSON(json['ListenerRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateListenerRuleResponseToJSON(value?: CreateListenerRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ListenerRule': ListenerRuleToJSON(value.listenerRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateLoadBalancerListenersRequest.ts b/src/models/CreateLoadBalancerListenersRequest.ts new file mode 100644 index 00000000..130e3985 --- /dev/null +++ b/src/models/CreateLoadBalancerListenersRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ListenerForCreation, + ListenerForCreationFromJSON, + ListenerForCreationFromJSONTyped, + ListenerForCreationToJSON, +} from './ListenerForCreation'; + +/** + * + * @export + * @interface CreateLoadBalancerListenersRequest + */ +export interface CreateLoadBalancerListenersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerListenersRequest + */ + dryRun?: boolean; + /** + * One or more listeners for the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerListenersRequest + */ + listeners: Array; + /** + * The name of the load balancer for which you want to create listeners. + * @type {string} + * @memberof CreateLoadBalancerListenersRequest + */ + loadBalancerName: string; +} + +export function CreateLoadBalancerListenersRequestFromJSON(json: any): CreateLoadBalancerListenersRequest { + return CreateLoadBalancerListenersRequestFromJSONTyped(json, false); +} + +export function CreateLoadBalancerListenersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerListenersRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listeners': ((json['Listeners'] as Array).map(ListenerForCreationFromJSON)), + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function CreateLoadBalancerListenersRequestToJSON(value?: CreateLoadBalancerListenersRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Listeners': ((value.listeners as Array).map(ListenerForCreationToJSON)), + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/CreateLoadBalancerListenersResponse.ts b/src/models/CreateLoadBalancerListenersResponse.ts new file mode 100644 index 00000000..86979c5b --- /dev/null +++ b/src/models/CreateLoadBalancerListenersResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateLoadBalancerListenersResponse + */ +export interface CreateLoadBalancerListenersResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerListenersResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerListenersResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateLoadBalancerListenersResponseFromJSON(json: any): CreateLoadBalancerListenersResponse { + return CreateLoadBalancerListenersResponseFromJSONTyped(json, false); +} + +export function CreateLoadBalancerListenersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerListenersResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateLoadBalancerListenersResponseToJSON(value?: CreateLoadBalancerListenersResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateLoadBalancerPolicyRequest.ts b/src/models/CreateLoadBalancerPolicyRequest.ts new file mode 100644 index 00000000..13eacb24 --- /dev/null +++ b/src/models/CreateLoadBalancerPolicyRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateLoadBalancerPolicyRequest + */ +export interface CreateLoadBalancerPolicyRequest { + /** + * The lifetime of the cookie, in seconds. If not specified, the default value of this parameter is 1, which means that the sticky session lasts for the duration of the browser session. + * @type {number} + * @memberof CreateLoadBalancerPolicyRequest + */ + cookieExpirationPeriod?: number; + /** + * The name of the application cookie used for stickiness. This parameter is required if you create a stickiness policy based on an application-generated cookie. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + cookieName?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerPolicyRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to create a policy. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + loadBalancerName: string; + /** + * The name of the policy. This name must be unique and consist of alphanumeric characters and dashes (-). + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + policyName: string; + /** + * The type of stickiness policy you want to create: `app` or `load_balancer`. + * @type {string} + * @memberof CreateLoadBalancerPolicyRequest + */ + policyType: string; +} + +export function CreateLoadBalancerPolicyRequestFromJSON(json: any): CreateLoadBalancerPolicyRequest { + return CreateLoadBalancerPolicyRequestFromJSONTyped(json, false); +} + +export function CreateLoadBalancerPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerPolicyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cookieExpirationPeriod': !exists(json, 'CookieExpirationPeriod') ? undefined : json['CookieExpirationPeriod'], + 'cookieName': !exists(json, 'CookieName') ? undefined : json['CookieName'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'policyName': json['PolicyName'], + 'policyType': json['PolicyType'], + }; +} + +export function CreateLoadBalancerPolicyRequestToJSON(value?: CreateLoadBalancerPolicyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CookieExpirationPeriod': value.cookieExpirationPeriod, + 'CookieName': value.cookieName, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'PolicyName': value.policyName, + 'PolicyType': value.policyType, + }; +} + diff --git a/src/models/CreateLoadBalancerPolicyResponse.ts b/src/models/CreateLoadBalancerPolicyResponse.ts new file mode 100644 index 00000000..a51e8a1d --- /dev/null +++ b/src/models/CreateLoadBalancerPolicyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateLoadBalancerPolicyResponse + */ +export interface CreateLoadBalancerPolicyResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerPolicyResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerPolicyResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateLoadBalancerPolicyResponseFromJSON(json: any): CreateLoadBalancerPolicyResponse { + return CreateLoadBalancerPolicyResponseFromJSONTyped(json, false); +} + +export function CreateLoadBalancerPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerPolicyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateLoadBalancerPolicyResponseToJSON(value?: CreateLoadBalancerPolicyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateLoadBalancerRequest.ts b/src/models/CreateLoadBalancerRequest.ts new file mode 100644 index 00000000..8cda521b --- /dev/null +++ b/src/models/CreateLoadBalancerRequest.ts @@ -0,0 +1,133 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ListenerForCreation, + ListenerForCreationFromJSON, + ListenerForCreationFromJSONTyped, + ListenerForCreationToJSON, +} from './ListenerForCreation'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * + * @export + * @interface CreateLoadBalancerRequest + */ +export interface CreateLoadBalancerRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerRequest + */ + dryRun?: boolean; + /** + * One or more listeners to create. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + listeners: Array; + /** + * The unique name of the load balancer (32 alphanumeric or hyphen characters maximum, but cannot start or end with a hyphen). + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + loadBalancerName: string; + /** + * The type of load balancer: `internet-facing` or `internal`. Use this parameter only for load balancers in a Net. + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + loadBalancerType?: string; + /** + * (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated. + * @type {string} + * @memberof CreateLoadBalancerRequest + */ + publicIp?: string; + /** + * (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + securityGroups?: Array; + /** + * (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + subnets?: Array; + /** + * (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + subregionNames?: Array; + /** + * One or more tags assigned to the load balancer. + * @type {Array} + * @memberof CreateLoadBalancerRequest + */ + tags?: Array; +} + +export function CreateLoadBalancerRequestFromJSON(json: any): CreateLoadBalancerRequest { + return CreateLoadBalancerRequestFromJSONTyped(json, false); +} + +export function CreateLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listeners': ((json['Listeners'] as Array).map(ListenerForCreationFromJSON)), + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerType': !exists(json, 'LoadBalancerType') ? undefined : json['LoadBalancerType'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'subnets': !exists(json, 'Subnets') ? undefined : json['Subnets'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function CreateLoadBalancerRequestToJSON(value?: CreateLoadBalancerRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Listeners': ((value.listeners as Array).map(ListenerForCreationToJSON)), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerType': value.loadBalancerType, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'Subnets': value.subnets, + 'SubregionNames': value.subregionNames, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/CreateLoadBalancerResponse.ts b/src/models/CreateLoadBalancerResponse.ts new file mode 100644 index 00000000..556d654f --- /dev/null +++ b/src/models/CreateLoadBalancerResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateLoadBalancerResponse + */ +export interface CreateLoadBalancerResponse { + /** + * + * @type {LoadBalancer} + * @memberof CreateLoadBalancerResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateLoadBalancerResponseFromJSON(json: any): CreateLoadBalancerResponse { + return CreateLoadBalancerResponseFromJSONTyped(json, false); +} + +export function CreateLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateLoadBalancerResponseToJSON(value?: CreateLoadBalancerResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateLoadBalancerTagsRequest.ts b/src/models/CreateLoadBalancerTagsRequest.ts new file mode 100644 index 00000000..09f6e2d2 --- /dev/null +++ b/src/models/CreateLoadBalancerTagsRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * + * @export + * @interface CreateLoadBalancerTagsRequest + */ +export interface CreateLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof CreateLoadBalancerTagsRequest + */ + loadBalancerNames: Array; + /** + * One or more tags to add to the specified load balancers. + * @type {Array} + * @memberof CreateLoadBalancerTagsRequest + */ + tags: Array; +} + +export function CreateLoadBalancerTagsRequestFromJSON(json: any): CreateLoadBalancerTagsRequest { + return CreateLoadBalancerTagsRequestFromJSONTyped(json, false); +} + +export function CreateLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerTagsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + 'tags': ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function CreateLoadBalancerTagsRequestToJSON(value?: CreateLoadBalancerTagsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + 'Tags': ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/CreateLoadBalancerTagsResponse.ts b/src/models/CreateLoadBalancerTagsResponse.ts new file mode 100644 index 00000000..f8a1adff --- /dev/null +++ b/src/models/CreateLoadBalancerTagsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateLoadBalancerTagsResponse + */ +export interface CreateLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateLoadBalancerTagsResponseFromJSON(json: any): CreateLoadBalancerTagsResponse { + return CreateLoadBalancerTagsResponseFromJSONTyped(json, false); +} + +export function CreateLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLoadBalancerTagsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateLoadBalancerTagsResponseToJSON(value?: CreateLoadBalancerTagsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateNatServiceRequest.ts b/src/models/CreateNatServiceRequest.ts new file mode 100644 index 00000000..23911d09 --- /dev/null +++ b/src/models/CreateNatServiceRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateNatServiceRequest + */ +export interface CreateNatServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNatServiceRequest + */ + dryRun?: boolean; + /** + * The allocation ID of the public IP to associate with the NAT service.
+ * If the public IP is already associated with another resource, you must first disassociate it. + * @type {string} + * @memberof CreateNatServiceRequest + */ + publicIpId: string; + /** + * The ID of the Subnet in which you want to create the NAT service. + * @type {string} + * @memberof CreateNatServiceRequest + */ + subnetId: string; +} + +export function CreateNatServiceRequestFromJSON(json: any): CreateNatServiceRequest { + return CreateNatServiceRequestFromJSONTyped(json, false); +} + +export function CreateNatServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNatServiceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIpId': json['PublicIpId'], + 'subnetId': json['SubnetId'], + }; +} + +export function CreateNatServiceRequestToJSON(value?: CreateNatServiceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'PublicIpId': value.publicIpId, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/CreateNatServiceResponse.ts b/src/models/CreateNatServiceResponse.ts new file mode 100644 index 00000000..27f70bd7 --- /dev/null +++ b/src/models/CreateNatServiceResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NatService, + NatServiceFromJSON, + NatServiceFromJSONTyped, + NatServiceToJSON, +} from './NatService'; + +/** + * + * @export + * @interface CreateNatServiceResponse + */ +export interface CreateNatServiceResponse { + /** + * + * @type {NatService} + * @memberof CreateNatServiceResponse + */ + natService?: NatService; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNatServiceResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateNatServiceResponseFromJSON(json: any): CreateNatServiceResponse { + return CreateNatServiceResponseFromJSONTyped(json, false); +} + +export function CreateNatServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNatServiceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'natService': !exists(json, 'NatService') ? undefined : NatServiceFromJSON(json['NatService']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateNatServiceResponseToJSON(value?: CreateNatServiceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NatService': NatServiceToJSON(value.natService), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateNetAccessPointRequest.ts b/src/models/CreateNetAccessPointRequest.ts new file mode 100644 index 00000000..88e51f6d --- /dev/null +++ b/src/models/CreateNetAccessPointRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateNetAccessPointRequest + */ +export interface CreateNetAccessPointRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net. + * @type {string} + * @memberof CreateNetAccessPointRequest + */ + netId: string; + /** + * One or more IDs of route tables to use for the connection. + * @type {Array} + * @memberof CreateNetAccessPointRequest + */ + routeTableIds?: Array; + /** + * The name of the service (in the format `com.outscale.region.service`). + * @type {string} + * @memberof CreateNetAccessPointRequest + */ + serviceName: string; +} + +export function CreateNetAccessPointRequestFromJSON(json: any): CreateNetAccessPointRequest { + return CreateNetAccessPointRequestFromJSONTyped(json, false); +} + +export function CreateNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetAccessPointRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'routeTableIds': !exists(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'serviceName': json['ServiceName'], + }; +} + +export function CreateNetAccessPointRequestToJSON(value?: CreateNetAccessPointRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'RouteTableIds': value.routeTableIds, + 'ServiceName': value.serviceName, + }; +} + diff --git a/src/models/CreateNetAccessPointResponse.ts b/src/models/CreateNetAccessPointResponse.ts new file mode 100644 index 00000000..8a1c63e9 --- /dev/null +++ b/src/models/CreateNetAccessPointResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetAccessPoint, + NetAccessPointFromJSON, + NetAccessPointFromJSONTyped, + NetAccessPointToJSON, +} from './NetAccessPoint'; + +/** + * + * @export + * @interface CreateNetAccessPointResponse + */ +export interface CreateNetAccessPointResponse { + /** + * + * @type {NetAccessPoint} + * @memberof CreateNetAccessPointResponse + */ + netAccessPoint?: NetAccessPoint; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateNetAccessPointResponseFromJSON(json: any): CreateNetAccessPointResponse { + return CreateNetAccessPointResponseFromJSONTyped(json, false); +} + +export function CreateNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetAccessPointResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netAccessPoint': !exists(json, 'NetAccessPoint') ? undefined : NetAccessPointFromJSON(json['NetAccessPoint']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateNetAccessPointResponseToJSON(value?: CreateNetAccessPointResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetAccessPoint': NetAccessPointToJSON(value.netAccessPoint), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateNetPeeringRequest.ts b/src/models/CreateNetPeeringRequest.ts new file mode 100644 index 00000000..89579cc0 --- /dev/null +++ b/src/models/CreateNetPeeringRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateNetPeeringRequest + */ +export interface CreateNetPeeringRequest { + /** + * The ID of the Net you want to connect with. + * @type {string} + * @memberof CreateNetPeeringRequest + */ + accepterNetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net you send the peering request from. + * @type {string} + * @memberof CreateNetPeeringRequest + */ + sourceNetId: string; +} + +export function CreateNetPeeringRequestFromJSON(json: any): CreateNetPeeringRequest { + return CreateNetPeeringRequestFromJSONTyped(json, false); +} + +export function CreateNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetPeeringRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accepterNetId': json['AccepterNetId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'sourceNetId': json['SourceNetId'], + }; +} + +export function CreateNetPeeringRequestToJSON(value?: CreateNetPeeringRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccepterNetId': value.accepterNetId, + 'DryRun': value.dryRun, + 'SourceNetId': value.sourceNetId, + }; +} + diff --git a/src/models/CreateNetPeeringResponse.ts b/src/models/CreateNetPeeringResponse.ts new file mode 100644 index 00000000..2ee29906 --- /dev/null +++ b/src/models/CreateNetPeeringResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetPeering, + NetPeeringFromJSON, + NetPeeringFromJSONTyped, + NetPeeringToJSON, +} from './NetPeering'; + +/** + * + * @export + * @interface CreateNetPeeringResponse + */ +export interface CreateNetPeeringResponse { + /** + * + * @type {NetPeering} + * @memberof CreateNetPeeringResponse + */ + netPeering?: NetPeering; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateNetPeeringResponseFromJSON(json: any): CreateNetPeeringResponse { + return CreateNetPeeringResponseFromJSONTyped(json, false); +} + +export function CreateNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetPeeringResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netPeering': !exists(json, 'NetPeering') ? undefined : NetPeeringFromJSON(json['NetPeering']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateNetPeeringResponseToJSON(value?: CreateNetPeeringResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetPeering': NetPeeringToJSON(value.netPeering), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateNetRequest.ts b/src/models/CreateNetRequest.ts new file mode 100644 index 00000000..ded050eb --- /dev/null +++ b/src/models/CreateNetRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateNetRequest + */ +export interface CreateNetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNetRequest + */ + dryRun?: boolean; + /** + * The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof CreateNetRequest + */ + ipRange: string; + /** + * The tenancy options for the VMs (`default` if a VM created in a Net can be launched with any tenancy, `dedicated` if it can be launched with dedicated tenancy VMs running on single-tenant hardware). + * @type {string} + * @memberof CreateNetRequest + */ + tenancy?: string; +} + +export function CreateNetRequestFromJSON(json: any): CreateNetRequest { + return CreateNetRequestFromJSONTyped(json, false); +} + +export function CreateNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRange': json['IpRange'], + 'tenancy': !exists(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} + +export function CreateNetRequestToJSON(value?: CreateNetRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'IpRange': value.ipRange, + 'Tenancy': value.tenancy, + }; +} + diff --git a/src/models/CreateNetResponse.ts b/src/models/CreateNetResponse.ts new file mode 100644 index 00000000..9bb32908 --- /dev/null +++ b/src/models/CreateNetResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Net, + NetFromJSON, + NetFromJSONTyped, + NetToJSON, +} from './Net'; + +/** + * + * @export + * @interface CreateNetResponse + */ +export interface CreateNetResponse { + /** + * + * @type {Net} + * @memberof CreateNetResponse + */ + net?: Net; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNetResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateNetResponseFromJSON(json: any): CreateNetResponse { + return CreateNetResponseFromJSONTyped(json, false); +} + +export function CreateNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNetResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'net': !exists(json, 'Net') ? undefined : NetFromJSON(json['Net']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateNetResponseToJSON(value?: CreateNetResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Net': NetToJSON(value.net), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateNicRequest.ts b/src/models/CreateNicRequest.ts new file mode 100644 index 00000000..fb59d481 --- /dev/null +++ b/src/models/CreateNicRequest.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PrivateIpLight, + PrivateIpLightFromJSON, + PrivateIpLightFromJSONTyped, + PrivateIpLightToJSON, +} from './PrivateIpLight'; + +/** + * + * @export + * @interface CreateNicRequest + */ +export interface CreateNicRequest { + /** + * A description for the NIC. + * @type {string} + * @memberof CreateNicRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateNicRequest + */ + dryRun?: boolean; + /** + * The primary private IP for the NIC.
+ * This IP must be within the IP range of the Subnet that you specify with the `SubnetId` attribute.
+ * If you do not specify this attribute, a random private IP is selected within the IP range of the Subnet. + * @type {Array} + * @memberof CreateNicRequest + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof CreateNicRequest + */ + securityGroupIds?: Array; + /** + * The ID of the Subnet in which you want to create the NIC. + * @type {string} + * @memberof CreateNicRequest + */ + subnetId: string; +} + +export function CreateNicRequestFromJSON(json: any): CreateNicRequest { + return CreateNicRequestFromJSONTyped(json, false); +} + +export function CreateNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNicRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : ((json['PrivateIps'] as Array).map(PrivateIpLightFromJSON)), + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'subnetId': json['SubnetId'], + }; +} + +export function CreateNicRequestToJSON(value?: CreateNicRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Description': value.description, + 'DryRun': value.dryRun, + 'PrivateIps': value.privateIps === undefined ? undefined : ((value.privateIps as Array).map(PrivateIpLightToJSON)), + 'SecurityGroupIds': value.securityGroupIds, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/CreateNicResponse.ts b/src/models/CreateNicResponse.ts new file mode 100644 index 00000000..4e242777 --- /dev/null +++ b/src/models/CreateNicResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Nic, + NicFromJSON, + NicFromJSONTyped, + NicToJSON, +} from './Nic'; + +/** + * + * @export + * @interface CreateNicResponse + */ +export interface CreateNicResponse { + /** + * + * @type {Nic} + * @memberof CreateNicResponse + */ + nic?: Nic; + /** + * + * @type {ModelResponseContext} + * @memberof CreateNicResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateNicResponseFromJSON(json: any): CreateNicResponse { + return CreateNicResponseFromJSONTyped(json, false); +} + +export function CreateNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNicResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nic': !exists(json, 'Nic') ? undefined : NicFromJSON(json['Nic']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateNicResponseToJSON(value?: CreateNicResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Nic': NicToJSON(value.nic), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreatePublicIpRequest.ts b/src/models/CreatePublicIpRequest.ts new file mode 100644 index 00000000..d8667495 --- /dev/null +++ b/src/models/CreatePublicIpRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreatePublicIpRequest + */ +export interface CreatePublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreatePublicIpRequest + */ + dryRun?: boolean; +} + +export function CreatePublicIpRequestFromJSON(json: any): CreatePublicIpRequest { + return CreatePublicIpRequestFromJSONTyped(json, false); +} + +export function CreatePublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePublicIpRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function CreatePublicIpRequestToJSON(value?: CreatePublicIpRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/CreatePublicIpResponse.ts b/src/models/CreatePublicIpResponse.ts new file mode 100644 index 00000000..1947341a --- /dev/null +++ b/src/models/CreatePublicIpResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + PublicIp, + PublicIpFromJSON, + PublicIpFromJSONTyped, + PublicIpToJSON, +} from './PublicIp'; + +/** + * + * @export + * @interface CreatePublicIpResponse + */ +export interface CreatePublicIpResponse { + /** + * + * @type {PublicIp} + * @memberof CreatePublicIpResponse + */ + publicIp?: PublicIp; + /** + * + * @type {ModelResponseContext} + * @memberof CreatePublicIpResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreatePublicIpResponseFromJSON(json: any): CreatePublicIpResponse { + return CreatePublicIpResponseFromJSONTyped(json, false); +} + +export function CreatePublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePublicIpResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'publicIp': !exists(json, 'PublicIp') ? undefined : PublicIpFromJSON(json['PublicIp']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreatePublicIpResponseToJSON(value?: CreatePublicIpResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'PublicIp': PublicIpToJSON(value.publicIp), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateRouteRequest.ts b/src/models/CreateRouteRequest.ts new file mode 100644 index 00000000..e858cb26 --- /dev/null +++ b/src/models/CreateRouteRequest.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateRouteRequest + */ +export interface CreateRouteRequest { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof CreateRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateRouteRequest + */ + dryRun?: boolean; + /** + * The ID of an Internet service or virtual gateway attached to your Net. + * @type {string} + * @memberof CreateRouteRequest + */ + gatewayId?: string; + /** + * The ID of a NAT service. + * @type {string} + * @memberof CreateRouteRequest + */ + natServiceId?: string; + /** + * The ID of a Net peering connection. + * @type {string} + * @memberof CreateRouteRequest + */ + netPeeringId?: string; + /** + * The ID of a NIC. + * @type {string} + * @memberof CreateRouteRequest + */ + nicId?: string; + /** + * The ID of the route table for which you want to create a route. + * @type {string} + * @memberof CreateRouteRequest + */ + routeTableId: string; + /** + * The ID of a NAT VM in your Net (attached to exactly one NIC). + * @type {string} + * @memberof CreateRouteRequest + */ + vmId?: string; +} + +export function CreateRouteRequestFromJSON(json: any): CreateRouteRequest { + return CreateRouteRequestFromJSONTyped(json, false); +} + +export function CreateRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'gatewayId': !exists(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'routeTableId': json['RouteTableId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function CreateRouteRequestToJSON(value?: CreateRouteRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'RouteTableId': value.routeTableId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/CreateRouteResponse.ts b/src/models/CreateRouteResponse.ts new file mode 100644 index 00000000..e71710ee --- /dev/null +++ b/src/models/CreateRouteResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + RouteTable, + RouteTableFromJSON, + RouteTableFromJSONTyped, + RouteTableToJSON, +} from './RouteTable'; + +/** + * + * @export + * @interface CreateRouteResponse + */ +export interface CreateRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof CreateRouteResponse + */ + routeTable?: RouteTable; +} + +export function CreateRouteResponseFromJSON(json: any): CreateRouteResponse { + return CreateRouteResponseFromJSONTyped(json, false); +} + +export function CreateRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} + +export function CreateRouteResponseToJSON(value?: CreateRouteResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} + diff --git a/src/models/CreateRouteTableRequest.ts b/src/models/CreateRouteTableRequest.ts new file mode 100644 index 00000000..61707fdc --- /dev/null +++ b/src/models/CreateRouteTableRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateRouteTableRequest + */ +export interface CreateRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the Net for which you want to create a route table. + * @type {string} + * @memberof CreateRouteTableRequest + */ + netId: string; +} + +export function CreateRouteTableRequestFromJSON(json: any): CreateRouteTableRequest { + return CreateRouteTableRequestFromJSONTyped(json, false); +} + +export function CreateRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteTableRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} + +export function CreateRouteTableRequestToJSON(value?: CreateRouteTableRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} + diff --git a/src/models/CreateRouteTableResponse.ts b/src/models/CreateRouteTableResponse.ts new file mode 100644 index 00000000..6c4da7e2 --- /dev/null +++ b/src/models/CreateRouteTableResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + RouteTable, + RouteTableFromJSON, + RouteTableFromJSONTyped, + RouteTableToJSON, +} from './RouteTable'; + +/** + * + * @export + * @interface CreateRouteTableResponse + */ +export interface CreateRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateRouteTableResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof CreateRouteTableResponse + */ + routeTable?: RouteTable; +} + +export function CreateRouteTableResponseFromJSON(json: any): CreateRouteTableResponse { + return CreateRouteTableResponseFromJSONTyped(json, false); +} + +export function CreateRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRouteTableResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} + +export function CreateRouteTableResponseToJSON(value?: CreateRouteTableResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} + diff --git a/src/models/CreateSecurityGroupRequest.ts b/src/models/CreateSecurityGroupRequest.ts new file mode 100644 index 00000000..b6560346 --- /dev/null +++ b/src/models/CreateSecurityGroupRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateSecurityGroupRequest + */ +export interface CreateSecurityGroupRequest { + /** + * A description for the security group, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + description: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSecurityGroupRequest + */ + dryRun?: boolean; + /** + * The ID of the Net for the security group. + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + netId?: string; + /** + * The name of the security group.
+ * This name must not start with `sg-`.
+ * This name must be unique and contain between 1 and 255 ASCII characters. Accented letters are not allowed. + * @type {string} + * @memberof CreateSecurityGroupRequest + */ + securityGroupName: string; +} + +export function CreateSecurityGroupRequestFromJSON(json: any): CreateSecurityGroupRequest { + return CreateSecurityGroupRequestFromJSONTyped(json, false); +} + +export function CreateSecurityGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'securityGroupName': json['SecurityGroupName'], + }; +} + +export function CreateSecurityGroupRequestToJSON(value?: CreateSecurityGroupRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Description': value.description, + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'SecurityGroupName': value.securityGroupName, + }; +} + diff --git a/src/models/CreateSecurityGroupResponse.ts b/src/models/CreateSecurityGroupResponse.ts new file mode 100644 index 00000000..c0e41173 --- /dev/null +++ b/src/models/CreateSecurityGroupResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + SecurityGroup, + SecurityGroupFromJSON, + SecurityGroupFromJSONTyped, + SecurityGroupToJSON, +} from './SecurityGroup'; + +/** + * + * @export + * @interface CreateSecurityGroupResponse + */ +export interface CreateSecurityGroupResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSecurityGroupResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof CreateSecurityGroupResponse + */ + securityGroup?: SecurityGroup; +} + +export function CreateSecurityGroupResponseFromJSON(json: any): CreateSecurityGroupResponse { + return CreateSecurityGroupResponseFromJSONTyped(json, false); +} + +export function CreateSecurityGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroup': !exists(json, 'SecurityGroup') ? undefined : SecurityGroupFromJSON(json['SecurityGroup']), + }; +} + +export function CreateSecurityGroupResponseToJSON(value?: CreateSecurityGroupResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroup': SecurityGroupToJSON(value.securityGroup), + }; +} + diff --git a/src/models/CreateSecurityGroupRuleRequest.ts b/src/models/CreateSecurityGroupRuleRequest.ts new file mode 100644 index 00000000..64881c5e --- /dev/null +++ b/src/models/CreateSecurityGroupRuleRequest.ts @@ -0,0 +1,135 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + SecurityGroupRule, + SecurityGroupRuleFromJSON, + SecurityGroupRuleFromJSONTyped, + SecurityGroupRuleToJSON, +} from './SecurityGroupRule'; + +/** + * + * @export + * @interface CreateSecurityGroupRuleRequest + */ +export interface CreateSecurityGroupRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSecurityGroupRuleRequest + */ + dryRun?: boolean; + /** + * The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + flow: string; + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {number} + * @memberof CreateSecurityGroupRuleRequest + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + ipProtocol?: string; + /** + * The IP range for the security group rule, in CIDR notation (for example, 10.0.0.0/16). If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + ipRange?: string; + /** + * Information about the security group rule to create. If you specify this parent parameter and its subparameters, you cannot specify the following parent parameters: `FromPortRange`, `IpProtocol`, `IpRange`, and `ToPortRange`. + * @type {Array} + * @memberof CreateSecurityGroupRuleRequest + */ + rules?: Array; + /** + * The account ID of the owner of the security group for which you want to create a rule. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupAccountIdToLink?: string; + /** + * The ID of the security group for which you want to create a rule. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupId: string; + /** + * The ID of the source security group. If you are in the Public Cloud, you can also specify the name of the source security group. + * @type {string} + * @memberof CreateSecurityGroupRuleRequest + */ + securityGroupNameToLink?: string; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. If you specify this parameter, you cannot specify the `Rules` parameter and its subparameters. + * @type {number} + * @memberof CreateSecurityGroupRuleRequest + */ + toPortRange?: number; +} + +export function CreateSecurityGroupRuleRequestFromJSON(json: any): CreateSecurityGroupRuleRequest { + return CreateSecurityGroupRuleRequestFromJSONTyped(json, false); +} + +export function CreateSecurityGroupRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flow': json['Flow'], + 'fromPortRange': !exists(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !exists(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'rules': !exists(json, 'Rules') ? undefined : ((json['Rules'] as Array).map(SecurityGroupRuleFromJSON)), + 'securityGroupAccountIdToLink': !exists(json, 'SecurityGroupAccountIdToLink') ? undefined : json['SecurityGroupAccountIdToLink'], + 'securityGroupId': json['SecurityGroupId'], + 'securityGroupNameToLink': !exists(json, 'SecurityGroupNameToLink') ? undefined : json['SecurityGroupNameToLink'], + 'toPortRange': !exists(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} + +export function CreateSecurityGroupRuleRequestToJSON(value?: CreateSecurityGroupRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Flow': value.flow, + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRange': value.ipRange, + 'Rules': value.rules === undefined ? undefined : ((value.rules as Array).map(SecurityGroupRuleToJSON)), + 'SecurityGroupAccountIdToLink': value.securityGroupAccountIdToLink, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupNameToLink': value.securityGroupNameToLink, + 'ToPortRange': value.toPortRange, + }; +} + diff --git a/src/models/CreateSecurityGroupRuleResponse.ts b/src/models/CreateSecurityGroupRuleResponse.ts new file mode 100644 index 00000000..35b97966 --- /dev/null +++ b/src/models/CreateSecurityGroupRuleResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + SecurityGroup, + SecurityGroupFromJSON, + SecurityGroupFromJSONTyped, + SecurityGroupToJSON, +} from './SecurityGroup'; + +/** + * + * @export + * @interface CreateSecurityGroupRuleResponse + */ +export interface CreateSecurityGroupRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSecurityGroupRuleResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof CreateSecurityGroupRuleResponse + */ + securityGroup?: SecurityGroup; +} + +export function CreateSecurityGroupRuleResponseFromJSON(json: any): CreateSecurityGroupRuleResponse { + return CreateSecurityGroupRuleResponseFromJSONTyped(json, false); +} + +export function CreateSecurityGroupRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSecurityGroupRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroup': !exists(json, 'SecurityGroup') ? undefined : SecurityGroupFromJSON(json['SecurityGroup']), + }; +} + +export function CreateSecurityGroupRuleResponseToJSON(value?: CreateSecurityGroupRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroup': SecurityGroupToJSON(value.securityGroup), + }; +} + diff --git a/src/models/CreateServerCertificateRequest.ts b/src/models/CreateServerCertificateRequest.ts new file mode 100644 index 00000000..4fcd0d64 --- /dev/null +++ b/src/models/CreateServerCertificateRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateServerCertificateRequest + */ +export interface CreateServerCertificateRequest { + /** + * The PEM-encoded X509 certificate. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + body: string; + /** + * The PEM-encoded intermediate certification authorities. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + chain?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateServerCertificateRequest + */ + dryRun?: boolean; + /** + * A unique name for the certificate. Constraints: 1-128 alphanumeric characters, pluses (+), equals (=), commas (,), periods (.), at signs (@), minuses (-), or underscores (_). + * @type {string} + * @memberof CreateServerCertificateRequest + */ + name: string; + /** + * The path to the server certificate, set to a slash (/) if not specified. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + path?: string; + /** + * The PEM-encoded private key matching the certificate. + * @type {string} + * @memberof CreateServerCertificateRequest + */ + privateKey: string; +} + +export function CreateServerCertificateRequestFromJSON(json: any): CreateServerCertificateRequest { + return CreateServerCertificateRequestFromJSONTyped(json, false); +} + +export function CreateServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServerCertificateRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'body': json['Body'], + 'chain': !exists(json, 'Chain') ? undefined : json['Chain'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + 'path': !exists(json, 'Path') ? undefined : json['Path'], + 'privateKey': json['PrivateKey'], + }; +} + +export function CreateServerCertificateRequestToJSON(value?: CreateServerCertificateRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Body': value.body, + 'Chain': value.chain, + 'DryRun': value.dryRun, + 'Name': value.name, + 'Path': value.path, + 'PrivateKey': value.privateKey, + }; +} + diff --git a/src/models/CreateServerCertificateResponse.ts b/src/models/CreateServerCertificateResponse.ts new file mode 100644 index 00000000..db6c116f --- /dev/null +++ b/src/models/CreateServerCertificateResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + ServerCertificate, + ServerCertificateFromJSON, + ServerCertificateFromJSONTyped, + ServerCertificateToJSON, +} from './ServerCertificate'; + +/** + * + * @export + * @interface CreateServerCertificateResponse + */ +export interface CreateServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateServerCertificateResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {ServerCertificate} + * @memberof CreateServerCertificateResponse + */ + serverCertificate?: ServerCertificate; +} + +export function CreateServerCertificateResponseFromJSON(json: any): CreateServerCertificateResponse { + return CreateServerCertificateResponseFromJSONTyped(json, false); +} + +export function CreateServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServerCertificateResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'serverCertificate': !exists(json, 'ServerCertificate') ? undefined : ServerCertificateFromJSON(json['ServerCertificate']), + }; +} + +export function CreateServerCertificateResponseToJSON(value?: CreateServerCertificateResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'ServerCertificate': ServerCertificateToJSON(value.serverCertificate), + }; +} + diff --git a/src/models/CreateSnapshotExportTaskRequest.ts b/src/models/CreateSnapshotExportTaskRequest.ts new file mode 100644 index 00000000..287d9385 --- /dev/null +++ b/src/models/CreateSnapshotExportTaskRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + OsuExportToCreate, + OsuExportToCreateFromJSON, + OsuExportToCreateFromJSONTyped, + OsuExportToCreateToJSON, +} from './OsuExportToCreate'; + +/** + * + * @export + * @interface CreateSnapshotExportTaskRequest + */ +export interface CreateSnapshotExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSnapshotExportTaskRequest + */ + dryRun?: boolean; + /** + * + * @type {OsuExportToCreate} + * @memberof CreateSnapshotExportTaskRequest + */ + osuExport: OsuExportToCreate; + /** + * The ID of the snapshot to export. + * @type {string} + * @memberof CreateSnapshotExportTaskRequest + */ + snapshotId: string; +} + +export function CreateSnapshotExportTaskRequestFromJSON(json: any): CreateSnapshotExportTaskRequest { + return CreateSnapshotExportTaskRequestFromJSONTyped(json, false); +} + +export function CreateSnapshotExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotExportTaskRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'osuExport': OsuExportToCreateFromJSON(json['OsuExport']), + 'snapshotId': json['SnapshotId'], + }; +} + +export function CreateSnapshotExportTaskRequestToJSON(value?: CreateSnapshotExportTaskRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'OsuExport': OsuExportToCreateToJSON(value.osuExport), + 'SnapshotId': value.snapshotId, + }; +} + diff --git a/src/models/CreateSnapshotExportTaskResponse.ts b/src/models/CreateSnapshotExportTaskResponse.ts new file mode 100644 index 00000000..277fd63e --- /dev/null +++ b/src/models/CreateSnapshotExportTaskResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + SnapshotExportTask, + SnapshotExportTaskFromJSON, + SnapshotExportTaskFromJSONTyped, + SnapshotExportTaskToJSON, +} from './SnapshotExportTask'; + +/** + * + * @export + * @interface CreateSnapshotExportTaskResponse + */ +export interface CreateSnapshotExportTaskResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSnapshotExportTaskResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SnapshotExportTask} + * @memberof CreateSnapshotExportTaskResponse + */ + snapshotExportTask?: SnapshotExportTask; +} + +export function CreateSnapshotExportTaskResponseFromJSON(json: any): CreateSnapshotExportTaskResponse { + return CreateSnapshotExportTaskResponseFromJSONTyped(json, false); +} + +export function CreateSnapshotExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotExportTaskResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshotExportTask': !exists(json, 'SnapshotExportTask') ? undefined : SnapshotExportTaskFromJSON(json['SnapshotExportTask']), + }; +} + +export function CreateSnapshotExportTaskResponseToJSON(value?: CreateSnapshotExportTaskResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SnapshotExportTask': SnapshotExportTaskToJSON(value.snapshotExportTask), + }; +} + diff --git a/src/models/CreateSnapshotRequest.ts b/src/models/CreateSnapshotRequest.ts new file mode 100644 index 00000000..04073f23 --- /dev/null +++ b/src/models/CreateSnapshotRequest.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateSnapshotRequest + */ +export interface CreateSnapshotRequest { + /** + * A description for the snapshot. + * @type {string} + * @memberof CreateSnapshotRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSnapshotRequest + */ + dryRun?: boolean; + /** + * The pre-signed URL of the snapshot you want to import from the bucket. + * @type {string} + * @memberof CreateSnapshotRequest + */ + fileLocation?: string; + /** + * The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot. + * @type {number} + * @memberof CreateSnapshotRequest + */ + snapshotSize?: number; + /** + * The name of the source Region, which must be the same as the Region of your account. + * @type {string} + * @memberof CreateSnapshotRequest + */ + sourceRegionName?: string; + /** + * The ID of the snapshot you want to copy. + * @type {string} + * @memberof CreateSnapshotRequest + */ + sourceSnapshotId?: string; + /** + * The ID of the volume you want to create a snapshot of. + * @type {string} + * @memberof CreateSnapshotRequest + */ + volumeId?: string; +} + +export function CreateSnapshotRequestFromJSON(json: any): CreateSnapshotRequest { + return CreateSnapshotRequestFromJSONTyped(json, false); +} + +export function CreateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'fileLocation': !exists(json, 'FileLocation') ? undefined : json['FileLocation'], + 'snapshotSize': !exists(json, 'SnapshotSize') ? undefined : json['SnapshotSize'], + 'sourceRegionName': !exists(json, 'SourceRegionName') ? undefined : json['SourceRegionName'], + 'sourceSnapshotId': !exists(json, 'SourceSnapshotId') ? undefined : json['SourceSnapshotId'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} + +export function CreateSnapshotRequestToJSON(value?: CreateSnapshotRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Description': value.description, + 'DryRun': value.dryRun, + 'FileLocation': value.fileLocation, + 'SnapshotSize': value.snapshotSize, + 'SourceRegionName': value.sourceRegionName, + 'SourceSnapshotId': value.sourceSnapshotId, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/CreateSnapshotResponse.ts b/src/models/CreateSnapshotResponse.ts new file mode 100644 index 00000000..cba6163e --- /dev/null +++ b/src/models/CreateSnapshotResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Snapshot, + SnapshotFromJSON, + SnapshotFromJSONTyped, + SnapshotToJSON, +} from './Snapshot'; + +/** + * + * @export + * @interface CreateSnapshotResponse + */ +export interface CreateSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSnapshotResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Snapshot} + * @memberof CreateSnapshotResponse + */ + snapshot?: Snapshot; +} + +export function CreateSnapshotResponseFromJSON(json: any): CreateSnapshotResponse { + return CreateSnapshotResponseFromJSONTyped(json, false); +} + +export function CreateSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshot': !exists(json, 'Snapshot') ? undefined : SnapshotFromJSON(json['Snapshot']), + }; +} + +export function CreateSnapshotResponseToJSON(value?: CreateSnapshotResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Snapshot': SnapshotToJSON(value.snapshot), + }; +} + diff --git a/src/models/CreateSubnetRequest.ts b/src/models/CreateSubnetRequest.ts new file mode 100644 index 00000000..d3532c96 --- /dev/null +++ b/src/models/CreateSubnetRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateSubnetRequest + */ +export interface CreateSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateSubnetRequest + */ + dryRun?: boolean; + /** + * The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof CreateSubnetRequest + */ + ipRange: string; + /** + * The ID of the Net for which you want to create a Subnet. + * @type {string} + * @memberof CreateSubnetRequest + */ + netId: string; + /** + * The name of the Subregion in which you want to create the Subnet. + * @type {string} + * @memberof CreateSubnetRequest + */ + subregionName?: string; +} + +export function CreateSubnetRequestFromJSON(json: any): CreateSubnetRequest { + return CreateSubnetRequestFromJSONTyped(json, false); +} + +export function CreateSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubnetRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRange': json['IpRange'], + 'netId': json['NetId'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + }; +} + +export function CreateSubnetRequestToJSON(value?: CreateSubnetRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'IpRange': value.ipRange, + 'NetId': value.netId, + 'SubregionName': value.subregionName, + }; +} + diff --git a/src/models/CreateSubnetResponse.ts b/src/models/CreateSubnetResponse.ts new file mode 100644 index 00000000..4e1b9ede --- /dev/null +++ b/src/models/CreateSubnetResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Subnet, + SubnetFromJSON, + SubnetFromJSONTyped, + SubnetToJSON, +} from './Subnet'; + +/** + * + * @export + * @interface CreateSubnetResponse + */ +export interface CreateSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateSubnetResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Subnet} + * @memberof CreateSubnetResponse + */ + subnet?: Subnet; +} + +export function CreateSubnetResponseFromJSON(json: any): CreateSubnetResponse { + return CreateSubnetResponseFromJSONTyped(json, false); +} + +export function CreateSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubnetResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subnet': !exists(json, 'Subnet') ? undefined : SubnetFromJSON(json['Subnet']), + }; +} + +export function CreateSubnetResponseToJSON(value?: CreateSubnetResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subnet': SubnetToJSON(value.subnet), + }; +} + diff --git a/src/models/CreateTagsRequest.ts b/src/models/CreateTagsRequest.ts new file mode 100644 index 00000000..fbf4cfcf --- /dev/null +++ b/src/models/CreateTagsRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * + * @export + * @interface CreateTagsRequest + */ +export interface CreateTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateTagsRequest + */ + dryRun?: boolean; + /** + * One or more resource IDs. + * @type {Array} + * @memberof CreateTagsRequest + */ + resourceIds: Array; + /** + * One or more tags to add to the specified resources. + * @type {Array} + * @memberof CreateTagsRequest + */ + tags: Array; +} + +export function CreateTagsRequestFromJSON(json: any): CreateTagsRequest { + return CreateTagsRequestFromJSONTyped(json, false); +} + +export function CreateTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'resourceIds': json['ResourceIds'], + 'tags': ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function CreateTagsRequestToJSON(value?: CreateTagsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ResourceIds': value.resourceIds, + 'Tags': ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/CreateTagsResponse.ts b/src/models/CreateTagsResponse.ts new file mode 100644 index 00000000..82cc8fe6 --- /dev/null +++ b/src/models/CreateTagsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateTagsResponse + */ +export interface CreateTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateTagsResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateTagsResponseFromJSON(json: any): CreateTagsResponse { + return CreateTagsResponseFromJSONTyped(json, false); +} + +export function CreateTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateTagsResponseToJSON(value?: CreateTagsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/CreateVirtualGatewayRequest.ts b/src/models/CreateVirtualGatewayRequest.ts new file mode 100644 index 00000000..ec7c9695 --- /dev/null +++ b/src/models/CreateVirtualGatewayRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateVirtualGatewayRequest + */ +export interface CreateVirtualGatewayRequest { + /** + * The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateVirtualGatewayRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVirtualGatewayRequest + */ + dryRun?: boolean; +} + +export function CreateVirtualGatewayRequestFromJSON(json: any): CreateVirtualGatewayRequest { + return CreateVirtualGatewayRequestFromJSONTyped(json, false); +} + +export function CreateVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVirtualGatewayRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'connectionType': json['ConnectionType'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function CreateVirtualGatewayRequestToJSON(value?: CreateVirtualGatewayRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/CreateVirtualGatewayResponse.ts b/src/models/CreateVirtualGatewayResponse.ts new file mode 100644 index 00000000..0ddb9ca8 --- /dev/null +++ b/src/models/CreateVirtualGatewayResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VirtualGateway, + VirtualGatewayFromJSON, + VirtualGatewayFromJSONTyped, + VirtualGatewayToJSON, +} from './VirtualGateway'; + +/** + * + * @export + * @interface CreateVirtualGatewayResponse + */ +export interface CreateVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VirtualGateway} + * @memberof CreateVirtualGatewayResponse + */ + virtualGateway?: VirtualGateway; +} + +export function CreateVirtualGatewayResponseFromJSON(json: any): CreateVirtualGatewayResponse { + return CreateVirtualGatewayResponseFromJSONTyped(json, false); +} + +export function CreateVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVirtualGatewayResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'virtualGateway': !exists(json, 'VirtualGateway') ? undefined : VirtualGatewayFromJSON(json['VirtualGateway']), + }; +} + +export function CreateVirtualGatewayResponseToJSON(value?: CreateVirtualGatewayResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VirtualGateway': VirtualGatewayToJSON(value.virtualGateway), + }; +} + diff --git a/src/models/CreateVmsRequest.ts b/src/models/CreateVmsRequest.ts new file mode 100644 index 00000000..f8d67ffb --- /dev/null +++ b/src/models/CreateVmsRequest.ts @@ -0,0 +1,240 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BlockDeviceMappingVmCreation, + BlockDeviceMappingVmCreationFromJSON, + BlockDeviceMappingVmCreationFromJSONTyped, + BlockDeviceMappingVmCreationToJSON, +} from './BlockDeviceMappingVmCreation'; +import { + NicForVmCreation, + NicForVmCreationFromJSON, + NicForVmCreationFromJSONTyped, + NicForVmCreationToJSON, +} from './NicForVmCreation'; +import { + Placement, + PlacementFromJSON, + PlacementFromJSONTyped, + PlacementToJSON, +} from './Placement'; + +/** + * + * @export + * @interface CreateVmsRequest + */ +export interface CreateVmsRequest { + /** + * One or more block device mappings. + * @type {Array} + * @memberof CreateVmsRequest + */ + blockDeviceMappings?: Array; + /** + * By default or if true, the VM is started on creation. If false, the VM is stopped on creation. + * @type {boolean} + * @memberof CreateVmsRequest + */ + bootOnCreation?: boolean; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof CreateVmsRequest + */ + bsuOptimized?: boolean; + /** + * A unique identifier which enables you to manage the idempotency. + * @type {string} + * @memberof CreateVmsRequest + */ + clientToken?: string; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof CreateVmsRequest + */ + deletionProtection?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVmsRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI used to create the VM. You can find the list of OMIs by calling the [ReadImages](#readimages) method. + * @type {string} + * @memberof CreateVmsRequest + */ + imageId: string; + /** + * The name of the keypair. + * @type {string} + * @memberof CreateVmsRequest + */ + keypairName?: string; + /** + * The maximum number of VMs you want to create. If all the VMs cannot be created, the largest possible number of VMs above MinVmsCount is created. + * @type {number} + * @memberof CreateVmsRequest + */ + maxVmsCount?: number; + /** + * The minimum number of VMs you want to create. If this number of VMs cannot be created, no VMs are created. + * @type {number} + * @memberof CreateVmsRequest + */ + minVmsCount?: number; + /** + * One or more NICs. If you specify this parameter, you must not specify the `SubnetId` and `SubregionName` parameters. You also must define one NIC as the primary network interface of the VM with `0` as its device number. + * @type {Array} + * @memberof CreateVmsRequest + */ + nics?: Array; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof CreateVmsRequest + */ + performance?: CreateVmsRequestPerformanceEnum; + /** + * + * @type {Placement} + * @memberof CreateVmsRequest + */ + placement?: Placement; + /** + * One or more private IPs of the VM. + * @type {Array} + * @memberof CreateVmsRequest + */ + privateIps?: Array; + /** + * One or more IDs of security group for the VMs. + * @type {Array} + * @memberof CreateVmsRequest + */ + securityGroupIds?: Array; + /** + * One or more names of security groups for the VMs. + * @type {Array} + * @memberof CreateVmsRequest + */ + securityGroups?: Array; + /** + * The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the `Nics` parameter. + * @type {string} + * @memberof CreateVmsRequest + */ + subnetId?: string; + /** + * Data or script used to add a specific configuration to the VM. It must be Base64-encoded and is limited to 500 kibibytes (KiB). + * @type {string} + * @memberof CreateVmsRequest + */ + userData?: string; + /** + * The VM behavior when you stop it. By default or if set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. + * @type {string} + * @memberof CreateVmsRequest + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM (`t2.small` by default).
+ * For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof CreateVmsRequest + */ + vmType?: string; +} + + +/** + * @export + */ +export const CreateVmsRequestPerformanceEnum = { + Medium: 'medium', + High: 'high', + Highest: 'highest' +} as const; +export type CreateVmsRequestPerformanceEnum = typeof CreateVmsRequestPerformanceEnum[keyof typeof CreateVmsRequestPerformanceEnum]; + + +export function CreateVmsRequestFromJSON(json: any): CreateVmsRequest { + return CreateVmsRequestFromJSONTyped(json, false); +} + +export function CreateVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVmsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : ((json['BlockDeviceMappings'] as Array).map(BlockDeviceMappingVmCreationFromJSON)), + 'bootOnCreation': !exists(json, 'BootOnCreation') ? undefined : json['BootOnCreation'], + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'clientToken': !exists(json, 'ClientToken') ? undefined : json['ClientToken'], + 'deletionProtection': !exists(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'maxVmsCount': !exists(json, 'MaxVmsCount') ? undefined : json['MaxVmsCount'], + 'minVmsCount': !exists(json, 'MinVmsCount') ? undefined : json['MinVmsCount'], + 'nics': !exists(json, 'Nics') ? undefined : ((json['Nics'] as Array).map(NicForVmCreationFromJSON)), + 'performance': !exists(json, 'Performance') ? undefined : json['Performance'], + 'placement': !exists(json, 'Placement') ? undefined : PlacementFromJSON(json['Placement']), + 'privateIps': !exists(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'userData': !exists(json, 'UserData') ? undefined : json['UserData'], + 'vmInitiatedShutdownBehavior': !exists(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !exists(json, 'VmType') ? undefined : json['VmType'], + }; +} + +export function CreateVmsRequestToJSON(value?: CreateVmsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : ((value.blockDeviceMappings as Array).map(BlockDeviceMappingVmCreationToJSON)), + 'BootOnCreation': value.bootOnCreation, + 'BsuOptimized': value.bsuOptimized, + 'ClientToken': value.clientToken, + 'DeletionProtection': value.deletionProtection, + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'KeypairName': value.keypairName, + 'MaxVmsCount': value.maxVmsCount, + 'MinVmsCount': value.minVmsCount, + 'Nics': value.nics === undefined ? undefined : ((value.nics as Array).map(NicForVmCreationToJSON)), + 'Performance': value.performance, + 'Placement': PlacementToJSON(value.placement), + 'PrivateIps': value.privateIps, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroups': value.securityGroups, + 'SubnetId': value.subnetId, + 'UserData': value.userData, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} + diff --git a/src/models/CreateVmsResponse.ts b/src/models/CreateVmsResponse.ts new file mode 100644 index 00000000..0f710d99 --- /dev/null +++ b/src/models/CreateVmsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Vm, + VmFromJSON, + VmFromJSONTyped, + VmToJSON, +} from './Vm'; + +/** + * + * @export + * @interface CreateVmsResponse + */ +export interface CreateVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more created VMs. + * @type {Array} + * @memberof CreateVmsResponse + */ + vms?: Array; +} + +export function CreateVmsResponseFromJSON(json: any): CreateVmsResponse { + return CreateVmsResponseFromJSONTyped(json, false); +} + +export function CreateVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVmsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : ((json['Vms'] as Array).map(VmFromJSON)), + }; +} + +export function CreateVmsResponseToJSON(value?: CreateVmsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : ((value.vms as Array).map(VmToJSON)), + }; +} + diff --git a/src/models/CreateVolumeRequest.ts b/src/models/CreateVolumeRequest.ts new file mode 100644 index 00000000..7cef453f --- /dev/null +++ b/src/models/CreateVolumeRequest.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateVolumeRequest + */ +export interface CreateVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVolumeRequest + */ + dryRun?: boolean; + /** + * The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. + * @type {number} + * @memberof CreateVolumeRequest + */ + iops?: number; + /** + * The size of the volume, in gibibytes (GiB). The maximum allowed size for a volume is 14901 GiB. This parameter is required if the volume is not created from a snapshot (`SnapshotId` unspecified). + * @type {number} + * @memberof CreateVolumeRequest + */ + size?: number; + /** + * The ID of the snapshot from which you want to create the volume. + * @type {string} + * @memberof CreateVolumeRequest + */ + snapshotId?: string; + /** + * The Subregion in which you want to create the volume. + * @type {string} + * @memberof CreateVolumeRequest + */ + subregionName: string; + /** + * The type of volume you want to create (`io1` \| `gp2` \| `standard`). If not specified, a `standard` volume is created.
+ * For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). + * @type {string} + * @memberof CreateVolumeRequest + */ + volumeType?: string; +} + +export function CreateVolumeRequestFromJSON(json: any): CreateVolumeRequest { + return CreateVolumeRequestFromJSONTyped(json, false); +} + +export function CreateVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVolumeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'size': !exists(json, 'Size') ? undefined : json['Size'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'subregionName': json['SubregionName'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} + +export function CreateVolumeRequestToJSON(value?: CreateVolumeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Iops': value.iops, + 'Size': value.size, + 'SnapshotId': value.snapshotId, + 'SubregionName': value.subregionName, + 'VolumeType': value.volumeType, + }; +} + diff --git a/src/models/CreateVolumeResponse.ts b/src/models/CreateVolumeResponse.ts new file mode 100644 index 00000000..06bbf601 --- /dev/null +++ b/src/models/CreateVolumeResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Volume, + VolumeFromJSON, + VolumeFromJSONTyped, + VolumeToJSON, +} from './Volume'; + +/** + * + * @export + * @interface CreateVolumeResponse + */ +export interface CreateVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVolumeResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Volume} + * @memberof CreateVolumeResponse + */ + volume?: Volume; +} + +export function CreateVolumeResponseFromJSON(json: any): CreateVolumeResponse { + return CreateVolumeResponseFromJSONTyped(json, false); +} + +export function CreateVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVolumeResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'volume': !exists(json, 'Volume') ? undefined : VolumeFromJSON(json['Volume']), + }; +} + +export function CreateVolumeResponseToJSON(value?: CreateVolumeResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Volume': VolumeToJSON(value.volume), + }; +} + diff --git a/src/models/CreateVpnConnectionRequest.ts b/src/models/CreateVpnConnectionRequest.ts new file mode 100644 index 00000000..a4a77bd1 --- /dev/null +++ b/src/models/CreateVpnConnectionRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateVpnConnectionRequest + */ +export interface CreateVpnConnectionRequest { + /** + * The ID of the client gateway. + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + clientGatewayId: string; + /** + * The type of VPN connection (only `ipsec.1` is supported). + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + connectionType: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVpnConnectionRequest + */ + dryRun?: boolean; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof CreateVpnConnectionRequest + */ + staticRoutesOnly?: boolean; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof CreateVpnConnectionRequest + */ + virtualGatewayId: string; +} + +export function CreateVpnConnectionRequestFromJSON(json: any): CreateVpnConnectionRequest { + return CreateVpnConnectionRequestFromJSONTyped(json, false); +} + +export function CreateVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientGatewayId': json['ClientGatewayId'], + 'connectionType': json['ConnectionType'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'staticRoutesOnly': !exists(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} + +export function CreateVpnConnectionRequestToJSON(value?: CreateVpnConnectionRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'DryRun': value.dryRun, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/CreateVpnConnectionResponse.ts b/src/models/CreateVpnConnectionResponse.ts new file mode 100644 index 00000000..1b41175c --- /dev/null +++ b/src/models/CreateVpnConnectionResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VpnConnection, + VpnConnectionFromJSON, + VpnConnectionFromJSONTyped, + VpnConnectionToJSON, +} from './VpnConnection'; + +/** + * + * @export + * @interface CreateVpnConnectionResponse + */ +export interface CreateVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVpnConnectionResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VpnConnection} + * @memberof CreateVpnConnectionResponse + */ + vpnConnection?: VpnConnection; +} + +export function CreateVpnConnectionResponseFromJSON(json: any): CreateVpnConnectionResponse { + return CreateVpnConnectionResponseFromJSONTyped(json, false); +} + +export function CreateVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vpnConnection': !exists(json, 'VpnConnection') ? undefined : VpnConnectionFromJSON(json['VpnConnection']), + }; +} + +export function CreateVpnConnectionResponseToJSON(value?: CreateVpnConnectionResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VpnConnection': VpnConnectionToJSON(value.vpnConnection), + }; +} + diff --git a/src/models/CreateVpnConnectionRouteRequest.ts b/src/models/CreateVpnConnectionRouteRequest.ts new file mode 100644 index 00000000..324a150f --- /dev/null +++ b/src/models/CreateVpnConnectionRouteRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateVpnConnectionRouteRequest + */ +export interface CreateVpnConnectionRouteRequest { + /** + * The network prefix of the route, in CIDR notation (for example, 10.12.0.0/16). + * @type {string} + * @memberof CreateVpnConnectionRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof CreateVpnConnectionRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the target VPN connection of the static route. + * @type {string} + * @memberof CreateVpnConnectionRouteRequest + */ + vpnConnectionId: string; +} + +export function CreateVpnConnectionRouteRequestFromJSON(json: any): CreateVpnConnectionRouteRequest { + return CreateVpnConnectionRouteRequestFromJSONTyped(json, false); +} + +export function CreateVpnConnectionRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRouteRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} + +export function CreateVpnConnectionRouteRequestToJSON(value?: CreateVpnConnectionRouteRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} + diff --git a/src/models/CreateVpnConnectionRouteResponse.ts b/src/models/CreateVpnConnectionRouteResponse.ts new file mode 100644 index 00000000..c2e24fed --- /dev/null +++ b/src/models/CreateVpnConnectionRouteResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface CreateVpnConnectionRouteResponse + */ +export interface CreateVpnConnectionRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof CreateVpnConnectionRouteResponse + */ + responseContext?: ModelResponseContext; +} + +export function CreateVpnConnectionRouteResponseFromJSON(json: any): CreateVpnConnectionRouteResponse { + return CreateVpnConnectionRouteResponseFromJSONTyped(json, false); +} + +export function CreateVpnConnectionRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVpnConnectionRouteResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function CreateVpnConnectionRouteResponseToJSON(value?: CreateVpnConnectionRouteResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteAccessKeyRequest.ts b/src/models/DeleteAccessKeyRequest.ts new file mode 100644 index 00000000..97e5d4db --- /dev/null +++ b/src/models/DeleteAccessKeyRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteAccessKeyRequest + */ +export interface DeleteAccessKeyRequest { + /** + * The ID of the access key you want to delete. + * @type {string} + * @memberof DeleteAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteAccessKeyRequest + */ + dryRun?: boolean; +} + +export function DeleteAccessKeyRequestFromJSON(json: any): DeleteAccessKeyRequest { + return DeleteAccessKeyRequestFromJSONTyped(json, false); +} + +export function DeleteAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccessKeyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteAccessKeyRequestToJSON(value?: DeleteAccessKeyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteAccessKeyResponse.ts b/src/models/DeleteAccessKeyResponse.ts new file mode 100644 index 00000000..7f20b2e1 --- /dev/null +++ b/src/models/DeleteAccessKeyResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteAccessKeyResponse + */ +export interface DeleteAccessKeyResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteAccessKeyResponseFromJSON(json: any): DeleteAccessKeyResponse { + return DeleteAccessKeyResponseFromJSONTyped(json, false); +} + +export function DeleteAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccessKeyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteAccessKeyResponseToJSON(value?: DeleteAccessKeyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteApiAccessRuleRequest.ts b/src/models/DeleteApiAccessRuleRequest.ts new file mode 100644 index 00000000..167a9963 --- /dev/null +++ b/src/models/DeleteApiAccessRuleRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteApiAccessRuleRequest + */ +export interface DeleteApiAccessRuleRequest { + /** + * The ID of the API access rule you want to delete. + * @type {string} + * @memberof DeleteApiAccessRuleRequest + */ + apiAccessRuleId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteApiAccessRuleRequest + */ + dryRun?: boolean; +} + +export function DeleteApiAccessRuleRequestFromJSON(json: any): DeleteApiAccessRuleRequest { + return DeleteApiAccessRuleRequestFromJSONTyped(json, false); +} + +export function DeleteApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteApiAccessRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRuleId': json['ApiAccessRuleId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteApiAccessRuleRequestToJSON(value?: DeleteApiAccessRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRuleId': value.apiAccessRuleId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteApiAccessRuleResponse.ts b/src/models/DeleteApiAccessRuleResponse.ts new file mode 100644 index 00000000..64185fcc --- /dev/null +++ b/src/models/DeleteApiAccessRuleResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteApiAccessRuleResponse + */ +export interface DeleteApiAccessRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteApiAccessRuleResponseFromJSON(json: any): DeleteApiAccessRuleResponse { + return DeleteApiAccessRuleResponseFromJSONTyped(json, false); +} + +export function DeleteApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteApiAccessRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteApiAccessRuleResponseToJSON(value?: DeleteApiAccessRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteCaRequest.ts b/src/models/DeleteCaRequest.ts new file mode 100644 index 00000000..f9df15b2 --- /dev/null +++ b/src/models/DeleteCaRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteCaRequest + */ +export interface DeleteCaRequest { + /** + * The ID of the CA you want to delete. + * @type {string} + * @memberof DeleteCaRequest + */ + caId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteCaRequest + */ + dryRun?: boolean; +} + +export function DeleteCaRequestFromJSON(json: any): DeleteCaRequest { + return DeleteCaRequestFromJSONTyped(json, false); +} + +export function DeleteCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteCaRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caId': json['CaId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteCaRequestToJSON(value?: DeleteCaRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CaId': value.caId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteCaResponse.ts b/src/models/DeleteCaResponse.ts new file mode 100644 index 00000000..df4fd496 --- /dev/null +++ b/src/models/DeleteCaResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteCaResponse + */ +export interface DeleteCaResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteCaResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteCaResponseFromJSON(json: any): DeleteCaResponse { + return DeleteCaResponseFromJSONTyped(json, false); +} + +export function DeleteCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteCaResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteCaResponseToJSON(value?: DeleteCaResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteClientGatewayRequest.ts b/src/models/DeleteClientGatewayRequest.ts new file mode 100644 index 00000000..7d5a1b29 --- /dev/null +++ b/src/models/DeleteClientGatewayRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteClientGatewayRequest + */ +export interface DeleteClientGatewayRequest { + /** + * The ID of the client gateway you want to delete. + * @type {string} + * @memberof DeleteClientGatewayRequest + */ + clientGatewayId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteClientGatewayRequest + */ + dryRun?: boolean; +} + +export function DeleteClientGatewayRequestFromJSON(json: any): DeleteClientGatewayRequest { + return DeleteClientGatewayRequestFromJSONTyped(json, false); +} + +export function DeleteClientGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteClientGatewayRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientGatewayId': json['ClientGatewayId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteClientGatewayRequestToJSON(value?: DeleteClientGatewayRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ClientGatewayId': value.clientGatewayId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteClientGatewayResponse.ts b/src/models/DeleteClientGatewayResponse.ts new file mode 100644 index 00000000..52c28442 --- /dev/null +++ b/src/models/DeleteClientGatewayResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteClientGatewayResponse + */ +export interface DeleteClientGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteClientGatewayResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteClientGatewayResponseFromJSON(json: any): DeleteClientGatewayResponse { + return DeleteClientGatewayResponseFromJSONTyped(json, false); +} + +export function DeleteClientGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteClientGatewayResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteClientGatewayResponseToJSON(value?: DeleteClientGatewayResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteDhcpOptionsRequest.ts b/src/models/DeleteDhcpOptionsRequest.ts new file mode 100644 index 00000000..7a52cdc7 --- /dev/null +++ b/src/models/DeleteDhcpOptionsRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteDhcpOptionsRequest + */ +export interface DeleteDhcpOptionsRequest { + /** + * The ID of the DHCP options set you want to delete. + * @type {string} + * @memberof DeleteDhcpOptionsRequest + */ + dhcpOptionsSetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDhcpOptionsRequest + */ + dryRun?: boolean; +} + +export function DeleteDhcpOptionsRequestFromJSON(json: any): DeleteDhcpOptionsRequest { + return DeleteDhcpOptionsRequestFromJSONTyped(json, false); +} + +export function DeleteDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDhcpOptionsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhcpOptionsSetId': json['DhcpOptionsSetId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteDhcpOptionsRequestToJSON(value?: DeleteDhcpOptionsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteDhcpOptionsResponse.ts b/src/models/DeleteDhcpOptionsResponse.ts new file mode 100644 index 00000000..6a97e2ea --- /dev/null +++ b/src/models/DeleteDhcpOptionsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteDhcpOptionsResponse + */ +export interface DeleteDhcpOptionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteDhcpOptionsResponseFromJSON(json: any): DeleteDhcpOptionsResponse { + return DeleteDhcpOptionsResponseFromJSONTyped(json, false); +} + +export function DeleteDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDhcpOptionsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteDhcpOptionsResponseToJSON(value?: DeleteDhcpOptionsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteDirectLinkInterfaceRequest.ts b/src/models/DeleteDirectLinkInterfaceRequest.ts new file mode 100644 index 00000000..0e89f252 --- /dev/null +++ b/src/models/DeleteDirectLinkInterfaceRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteDirectLinkInterfaceRequest + */ +export interface DeleteDirectLinkInterfaceRequest { + /** + * The ID of the DirectLink interface you want to delete. + * @type {string} + * @memberof DeleteDirectLinkInterfaceRequest + */ + directLinkInterfaceId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDirectLinkInterfaceRequest + */ + dryRun?: boolean; +} + +export function DeleteDirectLinkInterfaceRequestFromJSON(json: any): DeleteDirectLinkInterfaceRequest { + return DeleteDirectLinkInterfaceRequestFromJSONTyped(json, false); +} + +export function DeleteDirectLinkInterfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkInterfaceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkInterfaceId': json['DirectLinkInterfaceId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteDirectLinkInterfaceRequestToJSON(value?: DeleteDirectLinkInterfaceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkInterfaceId': value.directLinkInterfaceId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteDirectLinkInterfaceResponse.ts b/src/models/DeleteDirectLinkInterfaceResponse.ts new file mode 100644 index 00000000..67f8cd33 --- /dev/null +++ b/src/models/DeleteDirectLinkInterfaceResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteDirectLinkInterfaceResponse + */ +export interface DeleteDirectLinkInterfaceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDirectLinkInterfaceResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteDirectLinkInterfaceResponseFromJSON(json: any): DeleteDirectLinkInterfaceResponse { + return DeleteDirectLinkInterfaceResponseFromJSONTyped(json, false); +} + +export function DeleteDirectLinkInterfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkInterfaceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteDirectLinkInterfaceResponseToJSON(value?: DeleteDirectLinkInterfaceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteDirectLinkRequest.ts b/src/models/DeleteDirectLinkRequest.ts new file mode 100644 index 00000000..37d6b969 --- /dev/null +++ b/src/models/DeleteDirectLinkRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteDirectLinkRequest + */ +export interface DeleteDirectLinkRequest { + /** + * The ID of the DirectLink you want to delete. + * @type {string} + * @memberof DeleteDirectLinkRequest + */ + directLinkId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteDirectLinkRequest + */ + dryRun?: boolean; +} + +export function DeleteDirectLinkRequestFromJSON(json: any): DeleteDirectLinkRequest { + return DeleteDirectLinkRequestFromJSONTyped(json, false); +} + +export function DeleteDirectLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkId': json['DirectLinkId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function DeleteDirectLinkRequestToJSON(value?: DeleteDirectLinkRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkId': value.directLinkId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/DeleteDirectLinkResponse.ts b/src/models/DeleteDirectLinkResponse.ts new file mode 100644 index 00000000..6954e050 --- /dev/null +++ b/src/models/DeleteDirectLinkResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteDirectLinkResponse + */ +export interface DeleteDirectLinkResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteDirectLinkResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteDirectLinkResponseFromJSON(json: any): DeleteDirectLinkResponse { + return DeleteDirectLinkResponseFromJSONTyped(json, false); +} + +export function DeleteDirectLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDirectLinkResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteDirectLinkResponseToJSON(value?: DeleteDirectLinkResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteExportTaskRequest.ts b/src/models/DeleteExportTaskRequest.ts new file mode 100644 index 00000000..f8140b1f --- /dev/null +++ b/src/models/DeleteExportTaskRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteExportTaskRequest + */ +export interface DeleteExportTaskRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteExportTaskRequest + */ + dryRun?: boolean; + /** + * The ID of the export task to delete. + * @type {string} + * @memberof DeleteExportTaskRequest + */ + exportTaskId: string; +} + +export function DeleteExportTaskRequestFromJSON(json: any): DeleteExportTaskRequest { + return DeleteExportTaskRequestFromJSONTyped(json, false); +} + +export function DeleteExportTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteExportTaskRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'exportTaskId': json['ExportTaskId'], + }; +} + +export function DeleteExportTaskRequestToJSON(value?: DeleteExportTaskRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ExportTaskId': value.exportTaskId, + }; +} + diff --git a/src/models/DeleteExportTaskResponse.ts b/src/models/DeleteExportTaskResponse.ts new file mode 100644 index 00000000..e8334884 --- /dev/null +++ b/src/models/DeleteExportTaskResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteExportTaskResponse + */ +export interface DeleteExportTaskResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteExportTaskResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteExportTaskResponseFromJSON(json: any): DeleteExportTaskResponse { + return DeleteExportTaskResponseFromJSONTyped(json, false); +} + +export function DeleteExportTaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteExportTaskResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteExportTaskResponseToJSON(value?: DeleteExportTaskResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteFlexibleGpuRequest.ts b/src/models/DeleteFlexibleGpuRequest.ts new file mode 100644 index 00000000..7d28206e --- /dev/null +++ b/src/models/DeleteFlexibleGpuRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteFlexibleGpuRequest + */ +export interface DeleteFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to delete. + * @type {string} + * @memberof DeleteFlexibleGpuRequest + */ + flexibleGpuId: string; +} + +export function DeleteFlexibleGpuRequestFromJSON(json: any): DeleteFlexibleGpuRequest { + return DeleteFlexibleGpuRequestFromJSONTyped(json, false); +} + +export function DeleteFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteFlexibleGpuRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} + +export function DeleteFlexibleGpuRequestToJSON(value?: DeleteFlexibleGpuRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} + diff --git a/src/models/DeleteFlexibleGpuResponse.ts b/src/models/DeleteFlexibleGpuResponse.ts new file mode 100644 index 00000000..f4e5b0a5 --- /dev/null +++ b/src/models/DeleteFlexibleGpuResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteFlexibleGpuResponse + */ +export interface DeleteFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteFlexibleGpuResponseFromJSON(json: any): DeleteFlexibleGpuResponse { + return DeleteFlexibleGpuResponseFromJSONTyped(json, false); +} + +export function DeleteFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteFlexibleGpuResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteFlexibleGpuResponseToJSON(value?: DeleteFlexibleGpuResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteImageRequest.ts b/src/models/DeleteImageRequest.ts new file mode 100644 index 00000000..14ecbeb3 --- /dev/null +++ b/src/models/DeleteImageRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteImageRequest + */ +export interface DeleteImageRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteImageRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI you want to delete. + * @type {string} + * @memberof DeleteImageRequest + */ + imageId: string; +} + +export function DeleteImageRequestFromJSON(json: any): DeleteImageRequest { + return DeleteImageRequestFromJSONTyped(json, false); +} + +export function DeleteImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteImageRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + }; +} + +export function DeleteImageRequestToJSON(value?: DeleteImageRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + }; +} + diff --git a/src/models/DeleteImageResponse.ts b/src/models/DeleteImageResponse.ts new file mode 100644 index 00000000..88e8265b --- /dev/null +++ b/src/models/DeleteImageResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteImageResponse + */ +export interface DeleteImageResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteImageResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteImageResponseFromJSON(json: any): DeleteImageResponse { + return DeleteImageResponseFromJSONTyped(json, false); +} + +export function DeleteImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteImageResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteImageResponseToJSON(value?: DeleteImageResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteInternetServiceRequest.ts b/src/models/DeleteInternetServiceRequest.ts new file mode 100644 index 00000000..9bb13269 --- /dev/null +++ b/src/models/DeleteInternetServiceRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteInternetServiceRequest + */ +export interface DeleteInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to delete. + * @type {string} + * @memberof DeleteInternetServiceRequest + */ + internetServiceId: string; +} + +export function DeleteInternetServiceRequestFromJSON(json: any): DeleteInternetServiceRequest { + return DeleteInternetServiceRequestFromJSONTyped(json, false); +} + +export function DeleteInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteInternetServiceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + }; +} + +export function DeleteInternetServiceRequestToJSON(value?: DeleteInternetServiceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + }; +} + diff --git a/src/models/DeleteInternetServiceResponse.ts b/src/models/DeleteInternetServiceResponse.ts new file mode 100644 index 00000000..5b2a6fa0 --- /dev/null +++ b/src/models/DeleteInternetServiceResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteInternetServiceResponse + */ +export interface DeleteInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteInternetServiceResponseFromJSON(json: any): DeleteInternetServiceResponse { + return DeleteInternetServiceResponseFromJSONTyped(json, false); +} + +export function DeleteInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteInternetServiceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteInternetServiceResponseToJSON(value?: DeleteInternetServiceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteKeypairRequest.ts b/src/models/DeleteKeypairRequest.ts new file mode 100644 index 00000000..1b3be1f3 --- /dev/null +++ b/src/models/DeleteKeypairRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteKeypairRequest + */ +export interface DeleteKeypairRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteKeypairRequest + */ + dryRun?: boolean; + /** + * The name of the keypair you want to delete. + * @type {string} + * @memberof DeleteKeypairRequest + */ + keypairName: string; +} + +export function DeleteKeypairRequestFromJSON(json: any): DeleteKeypairRequest { + return DeleteKeypairRequestFromJSONTyped(json, false); +} + +export function DeleteKeypairRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKeypairRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'keypairName': json['KeypairName'], + }; +} + +export function DeleteKeypairRequestToJSON(value?: DeleteKeypairRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'KeypairName': value.keypairName, + }; +} + diff --git a/src/models/DeleteKeypairResponse.ts b/src/models/DeleteKeypairResponse.ts new file mode 100644 index 00000000..1c5f2fdb --- /dev/null +++ b/src/models/DeleteKeypairResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteKeypairResponse + */ +export interface DeleteKeypairResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteKeypairResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteKeypairResponseFromJSON(json: any): DeleteKeypairResponse { + return DeleteKeypairResponseFromJSONTyped(json, false); +} + +export function DeleteKeypairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKeypairResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteKeypairResponseToJSON(value?: DeleteKeypairResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteListenerRuleRequest.ts b/src/models/DeleteListenerRuleRequest.ts new file mode 100644 index 00000000..6e7dc569 --- /dev/null +++ b/src/models/DeleteListenerRuleRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteListenerRuleRequest + */ +export interface DeleteListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteListenerRuleRequest + */ + dryRun?: boolean; + /** + * The name of the rule you want to delete. + * @type {string} + * @memberof DeleteListenerRuleRequest + */ + listenerRuleName: string; +} + +export function DeleteListenerRuleRequestFromJSON(json: any): DeleteListenerRuleRequest { + return DeleteListenerRuleRequestFromJSONTyped(json, false); +} + +export function DeleteListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteListenerRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'listenerRuleName': json['ListenerRuleName'], + }; +} + +export function DeleteListenerRuleRequestToJSON(value?: DeleteListenerRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ListenerRuleName': value.listenerRuleName, + }; +} + diff --git a/src/models/DeleteListenerRuleResponse.ts b/src/models/DeleteListenerRuleResponse.ts new file mode 100644 index 00000000..fcb2bf8b --- /dev/null +++ b/src/models/DeleteListenerRuleResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteListenerRuleResponse + */ +export interface DeleteListenerRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteListenerRuleResponseFromJSON(json: any): DeleteListenerRuleResponse { + return DeleteListenerRuleResponseFromJSONTyped(json, false); +} + +export function DeleteListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteListenerRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteListenerRuleResponseToJSON(value?: DeleteListenerRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteLoadBalancerListenersRequest.ts b/src/models/DeleteLoadBalancerListenersRequest.ts new file mode 100644 index 00000000..9b73d9f4 --- /dev/null +++ b/src/models/DeleteLoadBalancerListenersRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteLoadBalancerListenersRequest + */ +export interface DeleteLoadBalancerListenersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerListenersRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to delete listeners. + * @type {string} + * @memberof DeleteLoadBalancerListenersRequest + */ + loadBalancerName: string; + /** + * One or more port numbers of the listeners you want to delete. + * @type {Array} + * @memberof DeleteLoadBalancerListenersRequest + */ + loadBalancerPorts: Array; +} + +export function DeleteLoadBalancerListenersRequestFromJSON(json: any): DeleteLoadBalancerListenersRequest { + return DeleteLoadBalancerListenersRequestFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerListenersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerListenersRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPorts': json['LoadBalancerPorts'], + }; +} + +export function DeleteLoadBalancerListenersRequestToJSON(value?: DeleteLoadBalancerListenersRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPorts': value.loadBalancerPorts, + }; +} + diff --git a/src/models/DeleteLoadBalancerListenersResponse.ts b/src/models/DeleteLoadBalancerListenersResponse.ts new file mode 100644 index 00000000..00113378 --- /dev/null +++ b/src/models/DeleteLoadBalancerListenersResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteLoadBalancerListenersResponse + */ +export interface DeleteLoadBalancerListenersResponse { + /** + * + * @type {LoadBalancer} + * @memberof DeleteLoadBalancerListenersResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerListenersResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteLoadBalancerListenersResponseFromJSON(json: any): DeleteLoadBalancerListenersResponse { + return DeleteLoadBalancerListenersResponseFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerListenersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerListenersResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteLoadBalancerListenersResponseToJSON(value?: DeleteLoadBalancerListenersResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteLoadBalancerPolicyRequest.ts b/src/models/DeleteLoadBalancerPolicyRequest.ts new file mode 100644 index 00000000..83579c10 --- /dev/null +++ b/src/models/DeleteLoadBalancerPolicyRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteLoadBalancerPolicyRequest + */ +export interface DeleteLoadBalancerPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerPolicyRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer for which you want to delete a policy. + * @type {string} + * @memberof DeleteLoadBalancerPolicyRequest + */ + loadBalancerName: string; + /** + * The name of the policy you want to delete. + * @type {string} + * @memberof DeleteLoadBalancerPolicyRequest + */ + policyName: string; +} + +export function DeleteLoadBalancerPolicyRequestFromJSON(json: any): DeleteLoadBalancerPolicyRequest { + return DeleteLoadBalancerPolicyRequestFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerPolicyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + 'policyName': json['PolicyName'], + }; +} + +export function DeleteLoadBalancerPolicyRequestToJSON(value?: DeleteLoadBalancerPolicyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + 'PolicyName': value.policyName, + }; +} + diff --git a/src/models/DeleteLoadBalancerPolicyResponse.ts b/src/models/DeleteLoadBalancerPolicyResponse.ts new file mode 100644 index 00000000..ceb945b7 --- /dev/null +++ b/src/models/DeleteLoadBalancerPolicyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteLoadBalancerPolicyResponse + */ +export interface DeleteLoadBalancerPolicyResponse { + /** + * + * @type {LoadBalancer} + * @memberof DeleteLoadBalancerPolicyResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerPolicyResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteLoadBalancerPolicyResponseFromJSON(json: any): DeleteLoadBalancerPolicyResponse { + return DeleteLoadBalancerPolicyResponseFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerPolicyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteLoadBalancerPolicyResponseToJSON(value?: DeleteLoadBalancerPolicyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteLoadBalancerRequest.ts b/src/models/DeleteLoadBalancerRequest.ts new file mode 100644 index 00000000..c0c07b57 --- /dev/null +++ b/src/models/DeleteLoadBalancerRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteLoadBalancerRequest + */ +export interface DeleteLoadBalancerRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer you want to delete. + * @type {string} + * @memberof DeleteLoadBalancerRequest + */ + loadBalancerName: string; +} + +export function DeleteLoadBalancerRequestFromJSON(json: any): DeleteLoadBalancerRequest { + return DeleteLoadBalancerRequestFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function DeleteLoadBalancerRequestToJSON(value?: DeleteLoadBalancerRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/DeleteLoadBalancerResponse.ts b/src/models/DeleteLoadBalancerResponse.ts new file mode 100644 index 00000000..761552a6 --- /dev/null +++ b/src/models/DeleteLoadBalancerResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteLoadBalancerResponse + */ +export interface DeleteLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteLoadBalancerResponseFromJSON(json: any): DeleteLoadBalancerResponse { + return DeleteLoadBalancerResponseFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteLoadBalancerResponseToJSON(value?: DeleteLoadBalancerResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteLoadBalancerTagsRequest.ts b/src/models/DeleteLoadBalancerTagsRequest.ts new file mode 100644 index 00000000..9aaaf7f7 --- /dev/null +++ b/src/models/DeleteLoadBalancerTagsRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceLoadBalancerTag, + ResourceLoadBalancerTagFromJSON, + ResourceLoadBalancerTagFromJSONTyped, + ResourceLoadBalancerTagToJSON, +} from './ResourceLoadBalancerTag'; + +/** + * + * @export + * @interface DeleteLoadBalancerTagsRequest + */ +export interface DeleteLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof DeleteLoadBalancerTagsRequest + */ + loadBalancerNames: Array; + /** + * One or more tags to delete from the load balancers. + * @type {Array} + * @memberof DeleteLoadBalancerTagsRequest + */ + tags: Array; +} + +export function DeleteLoadBalancerTagsRequestFromJSON(json: any): DeleteLoadBalancerTagsRequest { + return DeleteLoadBalancerTagsRequestFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerTagsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + 'tags': ((json['Tags'] as Array).map(ResourceLoadBalancerTagFromJSON)), + }; +} + +export function DeleteLoadBalancerTagsRequestToJSON(value?: DeleteLoadBalancerTagsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + 'Tags': ((value.tags as Array).map(ResourceLoadBalancerTagToJSON)), + }; +} + diff --git a/src/models/DeleteLoadBalancerTagsResponse.ts b/src/models/DeleteLoadBalancerTagsResponse.ts new file mode 100644 index 00000000..47caeb3c --- /dev/null +++ b/src/models/DeleteLoadBalancerTagsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteLoadBalancerTagsResponse + */ +export interface DeleteLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteLoadBalancerTagsResponseFromJSON(json: any): DeleteLoadBalancerTagsResponse { + return DeleteLoadBalancerTagsResponseFromJSONTyped(json, false); +} + +export function DeleteLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLoadBalancerTagsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteLoadBalancerTagsResponseToJSON(value?: DeleteLoadBalancerTagsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteNatServiceRequest.ts b/src/models/DeleteNatServiceRequest.ts new file mode 100644 index 00000000..be170fc3 --- /dev/null +++ b/src/models/DeleteNatServiceRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteNatServiceRequest + */ +export interface DeleteNatServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNatServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the NAT service you want to delete. + * @type {string} + * @memberof DeleteNatServiceRequest + */ + natServiceId: string; +} + +export function DeleteNatServiceRequestFromJSON(json: any): DeleteNatServiceRequest { + return DeleteNatServiceRequestFromJSONTyped(json, false); +} + +export function DeleteNatServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNatServiceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'natServiceId': json['NatServiceId'], + }; +} + +export function DeleteNatServiceRequestToJSON(value?: DeleteNatServiceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NatServiceId': value.natServiceId, + }; +} + diff --git a/src/models/DeleteNatServiceResponse.ts b/src/models/DeleteNatServiceResponse.ts new file mode 100644 index 00000000..adf38171 --- /dev/null +++ b/src/models/DeleteNatServiceResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteNatServiceResponse + */ +export interface DeleteNatServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNatServiceResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteNatServiceResponseFromJSON(json: any): DeleteNatServiceResponse { + return DeleteNatServiceResponseFromJSONTyped(json, false); +} + +export function DeleteNatServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNatServiceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteNatServiceResponseToJSON(value?: DeleteNatServiceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteNetAccessPointRequest.ts b/src/models/DeleteNetAccessPointRequest.ts new file mode 100644 index 00000000..2c94f031 --- /dev/null +++ b/src/models/DeleteNetAccessPointRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteNetAccessPointRequest + */ +export interface DeleteNetAccessPointRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net access point. + * @type {string} + * @memberof DeleteNetAccessPointRequest + */ + netAccessPointId: string; +} + +export function DeleteNetAccessPointRequestFromJSON(json: any): DeleteNetAccessPointRequest { + return DeleteNetAccessPointRequestFromJSONTyped(json, false); +} + +export function DeleteNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetAccessPointRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netAccessPointId': json['NetAccessPointId'], + }; +} + +export function DeleteNetAccessPointRequestToJSON(value?: DeleteNetAccessPointRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetAccessPointId': value.netAccessPointId, + }; +} + diff --git a/src/models/DeleteNetAccessPointResponse.ts b/src/models/DeleteNetAccessPointResponse.ts new file mode 100644 index 00000000..408fe9fe --- /dev/null +++ b/src/models/DeleteNetAccessPointResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteNetAccessPointResponse + */ +export interface DeleteNetAccessPointResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteNetAccessPointResponseFromJSON(json: any): DeleteNetAccessPointResponse { + return DeleteNetAccessPointResponseFromJSONTyped(json, false); +} + +export function DeleteNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetAccessPointResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteNetAccessPointResponseToJSON(value?: DeleteNetAccessPointResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteNetPeeringRequest.ts b/src/models/DeleteNetPeeringRequest.ts new file mode 100644 index 00000000..7fb26625 --- /dev/null +++ b/src/models/DeleteNetPeeringRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteNetPeeringRequest + */ +export interface DeleteNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to delete. + * @type {string} + * @memberof DeleteNetPeeringRequest + */ + netPeeringId: string; +} + +export function DeleteNetPeeringRequestFromJSON(json: any): DeleteNetPeeringRequest { + return DeleteNetPeeringRequestFromJSONTyped(json, false); +} + +export function DeleteNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetPeeringRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} + +export function DeleteNetPeeringRequestToJSON(value?: DeleteNetPeeringRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} + diff --git a/src/models/DeleteNetPeeringResponse.ts b/src/models/DeleteNetPeeringResponse.ts new file mode 100644 index 00000000..3fb02eb8 --- /dev/null +++ b/src/models/DeleteNetPeeringResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteNetPeeringResponse + */ +export interface DeleteNetPeeringResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteNetPeeringResponseFromJSON(json: any): DeleteNetPeeringResponse { + return DeleteNetPeeringResponseFromJSONTyped(json, false); +} + +export function DeleteNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetPeeringResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteNetPeeringResponseToJSON(value?: DeleteNetPeeringResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteNetRequest.ts b/src/models/DeleteNetRequest.ts new file mode 100644 index 00000000..aef0164b --- /dev/null +++ b/src/models/DeleteNetRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteNetRequest + */ +export interface DeleteNetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNetRequest + */ + dryRun?: boolean; + /** + * The ID of the Net you want to delete. + * @type {string} + * @memberof DeleteNetRequest + */ + netId: string; +} + +export function DeleteNetRequestFromJSON(json: any): DeleteNetRequest { + return DeleteNetRequestFromJSONTyped(json, false); +} + +export function DeleteNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} + +export function DeleteNetRequestToJSON(value?: DeleteNetRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} + diff --git a/src/models/DeleteNetResponse.ts b/src/models/DeleteNetResponse.ts new file mode 100644 index 00000000..71e1d593 --- /dev/null +++ b/src/models/DeleteNetResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteNetResponse + */ +export interface DeleteNetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNetResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteNetResponseFromJSON(json: any): DeleteNetResponse { + return DeleteNetResponseFromJSONTyped(json, false); +} + +export function DeleteNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNetResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteNetResponseToJSON(value?: DeleteNetResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteNicRequest.ts b/src/models/DeleteNicRequest.ts new file mode 100644 index 00000000..93b1fb28 --- /dev/null +++ b/src/models/DeleteNicRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteNicRequest + */ +export interface DeleteNicRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteNicRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC you want to delete. + * @type {string} + * @memberof DeleteNicRequest + */ + nicId: string; +} + +export function DeleteNicRequestFromJSON(json: any): DeleteNicRequest { + return DeleteNicRequestFromJSONTyped(json, false); +} + +export function DeleteNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNicRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + }; +} + +export function DeleteNicRequestToJSON(value?: DeleteNicRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NicId': value.nicId, + }; +} + diff --git a/src/models/DeleteNicResponse.ts b/src/models/DeleteNicResponse.ts new file mode 100644 index 00000000..8618a2dc --- /dev/null +++ b/src/models/DeleteNicResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteNicResponse + */ +export interface DeleteNicResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteNicResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteNicResponseFromJSON(json: any): DeleteNicResponse { + return DeleteNicResponseFromJSONTyped(json, false); +} + +export function DeleteNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteNicResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteNicResponseToJSON(value?: DeleteNicResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeletePublicIpRequest.ts b/src/models/DeletePublicIpRequest.ts new file mode 100644 index 00000000..f4908bcf --- /dev/null +++ b/src/models/DeletePublicIpRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeletePublicIpRequest + */ +export interface DeletePublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeletePublicIpRequest + */ + dryRun?: boolean; + /** + * The public IP. In the public Cloud, this parameter is required. + * @type {string} + * @memberof DeletePublicIpRequest + */ + publicIp?: string; + /** + * The ID representing the association of the public IP with the VM or the NIC. In a Net, this parameter is required. + * @type {string} + * @memberof DeletePublicIpRequest + */ + publicIpId?: string; +} + +export function DeletePublicIpRequestFromJSON(json: any): DeletePublicIpRequest { + return DeletePublicIpRequestFromJSONTyped(json, false); +} + +export function DeletePublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePublicIpRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} + +export function DeletePublicIpRequestToJSON(value?: DeletePublicIpRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + }; +} + diff --git a/src/models/DeletePublicIpResponse.ts b/src/models/DeletePublicIpResponse.ts new file mode 100644 index 00000000..ced1b4d9 --- /dev/null +++ b/src/models/DeletePublicIpResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeletePublicIpResponse + */ +export interface DeletePublicIpResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeletePublicIpResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeletePublicIpResponseFromJSON(json: any): DeletePublicIpResponse { + return DeletePublicIpResponseFromJSONTyped(json, false); +} + +export function DeletePublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePublicIpResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeletePublicIpResponseToJSON(value?: DeletePublicIpResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteRouteRequest.ts b/src/models/DeleteRouteRequest.ts new file mode 100644 index 00000000..3364f8b0 --- /dev/null +++ b/src/models/DeleteRouteRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteRouteRequest + */ +export interface DeleteRouteRequest { + /** + * The exact IP range for the route. + * @type {string} + * @memberof DeleteRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the route table from which you want to delete a route. + * @type {string} + * @memberof DeleteRouteRequest + */ + routeTableId: string; +} + +export function DeleteRouteRequestFromJSON(json: any): DeleteRouteRequest { + return DeleteRouteRequestFromJSONTyped(json, false); +} + +export function DeleteRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + }; +} + +export function DeleteRouteRequestToJSON(value?: DeleteRouteRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + }; +} + diff --git a/src/models/DeleteRouteResponse.ts b/src/models/DeleteRouteResponse.ts new file mode 100644 index 00000000..651445d5 --- /dev/null +++ b/src/models/DeleteRouteResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + RouteTable, + RouteTableFromJSON, + RouteTableFromJSONTyped, + RouteTableToJSON, +} from './RouteTable'; + +/** + * + * @export + * @interface DeleteRouteResponse + */ +export interface DeleteRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof DeleteRouteResponse + */ + routeTable?: RouteTable; +} + +export function DeleteRouteResponseFromJSON(json: any): DeleteRouteResponse { + return DeleteRouteResponseFromJSONTyped(json, false); +} + +export function DeleteRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} + +export function DeleteRouteResponseToJSON(value?: DeleteRouteResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} + diff --git a/src/models/DeleteRouteTableRequest.ts b/src/models/DeleteRouteTableRequest.ts new file mode 100644 index 00000000..0fdd1b19 --- /dev/null +++ b/src/models/DeleteRouteTableRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteRouteTableRequest + */ +export interface DeleteRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the route table you want to delete. + * @type {string} + * @memberof DeleteRouteTableRequest + */ + routeTableId: string; +} + +export function DeleteRouteTableRequestFromJSON(json: any): DeleteRouteTableRequest { + return DeleteRouteTableRequestFromJSONTyped(json, false); +} + +export function DeleteRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteTableRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + }; +} + +export function DeleteRouteTableRequestToJSON(value?: DeleteRouteTableRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + }; +} + diff --git a/src/models/DeleteRouteTableResponse.ts b/src/models/DeleteRouteTableResponse.ts new file mode 100644 index 00000000..f6774eb3 --- /dev/null +++ b/src/models/DeleteRouteTableResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteRouteTableResponse + */ +export interface DeleteRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteRouteTableResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteRouteTableResponseFromJSON(json: any): DeleteRouteTableResponse { + return DeleteRouteTableResponseFromJSONTyped(json, false); +} + +export function DeleteRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRouteTableResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteRouteTableResponseToJSON(value?: DeleteRouteTableResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteSecurityGroupRequest.ts b/src/models/DeleteSecurityGroupRequest.ts new file mode 100644 index 00000000..70e29103 --- /dev/null +++ b/src/models/DeleteSecurityGroupRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteSecurityGroupRequest + */ +export interface DeleteSecurityGroupRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSecurityGroupRequest + */ + dryRun?: boolean; + /** + * The ID of the security group you want to delete. + * @type {string} + * @memberof DeleteSecurityGroupRequest + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof DeleteSecurityGroupRequest + */ + securityGroupName?: string; +} + +export function DeleteSecurityGroupRequestFromJSON(json: any): DeleteSecurityGroupRequest { + return DeleteSecurityGroupRequestFromJSONTyped(json, false); +} + +export function DeleteSecurityGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} + +export function DeleteSecurityGroupRequestToJSON(value?: DeleteSecurityGroupRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} + diff --git a/src/models/DeleteSecurityGroupResponse.ts b/src/models/DeleteSecurityGroupResponse.ts new file mode 100644 index 00000000..4689b861 --- /dev/null +++ b/src/models/DeleteSecurityGroupResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteSecurityGroupResponse + */ +export interface DeleteSecurityGroupResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSecurityGroupResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteSecurityGroupResponseFromJSON(json: any): DeleteSecurityGroupResponse { + return DeleteSecurityGroupResponseFromJSONTyped(json, false); +} + +export function DeleteSecurityGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteSecurityGroupResponseToJSON(value?: DeleteSecurityGroupResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteSecurityGroupRuleRequest.ts b/src/models/DeleteSecurityGroupRuleRequest.ts new file mode 100644 index 00000000..c9024959 --- /dev/null +++ b/src/models/DeleteSecurityGroupRuleRequest.ts @@ -0,0 +1,135 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + SecurityGroupRule, + SecurityGroupRuleFromJSON, + SecurityGroupRuleFromJSONTyped, + SecurityGroupRuleToJSON, +} from './SecurityGroupRule'; + +/** + * + * @export + * @interface DeleteSecurityGroupRuleRequest + */ +export interface DeleteSecurityGroupRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSecurityGroupRuleRequest + */ + dryRun?: boolean; + /** + * The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + flow: string; + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof DeleteSecurityGroupRuleRequest + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + ipProtocol?: string; + /** + * The IP range for the security group rule, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + ipRange?: string; + /** + * One or more rules you want to delete from the security group. + * @type {Array} + * @memberof DeleteSecurityGroupRuleRequest + */ + rules?: Array; + /** + * The account ID of the owner of the security group you want to delete a rule from. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupAccountIdToUnlink?: string; + /** + * The ID of the security group you want to delete a rule from. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupId: string; + /** + * The ID of the source security group. If you are in the Public Cloud, you can also specify the name of the source security group. + * @type {string} + * @memberof DeleteSecurityGroupRuleRequest + */ + securityGroupNameToUnlink?: string; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof DeleteSecurityGroupRuleRequest + */ + toPortRange?: number; +} + +export function DeleteSecurityGroupRuleRequestFromJSON(json: any): DeleteSecurityGroupRuleRequest { + return DeleteSecurityGroupRuleRequestFromJSONTyped(json, false); +} + +export function DeleteSecurityGroupRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flow': json['Flow'], + 'fromPortRange': !exists(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !exists(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'rules': !exists(json, 'Rules') ? undefined : ((json['Rules'] as Array).map(SecurityGroupRuleFromJSON)), + 'securityGroupAccountIdToUnlink': !exists(json, 'SecurityGroupAccountIdToUnlink') ? undefined : json['SecurityGroupAccountIdToUnlink'], + 'securityGroupId': json['SecurityGroupId'], + 'securityGroupNameToUnlink': !exists(json, 'SecurityGroupNameToUnlink') ? undefined : json['SecurityGroupNameToUnlink'], + 'toPortRange': !exists(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} + +export function DeleteSecurityGroupRuleRequestToJSON(value?: DeleteSecurityGroupRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Flow': value.flow, + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRange': value.ipRange, + 'Rules': value.rules === undefined ? undefined : ((value.rules as Array).map(SecurityGroupRuleToJSON)), + 'SecurityGroupAccountIdToUnlink': value.securityGroupAccountIdToUnlink, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupNameToUnlink': value.securityGroupNameToUnlink, + 'ToPortRange': value.toPortRange, + }; +} + diff --git a/src/models/DeleteSecurityGroupRuleResponse.ts b/src/models/DeleteSecurityGroupRuleResponse.ts new file mode 100644 index 00000000..5fc6a53e --- /dev/null +++ b/src/models/DeleteSecurityGroupRuleResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + SecurityGroup, + SecurityGroupFromJSON, + SecurityGroupFromJSONTyped, + SecurityGroupToJSON, +} from './SecurityGroup'; + +/** + * + * @export + * @interface DeleteSecurityGroupRuleResponse + */ +export interface DeleteSecurityGroupRuleResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSecurityGroupRuleResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {SecurityGroup} + * @memberof DeleteSecurityGroupRuleResponse + */ + securityGroup?: SecurityGroup; +} + +export function DeleteSecurityGroupRuleResponseFromJSON(json: any): DeleteSecurityGroupRuleResponse { + return DeleteSecurityGroupRuleResponseFromJSONTyped(json, false); +} + +export function DeleteSecurityGroupRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSecurityGroupRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroup': !exists(json, 'SecurityGroup') ? undefined : SecurityGroupFromJSON(json['SecurityGroup']), + }; +} + +export function DeleteSecurityGroupRuleResponseToJSON(value?: DeleteSecurityGroupRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroup': SecurityGroupToJSON(value.securityGroup), + }; +} + diff --git a/src/models/DeleteServerCertificateRequest.ts b/src/models/DeleteServerCertificateRequest.ts new file mode 100644 index 00000000..d298821a --- /dev/null +++ b/src/models/DeleteServerCertificateRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteServerCertificateRequest + */ +export interface DeleteServerCertificateRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteServerCertificateRequest + */ + dryRun?: boolean; + /** + * The name of the server certificate you want to delete. + * @type {string} + * @memberof DeleteServerCertificateRequest + */ + name: string; +} + +export function DeleteServerCertificateRequestFromJSON(json: any): DeleteServerCertificateRequest { + return DeleteServerCertificateRequestFromJSONTyped(json, false); +} + +export function DeleteServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteServerCertificateRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + }; +} + +export function DeleteServerCertificateRequestToJSON(value?: DeleteServerCertificateRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Name': value.name, + }; +} + diff --git a/src/models/DeleteServerCertificateResponse.ts b/src/models/DeleteServerCertificateResponse.ts new file mode 100644 index 00000000..d0884e0b --- /dev/null +++ b/src/models/DeleteServerCertificateResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteServerCertificateResponse + */ +export interface DeleteServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteServerCertificateResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteServerCertificateResponseFromJSON(json: any): DeleteServerCertificateResponse { + return DeleteServerCertificateResponseFromJSONTyped(json, false); +} + +export function DeleteServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteServerCertificateResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteServerCertificateResponseToJSON(value?: DeleteServerCertificateResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteSnapshotRequest.ts b/src/models/DeleteSnapshotRequest.ts new file mode 100644 index 00000000..bdaf03aa --- /dev/null +++ b/src/models/DeleteSnapshotRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteSnapshotRequest + */ +export interface DeleteSnapshotRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSnapshotRequest + */ + dryRun?: boolean; + /** + * The ID of the snapshot you want to delete. + * @type {string} + * @memberof DeleteSnapshotRequest + */ + snapshotId: string; +} + +export function DeleteSnapshotRequestFromJSON(json: any): DeleteSnapshotRequest { + return DeleteSnapshotRequestFromJSONTyped(json, false); +} + +export function DeleteSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSnapshotRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'snapshotId': json['SnapshotId'], + }; +} + +export function DeleteSnapshotRequestToJSON(value?: DeleteSnapshotRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'SnapshotId': value.snapshotId, + }; +} + diff --git a/src/models/DeleteSnapshotResponse.ts b/src/models/DeleteSnapshotResponse.ts new file mode 100644 index 00000000..b5973478 --- /dev/null +++ b/src/models/DeleteSnapshotResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteSnapshotResponse + */ +export interface DeleteSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSnapshotResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteSnapshotResponseFromJSON(json: any): DeleteSnapshotResponse { + return DeleteSnapshotResponseFromJSONTyped(json, false); +} + +export function DeleteSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSnapshotResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteSnapshotResponseToJSON(value?: DeleteSnapshotResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteSubnetRequest.ts b/src/models/DeleteSubnetRequest.ts new file mode 100644 index 00000000..9b6bcb5d --- /dev/null +++ b/src/models/DeleteSubnetRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteSubnetRequest + */ +export interface DeleteSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteSubnetRequest + */ + dryRun?: boolean; + /** + * The ID of the Subnet you want to delete. + * @type {string} + * @memberof DeleteSubnetRequest + */ + subnetId: string; +} + +export function DeleteSubnetRequestFromJSON(json: any): DeleteSubnetRequest { + return DeleteSubnetRequestFromJSONTyped(json, false); +} + +export function DeleteSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSubnetRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'subnetId': json['SubnetId'], + }; +} + +export function DeleteSubnetRequestToJSON(value?: DeleteSubnetRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/DeleteSubnetResponse.ts b/src/models/DeleteSubnetResponse.ts new file mode 100644 index 00000000..e981fe7b --- /dev/null +++ b/src/models/DeleteSubnetResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteSubnetResponse + */ +export interface DeleteSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteSubnetResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteSubnetResponseFromJSON(json: any): DeleteSubnetResponse { + return DeleteSubnetResponseFromJSONTyped(json, false); +} + +export function DeleteSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSubnetResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteSubnetResponseToJSON(value?: DeleteSubnetResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteTagsRequest.ts b/src/models/DeleteTagsRequest.ts new file mode 100644 index 00000000..c133f412 --- /dev/null +++ b/src/models/DeleteTagsRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * + * @export + * @interface DeleteTagsRequest + */ +export interface DeleteTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteTagsRequest + */ + dryRun?: boolean; + /** + * One or more resource IDs. + * @type {Array} + * @memberof DeleteTagsRequest + */ + resourceIds: Array; + /** + * One or more tags to delete (if you set a tag value, only the tags matching exactly this value are deleted). + * @type {Array} + * @memberof DeleteTagsRequest + */ + tags: Array; +} + +export function DeleteTagsRequestFromJSON(json: any): DeleteTagsRequest { + return DeleteTagsRequestFromJSONTyped(json, false); +} + +export function DeleteTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTagsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'resourceIds': json['ResourceIds'], + 'tags': ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function DeleteTagsRequestToJSON(value?: DeleteTagsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ResourceIds': value.resourceIds, + 'Tags': ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/DeleteTagsResponse.ts b/src/models/DeleteTagsResponse.ts new file mode 100644 index 00000000..456b0f0c --- /dev/null +++ b/src/models/DeleteTagsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteTagsResponse + */ +export interface DeleteTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteTagsResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteTagsResponseFromJSON(json: any): DeleteTagsResponse { + return DeleteTagsResponseFromJSONTyped(json, false); +} + +export function DeleteTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTagsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteTagsResponseToJSON(value?: DeleteTagsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteVirtualGatewayRequest.ts b/src/models/DeleteVirtualGatewayRequest.ts new file mode 100644 index 00000000..cf8f56e9 --- /dev/null +++ b/src/models/DeleteVirtualGatewayRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteVirtualGatewayRequest + */ +export interface DeleteVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the virtual gateway you want to delete. + * @type {string} + * @memberof DeleteVirtualGatewayRequest + */ + virtualGatewayId: string; +} + +export function DeleteVirtualGatewayRequestFromJSON(json: any): DeleteVirtualGatewayRequest { + return DeleteVirtualGatewayRequestFromJSONTyped(json, false); +} + +export function DeleteVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVirtualGatewayRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} + +export function DeleteVirtualGatewayRequestToJSON(value?: DeleteVirtualGatewayRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/DeleteVirtualGatewayResponse.ts b/src/models/DeleteVirtualGatewayResponse.ts new file mode 100644 index 00000000..32721209 --- /dev/null +++ b/src/models/DeleteVirtualGatewayResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteVirtualGatewayResponse + */ +export interface DeleteVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteVirtualGatewayResponseFromJSON(json: any): DeleteVirtualGatewayResponse { + return DeleteVirtualGatewayResponseFromJSONTyped(json, false); +} + +export function DeleteVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVirtualGatewayResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteVirtualGatewayResponseToJSON(value?: DeleteVirtualGatewayResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteVmsRequest.ts b/src/models/DeleteVmsRequest.ts new file mode 100644 index 00000000..1fe53a56 --- /dev/null +++ b/src/models/DeleteVmsRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteVmsRequest + */ +export interface DeleteVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof DeleteVmsRequest + */ + vmIds: Array; +} + +export function DeleteVmsRequestFromJSON(json: any): DeleteVmsRequest { + return DeleteVmsRequestFromJSONTyped(json, false); +} + +export function DeleteVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVmsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} + +export function DeleteVmsRequestToJSON(value?: DeleteVmsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/DeleteVmsResponse.ts b/src/models/DeleteVmsResponse.ts new file mode 100644 index 00000000..72ca2170 --- /dev/null +++ b/src/models/DeleteVmsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VmState, + VmStateFromJSON, + VmStateFromJSONTyped, + VmStateToJSON, +} from './VmState'; + +/** + * + * @export + * @interface DeleteVmsResponse + */ +export interface DeleteVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more terminated VMs. + * @type {Array} + * @memberof DeleteVmsResponse + */ + vms?: Array; +} + +export function DeleteVmsResponseFromJSON(json: any): DeleteVmsResponse { + return DeleteVmsResponseFromJSONTyped(json, false); +} + +export function DeleteVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVmsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : ((json['Vms'] as Array).map(VmStateFromJSON)), + }; +} + +export function DeleteVmsResponseToJSON(value?: DeleteVmsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : ((value.vms as Array).map(VmStateToJSON)), + }; +} + diff --git a/src/models/DeleteVolumeRequest.ts b/src/models/DeleteVolumeRequest.ts new file mode 100644 index 00000000..0162959e --- /dev/null +++ b/src/models/DeleteVolumeRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteVolumeRequest + */ +export interface DeleteVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVolumeRequest + */ + dryRun?: boolean; + /** + * The ID of the volume you want to delete. + * @type {string} + * @memberof DeleteVolumeRequest + */ + volumeId: string; +} + +export function DeleteVolumeRequestFromJSON(json: any): DeleteVolumeRequest { + return DeleteVolumeRequestFromJSONTyped(json, false); +} + +export function DeleteVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVolumeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'volumeId': json['VolumeId'], + }; +} + +export function DeleteVolumeRequestToJSON(value?: DeleteVolumeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/DeleteVolumeResponse.ts b/src/models/DeleteVolumeResponse.ts new file mode 100644 index 00000000..796783e9 --- /dev/null +++ b/src/models/DeleteVolumeResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteVolumeResponse + */ +export interface DeleteVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVolumeResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteVolumeResponseFromJSON(json: any): DeleteVolumeResponse { + return DeleteVolumeResponseFromJSONTyped(json, false); +} + +export function DeleteVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVolumeResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteVolumeResponseToJSON(value?: DeleteVolumeResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteVpnConnectionRequest.ts b/src/models/DeleteVpnConnectionRequest.ts new file mode 100644 index 00000000..93ccc739 --- /dev/null +++ b/src/models/DeleteVpnConnectionRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteVpnConnectionRequest + */ +export interface DeleteVpnConnectionRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVpnConnectionRequest + */ + dryRun?: boolean; + /** + * The ID of the VPN connection you want to delete. + * @type {string} + * @memberof DeleteVpnConnectionRequest + */ + vpnConnectionId: string; +} + +export function DeleteVpnConnectionRequestFromJSON(json: any): DeleteVpnConnectionRequest { + return DeleteVpnConnectionRequestFromJSONTyped(json, false); +} + +export function DeleteVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} + +export function DeleteVpnConnectionRequestToJSON(value?: DeleteVpnConnectionRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} + diff --git a/src/models/DeleteVpnConnectionResponse.ts b/src/models/DeleteVpnConnectionResponse.ts new file mode 100644 index 00000000..dd04af29 --- /dev/null +++ b/src/models/DeleteVpnConnectionResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteVpnConnectionResponse + */ +export interface DeleteVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVpnConnectionResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteVpnConnectionResponseFromJSON(json: any): DeleteVpnConnectionResponse { + return DeleteVpnConnectionResponseFromJSONTyped(json, false); +} + +export function DeleteVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteVpnConnectionResponseToJSON(value?: DeleteVpnConnectionResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeleteVpnConnectionRouteRequest.ts b/src/models/DeleteVpnConnectionRouteRequest.ts new file mode 100644 index 00000000..eb6f6afe --- /dev/null +++ b/src/models/DeleteVpnConnectionRouteRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeleteVpnConnectionRouteRequest + */ +export interface DeleteVpnConnectionRouteRequest { + /** + * The network prefix of the route to delete, in CIDR notation (for example, 10.12.0.0/16). + * @type {string} + * @memberof DeleteVpnConnectionRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeleteVpnConnectionRouteRequest + */ + dryRun?: boolean; + /** + * The ID of the target VPN connection of the static route to delete. + * @type {string} + * @memberof DeleteVpnConnectionRouteRequest + */ + vpnConnectionId: string; +} + +export function DeleteVpnConnectionRouteRequestFromJSON(json: any): DeleteVpnConnectionRouteRequest { + return DeleteVpnConnectionRouteRequestFromJSONTyped(json, false); +} + +export function DeleteVpnConnectionRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRouteRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vpnConnectionId': json['VpnConnectionId'], + }; +} + +export function DeleteVpnConnectionRouteRequestToJSON(value?: DeleteVpnConnectionRouteRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'VpnConnectionId': value.vpnConnectionId, + }; +} + diff --git a/src/models/DeleteVpnConnectionRouteResponse.ts b/src/models/DeleteVpnConnectionRouteResponse.ts new file mode 100644 index 00000000..6d1aee6f --- /dev/null +++ b/src/models/DeleteVpnConnectionRouteResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeleteVpnConnectionRouteResponse + */ +export interface DeleteVpnConnectionRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeleteVpnConnectionRouteResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeleteVpnConnectionRouteResponseFromJSON(json: any): DeleteVpnConnectionRouteResponse { + return DeleteVpnConnectionRouteResponseFromJSONTyped(json, false); +} + +export function DeleteVpnConnectionRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteVpnConnectionRouteResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeleteVpnConnectionRouteResponseToJSON(value?: DeleteVpnConnectionRouteResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DeregisterVmsInLoadBalancerRequest.ts b/src/models/DeregisterVmsInLoadBalancerRequest.ts new file mode 100644 index 00000000..9f7dd44f --- /dev/null +++ b/src/models/DeregisterVmsInLoadBalancerRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DeregisterVmsInLoadBalancerRequest + */ +export interface DeregisterVmsInLoadBalancerRequest { + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + backendVmIds: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof DeregisterVmsInLoadBalancerRequest + */ + loadBalancerName: string; +} + +export function DeregisterVmsInLoadBalancerRequestFromJSON(json: any): DeregisterVmsInLoadBalancerRequest { + return DeregisterVmsInLoadBalancerRequestFromJSONTyped(json, false); +} + +export function DeregisterVmsInLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeregisterVmsInLoadBalancerRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendVmIds': json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function DeregisterVmsInLoadBalancerRequestToJSON(value?: DeregisterVmsInLoadBalancerRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/DeregisterVmsInLoadBalancerResponse.ts b/src/models/DeregisterVmsInLoadBalancerResponse.ts new file mode 100644 index 00000000..6d348c32 --- /dev/null +++ b/src/models/DeregisterVmsInLoadBalancerResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface DeregisterVmsInLoadBalancerResponse + */ +export interface DeregisterVmsInLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof DeregisterVmsInLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} + +export function DeregisterVmsInLoadBalancerResponseFromJSON(json: any): DeregisterVmsInLoadBalancerResponse { + return DeregisterVmsInLoadBalancerResponseFromJSONTyped(json, false); +} + +export function DeregisterVmsInLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeregisterVmsInLoadBalancerResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function DeregisterVmsInLoadBalancerResponseToJSON(value?: DeregisterVmsInLoadBalancerResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/DhcpOptionsSet.ts b/src/models/DhcpOptionsSet.ts new file mode 100644 index 00000000..cc79eae2 --- /dev/null +++ b/src/models/DhcpOptionsSet.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the DHCP options set. + * @export + * @interface DhcpOptionsSet + */ +export interface DhcpOptionsSet { + /** + * If true, the DHCP options set is a default one. If false, it is not. + * @type {boolean} + * @memberof DhcpOptionsSet + */ + _default?: boolean; + /** + * The ID of the DHCP options set. + * @type {string} + * @memberof DhcpOptionsSet + */ + dhcpOptionsSetId?: string; + /** + * The domain name. + * @type {string} + * @memberof DhcpOptionsSet + */ + domainName?: string; + /** + * One or more IPs for the domain name servers. + * @type {Array} + * @memberof DhcpOptionsSet + */ + domainNameServers?: Array; + /** + * One or more IPs for the NTP servers. + * @type {Array} + * @memberof DhcpOptionsSet + */ + ntpServers?: Array; + /** + * One or more tags associated with the DHCP options set. + * @type {Array} + * @memberof DhcpOptionsSet + */ + tags?: Array; +} + +export function DhcpOptionsSetFromJSON(json: any): DhcpOptionsSet { + return DhcpOptionsSetFromJSONTyped(json, false); +} + +export function DhcpOptionsSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): DhcpOptionsSet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '_default': !exists(json, 'Default') ? undefined : json['Default'], + 'dhcpOptionsSetId': !exists(json, 'DhcpOptionsSetId') ? undefined : json['DhcpOptionsSetId'], + 'domainName': !exists(json, 'DomainName') ? undefined : json['DomainName'], + 'domainNameServers': !exists(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'ntpServers': !exists(json, 'NtpServers') ? undefined : json['NtpServers'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function DhcpOptionsSetToJSON(value?: DhcpOptionsSet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Default': value._default, + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DomainName': value.domainName, + 'DomainNameServers': value.domainNameServers, + 'NtpServers': value.ntpServers, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/DirectLink.ts b/src/models/DirectLink.ts new file mode 100644 index 00000000..05033ad8 --- /dev/null +++ b/src/models/DirectLink.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the DirectLink. + * @export + * @interface DirectLink + */ +export interface DirectLink { + /** + * The account ID of the owner of the DirectLink. + * @type {string} + * @memberof DirectLink + */ + accountId?: string; + /** + * The physical link bandwidth (either 1 Gbps or 10 Gbps). + * @type {string} + * @memberof DirectLink + */ + bandwidth?: string; + /** + * The ID of the DirectLink (for example, dxcon-xxxxxxxx). + * @type {string} + * @memberof DirectLink + */ + directLinkId?: string; + /** + * The name of the DirectLink. + * @type {string} + * @memberof DirectLink + */ + directLinkName?: string; + /** + * The datacenter where the DirectLink is located. + * @type {string} + * @memberof DirectLink + */ + location?: string; + /** + * The Region in which the DirectLink has been created. + * @type {string} + * @memberof DirectLink + */ + regionName?: string; + /** + * The state of the DirectLink.
+ * * `requested`: The DirectLink is requested but the request has not been validated yet.
+ * * `pending`: The DirectLink request has been validated. It remains in the `pending` state until you establish the physical link.
+ * * `available`: The physical link is established and the connection is ready to use.
+ * * `deleting`: The deletion process is in progress.
+ * * `deleted`: The DirectLink is deleted. + * @type {string} + * @memberof DirectLink + */ + state?: string; +} + +export function DirectLinkFromJSON(json: any): DirectLink { + return DirectLinkFromJSONTyped(json, false); +} + +export function DirectLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLink { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'bandwidth': !exists(json, 'Bandwidth') ? undefined : json['Bandwidth'], + 'directLinkId': !exists(json, 'DirectLinkId') ? undefined : json['DirectLinkId'], + 'directLinkName': !exists(json, 'DirectLinkName') ? undefined : json['DirectLinkName'], + 'location': !exists(json, 'Location') ? undefined : json['Location'], + 'regionName': !exists(json, 'RegionName') ? undefined : json['RegionName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} + +export function DirectLinkToJSON(value?: DirectLink | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'Bandwidth': value.bandwidth, + 'DirectLinkId': value.directLinkId, + 'DirectLinkName': value.directLinkName, + 'Location': value.location, + 'RegionName': value.regionName, + 'State': value.state, + }; +} + diff --git a/src/models/DirectLinkInterface.ts b/src/models/DirectLinkInterface.ts new file mode 100644 index 00000000..9913e5ef --- /dev/null +++ b/src/models/DirectLinkInterface.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the DirectLink interface. + * @export + * @interface DirectLinkInterface + */ +export interface DirectLinkInterface { + /** + * The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer's side of the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterface + */ + bgpAsn: number; + /** + * The BGP authentication key. + * @type {string} + * @memberof DirectLinkInterface + */ + bgpKey?: string; + /** + * The IP on the customer's side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + clientPrivateIp?: string; + /** + * The name of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + directLinkInterfaceName: string; + /** + * The IP on the OUTSCALE side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterface + */ + outscalePrivateIp?: string; + /** + * The ID of the target virtual gateway. + * @type {string} + * @memberof DirectLinkInterface + */ + virtualGatewayId: string; + /** + * The VLAN number associated with the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterface + */ + vlan: number; +} + +export function DirectLinkInterfaceFromJSON(json: any): DirectLinkInterface { + return DirectLinkInterfaceFromJSONTyped(json, false); +} + +export function DirectLinkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLinkInterface { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bgpAsn': json['BgpAsn'], + 'bgpKey': !exists(json, 'BgpKey') ? undefined : json['BgpKey'], + 'clientPrivateIp': !exists(json, 'ClientPrivateIp') ? undefined : json['ClientPrivateIp'], + 'directLinkInterfaceName': json['DirectLinkInterfaceName'], + 'outscalePrivateIp': !exists(json, 'OutscalePrivateIp') ? undefined : json['OutscalePrivateIp'], + 'virtualGatewayId': json['VirtualGatewayId'], + 'vlan': json['Vlan'], + }; +} + +export function DirectLinkInterfaceToJSON(value?: DirectLinkInterface | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BgpAsn': value.bgpAsn, + 'BgpKey': value.bgpKey, + 'ClientPrivateIp': value.clientPrivateIp, + 'DirectLinkInterfaceName': value.directLinkInterfaceName, + 'OutscalePrivateIp': value.outscalePrivateIp, + 'VirtualGatewayId': value.virtualGatewayId, + 'Vlan': value.vlan, + }; +} + diff --git a/src/models/DirectLinkInterfaces.ts b/src/models/DirectLinkInterfaces.ts new file mode 100644 index 00000000..dd410be3 --- /dev/null +++ b/src/models/DirectLinkInterfaces.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the DirectLink interfaces. + * @export + * @interface DirectLinkInterfaces + */ +export interface DirectLinkInterfaces { + /** + * The account ID of the owner of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + accountId?: string; + /** + * The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer's side of the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterfaces + */ + bgpAsn?: number; + /** + * The BGP authentication key. + * @type {string} + * @memberof DirectLinkInterfaces + */ + bgpKey?: string; + /** + * The IP on the customer's side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + clientPrivateIp?: string; + /** + * The ID of the DirectLink. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkId?: string; + /** + * The ID of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkInterfaceId?: string; + /** + * The name of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + directLinkInterfaceName?: string; + /** + * The type of the DirectLink interface (always `private`). + * @type {string} + * @memberof DirectLinkInterfaces + */ + interfaceType?: string; + /** + * The datacenter where the DirectLink interface is located. + * @type {string} + * @memberof DirectLinkInterfaces + */ + location?: string; + /** + * The IP on the OUTSCALE side of the DirectLink interface. + * @type {string} + * @memberof DirectLinkInterfaces + */ + outscalePrivateIp?: string; + /** + * The state of the DirectLink interface (`pending` \| `available` \| `deleting` \| `deleted` \| `confirming` \| `rejected` \| `expired`). + * @type {string} + * @memberof DirectLinkInterfaces + */ + state?: string; + /** + * The ID of the target virtual gateway. + * @type {string} + * @memberof DirectLinkInterfaces + */ + virtualGatewayId?: string; + /** + * The VLAN number associated with the DirectLink interface. + * @type {number} + * @memberof DirectLinkInterfaces + */ + vlan?: number; +} + +export function DirectLinkInterfacesFromJSON(json: any): DirectLinkInterfaces { + return DirectLinkInterfacesFromJSONTyped(json, false); +} + +export function DirectLinkInterfacesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectLinkInterfaces { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'bgpAsn': !exists(json, 'BgpAsn') ? undefined : json['BgpAsn'], + 'bgpKey': !exists(json, 'BgpKey') ? undefined : json['BgpKey'], + 'clientPrivateIp': !exists(json, 'ClientPrivateIp') ? undefined : json['ClientPrivateIp'], + 'directLinkId': !exists(json, 'DirectLinkId') ? undefined : json['DirectLinkId'], + 'directLinkInterfaceId': !exists(json, 'DirectLinkInterfaceId') ? undefined : json['DirectLinkInterfaceId'], + 'directLinkInterfaceName': !exists(json, 'DirectLinkInterfaceName') ? undefined : json['DirectLinkInterfaceName'], + 'interfaceType': !exists(json, 'InterfaceType') ? undefined : json['InterfaceType'], + 'location': !exists(json, 'Location') ? undefined : json['Location'], + 'outscalePrivateIp': !exists(json, 'OutscalePrivateIp') ? undefined : json['OutscalePrivateIp'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vlan': !exists(json, 'Vlan') ? undefined : json['Vlan'], + }; +} + +export function DirectLinkInterfacesToJSON(value?: DirectLinkInterfaces | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'BgpAsn': value.bgpAsn, + 'BgpKey': value.bgpKey, + 'ClientPrivateIp': value.clientPrivateIp, + 'DirectLinkId': value.directLinkId, + 'DirectLinkInterfaceId': value.directLinkInterfaceId, + 'DirectLinkInterfaceName': value.directLinkInterfaceName, + 'InterfaceType': value.interfaceType, + 'Location': value.location, + 'OutscalePrivateIp': value.outscalePrivateIp, + 'State': value.state, + 'VirtualGatewayId': value.virtualGatewayId, + 'Vlan': value.vlan, + }; +} + diff --git a/src/models/ErrorResponse.ts b/src/models/ErrorResponse.ts new file mode 100644 index 00000000..4a6e9cc9 --- /dev/null +++ b/src/models/ErrorResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Errors, + ErrorsFromJSON, + ErrorsFromJSONTyped, + ErrorsToJSON, +} from './Errors'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ErrorResponse + */ +export interface ErrorResponse { + /** + * One or more errors. + * @type {Array} + * @memberof ErrorResponse + */ + errors?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ErrorResponse + */ + responseContext?: ModelResponseContext; +} + +export function ErrorResponseFromJSON(json: any): ErrorResponse { + return ErrorResponseFromJSONTyped(json, false); +} + +export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'errors': !exists(json, 'Errors') ? undefined : ((json['Errors'] as Array).map(ErrorsFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ErrorResponseToJSON(value?: ErrorResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Errors': value.errors === undefined ? undefined : ((value.errors as Array).map(ErrorsToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/Errors.ts b/src/models/Errors.ts new file mode 100644 index 00000000..8ab4ed0f --- /dev/null +++ b/src/models/Errors.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the errors. + * @export + * @interface Errors + */ +export interface Errors { + /** + * The code of the error. + * @type {string} + * @memberof Errors + */ + code?: string; + /** + * The details of the error. + * @type {string} + * @memberof Errors + */ + details?: string; + /** + * The type of the error. + * @type {string} + * @memberof Errors + */ + type?: string; +} + +export function ErrorsFromJSON(json: any): Errors { + return ErrorsFromJSONTyped(json, false); +} + +export function ErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Errors { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'code': !exists(json, 'Code') ? undefined : json['Code'], + 'details': !exists(json, 'Details') ? undefined : json['Details'], + 'type': !exists(json, 'Type') ? undefined : json['Type'], + }; +} + +export function ErrorsToJSON(value?: Errors | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Code': value.code, + 'Details': value.details, + 'Type': value.type, + }; +} + diff --git a/src/models/FiltersAccessKeys.ts b/src/models/FiltersAccessKeys.ts new file mode 100644 index 00000000..ba569bf4 --- /dev/null +++ b/src/models/FiltersAccessKeys.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersAccessKeys + */ +export interface FiltersAccessKeys { + /** + * The IDs of the access keys. + * @type {Array} + * @memberof FiltersAccessKeys + */ + accessKeyIds?: Array; + /** + * The states of the access keys (`ACTIVE` \| `INACTIVE`). + * @type {Array} + * @memberof FiltersAccessKeys + */ + states?: Array; +} + +export function FiltersAccessKeysFromJSON(json: any): FiltersAccessKeys { + return FiltersAccessKeysFromJSONTyped(json, false); +} + +export function FiltersAccessKeysFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersAccessKeys { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeyIds': !exists(json, 'AccessKeyIds') ? undefined : json['AccessKeyIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + }; +} + +export function FiltersAccessKeysToJSON(value?: FiltersAccessKeys | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeyIds': value.accessKeyIds, + 'States': value.states, + }; +} + diff --git a/src/models/FiltersApiAccessRule.ts b/src/models/FiltersApiAccessRule.ts new file mode 100644 index 00000000..e118f756 --- /dev/null +++ b/src/models/FiltersApiAccessRule.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersApiAccessRule + */ +export interface FiltersApiAccessRule { + /** + * One or more IDs of API access rules. + * @type {Array} + * @memberof FiltersApiAccessRule + */ + apiAccessRuleIds?: Array; + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + cns?: Array; + /** + * One or more descriptions of API access rules. + * @type {Array} + * @memberof FiltersApiAccessRule + */ + descriptions?: Array; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof FiltersApiAccessRule + */ + ipRanges?: Array; +} + +export function FiltersApiAccessRuleFromJSON(json: any): FiltersApiAccessRule { + return FiltersApiAccessRuleFromJSONTyped(json, false); +} + +export function FiltersApiAccessRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersApiAccessRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRuleIds': !exists(json, 'ApiAccessRuleIds') ? undefined : json['ApiAccessRuleIds'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} + +export function FiltersApiAccessRuleToJSON(value?: FiltersApiAccessRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRuleIds': value.apiAccessRuleIds, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Descriptions': value.descriptions, + 'IpRanges': value.ipRanges, + }; +} + diff --git a/src/models/FiltersApiLog.ts b/src/models/FiltersApiLog.ts new file mode 100644 index 00000000..c3670237 --- /dev/null +++ b/src/models/FiltersApiLog.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersApiLog + */ +export interface FiltersApiLog { + /** + * The access keys used for the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryAccessKeys?: Array; + /** + * The names of the APIs of the logged calls (always `oapi` for the OUTSCALE API). + * @type {Array} + * @memberof FiltersApiLog + */ + queryApiNames?: Array; + /** + * The names of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryCallNames?: Array; + /** + * The date after which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-14`). By default, this date is set to 48 hours before the `QueryDateBefore` parameter value. + * @type {Date} + * @memberof FiltersApiLog + */ + queryDateAfter?: Date; + /** + * The date before which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-30`). By default, this date is set to now, or 48 hours after the `QueryDateAfter` parameter value. + * @type {Date} + * @memberof FiltersApiLog + */ + queryDateBefore?: Date; + /** + * The IPs used for the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryIpAddresses?: Array; + /** + * The user agents of the HTTP requests of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + queryUserAgents?: Array; + /** + * The request IDs provided in the responses of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + requestIds?: Array; + /** + * The HTTP status codes of the logged calls. + * @type {Array} + * @memberof FiltersApiLog + */ + responseStatusCodes?: Array; +} + +export function FiltersApiLogFromJSON(json: any): FiltersApiLog { + return FiltersApiLogFromJSONTyped(json, false); +} + +export function FiltersApiLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersApiLog { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'queryAccessKeys': !exists(json, 'QueryAccessKeys') ? undefined : json['QueryAccessKeys'], + 'queryApiNames': !exists(json, 'QueryApiNames') ? undefined : json['QueryApiNames'], + 'queryCallNames': !exists(json, 'QueryCallNames') ? undefined : json['QueryCallNames'], + 'queryDateAfter': !exists(json, 'QueryDateAfter') ? undefined : (new Date(json['QueryDateAfter'])), + 'queryDateBefore': !exists(json, 'QueryDateBefore') ? undefined : (new Date(json['QueryDateBefore'])), + 'queryIpAddresses': !exists(json, 'QueryIpAddresses') ? undefined : json['QueryIpAddresses'], + 'queryUserAgents': !exists(json, 'QueryUserAgents') ? undefined : json['QueryUserAgents'], + 'requestIds': !exists(json, 'RequestIds') ? undefined : json['RequestIds'], + 'responseStatusCodes': !exists(json, 'ResponseStatusCodes') ? undefined : json['ResponseStatusCodes'], + }; +} + +export function FiltersApiLogToJSON(value?: FiltersApiLog | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'QueryAccessKeys': value.queryAccessKeys, + 'QueryApiNames': value.queryApiNames, + 'QueryCallNames': value.queryCallNames, + 'QueryDateAfter': value.queryDateAfter === undefined ? undefined : (value.queryDateAfter.toISOString().substr(0,10)), + 'QueryDateBefore': value.queryDateBefore === undefined ? undefined : (value.queryDateBefore.toISOString().substr(0,10)), + 'QueryIpAddresses': value.queryIpAddresses, + 'QueryUserAgents': value.queryUserAgents, + 'RequestIds': value.requestIds, + 'ResponseStatusCodes': value.responseStatusCodes, + }; +} + diff --git a/src/models/FiltersCa.ts b/src/models/FiltersCa.ts new file mode 100644 index 00000000..8b4d87fd --- /dev/null +++ b/src/models/FiltersCa.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersCa + */ +export interface FiltersCa { + /** + * The fingerprints of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + caFingerprints?: Array; + /** + * The IDs of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + caIds?: Array; + /** + * The descriptions of the CAs. + * @type {Array} + * @memberof FiltersCa + */ + descriptions?: Array; +} + +export function FiltersCaFromJSON(json: any): FiltersCa { + return FiltersCaFromJSONTyped(json, false); +} + +export function FiltersCaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersCa { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caFingerprints': !exists(json, 'CaFingerprints') ? undefined : json['CaFingerprints'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + }; +} + +export function FiltersCaToJSON(value?: FiltersCa | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CaFingerprints': value.caFingerprints, + 'CaIds': value.caIds, + 'Descriptions': value.descriptions, + }; +} + diff --git a/src/models/FiltersClientGateway.ts b/src/models/FiltersClientGateway.ts new file mode 100644 index 00000000..71ade9d8 --- /dev/null +++ b/src/models/FiltersClientGateway.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersClientGateway + */ +export interface FiltersClientGateway { + /** + * The Border Gateway Protocol (BGP) Autonomous System Numbers (ASNs) of the connections. + * @type {Array} + * @memberof FiltersClientGateway + */ + bgpAsns?: Array; + /** + * The IDs of the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + clientGatewayIds?: Array; + /** + * The types of communication tunnels used by the client gateways (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersClientGateway + */ + connectionTypes?: Array; + /** + * The public IPv4 addresses of the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + publicIps?: Array; + /** + * The states of the client gateways (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersClientGateway + */ + states?: Array; + /** + * The keys of the tags associated with the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + tagKeys?: Array; + /** + * The values of the tags associated with the client gateways. + * @type {Array} + * @memberof FiltersClientGateway + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the client gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersClientGateway + */ + tags?: Array; +} + +export function FiltersClientGatewayFromJSON(json: any): FiltersClientGateway { + return FiltersClientGatewayFromJSONTyped(json, false); +} + +export function FiltersClientGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersClientGateway { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bgpAsns': !exists(json, 'BgpAsns') ? undefined : json['BgpAsns'], + 'clientGatewayIds': !exists(json, 'ClientGatewayIds') ? undefined : json['ClientGatewayIds'], + 'connectionTypes': !exists(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'publicIps': !exists(json, 'PublicIps') ? undefined : json['PublicIps'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersClientGatewayToJSON(value?: FiltersClientGateway | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BgpAsns': value.bgpAsns, + 'ClientGatewayIds': value.clientGatewayIds, + 'ConnectionTypes': value.connectionTypes, + 'PublicIps': value.publicIps, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersDhcpOptions.ts b/src/models/FiltersDhcpOptions.ts new file mode 100644 index 00000000..af04f980 --- /dev/null +++ b/src/models/FiltersDhcpOptions.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersDhcpOptions + */ +export interface FiltersDhcpOptions { + /** + * If true, lists all default DHCP options set. If false, lists all non-default DHCP options set. + * @type {boolean} + * @memberof FiltersDhcpOptions + */ + _default?: boolean; + /** + * The IDs of the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + dhcpOptionsSetIds?: Array; + /** + * The domain name servers used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + domainNameServers?: Array; + /** + * The domain names used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + domainNames?: Array; + /** + * The Network Time Protocol (NTP) servers used for the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + ntpServers?: Array; + /** + * The keys of the tags associated with the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tagKeys?: Array; + /** + * The values of the tags associated with the DHCP options sets. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the DHCP options sets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersDhcpOptions + */ + tags?: Array; +} + +export function FiltersDhcpOptionsFromJSON(json: any): FiltersDhcpOptions { + return FiltersDhcpOptionsFromJSONTyped(json, false); +} + +export function FiltersDhcpOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDhcpOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '_default': !exists(json, 'Default') ? undefined : json['Default'], + 'dhcpOptionsSetIds': !exists(json, 'DhcpOptionsSetIds') ? undefined : json['DhcpOptionsSetIds'], + 'domainNameServers': !exists(json, 'DomainNameServers') ? undefined : json['DomainNameServers'], + 'domainNames': !exists(json, 'DomainNames') ? undefined : json['DomainNames'], + 'ntpServers': !exists(json, 'NtpServers') ? undefined : json['NtpServers'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersDhcpOptionsToJSON(value?: FiltersDhcpOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Default': value._default, + 'DhcpOptionsSetIds': value.dhcpOptionsSetIds, + 'DomainNameServers': value.domainNameServers, + 'DomainNames': value.domainNames, + 'NtpServers': value.ntpServers, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersDirectLink.ts b/src/models/FiltersDirectLink.ts new file mode 100644 index 00000000..fe67c480 --- /dev/null +++ b/src/models/FiltersDirectLink.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersDirectLink + */ +export interface FiltersDirectLink { + /** + * The IDs of the DirectLinks. + * @type {Array} + * @memberof FiltersDirectLink + */ + directLinkIds?: Array; +} + +export function FiltersDirectLinkFromJSON(json: any): FiltersDirectLink { + return FiltersDirectLinkFromJSONTyped(json, false); +} + +export function FiltersDirectLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDirectLink { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkIds': !exists(json, 'DirectLinkIds') ? undefined : json['DirectLinkIds'], + }; +} + +export function FiltersDirectLinkToJSON(value?: FiltersDirectLink | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkIds': value.directLinkIds, + }; +} + diff --git a/src/models/FiltersDirectLinkInterface.ts b/src/models/FiltersDirectLinkInterface.ts new file mode 100644 index 00000000..7d001f09 --- /dev/null +++ b/src/models/FiltersDirectLinkInterface.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersDirectLinkInterface + */ +export interface FiltersDirectLinkInterface { + /** + * The IDs of the DirectLinks. + * @type {Array} + * @memberof FiltersDirectLinkInterface + */ + directLinkIds?: Array; + /** + * The IDs of the DirectLink interfaces. + * @type {Array} + * @memberof FiltersDirectLinkInterface + */ + directLinkInterfaceIds?: Array; +} + +export function FiltersDirectLinkInterfaceFromJSON(json: any): FiltersDirectLinkInterface { + return FiltersDirectLinkInterfaceFromJSONTyped(json, false); +} + +export function FiltersDirectLinkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersDirectLinkInterface { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkIds': !exists(json, 'DirectLinkIds') ? undefined : json['DirectLinkIds'], + 'directLinkInterfaceIds': !exists(json, 'DirectLinkInterfaceIds') ? undefined : json['DirectLinkInterfaceIds'], + }; +} + +export function FiltersDirectLinkInterfaceToJSON(value?: FiltersDirectLinkInterface | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkIds': value.directLinkIds, + 'DirectLinkInterfaceIds': value.directLinkInterfaceIds, + }; +} + diff --git a/src/models/FiltersExportTask.ts b/src/models/FiltersExportTask.ts new file mode 100644 index 00000000..64deba07 --- /dev/null +++ b/src/models/FiltersExportTask.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersExportTask + */ +export interface FiltersExportTask { + /** + * The IDs of the export tasks. + * @type {Array} + * @memberof FiltersExportTask + */ + taskIds?: Array; +} + +export function FiltersExportTaskFromJSON(json: any): FiltersExportTask { + return FiltersExportTaskFromJSONTyped(json, false); +} + +export function FiltersExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersExportTask { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'taskIds': !exists(json, 'TaskIds') ? undefined : json['TaskIds'], + }; +} + +export function FiltersExportTaskToJSON(value?: FiltersExportTask | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'TaskIds': value.taskIds, + }; +} + diff --git a/src/models/FiltersFlexibleGpu.ts b/src/models/FiltersFlexibleGpu.ts new file mode 100644 index 00000000..5eec76f6 --- /dev/null +++ b/src/models/FiltersFlexibleGpu.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersFlexibleGpu + */ +export interface FiltersFlexibleGpu { + /** + * Indicates whether the fGPU is deleted when terminating the VM. + * @type {boolean} + * @memberof FiltersFlexibleGpu + */ + deleteOnVmDeletion?: boolean; + /** + * One or more IDs of fGPUs. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + flexibleGpuIds?: Array; + /** + * The processor generations that the fGPUs are compatible with. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + generations?: Array; + /** + * One or more models of fGPUs. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + modelNames?: Array; + /** + * The states of the fGPUs (`allocated` \| `attaching` \| `attached` \| `detaching`). + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + states?: Array; + /** + * The Subregions where the fGPUs are located. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + subregionNames?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersFlexibleGpu + */ + vmIds?: Array; +} + +export function FiltersFlexibleGpuFromJSON(json: any): FiltersFlexibleGpu { + return FiltersFlexibleGpuFromJSONTyped(json, false); +} + +export function FiltersFlexibleGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersFlexibleGpu { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'flexibleGpuIds': !exists(json, 'FlexibleGpuIds') ? undefined : json['FlexibleGpuIds'], + 'generations': !exists(json, 'Generations') ? undefined : json['Generations'], + 'modelNames': !exists(json, 'ModelNames') ? undefined : json['ModelNames'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} + +export function FiltersFlexibleGpuToJSON(value?: FiltersFlexibleGpu | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'FlexibleGpuIds': value.flexibleGpuIds, + 'Generations': value.generations, + 'ModelNames': value.modelNames, + 'States': value.states, + 'SubregionNames': value.subregionNames, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/FiltersImage.ts b/src/models/FiltersImage.ts new file mode 100644 index 00000000..2db23c6d --- /dev/null +++ b/src/models/FiltersImage.ts @@ -0,0 +1,232 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersImage + */ +export interface FiltersImage { + /** + * The account aliases of the owners of the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + accountAliases?: Array; + /** + * The account IDs of the owners of the OMIs. By default, all the OMIs for which you have launch permissions are described. + * @type {Array} + * @memberof FiltersImage + */ + accountIds?: Array; + /** + * The architectures of the OMIs (`i386` \| `x86_64`). + * @type {Array} + * @memberof FiltersImage + */ + architectures?: Array; + /** + * Whether the volumes are deleted or not when terminating the VM. + * @type {boolean} + * @memberof FiltersImage + */ + blockDeviceMappingDeleteOnVmDeletion?: boolean; + /** + * The device names for the volumes. + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingDeviceNames?: Array; + /** + * The IDs of the snapshots used to create the volumes. + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingSnapshotIds?: Array; + /** + * The sizes of the volumes, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingVolumeSizes?: Array; + /** + * The types of volumes (`standard` \| `gp2` \| `io1`). + * @type {Array} + * @memberof FiltersImage + */ + blockDeviceMappingVolumeTypes?: Array; + /** + * The descriptions of the OMIs, provided when they were created. + * @type {Array} + * @memberof FiltersImage + */ + descriptions?: Array; + /** + * The locations of the buckets where the OMI files are stored. + * @type {Array} + * @memberof FiltersImage + */ + fileLocations?: Array; + /** + * The hypervisor type of the OMI (always `xen`). + * @type {Array} + * @memberof FiltersImage + */ + hypervisors?: Array; + /** + * The IDs of the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + imageIds?: Array; + /** + * The names of the OMIs, provided when they were created. + * @type {Array} + * @memberof FiltersImage + */ + imageNames?: Array; + /** + * The account IDs of the users who have launch permissions for the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + permissionsToLaunchAccountIds?: Array; + /** + * If true, lists all public OMIs. If false, lists all private OMIs. + * @type {boolean} + * @memberof FiltersImage + */ + permissionsToLaunchGlobalPermission?: boolean; + /** + * The product code associated with the OMI (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof FiltersImage + */ + productCodes?: Array; + /** + * The name of the root device. This value must be /dev/sda1. + * @type {Array} + * @memberof FiltersImage + */ + rootDeviceNames?: Array; + /** + * The types of root device used by the OMIs (always `bsu`). + * @type {Array} + * @memberof FiltersImage + */ + rootDeviceTypes?: Array; + /** + * The states of the OMIs (`pending` \| `available` \| `failed`). + * @type {Array} + * @memberof FiltersImage + */ + states?: Array; + /** + * The keys of the tags associated with the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + tagKeys?: Array; + /** + * The values of the tags associated with the OMIs. + * @type {Array} + * @memberof FiltersImage + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the OMIs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersImage + */ + tags?: Array; + /** + * The virtualization types (always `hvm`). + * @type {Array} + * @memberof FiltersImage + */ + virtualizationTypes?: Array; +} + +export function FiltersImageFromJSON(json: any): FiltersImage { + return FiltersImageFromJSONTyped(json, false); +} + +export function FiltersImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersImage { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountAliases': !exists(json, 'AccountAliases') ? undefined : json['AccountAliases'], + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'architectures': !exists(json, 'Architectures') ? undefined : json['Architectures'], + 'blockDeviceMappingDeleteOnVmDeletion': !exists(json, 'BlockDeviceMappingDeleteOnVmDeletion') ? undefined : json['BlockDeviceMappingDeleteOnVmDeletion'], + 'blockDeviceMappingDeviceNames': !exists(json, 'BlockDeviceMappingDeviceNames') ? undefined : json['BlockDeviceMappingDeviceNames'], + 'blockDeviceMappingSnapshotIds': !exists(json, 'BlockDeviceMappingSnapshotIds') ? undefined : json['BlockDeviceMappingSnapshotIds'], + 'blockDeviceMappingVolumeSizes': !exists(json, 'BlockDeviceMappingVolumeSizes') ? undefined : json['BlockDeviceMappingVolumeSizes'], + 'blockDeviceMappingVolumeTypes': !exists(json, 'BlockDeviceMappingVolumeTypes') ? undefined : json['BlockDeviceMappingVolumeTypes'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'fileLocations': !exists(json, 'FileLocations') ? undefined : json['FileLocations'], + 'hypervisors': !exists(json, 'Hypervisors') ? undefined : json['Hypervisors'], + 'imageIds': !exists(json, 'ImageIds') ? undefined : json['ImageIds'], + 'imageNames': !exists(json, 'ImageNames') ? undefined : json['ImageNames'], + 'permissionsToLaunchAccountIds': !exists(json, 'PermissionsToLaunchAccountIds') ? undefined : json['PermissionsToLaunchAccountIds'], + 'permissionsToLaunchGlobalPermission': !exists(json, 'PermissionsToLaunchGlobalPermission') ? undefined : json['PermissionsToLaunchGlobalPermission'], + 'productCodes': !exists(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'rootDeviceNames': !exists(json, 'RootDeviceNames') ? undefined : json['RootDeviceNames'], + 'rootDeviceTypes': !exists(json, 'RootDeviceTypes') ? undefined : json['RootDeviceTypes'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'virtualizationTypes': !exists(json, 'VirtualizationTypes') ? undefined : json['VirtualizationTypes'], + }; +} + +export function FiltersImageToJSON(value?: FiltersImage | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountAliases': value.accountAliases, + 'AccountIds': value.accountIds, + 'Architectures': value.architectures, + 'BlockDeviceMappingDeleteOnVmDeletion': value.blockDeviceMappingDeleteOnVmDeletion, + 'BlockDeviceMappingDeviceNames': value.blockDeviceMappingDeviceNames, + 'BlockDeviceMappingSnapshotIds': value.blockDeviceMappingSnapshotIds, + 'BlockDeviceMappingVolumeSizes': value.blockDeviceMappingVolumeSizes, + 'BlockDeviceMappingVolumeTypes': value.blockDeviceMappingVolumeTypes, + 'Descriptions': value.descriptions, + 'FileLocations': value.fileLocations, + 'Hypervisors': value.hypervisors, + 'ImageIds': value.imageIds, + 'ImageNames': value.imageNames, + 'PermissionsToLaunchAccountIds': value.permissionsToLaunchAccountIds, + 'PermissionsToLaunchGlobalPermission': value.permissionsToLaunchGlobalPermission, + 'ProductCodes': value.productCodes, + 'RootDeviceNames': value.rootDeviceNames, + 'RootDeviceTypes': value.rootDeviceTypes, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualizationTypes': value.virtualizationTypes, + }; +} + diff --git a/src/models/FiltersInternetService.ts b/src/models/FiltersInternetService.ts new file mode 100644 index 00000000..bbd27ad1 --- /dev/null +++ b/src/models/FiltersInternetService.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersInternetService + */ +export interface FiltersInternetService { + /** + * The IDs of the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + internetServiceIds?: Array; + /** + * The IDs of the Nets the Internet services are attached to. + * @type {Array} + * @memberof FiltersInternetService + */ + linkNetIds?: Array; + /** + * The current states of the attachments between the Internet services and the Nets (only `available`, if the Internet gateway is attached to a VPC). + * @type {Array} + * @memberof FiltersInternetService + */ + linkStates?: Array; + /** + * The keys of the tags associated with the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Internet services. + * @type {Array} + * @memberof FiltersInternetService + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Internet services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersInternetService + */ + tags?: Array; +} + +export function FiltersInternetServiceFromJSON(json: any): FiltersInternetService { + return FiltersInternetServiceFromJSONTyped(json, false); +} + +export function FiltersInternetServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersInternetService { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'internetServiceIds': !exists(json, 'InternetServiceIds') ? undefined : json['InternetServiceIds'], + 'linkNetIds': !exists(json, 'LinkNetIds') ? undefined : json['LinkNetIds'], + 'linkStates': !exists(json, 'LinkStates') ? undefined : json['LinkStates'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersInternetServiceToJSON(value?: FiltersInternetService | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'InternetServiceIds': value.internetServiceIds, + 'LinkNetIds': value.linkNetIds, + 'LinkStates': value.linkStates, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersKeypair.ts b/src/models/FiltersKeypair.ts new file mode 100644 index 00000000..aa2cc307 --- /dev/null +++ b/src/models/FiltersKeypair.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersKeypair + */ +export interface FiltersKeypair { + /** + * The fingerprints of the keypairs. + * @type {Array} + * @memberof FiltersKeypair + */ + keypairFingerprints?: Array; + /** + * The names of the keypairs. + * @type {Array} + * @memberof FiltersKeypair + */ + keypairNames?: Array; +} + +export function FiltersKeypairFromJSON(json: any): FiltersKeypair { + return FiltersKeypairFromJSONTyped(json, false); +} + +export function FiltersKeypairFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersKeypair { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'keypairFingerprints': !exists(json, 'KeypairFingerprints') ? undefined : json['KeypairFingerprints'], + 'keypairNames': !exists(json, 'KeypairNames') ? undefined : json['KeypairNames'], + }; +} + +export function FiltersKeypairToJSON(value?: FiltersKeypair | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'KeypairFingerprints': value.keypairFingerprints, + 'KeypairNames': value.keypairNames, + }; +} + diff --git a/src/models/FiltersListenerRule.ts b/src/models/FiltersListenerRule.ts new file mode 100644 index 00000000..0d79aa4a --- /dev/null +++ b/src/models/FiltersListenerRule.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersListenerRule + */ +export interface FiltersListenerRule { + /** + * The names of the listener rules. + * @type {Array} + * @memberof FiltersListenerRule + */ + listenerRuleNames?: Array; +} + +export function FiltersListenerRuleFromJSON(json: any): FiltersListenerRule { + return FiltersListenerRuleFromJSONTyped(json, false); +} + +export function FiltersListenerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersListenerRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'listenerRuleNames': !exists(json, 'ListenerRuleNames') ? undefined : json['ListenerRuleNames'], + }; +} + +export function FiltersListenerRuleToJSON(value?: FiltersListenerRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ListenerRuleNames': value.listenerRuleNames, + }; +} + diff --git a/src/models/FiltersLoadBalancer.ts b/src/models/FiltersLoadBalancer.ts new file mode 100644 index 00000000..0f396f15 --- /dev/null +++ b/src/models/FiltersLoadBalancer.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersLoadBalancer + */ +export interface FiltersLoadBalancer { + /** + * The names of the load balancers. + * @type {Array} + * @memberof FiltersLoadBalancer + */ + loadBalancerNames?: Array; +} + +export function FiltersLoadBalancerFromJSON(json: any): FiltersLoadBalancer { + return FiltersLoadBalancerFromJSONTyped(json, false); +} + +export function FiltersLoadBalancerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersLoadBalancer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancerNames': !exists(json, 'LoadBalancerNames') ? undefined : json['LoadBalancerNames'], + }; +} + +export function FiltersLoadBalancerToJSON(value?: FiltersLoadBalancer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancerNames': value.loadBalancerNames, + }; +} + diff --git a/src/models/FiltersNatService.ts b/src/models/FiltersNatService.ts new file mode 100644 index 00000000..99e4713e --- /dev/null +++ b/src/models/FiltersNatService.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersNatService + */ +export interface FiltersNatService { + /** + * The IDs of the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + natServiceIds?: Array; + /** + * The IDs of the Nets in which the NAT services are. + * @type {Array} + * @memberof FiltersNatService + */ + netIds?: Array; + /** + * The states of the NAT services (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersNatService + */ + states?: Array; + /** + * The IDs of the Subnets in which the NAT services are. + * @type {Array} + * @memberof FiltersNatService + */ + subnetIds?: Array; + /** + * The keys of the tags associated with the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + tagKeys?: Array; + /** + * The values of the tags associated with the NAT services. + * @type {Array} + * @memberof FiltersNatService + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the NAT services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNatService + */ + tags?: Array; +} + +export function FiltersNatServiceFromJSON(json: any): FiltersNatService { + return FiltersNatServiceFromJSONTyped(json, false); +} + +export function FiltersNatServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNatService { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'natServiceIds': !exists(json, 'NatServiceIds') ? undefined : json['NatServiceIds'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subnetIds': !exists(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersNatServiceToJSON(value?: FiltersNatService | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NatServiceIds': value.natServiceIds, + 'NetIds': value.netIds, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersNet.ts b/src/models/FiltersNet.ts new file mode 100644 index 00000000..d05a1e5c --- /dev/null +++ b/src/models/FiltersNet.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersNet + */ +export interface FiltersNet { + /** + * The IDs of the DHCP options sets. + * @type {Array} + * @memberof FiltersNet + */ + dhcpOptionsSetIds?: Array; + /** + * The IP ranges for the Nets, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof FiltersNet + */ + ipRanges?: Array; + /** + * If true, the Net used is the default one. + * @type {boolean} + * @memberof FiltersNet + */ + isDefault?: boolean; + /** + * The IDs of the Nets. + * @type {Array} + * @memberof FiltersNet + */ + netIds?: Array; + /** + * The states of the Nets (`pending` \| `available`). + * @type {Array} + * @memberof FiltersNet + */ + states?: Array; + /** + * The keys of the tags associated with the Nets. + * @type {Array} + * @memberof FiltersNet + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Nets. + * @type {Array} + * @memberof FiltersNet + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Nets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNet + */ + tags?: Array; +} + +export function FiltersNetFromJSON(json: any): FiltersNet { + return FiltersNetFromJSONTyped(json, false); +} + +export function FiltersNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhcpOptionsSetIds': !exists(json, 'DhcpOptionsSetIds') ? undefined : json['DhcpOptionsSetIds'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'isDefault': !exists(json, 'IsDefault') ? undefined : json['IsDefault'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersNetToJSON(value?: FiltersNet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DhcpOptionsSetIds': value.dhcpOptionsSetIds, + 'IpRanges': value.ipRanges, + 'IsDefault': value.isDefault, + 'NetIds': value.netIds, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersNetAccessPoint.ts b/src/models/FiltersNetAccessPoint.ts new file mode 100644 index 00000000..e0de5169 --- /dev/null +++ b/src/models/FiltersNetAccessPoint.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersNetAccessPoint + */ +export interface FiltersNetAccessPoint { + /** + * The IDs of the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + netAccessPointIds?: Array; + /** + * The IDs of the Nets. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + netIds?: Array; + /** + * The names of the services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + serviceNames?: Array; + /** + * The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + states?: Array; + /** + * The keys of the tags associated with the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Net access points. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNetAccessPoint + */ + tags?: Array; +} + +export function FiltersNetAccessPointFromJSON(json: any): FiltersNetAccessPoint { + return FiltersNetAccessPointFromJSONTyped(json, false); +} + +export function FiltersNetAccessPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNetAccessPoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netAccessPointIds': !exists(json, 'NetAccessPointIds') ? undefined : json['NetAccessPointIds'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'serviceNames': !exists(json, 'ServiceNames') ? undefined : json['ServiceNames'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersNetAccessPointToJSON(value?: FiltersNetAccessPoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetAccessPointIds': value.netAccessPointIds, + 'NetIds': value.netIds, + 'ServiceNames': value.serviceNames, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersNetPeering.ts b/src/models/FiltersNetPeering.ts new file mode 100644 index 00000000..a709d88c --- /dev/null +++ b/src/models/FiltersNetPeering.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersNetPeering + */ +export interface FiltersNetPeering { + /** + * The account IDs of the owners of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetAccountIds?: Array; + /** + * The IP ranges of the peer Nets, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetIpRanges?: Array; + /** + * The IDs of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + accepterNetNetIds?: Array; + /** + * The IDs of the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + netPeeringIds?: Array; + /** + * The account IDs of the owners of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetAccountIds?: Array; + /** + * The IP ranges of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetIpRanges?: Array; + /** + * The IDs of the peer Nets. + * @type {Array} + * @memberof FiltersNetPeering + */ + sourceNetNetIds?: Array; + /** + * Additional information about the states of the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + stateMessages?: Array; + /** + * The states of the Net peering connections (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). + * @type {Array} + * @memberof FiltersNetPeering + */ + stateNames?: Array; + /** + * The keys of the tags associated with the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Net peering connections. + * @type {Array} + * @memberof FiltersNetPeering + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Net peering connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNetPeering + */ + tags?: Array; +} + +export function FiltersNetPeeringFromJSON(json: any): FiltersNetPeering { + return FiltersNetPeeringFromJSONTyped(json, false); +} + +export function FiltersNetPeeringFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNetPeering { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accepterNetAccountIds': !exists(json, 'AccepterNetAccountIds') ? undefined : json['AccepterNetAccountIds'], + 'accepterNetIpRanges': !exists(json, 'AccepterNetIpRanges') ? undefined : json['AccepterNetIpRanges'], + 'accepterNetNetIds': !exists(json, 'AccepterNetNetIds') ? undefined : json['AccepterNetNetIds'], + 'netPeeringIds': !exists(json, 'NetPeeringIds') ? undefined : json['NetPeeringIds'], + 'sourceNetAccountIds': !exists(json, 'SourceNetAccountIds') ? undefined : json['SourceNetAccountIds'], + 'sourceNetIpRanges': !exists(json, 'SourceNetIpRanges') ? undefined : json['SourceNetIpRanges'], + 'sourceNetNetIds': !exists(json, 'SourceNetNetIds') ? undefined : json['SourceNetNetIds'], + 'stateMessages': !exists(json, 'StateMessages') ? undefined : json['StateMessages'], + 'stateNames': !exists(json, 'StateNames') ? undefined : json['StateNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersNetPeeringToJSON(value?: FiltersNetPeering | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccepterNetAccountIds': value.accepterNetAccountIds, + 'AccepterNetIpRanges': value.accepterNetIpRanges, + 'AccepterNetNetIds': value.accepterNetNetIds, + 'NetPeeringIds': value.netPeeringIds, + 'SourceNetAccountIds': value.sourceNetAccountIds, + 'SourceNetIpRanges': value.sourceNetIpRanges, + 'SourceNetNetIds': value.sourceNetNetIds, + 'StateMessages': value.stateMessages, + 'StateNames': value.stateNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersNic.ts b/src/models/FiltersNic.ts new file mode 100644 index 00000000..898b63d4 --- /dev/null +++ b/src/models/FiltersNic.ts @@ -0,0 +1,272 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersNic + */ +export interface FiltersNic { + /** + * The descriptions of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + descriptions?: Array; + /** + * Whether the source/destination checking is enabled (true) or disabled (false). + * @type {boolean} + * @memberof FiltersNic + */ + isSourceDestCheck?: boolean; + /** + * Whether the NICs are deleted when the VMs they are attached to are terminated. + * @type {boolean} + * @memberof FiltersNic + */ + linkNicDeleteOnVmDeletion?: boolean; + /** + * The device numbers the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicDeviceNumbers?: Array; + /** + * The attachment IDs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkNicLinkNicIds?: Array; + /** + * The states of the attachments. + * @type {Array} + * @memberof FiltersNic + */ + linkNicStates?: Array; + /** + * The account IDs of the owners of the VMs the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicVmAccountIds?: Array; + /** + * The IDs of the VMs the NICs are attached to. + * @type {Array} + * @memberof FiltersNic + */ + linkNicVmIds?: Array; + /** + * The account IDs of the owners of the public IPs associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpAccountIds?: Array; + /** + * The association IDs returned when the public IPs were associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpLinkPublicIpIds?: Array; + /** + * The allocation IDs returned when the public IPs were allocated to their accounts. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpPublicIpIds?: Array; + /** + * The public IPs associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + linkPublicIpPublicIps?: Array; + /** + * The Media Access Control (MAC) addresses of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + macAddresses?: Array; + /** + * The IDs of the Nets where the NICs are located. + * @type {Array} + * @memberof FiltersNic + */ + netIds?: Array; + /** + * The IDs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + nicIds?: Array; + /** + * The private DNS names associated with the primary private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateDnsNames?: Array; + /** + * The account IDs of the owner of the public IPs associated with the private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsLinkPublicIpAccountIds?: Array; + /** + * The public IPs associated with the private IPs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsLinkPublicIpPublicIps?: Array; + /** + * Whether the private IP is the primary IP associated with the NIC. + * @type {boolean} + * @memberof FiltersNic + */ + privateIpsPrimaryIp?: boolean; + /** + * The private IPs of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + privateIpsPrivateIps?: Array; + /** + * The IDs of the security groups associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + securityGroupIds?: Array; + /** + * The names of the security groups associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + securityGroupNames?: Array; + /** + * The states of the NICs. + * @type {Array} + * @memberof FiltersNic + */ + states?: Array; + /** + * The IDs of the Subnets for the NICs. + * @type {Array} + * @memberof FiltersNic + */ + subnetIds?: Array; + /** + * The Subregions where the NICs are located. + * @type {Array} + * @memberof FiltersNic + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + tagKeys?: Array; + /** + * The values of the tags associated with the NICs. + * @type {Array} + * @memberof FiltersNic + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the NICs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersNic + */ + tags?: Array; +} + +export function FiltersNicFromJSON(json: any): FiltersNic { + return FiltersNicFromJSONTyped(json, false); +} + +export function FiltersNicFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersNic { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'isSourceDestCheck': !exists(json, 'IsSourceDestCheck') ? undefined : json['IsSourceDestCheck'], + 'linkNicDeleteOnVmDeletion': !exists(json, 'LinkNicDeleteOnVmDeletion') ? undefined : json['LinkNicDeleteOnVmDeletion'], + 'linkNicDeviceNumbers': !exists(json, 'LinkNicDeviceNumbers') ? undefined : json['LinkNicDeviceNumbers'], + 'linkNicLinkNicIds': !exists(json, 'LinkNicLinkNicIds') ? undefined : json['LinkNicLinkNicIds'], + 'linkNicStates': !exists(json, 'LinkNicStates') ? undefined : json['LinkNicStates'], + 'linkNicVmAccountIds': !exists(json, 'LinkNicVmAccountIds') ? undefined : json['LinkNicVmAccountIds'], + 'linkNicVmIds': !exists(json, 'LinkNicVmIds') ? undefined : json['LinkNicVmIds'], + 'linkPublicIpAccountIds': !exists(json, 'LinkPublicIpAccountIds') ? undefined : json['LinkPublicIpAccountIds'], + 'linkPublicIpLinkPublicIpIds': !exists(json, 'LinkPublicIpLinkPublicIpIds') ? undefined : json['LinkPublicIpLinkPublicIpIds'], + 'linkPublicIpPublicIpIds': !exists(json, 'LinkPublicIpPublicIpIds') ? undefined : json['LinkPublicIpPublicIpIds'], + 'linkPublicIpPublicIps': !exists(json, 'LinkPublicIpPublicIps') ? undefined : json['LinkPublicIpPublicIps'], + 'macAddresses': !exists(json, 'MacAddresses') ? undefined : json['MacAddresses'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'nicIds': !exists(json, 'NicIds') ? undefined : json['NicIds'], + 'privateDnsNames': !exists(json, 'PrivateDnsNames') ? undefined : json['PrivateDnsNames'], + 'privateIpsLinkPublicIpAccountIds': !exists(json, 'PrivateIpsLinkPublicIpAccountIds') ? undefined : json['PrivateIpsLinkPublicIpAccountIds'], + 'privateIpsLinkPublicIpPublicIps': !exists(json, 'PrivateIpsLinkPublicIpPublicIps') ? undefined : json['PrivateIpsLinkPublicIpPublicIps'], + 'privateIpsPrimaryIp': !exists(json, 'PrivateIpsPrimaryIp') ? undefined : json['PrivateIpsPrimaryIp'], + 'privateIpsPrivateIps': !exists(json, 'PrivateIpsPrivateIps') ? undefined : json['PrivateIpsPrivateIps'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroupNames': !exists(json, 'SecurityGroupNames') ? undefined : json['SecurityGroupNames'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subnetIds': !exists(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersNicToJSON(value?: FiltersNic | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Descriptions': value.descriptions, + 'IsSourceDestCheck': value.isSourceDestCheck, + 'LinkNicDeleteOnVmDeletion': value.linkNicDeleteOnVmDeletion, + 'LinkNicDeviceNumbers': value.linkNicDeviceNumbers, + 'LinkNicLinkNicIds': value.linkNicLinkNicIds, + 'LinkNicStates': value.linkNicStates, + 'LinkNicVmAccountIds': value.linkNicVmAccountIds, + 'LinkNicVmIds': value.linkNicVmIds, + 'LinkPublicIpAccountIds': value.linkPublicIpAccountIds, + 'LinkPublicIpLinkPublicIpIds': value.linkPublicIpLinkPublicIpIds, + 'LinkPublicIpPublicIpIds': value.linkPublicIpPublicIpIds, + 'LinkPublicIpPublicIps': value.linkPublicIpPublicIps, + 'MacAddresses': value.macAddresses, + 'NetIds': value.netIds, + 'NicIds': value.nicIds, + 'PrivateDnsNames': value.privateDnsNames, + 'PrivateIpsLinkPublicIpAccountIds': value.privateIpsLinkPublicIpAccountIds, + 'PrivateIpsLinkPublicIpPublicIps': value.privateIpsLinkPublicIpPublicIps, + 'PrivateIpsPrimaryIp': value.privateIpsPrimaryIp, + 'PrivateIpsPrivateIps': value.privateIpsPrivateIps, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroupNames': value.securityGroupNames, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersProductType.ts b/src/models/FiltersProductType.ts new file mode 100644 index 00000000..abb738cd --- /dev/null +++ b/src/models/FiltersProductType.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersProductType + */ +export interface FiltersProductType { + /** + * The IDs of the product types. + * @type {Array} + * @memberof FiltersProductType + */ + productTypeIds?: Array; +} + +export function FiltersProductTypeFromJSON(json: any): FiltersProductType { + return FiltersProductTypeFromJSONTyped(json, false); +} + +export function FiltersProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersProductType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'productTypeIds': !exists(json, 'ProductTypeIds') ? undefined : json['ProductTypeIds'], + }; +} + +export function FiltersProductTypeToJSON(value?: FiltersProductType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ProductTypeIds': value.productTypeIds, + }; +} + diff --git a/src/models/FiltersPublicIp.ts b/src/models/FiltersPublicIp.ts new file mode 100644 index 00000000..0435b5e1 --- /dev/null +++ b/src/models/FiltersPublicIp.ts @@ -0,0 +1,136 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersPublicIp + */ +export interface FiltersPublicIp { + /** + * The IDs representing the associations of public IPs with VMs or NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + linkPublicIpIds?: Array; + /** + * The account IDs of the owners of the NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + nicAccountIds?: Array; + /** + * The IDs of the NICs. + * @type {Array} + * @memberof FiltersPublicIp + */ + nicIds?: Array; + /** + * Whether the public IPs are for use in the public Cloud or in a Net. + * @type {Array} + * @memberof FiltersPublicIp + */ + placements?: Array; + /** + * The private IPs associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + privateIps?: Array; + /** + * The IDs of the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + publicIpIds?: Array; + /** + * The public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + publicIps?: Array; + /** + * The keys of the tags associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + tagKeys?: Array; + /** + * The values of the tags associated with the public IPs. + * @type {Array} + * @memberof FiltersPublicIp + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the public IPs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersPublicIp + */ + tags?: Array; + /** + * The IDs of the VMs. + * @type {Array} + * @memberof FiltersPublicIp + */ + vmIds?: Array; +} + +export function FiltersPublicIpFromJSON(json: any): FiltersPublicIp { + return FiltersPublicIpFromJSONTyped(json, false); +} + +export function FiltersPublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersPublicIp { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkPublicIpIds': !exists(json, 'LinkPublicIpIds') ? undefined : json['LinkPublicIpIds'], + 'nicAccountIds': !exists(json, 'NicAccountIds') ? undefined : json['NicAccountIds'], + 'nicIds': !exists(json, 'NicIds') ? undefined : json['NicIds'], + 'placements': !exists(json, 'Placements') ? undefined : json['Placements'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'publicIpIds': !exists(json, 'PublicIpIds') ? undefined : json['PublicIpIds'], + 'publicIps': !exists(json, 'PublicIps') ? undefined : json['PublicIps'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} + +export function FiltersPublicIpToJSON(value?: FiltersPublicIp | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkPublicIpIds': value.linkPublicIpIds, + 'NicAccountIds': value.nicAccountIds, + 'NicIds': value.nicIds, + 'Placements': value.placements, + 'PrivateIps': value.privateIps, + 'PublicIpIds': value.publicIpIds, + 'PublicIps': value.publicIps, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/FiltersQuota.ts b/src/models/FiltersQuota.ts new file mode 100644 index 00000000..1c6ed4d5 --- /dev/null +++ b/src/models/FiltersQuota.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersQuota + */ +export interface FiltersQuota { + /** + * The group names of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + collections?: Array; + /** + * The names of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + quotaNames?: Array; + /** + * The resource IDs if these are resource-specific quotas, `global` if they are not. + * @type {Array} + * @memberof FiltersQuota + */ + quotaTypes?: Array; + /** + * The description of the quotas. + * @type {Array} + * @memberof FiltersQuota + */ + shortDescriptions?: Array; +} + +export function FiltersQuotaFromJSON(json: any): FiltersQuota { + return FiltersQuotaFromJSONTyped(json, false); +} + +export function FiltersQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersQuota { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'collections': !exists(json, 'Collections') ? undefined : json['Collections'], + 'quotaNames': !exists(json, 'QuotaNames') ? undefined : json['QuotaNames'], + 'quotaTypes': !exists(json, 'QuotaTypes') ? undefined : json['QuotaTypes'], + 'shortDescriptions': !exists(json, 'ShortDescriptions') ? undefined : json['ShortDescriptions'], + }; +} + +export function FiltersQuotaToJSON(value?: FiltersQuota | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Collections': value.collections, + 'QuotaNames': value.quotaNames, + 'QuotaTypes': value.quotaTypes, + 'ShortDescriptions': value.shortDescriptions, + }; +} + diff --git a/src/models/FiltersRouteTable.ts b/src/models/FiltersRouteTable.ts new file mode 100644 index 00000000..40b02674 --- /dev/null +++ b/src/models/FiltersRouteTable.ts @@ -0,0 +1,184 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersRouteTable + */ +export interface FiltersRouteTable { + /** + * The IDs of the route tables involved in the associations. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkRouteTableIds?: Array; + /** + * The IDs of the associations between the route tables and the Subnets. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkRouteTableLinkRouteTableIds?: Array; + /** + * If true, the route tables are the main ones for their Nets. + * @type {boolean} + * @memberof FiltersRouteTable + */ + linkRouteTableMain?: boolean; + /** + * The IDs of the Subnets involved in the associations. + * @type {Array} + * @memberof FiltersRouteTable + */ + linkSubnetIds?: Array; + /** + * The IDs of the Nets for the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + netIds?: Array; + /** + * The methods used to create a route. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeCreationMethods?: Array; + /** + * The IP ranges specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeDestinationIpRanges?: Array; + /** + * The service IDs specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeDestinationServiceIds?: Array; + /** + * The IDs of the gateways specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeGatewayIds?: Array; + /** + * The IDs of the NAT services specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeNatServiceIds?: Array; + /** + * The IDs of the Net peering connections specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeNetPeeringIds?: Array; + /** + * The states of routes in the route tables (`active` \| `blackhole`). The `blackhole` state indicates that the target of the route is not available. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeStates?: Array; + /** + * The IDs of the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeTableIds?: Array; + /** + * The IDs of the VMs specified in routes in the tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + routeVmIds?: Array; + /** + * The keys of the tags associated with the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + tagKeys?: Array; + /** + * The values of the tags associated with the route tables. + * @type {Array} + * @memberof FiltersRouteTable + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the route tables, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersRouteTable + */ + tags?: Array; +} + +export function FiltersRouteTableFromJSON(json: any): FiltersRouteTable { + return FiltersRouteTableFromJSONTyped(json, false); +} + +export function FiltersRouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersRouteTable { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkRouteTableIds': !exists(json, 'LinkRouteTableIds') ? undefined : json['LinkRouteTableIds'], + 'linkRouteTableLinkRouteTableIds': !exists(json, 'LinkRouteTableLinkRouteTableIds') ? undefined : json['LinkRouteTableLinkRouteTableIds'], + 'linkRouteTableMain': !exists(json, 'LinkRouteTableMain') ? undefined : json['LinkRouteTableMain'], + 'linkSubnetIds': !exists(json, 'LinkSubnetIds') ? undefined : json['LinkSubnetIds'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'routeCreationMethods': !exists(json, 'RouteCreationMethods') ? undefined : json['RouteCreationMethods'], + 'routeDestinationIpRanges': !exists(json, 'RouteDestinationIpRanges') ? undefined : json['RouteDestinationIpRanges'], + 'routeDestinationServiceIds': !exists(json, 'RouteDestinationServiceIds') ? undefined : json['RouteDestinationServiceIds'], + 'routeGatewayIds': !exists(json, 'RouteGatewayIds') ? undefined : json['RouteGatewayIds'], + 'routeNatServiceIds': !exists(json, 'RouteNatServiceIds') ? undefined : json['RouteNatServiceIds'], + 'routeNetPeeringIds': !exists(json, 'RouteNetPeeringIds') ? undefined : json['RouteNetPeeringIds'], + 'routeStates': !exists(json, 'RouteStates') ? undefined : json['RouteStates'], + 'routeTableIds': !exists(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'routeVmIds': !exists(json, 'RouteVmIds') ? undefined : json['RouteVmIds'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersRouteTableToJSON(value?: FiltersRouteTable | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkRouteTableIds': value.linkRouteTableIds, + 'LinkRouteTableLinkRouteTableIds': value.linkRouteTableLinkRouteTableIds, + 'LinkRouteTableMain': value.linkRouteTableMain, + 'LinkSubnetIds': value.linkSubnetIds, + 'NetIds': value.netIds, + 'RouteCreationMethods': value.routeCreationMethods, + 'RouteDestinationIpRanges': value.routeDestinationIpRanges, + 'RouteDestinationServiceIds': value.routeDestinationServiceIds, + 'RouteGatewayIds': value.routeGatewayIds, + 'RouteNatServiceIds': value.routeNatServiceIds, + 'RouteNetPeeringIds': value.routeNetPeeringIds, + 'RouteStates': value.routeStates, + 'RouteTableIds': value.routeTableIds, + 'RouteVmIds': value.routeVmIds, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersSecurityGroup.ts b/src/models/FiltersSecurityGroup.ts new file mode 100644 index 00000000..ae481bed --- /dev/null +++ b/src/models/FiltersSecurityGroup.ts @@ -0,0 +1,224 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersSecurityGroup + */ +export interface FiltersSecurityGroup { + /** + * The account IDs of the owners of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + accountIds?: Array; + /** + * The descriptions of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + descriptions?: Array; + /** + * The account IDs that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleAccountIds?: Array; + /** + * The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleFromPortRanges?: Array; + /** + * The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleIpRanges?: Array; + /** + * The IP protocols for the permissions (`tcp` \| `udp` \| `icmp`, or a protocol number, or `-1` for all protocols). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleProtocols?: Array; + /** + * The IDs of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleSecurityGroupIds?: Array; + /** + * The names of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleSecurityGroupNames?: Array; + /** + * The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + inboundRuleToPortRanges?: Array; + /** + * The IDs of the Nets specified when the security groups were created. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + netIds?: Array; + /** + * The account IDs that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleAccountIds?: Array; + /** + * The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleFromPortRanges?: Array; + /** + * The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleIpRanges?: Array; + /** + * The IP protocols for the permissions (`tcp` \| `udp` \| `icmp`, or a protocol number, or `-1` for all protocols). + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleProtocols?: Array; + /** + * The IDs of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleSecurityGroupIds?: Array; + /** + * The names of the security groups that have been granted permissions. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleSecurityGroupNames?: Array; + /** + * The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + outboundRuleToPortRanges?: Array; + /** + * The IDs of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + securityGroupIds?: Array; + /** + * The names of the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + securityGroupNames?: Array; + /** + * The keys of the tags associated with the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tagKeys?: Array; + /** + * The values of the tags associated with the security groups. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the security groups, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSecurityGroup + */ + tags?: Array; +} + +export function FiltersSecurityGroupFromJSON(json: any): FiltersSecurityGroup { + return FiltersSecurityGroupFromJSONTyped(json, false); +} + +export function FiltersSecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSecurityGroup { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'inboundRuleAccountIds': !exists(json, 'InboundRuleAccountIds') ? undefined : json['InboundRuleAccountIds'], + 'inboundRuleFromPortRanges': !exists(json, 'InboundRuleFromPortRanges') ? undefined : json['InboundRuleFromPortRanges'], + 'inboundRuleIpRanges': !exists(json, 'InboundRuleIpRanges') ? undefined : json['InboundRuleIpRanges'], + 'inboundRuleProtocols': !exists(json, 'InboundRuleProtocols') ? undefined : json['InboundRuleProtocols'], + 'inboundRuleSecurityGroupIds': !exists(json, 'InboundRuleSecurityGroupIds') ? undefined : json['InboundRuleSecurityGroupIds'], + 'inboundRuleSecurityGroupNames': !exists(json, 'InboundRuleSecurityGroupNames') ? undefined : json['InboundRuleSecurityGroupNames'], + 'inboundRuleToPortRanges': !exists(json, 'InboundRuleToPortRanges') ? undefined : json['InboundRuleToPortRanges'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'outboundRuleAccountIds': !exists(json, 'OutboundRuleAccountIds') ? undefined : json['OutboundRuleAccountIds'], + 'outboundRuleFromPortRanges': !exists(json, 'OutboundRuleFromPortRanges') ? undefined : json['OutboundRuleFromPortRanges'], + 'outboundRuleIpRanges': !exists(json, 'OutboundRuleIpRanges') ? undefined : json['OutboundRuleIpRanges'], + 'outboundRuleProtocols': !exists(json, 'OutboundRuleProtocols') ? undefined : json['OutboundRuleProtocols'], + 'outboundRuleSecurityGroupIds': !exists(json, 'OutboundRuleSecurityGroupIds') ? undefined : json['OutboundRuleSecurityGroupIds'], + 'outboundRuleSecurityGroupNames': !exists(json, 'OutboundRuleSecurityGroupNames') ? undefined : json['OutboundRuleSecurityGroupNames'], + 'outboundRuleToPortRanges': !exists(json, 'OutboundRuleToPortRanges') ? undefined : json['OutboundRuleToPortRanges'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'securityGroupNames': !exists(json, 'SecurityGroupNames') ? undefined : json['SecurityGroupNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersSecurityGroupToJSON(value?: FiltersSecurityGroup | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountIds': value.accountIds, + 'Descriptions': value.descriptions, + 'InboundRuleAccountIds': value.inboundRuleAccountIds, + 'InboundRuleFromPortRanges': value.inboundRuleFromPortRanges, + 'InboundRuleIpRanges': value.inboundRuleIpRanges, + 'InboundRuleProtocols': value.inboundRuleProtocols, + 'InboundRuleSecurityGroupIds': value.inboundRuleSecurityGroupIds, + 'InboundRuleSecurityGroupNames': value.inboundRuleSecurityGroupNames, + 'InboundRuleToPortRanges': value.inboundRuleToPortRanges, + 'NetIds': value.netIds, + 'OutboundRuleAccountIds': value.outboundRuleAccountIds, + 'OutboundRuleFromPortRanges': value.outboundRuleFromPortRanges, + 'OutboundRuleIpRanges': value.outboundRuleIpRanges, + 'OutboundRuleProtocols': value.outboundRuleProtocols, + 'OutboundRuleSecurityGroupIds': value.outboundRuleSecurityGroupIds, + 'OutboundRuleSecurityGroupNames': value.outboundRuleSecurityGroupNames, + 'OutboundRuleToPortRanges': value.outboundRuleToPortRanges, + 'SecurityGroupIds': value.securityGroupIds, + 'SecurityGroupNames': value.securityGroupNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersServerCertificate.ts b/src/models/FiltersServerCertificate.ts new file mode 100644 index 00000000..c8abe027 --- /dev/null +++ b/src/models/FiltersServerCertificate.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersServerCertificate + */ +export interface FiltersServerCertificate { + /** + * The paths to the server certificates. + * @type {Array} + * @memberof FiltersServerCertificate + */ + paths?: Array; +} + +export function FiltersServerCertificateFromJSON(json: any): FiltersServerCertificate { + return FiltersServerCertificateFromJSONTyped(json, false); +} + +export function FiltersServerCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersServerCertificate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'paths': !exists(json, 'Paths') ? undefined : json['Paths'], + }; +} + +export function FiltersServerCertificateToJSON(value?: FiltersServerCertificate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Paths': value.paths, + }; +} + diff --git a/src/models/FiltersService.ts b/src/models/FiltersService.ts new file mode 100644 index 00000000..dbd63252 --- /dev/null +++ b/src/models/FiltersService.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersService + */ +export interface FiltersService { + /** + * The IDs of the services. + * @type {Array} + * @memberof FiltersService + */ + serviceIds?: Array; + /** + * The names of the services. + * @type {Array} + * @memberof FiltersService + */ + serviceNames?: Array; +} + +export function FiltersServiceFromJSON(json: any): FiltersService { + return FiltersServiceFromJSONTyped(json, false); +} + +export function FiltersServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersService { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'serviceIds': !exists(json, 'ServiceIds') ? undefined : json['ServiceIds'], + 'serviceNames': !exists(json, 'ServiceNames') ? undefined : json['ServiceNames'], + }; +} + +export function FiltersServiceToJSON(value?: FiltersService | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ServiceIds': value.serviceIds, + 'ServiceNames': value.serviceNames, + }; +} + diff --git a/src/models/FiltersSnapshot.ts b/src/models/FiltersSnapshot.ts new file mode 100644 index 00000000..0e4acad5 --- /dev/null +++ b/src/models/FiltersSnapshot.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersSnapshot + */ +export interface FiltersSnapshot { + /** + * The account aliases of the owners of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + accountAliases?: Array; + /** + * The account IDs of the owners of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + accountIds?: Array; + /** + * The descriptions of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + descriptions?: Array; + /** + * The account IDs of one or more users who have permissions to create volumes. + * @type {Array} + * @memberof FiltersSnapshot + */ + permissionsToCreateVolumeAccountIds?: Array; + /** + * If true, lists all public volumes. If false, lists all private volumes. + * @type {boolean} + * @memberof FiltersSnapshot + */ + permissionsToCreateVolumeGlobalPermission?: boolean; + /** + * The progresses of the snapshots, as a percentage. + * @type {Array} + * @memberof FiltersSnapshot + */ + progresses?: Array; + /** + * The IDs of the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + snapshotIds?: Array; + /** + * The states of the snapshots (`in-queue` \| `completed` \| `error`). + * @type {Array} + * @memberof FiltersSnapshot + */ + states?: Array; + /** + * The keys of the tags associated with the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + tagKeys?: Array; + /** + * The values of the tags associated with the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the snapshots, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSnapshot + */ + tags?: Array; + /** + * The IDs of the volumes used to create the snapshots. + * @type {Array} + * @memberof FiltersSnapshot + */ + volumeIds?: Array; + /** + * The sizes of the volumes used to create the snapshots, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersSnapshot + */ + volumeSizes?: Array; +} + +export function FiltersSnapshotFromJSON(json: any): FiltersSnapshot { + return FiltersSnapshotFromJSONTyped(json, false); +} + +export function FiltersSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSnapshot { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountAliases': !exists(json, 'AccountAliases') ? undefined : json['AccountAliases'], + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'descriptions': !exists(json, 'Descriptions') ? undefined : json['Descriptions'], + 'permissionsToCreateVolumeAccountIds': !exists(json, 'PermissionsToCreateVolumeAccountIds') ? undefined : json['PermissionsToCreateVolumeAccountIds'], + 'permissionsToCreateVolumeGlobalPermission': !exists(json, 'PermissionsToCreateVolumeGlobalPermission') ? undefined : json['PermissionsToCreateVolumeGlobalPermission'], + 'progresses': !exists(json, 'Progresses') ? undefined : json['Progresses'], + 'snapshotIds': !exists(json, 'SnapshotIds') ? undefined : json['SnapshotIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'volumeIds': !exists(json, 'VolumeIds') ? undefined : json['VolumeIds'], + 'volumeSizes': !exists(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + }; +} + +export function FiltersSnapshotToJSON(value?: FiltersSnapshot | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountAliases': value.accountAliases, + 'AccountIds': value.accountIds, + 'Descriptions': value.descriptions, + 'PermissionsToCreateVolumeAccountIds': value.permissionsToCreateVolumeAccountIds, + 'PermissionsToCreateVolumeGlobalPermission': value.permissionsToCreateVolumeGlobalPermission, + 'Progresses': value.progresses, + 'SnapshotIds': value.snapshotIds, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VolumeIds': value.volumeIds, + 'VolumeSizes': value.volumeSizes, + }; +} + diff --git a/src/models/FiltersSubnet.ts b/src/models/FiltersSubnet.ts new file mode 100644 index 00000000..fa27ecab --- /dev/null +++ b/src/models/FiltersSubnet.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersSubnet + */ +export interface FiltersSubnet { + /** + * The number of available IPs. + * @type {Array} + * @memberof FiltersSubnet + */ + availableIpsCounts?: Array; + /** + * The IP ranges in the Subnets, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof FiltersSubnet + */ + ipRanges?: Array; + /** + * The IDs of the Nets in which the Subnets are. + * @type {Array} + * @memberof FiltersSubnet + */ + netIds?: Array; + /** + * The states of the Subnets (`pending` \| `available`). + * @type {Array} + * @memberof FiltersSubnet + */ + states?: Array; + /** + * The IDs of the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + subnetIds?: Array; + /** + * The names of the Subregions in which the Subnets are located. + * @type {Array} + * @memberof FiltersSubnet + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + tagKeys?: Array; + /** + * The values of the tags associated with the Subnets. + * @type {Array} + * @memberof FiltersSubnet + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the Subnets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersSubnet + */ + tags?: Array; +} + +export function FiltersSubnetFromJSON(json: any): FiltersSubnet { + return FiltersSubnetFromJSONTyped(json, false); +} + +export function FiltersSubnetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSubnet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableIpsCounts': !exists(json, 'AvailableIpsCounts') ? undefined : json['AvailableIpsCounts'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'netIds': !exists(json, 'NetIds') ? undefined : json['NetIds'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'subnetIds': !exists(json, 'SubnetIds') ? undefined : json['SubnetIds'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + }; +} + +export function FiltersSubnetToJSON(value?: FiltersSubnet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AvailableIpsCounts': value.availableIpsCounts, + 'IpRanges': value.ipRanges, + 'NetIds': value.netIds, + 'States': value.states, + 'SubnetIds': value.subnetIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + }; +} + diff --git a/src/models/FiltersSubregion.ts b/src/models/FiltersSubregion.ts new file mode 100644 index 00000000..fdd5481f --- /dev/null +++ b/src/models/FiltersSubregion.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersSubregion + */ +export interface FiltersSubregion { + /** + * The names of the Subregions. + * @type {Array} + * @memberof FiltersSubregion + */ + subregionNames?: Array; +} + +export function FiltersSubregionFromJSON(json: any): FiltersSubregion { + return FiltersSubregionFromJSONTyped(json, false); +} + +export function FiltersSubregionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersSubregion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + }; +} + +export function FiltersSubregionToJSON(value?: FiltersSubregion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'SubregionNames': value.subregionNames, + }; +} + diff --git a/src/models/FiltersTag.ts b/src/models/FiltersTag.ts new file mode 100644 index 00000000..c3ae9297 --- /dev/null +++ b/src/models/FiltersTag.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersTag + */ +export interface FiltersTag { + /** + * The keys of the tags that are assigned to the resources. You can use this filter alongside the `Values` filter. In that case, you filter the resources corresponding to each tag, regardless of the other filter. + * @type {Array} + * @memberof FiltersTag + */ + keys?: Array; + /** + * The IDs of the resources with which the tags are associated. + * @type {Array} + * @memberof FiltersTag + */ + resourceIds?: Array; + /** + * The resource type (`vm` \| `image` \| `volume` \| `snapshot` \| `public-ip` \| `security-group` \| `route-table` \| `nic` \| `net` \| `subnet` \| `net-peering` \| `net-access-point` \| `nat-service` \| `internet-service` \| `client-gateway` \| `virtual-gateway` \| `vpn-connection` \| `dhcp-options` \| `task`). + * @type {Array} + * @memberof FiltersTag + */ + resourceTypes?: Array; + /** + * The values of the tags that are assigned to the resources. You can use this filter alongside the `TagKeys` filter. In that case, you filter the resources corresponding to each tag, regardless of the other filter. + * @type {Array} + * @memberof FiltersTag + */ + values?: Array; +} + +export function FiltersTagFromJSON(json: any): FiltersTag { + return FiltersTagFromJSONTyped(json, false); +} + +export function FiltersTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersTag { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'keys': !exists(json, 'Keys') ? undefined : json['Keys'], + 'resourceIds': !exists(json, 'ResourceIds') ? undefined : json['ResourceIds'], + 'resourceTypes': !exists(json, 'ResourceTypes') ? undefined : json['ResourceTypes'], + 'values': !exists(json, 'Values') ? undefined : json['Values'], + }; +} + +export function FiltersTagToJSON(value?: FiltersTag | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Keys': value.keys, + 'ResourceIds': value.resourceIds, + 'ResourceTypes': value.resourceTypes, + 'Values': value.values, + }; +} + diff --git a/src/models/FiltersVirtualGateway.ts b/src/models/FiltersVirtualGateway.ts new file mode 100644 index 00000000..1df79a61 --- /dev/null +++ b/src/models/FiltersVirtualGateway.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersVirtualGateway + */ +export interface FiltersVirtualGateway { + /** + * The types of the virtual gateways (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + connectionTypes?: Array; + /** + * The IDs of the Nets the virtual gateways are attached to. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + linkNetIds?: Array; + /** + * The current states of the attachments between the virtual gateways and the Nets (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + linkStates?: Array; + /** + * The states of the virtual gateways (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersVirtualGateway + */ + states?: Array; + /** + * The keys of the tags associated with the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tagKeys?: Array; + /** + * The values of the tags associated with the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the virtual gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + tags?: Array; + /** + * The IDs of the virtual gateways. + * @type {Array} + * @memberof FiltersVirtualGateway + */ + virtualGatewayIds?: Array; +} + +export function FiltersVirtualGatewayFromJSON(json: any): FiltersVirtualGateway { + return FiltersVirtualGatewayFromJSONTyped(json, false); +} + +export function FiltersVirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVirtualGateway { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'connectionTypes': !exists(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'linkNetIds': !exists(json, 'LinkNetIds') ? undefined : json['LinkNetIds'], + 'linkStates': !exists(json, 'LinkStates') ? undefined : json['LinkStates'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'virtualGatewayIds': !exists(json, 'VirtualGatewayIds') ? undefined : json['VirtualGatewayIds'], + }; +} + +export function FiltersVirtualGatewayToJSON(value?: FiltersVirtualGateway | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ConnectionTypes': value.connectionTypes, + 'LinkNetIds': value.linkNetIds, + 'LinkStates': value.linkStates, + 'States': value.states, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualGatewayIds': value.virtualGatewayIds, + }; +} + diff --git a/src/models/FiltersVm.ts b/src/models/FiltersVm.ts new file mode 100644 index 00000000..3169c880 --- /dev/null +++ b/src/models/FiltersVm.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersVm + */ +export interface FiltersVm { + /** + * The keys of the tags associated with the VMs. + * @type {Array} + * @memberof FiltersVm + */ + tagKeys?: Array; + /** + * The values of the tags associated with the VMs. + * @type {Array} + * @memberof FiltersVm + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the VMs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVm + */ + tags?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVm + */ + vmIds?: Array; +} + +export function FiltersVmFromJSON(json: any): FiltersVm { + return FiltersVmFromJSONTyped(json, false); +} + +export function FiltersVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} + +export function FiltersVmToJSON(value?: FiltersVm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/FiltersVmType.ts b/src/models/FiltersVmType.ts new file mode 100644 index 00000000..7d4a1fc7 --- /dev/null +++ b/src/models/FiltersVmType.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersVmType + */ +export interface FiltersVmType { + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof FiltersVmType + */ + bsuOptimized?: boolean; + /** + * The amounts of memory, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVmType + */ + memorySizes?: Array; + /** + * The numbers of vCores. + * @type {Array} + * @memberof FiltersVmType + */ + vcoreCounts?: Array; + /** + * The names of the VM types. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {Array} + * @memberof FiltersVmType + */ + vmTypeNames?: Array; + /** + * The maximum number of ephemeral storage disks. + * @type {Array} + * @memberof FiltersVmType + */ + volumeCounts?: Array; + /** + * The size of one ephemeral storage disk, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVmType + */ + volumeSizes?: Array; +} + +export function FiltersVmTypeFromJSON(json: any): FiltersVmType { + return FiltersVmTypeFromJSONTyped(json, false); +} + +export function FiltersVmTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVmType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'memorySizes': !exists(json, 'MemorySizes') ? undefined : json['MemorySizes'], + 'vcoreCounts': !exists(json, 'VcoreCounts') ? undefined : json['VcoreCounts'], + 'vmTypeNames': !exists(json, 'VmTypeNames') ? undefined : json['VmTypeNames'], + 'volumeCounts': !exists(json, 'VolumeCounts') ? undefined : json['VolumeCounts'], + 'volumeSizes': !exists(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + }; +} + +export function FiltersVmTypeToJSON(value?: FiltersVmType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BsuOptimized': value.bsuOptimized, + 'MemorySizes': value.memorySizes, + 'VcoreCounts': value.vcoreCounts, + 'VmTypeNames': value.vmTypeNames, + 'VolumeCounts': value.volumeCounts, + 'VolumeSizes': value.volumeSizes, + }; +} + diff --git a/src/models/FiltersVmsState.ts b/src/models/FiltersVmsState.ts new file mode 100644 index 00000000..df318a3d --- /dev/null +++ b/src/models/FiltersVmsState.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersVmsState + */ +export interface FiltersVmsState { + /** + * The code for the scheduled event (`system-reboot` \| `system-maintenance`). + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventCodes?: Array; + /** + * The description of the scheduled event. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventDescriptions?: Array; + /** + * The latest time the event can end. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventsNotAfter?: Array; + /** + * The earliest time the event can start. + * @type {Array} + * @memberof FiltersVmsState + */ + maintenanceEventsNotBefore?: Array; + /** + * The names of the Subregions of the VMs. + * @type {Array} + * @memberof FiltersVmsState + */ + subregionNames?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVmsState + */ + vmIds?: Array; + /** + * The states of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {Array} + * @memberof FiltersVmsState + */ + vmStates?: Array; +} + +export function FiltersVmsStateFromJSON(json: any): FiltersVmsState { + return FiltersVmsStateFromJSONTyped(json, false); +} + +export function FiltersVmsStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVmsState { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maintenanceEventCodes': !exists(json, 'MaintenanceEventCodes') ? undefined : json['MaintenanceEventCodes'], + 'maintenanceEventDescriptions': !exists(json, 'MaintenanceEventDescriptions') ? undefined : json['MaintenanceEventDescriptions'], + 'maintenanceEventsNotAfter': !exists(json, 'MaintenanceEventsNotAfter') ? undefined : json['MaintenanceEventsNotAfter'], + 'maintenanceEventsNotBefore': !exists(json, 'MaintenanceEventsNotBefore') ? undefined : json['MaintenanceEventsNotBefore'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + 'vmStates': !exists(json, 'VmStates') ? undefined : json['VmStates'], + }; +} + +export function FiltersVmsStateToJSON(value?: FiltersVmsState | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'MaintenanceEventCodes': value.maintenanceEventCodes, + 'MaintenanceEventDescriptions': value.maintenanceEventDescriptions, + 'MaintenanceEventsNotAfter': value.maintenanceEventsNotAfter, + 'MaintenanceEventsNotBefore': value.maintenanceEventsNotBefore, + 'SubregionNames': value.subregionNames, + 'VmIds': value.vmIds, + 'VmStates': value.vmStates, + }; +} + diff --git a/src/models/FiltersVolume.ts b/src/models/FiltersVolume.ts new file mode 100644 index 00000000..324d8a29 --- /dev/null +++ b/src/models/FiltersVolume.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersVolume + */ +export interface FiltersVolume { + /** + * The dates and times at which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + creationDates?: Array; + /** + * Whether the volumes are deleted or not when terminating the VMs. + * @type {boolean} + * @memberof FiltersVolume + */ + linkVolumeDeleteOnVmDeletion?: boolean; + /** + * The VM device names. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeDeviceNames?: Array; + /** + * The dates and times at which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeLinkDates?: Array; + /** + * The attachment states of the volumes (`attaching` \| `detaching` \| `attached` \| `detached`). + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeLinkStates?: Array; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof FiltersVolume + */ + linkVolumeVmIds?: Array; + /** + * The snapshots from which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + snapshotIds?: Array; + /** + * The names of the Subregions in which the volumes were created. + * @type {Array} + * @memberof FiltersVolume + */ + subregionNames?: Array; + /** + * The keys of the tags associated with the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + tagKeys?: Array; + /** + * The values of the tags associated with the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the volumes, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVolume + */ + tags?: Array; + /** + * The IDs of the volumes. + * @type {Array} + * @memberof FiltersVolume + */ + volumeIds?: Array; + /** + * The sizes of the volumes, in gibibytes (GiB). + * @type {Array} + * @memberof FiltersVolume + */ + volumeSizes?: Array; + /** + * The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). + * @type {Array} + * @memberof FiltersVolume + */ + volumeStates?: Array; + /** + * The types of the volumes (`standard` \| `gp2` \| `io1`). + * @type {Array} + * @memberof FiltersVolume + */ + volumeTypes?: Array; +} + +export function FiltersVolumeFromJSON(json: any): FiltersVolume { + return FiltersVolumeFromJSONTyped(json, false); +} + +export function FiltersVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVolume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'creationDates': !exists(json, 'CreationDates') ? undefined : json['CreationDates'], + 'linkVolumeDeleteOnVmDeletion': !exists(json, 'LinkVolumeDeleteOnVmDeletion') ? undefined : json['LinkVolumeDeleteOnVmDeletion'], + 'linkVolumeDeviceNames': !exists(json, 'LinkVolumeDeviceNames') ? undefined : json['LinkVolumeDeviceNames'], + 'linkVolumeLinkDates': !exists(json, 'LinkVolumeLinkDates') ? undefined : json['LinkVolumeLinkDates'], + 'linkVolumeLinkStates': !exists(json, 'LinkVolumeLinkStates') ? undefined : json['LinkVolumeLinkStates'], + 'linkVolumeVmIds': !exists(json, 'LinkVolumeVmIds') ? undefined : json['LinkVolumeVmIds'], + 'snapshotIds': !exists(json, 'SnapshotIds') ? undefined : json['SnapshotIds'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'volumeIds': !exists(json, 'VolumeIds') ? undefined : json['VolumeIds'], + 'volumeSizes': !exists(json, 'VolumeSizes') ? undefined : json['VolumeSizes'], + 'volumeStates': !exists(json, 'VolumeStates') ? undefined : json['VolumeStates'], + 'volumeTypes': !exists(json, 'VolumeTypes') ? undefined : json['VolumeTypes'], + }; +} + +export function FiltersVolumeToJSON(value?: FiltersVolume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CreationDates': value.creationDates, + 'LinkVolumeDeleteOnVmDeletion': value.linkVolumeDeleteOnVmDeletion, + 'LinkVolumeDeviceNames': value.linkVolumeDeviceNames, + 'LinkVolumeLinkDates': value.linkVolumeLinkDates, + 'LinkVolumeLinkStates': value.linkVolumeLinkStates, + 'LinkVolumeVmIds': value.linkVolumeVmIds, + 'SnapshotIds': value.snapshotIds, + 'SubregionNames': value.subregionNames, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VolumeIds': value.volumeIds, + 'VolumeSizes': value.volumeSizes, + 'VolumeStates': value.volumeStates, + 'VolumeTypes': value.volumeTypes, + }; +} + diff --git a/src/models/FiltersVpnConnection.ts b/src/models/FiltersVpnConnection.ts new file mode 100644 index 00000000..6a3ef9e5 --- /dev/null +++ b/src/models/FiltersVpnConnection.ts @@ -0,0 +1,136 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more filters. + * @export + * @interface FiltersVpnConnection + */ +export interface FiltersVpnConnection { + /** + * The Border Gateway Protocol (BGP) Autonomous System Numbers (ASNs) of the connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + bgpAsns?: Array; + /** + * The IDs of the client gateways. + * @type {Array} + * @memberof FiltersVpnConnection + */ + clientGatewayIds?: Array; + /** + * The types of the VPN connections (only `ipsec.1` is supported). + * @type {Array} + * @memberof FiltersVpnConnection + */ + connectionTypes?: Array; + /** + * The destination IP ranges. + * @type {Array} + * @memberof FiltersVpnConnection + */ + routeDestinationIpRanges?: Array; + /** + * The states of the VPN connections (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {Array} + * @memberof FiltersVpnConnection + */ + states?: Array; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof FiltersVpnConnection + */ + staticRoutesOnly?: boolean; + /** + * The keys of the tags associated with the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tagKeys?: Array; + /** + * The values of the tags associated with the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tagValues?: Array; + /** + * The key/value combination of the tags associated with the VPN connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * @type {Array} + * @memberof FiltersVpnConnection + */ + tags?: Array; + /** + * The IDs of the virtual gateways. + * @type {Array} + * @memberof FiltersVpnConnection + */ + virtualGatewayIds?: Array; + /** + * The IDs of the VPN connections. + * @type {Array} + * @memberof FiltersVpnConnection + */ + vpnConnectionIds?: Array; +} + +export function FiltersVpnConnectionFromJSON(json: any): FiltersVpnConnection { + return FiltersVpnConnectionFromJSONTyped(json, false); +} + +export function FiltersVpnConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FiltersVpnConnection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bgpAsns': !exists(json, 'BgpAsns') ? undefined : json['BgpAsns'], + 'clientGatewayIds': !exists(json, 'ClientGatewayIds') ? undefined : json['ClientGatewayIds'], + 'connectionTypes': !exists(json, 'ConnectionTypes') ? undefined : json['ConnectionTypes'], + 'routeDestinationIpRanges': !exists(json, 'RouteDestinationIpRanges') ? undefined : json['RouteDestinationIpRanges'], + 'states': !exists(json, 'States') ? undefined : json['States'], + 'staticRoutesOnly': !exists(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'tagKeys': !exists(json, 'TagKeys') ? undefined : json['TagKeys'], + 'tagValues': !exists(json, 'TagValues') ? undefined : json['TagValues'], + 'tags': !exists(json, 'Tags') ? undefined : json['Tags'], + 'virtualGatewayIds': !exists(json, 'VirtualGatewayIds') ? undefined : json['VirtualGatewayIds'], + 'vpnConnectionIds': !exists(json, 'VpnConnectionIds') ? undefined : json['VpnConnectionIds'], + }; +} + +export function FiltersVpnConnectionToJSON(value?: FiltersVpnConnection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BgpAsns': value.bgpAsns, + 'ClientGatewayIds': value.clientGatewayIds, + 'ConnectionTypes': value.connectionTypes, + 'RouteDestinationIpRanges': value.routeDestinationIpRanges, + 'States': value.states, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'TagKeys': value.tagKeys, + 'TagValues': value.tagValues, + 'Tags': value.tags, + 'VirtualGatewayIds': value.virtualGatewayIds, + 'VpnConnectionIds': value.vpnConnectionIds, + }; +} + diff --git a/src/models/FlexibleGpu.ts b/src/models/FlexibleGpu.ts new file mode 100644 index 00000000..55496701 --- /dev/null +++ b/src/models/FlexibleGpu.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the flexible GPU (fGPU). + * @export + * @interface FlexibleGpu + */ +export interface FlexibleGpu { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof FlexibleGpu + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the fGPU. + * @type {string} + * @memberof FlexibleGpu + */ + flexibleGpuId?: string; + /** + * The compatible processor generation. + * @type {string} + * @memberof FlexibleGpu + */ + generation?: string; + /** + * The model of fGPU. For more information, see [About Flexible GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html). + * @type {string} + * @memberof FlexibleGpu + */ + modelName?: string; + /** + * The state of the fGPU (`allocated` \| `attaching` \| `attached` \| `detaching`). + * @type {string} + * @memberof FlexibleGpu + */ + state?: string; + /** + * The Subregion where the fGPU is located. + * @type {string} + * @memberof FlexibleGpu + */ + subregionName?: string; + /** + * The ID of the VM the fGPU is attached to, if any. + * @type {string} + * @memberof FlexibleGpu + */ + vmId?: string; +} + +export function FlexibleGpuFromJSON(json: any): FlexibleGpu { + return FlexibleGpuFromJSONTyped(json, false); +} + +export function FlexibleGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlexibleGpu { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'flexibleGpuId': !exists(json, 'FlexibleGpuId') ? undefined : json['FlexibleGpuId'], + 'generation': !exists(json, 'Generation') ? undefined : json['Generation'], + 'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function FlexibleGpuToJSON(value?: FlexibleGpu | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'FlexibleGpuId': value.flexibleGpuId, + 'Generation': value.generation, + 'ModelName': value.modelName, + 'State': value.state, + 'SubregionName': value.subregionName, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/FlexibleGpuCatalog.ts b/src/models/FlexibleGpuCatalog.ts new file mode 100644 index 00000000..7be1c3ff --- /dev/null +++ b/src/models/FlexibleGpuCatalog.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the flexible GPU (fGPU) that is available in the public catalog. + * @export + * @interface FlexibleGpuCatalog + */ +export interface FlexibleGpuCatalog { + /** + * The generations of VMs that the fGPU is compatible with. + * @type {Array} + * @memberof FlexibleGpuCatalog + */ + generations?: Array; + /** + * The maximum number of VM vCores that the fGPU is compatible with. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + maxCpu?: number; + /** + * The maximum amount of VM memory that the fGPU is compatible with. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + maxRam?: number; + /** + * The model of fGPU. + * @type {string} + * @memberof FlexibleGpuCatalog + */ + modelName?: string; + /** + * The amount of video RAM (VRAM) of the fGPU. + * @type {number} + * @memberof FlexibleGpuCatalog + */ + vRam?: number; +} + +export function FlexibleGpuCatalogFromJSON(json: any): FlexibleGpuCatalog { + return FlexibleGpuCatalogFromJSONTyped(json, false); +} + +export function FlexibleGpuCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlexibleGpuCatalog { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'generations': !exists(json, 'Generations') ? undefined : json['Generations'], + 'maxCpu': !exists(json, 'MaxCpu') ? undefined : json['MaxCpu'], + 'maxRam': !exists(json, 'MaxRam') ? undefined : json['MaxRam'], + 'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'], + 'vRam': !exists(json, 'VRam') ? undefined : json['VRam'], + }; +} + +export function FlexibleGpuCatalogToJSON(value?: FlexibleGpuCatalog | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Generations': value.generations, + 'MaxCpu': value.maxCpu, + 'MaxRam': value.maxRam, + 'ModelName': value.modelName, + 'VRam': value.vRam, + }; +} + diff --git a/src/models/HealthCheck.ts b/src/models/HealthCheck.ts new file mode 100644 index 00000000..26f21917 --- /dev/null +++ b/src/models/HealthCheck.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the health check configuration. + * @export + * @interface HealthCheck + */ +export interface HealthCheck { + /** + * The number of seconds between two pings (between `5` and `600` both included). + * @type {number} + * @memberof HealthCheck + */ + checkInterval: number; + /** + * The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). + * @type {number} + * @memberof HealthCheck + */ + healthyThreshold: number; + /** + * If you use the HTTP or HTTPS protocols, the ping path. + * @type {string} + * @memberof HealthCheck + */ + path?: string; + /** + * The port number (between `1` and `65535`, both included). + * @type {number} + * @memberof HealthCheck + */ + port: number; + /** + * The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof HealthCheck + */ + protocol: string; + /** + * The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). + * @type {number} + * @memberof HealthCheck + */ + timeout: number; + /** + * The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). + * @type {number} + * @memberof HealthCheck + */ + unhealthyThreshold: number; +} + +export function HealthCheckFromJSON(json: any): HealthCheck { + return HealthCheckFromJSONTyped(json, false); +} + +export function HealthCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthCheck { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'checkInterval': json['CheckInterval'], + 'healthyThreshold': json['HealthyThreshold'], + 'path': !exists(json, 'Path') ? undefined : json['Path'], + 'port': json['Port'], + 'protocol': json['Protocol'], + 'timeout': json['Timeout'], + 'unhealthyThreshold': json['UnhealthyThreshold'], + }; +} + +export function HealthCheckToJSON(value?: HealthCheck | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CheckInterval': value.checkInterval, + 'HealthyThreshold': value.healthyThreshold, + 'Path': value.path, + 'Port': value.port, + 'Protocol': value.protocol, + 'Timeout': value.timeout, + 'UnhealthyThreshold': value.unhealthyThreshold, + }; +} + diff --git a/src/models/Image.ts b/src/models/Image.ts new file mode 100644 index 00000000..96ca5038 --- /dev/null +++ b/src/models/Image.ts @@ -0,0 +1,209 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BlockDeviceMappingImage, + BlockDeviceMappingImageFromJSON, + BlockDeviceMappingImageFromJSONTyped, + BlockDeviceMappingImageToJSON, +} from './BlockDeviceMappingImage'; +import { + PermissionsOnResource, + PermissionsOnResourceFromJSON, + PermissionsOnResourceFromJSONTyped, + PermissionsOnResourceToJSON, +} from './PermissionsOnResource'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + StateComment, + StateCommentFromJSON, + StateCommentFromJSONTyped, + StateCommentToJSON, +} from './StateComment'; + +/** + * Information about the OMI. + * @export + * @interface Image + */ +export interface Image { + /** + * The account alias of the owner of the OMI. + * @type {string} + * @memberof Image + */ + accountAlias?: string; + /** + * The account ID of the owner of the OMI. + * @type {string} + * @memberof Image + */ + accountId?: string; + /** + * The architecture of the OMI (by default, `i386`). + * @type {string} + * @memberof Image + */ + architecture?: string; + /** + * One or more block device mappings. + * @type {Array} + * @memberof Image + */ + blockDeviceMappings?: Array; + /** + * The date and time at which the OMI was created. + * @type {Date} + * @memberof Image + */ + creationDate?: Date; + /** + * The description of the OMI. + * @type {string} + * @memberof Image + */ + description?: string; + /** + * The location of the bucket where the OMI files are stored. + * @type {string} + * @memberof Image + */ + fileLocation?: string; + /** + * The ID of the OMI. + * @type {string} + * @memberof Image + */ + imageId?: string; + /** + * The name of the OMI. + * @type {string} + * @memberof Image + */ + imageName?: string; + /** + * The type of the OMI. + * @type {string} + * @memberof Image + */ + imageType?: string; + /** + * + * @type {PermissionsOnResource} + * @memberof Image + */ + permissionsToLaunch?: PermissionsOnResource; + /** + * The product code associated with the OMI (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof Image + */ + productCodes?: Array; + /** + * The name of the root device. + * @type {string} + * @memberof Image + */ + rootDeviceName?: string; + /** + * The type of root device used by the OMI (always `bsu`). + * @type {string} + * @memberof Image + */ + rootDeviceType?: string; + /** + * The state of the OMI (`pending` \| `available` \| `failed`). + * @type {string} + * @memberof Image + */ + state?: string; + /** + * + * @type {StateComment} + * @memberof Image + */ + stateComment?: StateComment; + /** + * One or more tags associated with the OMI. + * @type {Array} + * @memberof Image + */ + tags?: Array; +} + +export function ImageFromJSON(json: any): Image { + return ImageFromJSONTyped(json, false); +} + +export function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountAlias': !exists(json, 'AccountAlias') ? undefined : json['AccountAlias'], + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'architecture': !exists(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : ((json['BlockDeviceMappings'] as Array).map(BlockDeviceMappingImageFromJSON)), + 'creationDate': !exists(json, 'CreationDate') ? undefined : (new Date(json['CreationDate'])), + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'fileLocation': !exists(json, 'FileLocation') ? undefined : json['FileLocation'], + 'imageId': !exists(json, 'ImageId') ? undefined : json['ImageId'], + 'imageName': !exists(json, 'ImageName') ? undefined : json['ImageName'], + 'imageType': !exists(json, 'ImageType') ? undefined : json['ImageType'], + 'permissionsToLaunch': !exists(json, 'PermissionsToLaunch') ? undefined : PermissionsOnResourceFromJSON(json['PermissionsToLaunch']), + 'productCodes': !exists(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'rootDeviceName': !exists(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'rootDeviceType': !exists(json, 'RootDeviceType') ? undefined : json['RootDeviceType'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateComment': !exists(json, 'StateComment') ? undefined : StateCommentFromJSON(json['StateComment']), + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function ImageToJSON(value?: Image | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountAlias': value.accountAlias, + 'AccountId': value.accountId, + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : ((value.blockDeviceMappings as Array).map(BlockDeviceMappingImageToJSON)), + 'CreationDate': value.creationDate === undefined ? undefined : (value.creationDate.toISOString().substr(0,10)), + 'Description': value.description, + 'FileLocation': value.fileLocation, + 'ImageId': value.imageId, + 'ImageName': value.imageName, + 'ImageType': value.imageType, + 'PermissionsToLaunch': PermissionsOnResourceToJSON(value.permissionsToLaunch), + 'ProductCodes': value.productCodes, + 'RootDeviceName': value.rootDeviceName, + 'RootDeviceType': value.rootDeviceType, + 'State': value.state, + 'StateComment': StateCommentToJSON(value.stateComment), + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/ImageExportTask.ts b/src/models/ImageExportTask.ts new file mode 100644 index 00000000..ff966928 --- /dev/null +++ b/src/models/ImageExportTask.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + OsuExportImageExportTask, + OsuExportImageExportTaskFromJSON, + OsuExportImageExportTaskFromJSONTyped, + OsuExportImageExportTaskToJSON, +} from './OsuExportImageExportTask'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the OMI export task. + * @export + * @interface ImageExportTask + */ +export interface ImageExportTask { + /** + * If the OMI export task fails, an error message appears. + * @type {string} + * @memberof ImageExportTask + */ + comment?: string; + /** + * The ID of the OMI to be exported. + * @type {string} + * @memberof ImageExportTask + */ + imageId?: string; + /** + * + * @type {OsuExportImageExportTask} + * @memberof ImageExportTask + */ + osuExport?: OsuExportImageExportTask; + /** + * The progress of the OMI export task, as a percentage. + * @type {number} + * @memberof ImageExportTask + */ + progress?: number; + /** + * The state of the OMI export task (`pending/queued` \| `pending` \| `completed` \| `failed` \| `cancelled`). + * @type {string} + * @memberof ImageExportTask + */ + state?: string; + /** + * One or more tags associated with the image export task. + * @type {Array} + * @memberof ImageExportTask + */ + tags?: Array; + /** + * The ID of the OMI export task. + * @type {string} + * @memberof ImageExportTask + */ + taskId?: string; +} + +export function ImageExportTaskFromJSON(json: any): ImageExportTask { + return ImageExportTaskFromJSONTyped(json, false); +} + +export function ImageExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageExportTask { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'comment': !exists(json, 'Comment') ? undefined : json['Comment'], + 'imageId': !exists(json, 'ImageId') ? undefined : json['ImageId'], + 'osuExport': !exists(json, 'OsuExport') ? undefined : OsuExportImageExportTaskFromJSON(json['OsuExport']), + 'progress': !exists(json, 'Progress') ? undefined : json['Progress'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'taskId': !exists(json, 'TaskId') ? undefined : json['TaskId'], + }; +} + +export function ImageExportTaskToJSON(value?: ImageExportTask | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Comment': value.comment, + 'ImageId': value.imageId, + 'OsuExport': OsuExportImageExportTaskToJSON(value.osuExport), + 'Progress': value.progress, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'TaskId': value.taskId, + }; +} + diff --git a/src/models/InternetService.ts b/src/models/InternetService.ts new file mode 100644 index 00000000..0d8a301e --- /dev/null +++ b/src/models/InternetService.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the Internet service. + * @export + * @interface InternetService + */ +export interface InternetService { + /** + * The ID of the Internet service. + * @type {string} + * @memberof InternetService + */ + internetServiceId?: string; + /** + * The ID of the Net attached to the Internet service. + * @type {string} + * @memberof InternetService + */ + netId?: string; + /** + * The state of the attachment of the Internet service to the Net (always `available`). + * @type {string} + * @memberof InternetService + */ + state?: string; + /** + * One or more tags associated with the Internet service. + * @type {Array} + * @memberof InternetService + */ + tags?: Array; +} + +export function InternetServiceFromJSON(json: any): InternetService { + return InternetServiceFromJSONTyped(json, false); +} + +export function InternetServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternetService { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'internetServiceId': !exists(json, 'InternetServiceId') ? undefined : json['InternetServiceId'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function InternetServiceToJSON(value?: InternetService | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/Keypair.ts b/src/models/Keypair.ts new file mode 100644 index 00000000..db21c57f --- /dev/null +++ b/src/models/Keypair.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the keypair. + * @export + * @interface Keypair + */ +export interface Keypair { + /** + * The MD5 public key fingerprint as specified in section 4 of RFC 4716. + * @type {string} + * @memberof Keypair + */ + keypairFingerprint?: string; + /** + * The name of the keypair. + * @type {string} + * @memberof Keypair + */ + keypairName?: string; +} + +export function KeypairFromJSON(json: any): Keypair { + return KeypairFromJSONTyped(json, false); +} + +export function KeypairFromJSONTyped(json: any, ignoreDiscriminator: boolean): Keypair { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'keypairFingerprint': !exists(json, 'KeypairFingerprint') ? undefined : json['KeypairFingerprint'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + }; +} + +export function KeypairToJSON(value?: Keypair | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'KeypairFingerprint': value.keypairFingerprint, + 'KeypairName': value.keypairName, + }; +} + diff --git a/src/models/KeypairCreated.ts b/src/models/KeypairCreated.ts new file mode 100644 index 00000000..5525728d --- /dev/null +++ b/src/models/KeypairCreated.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the created keypair. + * @export + * @interface KeypairCreated + */ +export interface KeypairCreated { + /** + * The MD5 public key fingerprint as specified in section 4 of RFC 4716. + * @type {string} + * @memberof KeypairCreated + */ + keypairFingerprint?: string; + /** + * The name of the keypair. + * @type {string} + * @memberof KeypairCreated + */ + keypairName?: string; + /** + * The private key. When saving the private key in a .rsa file, replace the `\n` escape sequences with line breaks. + * @type {string} + * @memberof KeypairCreated + */ + privateKey?: string; +} + +export function KeypairCreatedFromJSON(json: any): KeypairCreated { + return KeypairCreatedFromJSONTyped(json, false); +} + +export function KeypairCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeypairCreated { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'keypairFingerprint': !exists(json, 'KeypairFingerprint') ? undefined : json['KeypairFingerprint'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'privateKey': !exists(json, 'PrivateKey') ? undefined : json['PrivateKey'], + }; +} + +export function KeypairCreatedToJSON(value?: KeypairCreated | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'KeypairFingerprint': value.keypairFingerprint, + 'KeypairName': value.keypairName, + 'PrivateKey': value.privateKey, + }; +} + diff --git a/src/models/LinkFlexibleGpuRequest.ts b/src/models/LinkFlexibleGpuRequest.ts new file mode 100644 index 00000000..3414a7bb --- /dev/null +++ b/src/models/LinkFlexibleGpuRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkFlexibleGpuRequest + */ +export interface LinkFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to attach. + * @type {string} + * @memberof LinkFlexibleGpuRequest + */ + flexibleGpuId: string; + /** + * The ID of the VM you want to attach the fGPU to. + * @type {string} + * @memberof LinkFlexibleGpuRequest + */ + vmId: string; +} + +export function LinkFlexibleGpuRequestFromJSON(json: any): LinkFlexibleGpuRequest { + return LinkFlexibleGpuRequestFromJSONTyped(json, false); +} + +export function LinkFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFlexibleGpuRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + 'vmId': json['VmId'], + }; +} + +export function LinkFlexibleGpuRequestToJSON(value?: LinkFlexibleGpuRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/LinkFlexibleGpuResponse.ts b/src/models/LinkFlexibleGpuResponse.ts new file mode 100644 index 00000000..70721877 --- /dev/null +++ b/src/models/LinkFlexibleGpuResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkFlexibleGpuResponse + */ +export interface LinkFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkFlexibleGpuResponseFromJSON(json: any): LinkFlexibleGpuResponse { + return LinkFlexibleGpuResponseFromJSONTyped(json, false); +} + +export function LinkFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFlexibleGpuResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkFlexibleGpuResponseToJSON(value?: LinkFlexibleGpuResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkInternetServiceRequest.ts b/src/models/LinkInternetServiceRequest.ts new file mode 100644 index 00000000..c0269160 --- /dev/null +++ b/src/models/LinkInternetServiceRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkInternetServiceRequest + */ +export interface LinkInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to attach. + * @type {string} + * @memberof LinkInternetServiceRequest + */ + internetServiceId: string; + /** + * The ID of the Net to which you want to attach the Internet service. + * @type {string} + * @memberof LinkInternetServiceRequest + */ + netId: string; +} + +export function LinkInternetServiceRequestFromJSON(json: any): LinkInternetServiceRequest { + return LinkInternetServiceRequestFromJSONTyped(json, false); +} + +export function LinkInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkInternetServiceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + 'netId': json['NetId'], + }; +} + +export function LinkInternetServiceRequestToJSON(value?: LinkInternetServiceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + }; +} + diff --git a/src/models/LinkInternetServiceResponse.ts b/src/models/LinkInternetServiceResponse.ts new file mode 100644 index 00000000..34bd386d --- /dev/null +++ b/src/models/LinkInternetServiceResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkInternetServiceResponse + */ +export interface LinkInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkInternetServiceResponseFromJSON(json: any): LinkInternetServiceResponse { + return LinkInternetServiceResponseFromJSONTyped(json, false); +} + +export function LinkInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkInternetServiceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkInternetServiceResponseToJSON(value?: LinkInternetServiceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkLoadBalancerBackendMachinesRequest.ts b/src/models/LinkLoadBalancerBackendMachinesRequest.ts new file mode 100644 index 00000000..0c8ad02a --- /dev/null +++ b/src/models/LinkLoadBalancerBackendMachinesRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkLoadBalancerBackendMachinesRequest + */ +export interface LinkLoadBalancerBackendMachinesRequest { + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof LinkLoadBalancerBackendMachinesRequest + */ + loadBalancerName: string; +} + +export function LinkLoadBalancerBackendMachinesRequestFromJSON(json: any): LinkLoadBalancerBackendMachinesRequest { + return LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, false); +} + +export function LinkLoadBalancerBackendMachinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkLoadBalancerBackendMachinesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendIps': !exists(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function LinkLoadBalancerBackendMachinesRequestToJSON(value?: LinkLoadBalancerBackendMachinesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/LinkLoadBalancerBackendMachinesResponse.ts b/src/models/LinkLoadBalancerBackendMachinesResponse.ts new file mode 100644 index 00000000..bd50d019 --- /dev/null +++ b/src/models/LinkLoadBalancerBackendMachinesResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkLoadBalancerBackendMachinesResponse + */ +export interface LinkLoadBalancerBackendMachinesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkLoadBalancerBackendMachinesResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkLoadBalancerBackendMachinesResponseFromJSON(json: any): LinkLoadBalancerBackendMachinesResponse { + return LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, false); +} + +export function LinkLoadBalancerBackendMachinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkLoadBalancerBackendMachinesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkLoadBalancerBackendMachinesResponseToJSON(value?: LinkLoadBalancerBackendMachinesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkNic.ts b/src/models/LinkNic.ts new file mode 100644 index 00000000..417927ea --- /dev/null +++ b/src/models/LinkNic.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the NIC attachment. + * @export + * @interface LinkNic + */ +export interface LinkNic { + /** + * If true, the NIC is deleted when the VM is terminated. + * @type {boolean} + * @memberof LinkNic + */ + deleteOnVmDeletion?: boolean; + /** + * The device index for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNic + */ + deviceNumber?: number; + /** + * The ID of the NIC to attach. + * @type {string} + * @memberof LinkNic + */ + linkNicId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof LinkNic + */ + state?: string; + /** + * The account ID of the owner of the VM. + * @type {string} + * @memberof LinkNic + */ + vmAccountId?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof LinkNic + */ + vmId?: string; +} + +export function LinkNicFromJSON(json: any): LinkNic { + return LinkNicFromJSONTyped(json, false); +} + +export function LinkNicFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNic { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceNumber': !exists(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'vmAccountId': !exists(json, 'VmAccountId') ? undefined : json['VmAccountId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function LinkNicToJSON(value?: LinkNic | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceNumber': value.deviceNumber, + 'LinkNicId': value.linkNicId, + 'State': value.state, + 'VmAccountId': value.vmAccountId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/LinkNicLight.ts b/src/models/LinkNicLight.ts new file mode 100644 index 00000000..f680c32a --- /dev/null +++ b/src/models/LinkNicLight.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the network interface card (NIC). + * @export + * @interface LinkNicLight + */ +export interface LinkNicLight { + /** + * If true, the NIC is deleted when the VM is terminated. + * @type {boolean} + * @memberof LinkNicLight + */ + deleteOnVmDeletion?: boolean; + /** + * The device index for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNicLight + */ + deviceNumber?: number; + /** + * The ID of the NIC to attach. + * @type {string} + * @memberof LinkNicLight + */ + linkNicId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof LinkNicLight + */ + state?: string; +} + +export function LinkNicLightFromJSON(json: any): LinkNicLight { + return LinkNicLightFromJSONTyped(json, false); +} + +export function LinkNicLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceNumber': !exists(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} + +export function LinkNicLightToJSON(value?: LinkNicLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceNumber': value.deviceNumber, + 'LinkNicId': value.linkNicId, + 'State': value.state, + }; +} + diff --git a/src/models/LinkNicRequest.ts b/src/models/LinkNicRequest.ts new file mode 100644 index 00000000..e4c1ea93 --- /dev/null +++ b/src/models/LinkNicRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkNicRequest + */ +export interface LinkNicRequest { + /** + * The index of the VM device for the NIC attachment (between 1 and 7, both included). + * @type {number} + * @memberof LinkNicRequest + */ + deviceNumber: number; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkNicRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC you want to attach. + * @type {string} + * @memberof LinkNicRequest + */ + nicId: string; + /** + * The ID of the VM to which you want to attach the NIC. + * @type {string} + * @memberof LinkNicRequest + */ + vmId: string; +} + +export function LinkNicRequestFromJSON(json: any): LinkNicRequest { + return LinkNicRequestFromJSONTyped(json, false); +} + +export function LinkNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deviceNumber': json['DeviceNumber'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'vmId': json['VmId'], + }; +} + +export function LinkNicRequestToJSON(value?: LinkNicRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeviceNumber': value.deviceNumber, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/LinkNicResponse.ts b/src/models/LinkNicResponse.ts new file mode 100644 index 00000000..9a83b4ad --- /dev/null +++ b/src/models/LinkNicResponse.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkNicResponse + */ +export interface LinkNicResponse { + /** + * The ID of the NIC attachment. + * @type {string} + * @memberof LinkNicResponse + */ + linkNicId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkNicResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkNicResponseFromJSON(json: any): LinkNicResponse { + return LinkNicResponseFromJSONTyped(json, false); +} + +export function LinkNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkNicResponseToJSON(value?: LinkNicResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkNicId': value.linkNicId, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkNicToUpdate.ts b/src/models/LinkNicToUpdate.ts new file mode 100644 index 00000000..f5a5c67a --- /dev/null +++ b/src/models/LinkNicToUpdate.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the NIC attachment. If you are modifying the `DeleteOnVmDeletion` attribute, you must specify the ID of the NIC attachment. + * @export + * @interface LinkNicToUpdate + */ +export interface LinkNicToUpdate { + /** + * If true, the NIC is deleted when the VM is terminated. If false, the NIC is detached from the VM. + * @type {boolean} + * @memberof LinkNicToUpdate + */ + deleteOnVmDeletion?: boolean; + /** + * The ID of the NIC attachment. + * @type {string} + * @memberof LinkNicToUpdate + */ + linkNicId?: string; +} + +export function LinkNicToUpdateFromJSON(json: any): LinkNicToUpdate { + return LinkNicToUpdateFromJSONTyped(json, false); +} + +export function LinkNicToUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkNicToUpdate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'linkNicId': !exists(json, 'LinkNicId') ? undefined : json['LinkNicId'], + }; +} + +export function LinkNicToUpdateToJSON(value?: LinkNicToUpdate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'LinkNicId': value.linkNicId, + }; +} + diff --git a/src/models/LinkPrivateIpsRequest.ts b/src/models/LinkPrivateIpsRequest.ts new file mode 100644 index 00000000..b09a8f6f --- /dev/null +++ b/src/models/LinkPrivateIpsRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkPrivateIpsRequest + */ +export interface LinkPrivateIpsRequest { + /** + * If true, allows an IP that is already assigned to another NIC in the same Subnet to be assigned to the NIC you specified. + * @type {boolean} + * @memberof LinkPrivateIpsRequest + */ + allowRelink?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkPrivateIpsRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC. + * @type {string} + * @memberof LinkPrivateIpsRequest + */ + nicId: string; + /** + * The secondary private IP or IPs you want to assign to the NIC within the IP range of the Subnet. + * @type {Array} + * @memberof LinkPrivateIpsRequest + */ + privateIps?: Array; + /** + * The number of secondary private IPs to assign to the NIC. + * @type {number} + * @memberof LinkPrivateIpsRequest + */ + secondaryPrivateIpCount?: number; +} + +export function LinkPrivateIpsRequestFromJSON(json: any): LinkPrivateIpsRequest { + return LinkPrivateIpsRequestFromJSONTyped(json, false); +} + +export function LinkPrivateIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPrivateIpsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowRelink': !exists(json, 'AllowRelink') ? undefined : json['AllowRelink'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : json['PrivateIps'], + 'secondaryPrivateIpCount': !exists(json, 'SecondaryPrivateIpCount') ? undefined : json['SecondaryPrivateIpCount'], + }; +} + +export function LinkPrivateIpsRequestToJSON(value?: LinkPrivateIpsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AllowRelink': value.allowRelink, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps, + 'SecondaryPrivateIpCount': value.secondaryPrivateIpCount, + }; +} + diff --git a/src/models/LinkPrivateIpsResponse.ts b/src/models/LinkPrivateIpsResponse.ts new file mode 100644 index 00000000..0cd443bc --- /dev/null +++ b/src/models/LinkPrivateIpsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkPrivateIpsResponse + */ +export interface LinkPrivateIpsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkPrivateIpsResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkPrivateIpsResponseFromJSON(json: any): LinkPrivateIpsResponse { + return LinkPrivateIpsResponseFromJSONTyped(json, false); +} + +export function LinkPrivateIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPrivateIpsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkPrivateIpsResponseToJSON(value?: LinkPrivateIpsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkPublicIp.ts b/src/models/LinkPublicIp.ts new file mode 100644 index 00000000..7837bb16 --- /dev/null +++ b/src/models/LinkPublicIp.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the public IP association. + * @export + * @interface LinkPublicIp + */ +export interface LinkPublicIp { + /** + * (Required in a Net) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof LinkPublicIp + */ + linkPublicIpId?: string; + /** + * The name of the public DNS. + * @type {string} + * @memberof LinkPublicIp + */ + publicDnsName?: string; + /** + * The public IP associated with the NIC. + * @type {string} + * @memberof LinkPublicIp + */ + publicIp?: string; + /** + * The account ID of the owner of the public IP. + * @type {string} + * @memberof LinkPublicIp + */ + publicIpAccountId?: string; + /** + * The allocation ID of the public IP. + * @type {string} + * @memberof LinkPublicIp + */ + publicIpId?: string; +} + +export function LinkPublicIpFromJSON(json: any): LinkPublicIp { + return LinkPublicIpFromJSONTyped(json, false); +} + +export function LinkPublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIp { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'publicDnsName': !exists(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpAccountId': !exists(json, 'PublicIpAccountId') ? undefined : json['PublicIpAccountId'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} + +export function LinkPublicIpToJSON(value?: LinkPublicIp | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkPublicIpId': value.linkPublicIpId, + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'PublicIpAccountId': value.publicIpAccountId, + 'PublicIpId': value.publicIpId, + }; +} + diff --git a/src/models/LinkPublicIpLightForVm.ts b/src/models/LinkPublicIpLightForVm.ts new file mode 100644 index 00000000..9c85caea --- /dev/null +++ b/src/models/LinkPublicIpLightForVm.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the public IP associated with the NIC. + * @export + * @interface LinkPublicIpLightForVm + */ +export interface LinkPublicIpLightForVm { + /** + * The name of the public DNS. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicDnsName?: string; + /** + * The public IP associated with the NIC. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicIp?: string; + /** + * The account ID of the owner of the public IP. + * @type {string} + * @memberof LinkPublicIpLightForVm + */ + publicIpAccountId?: string; +} + +export function LinkPublicIpLightForVmFromJSON(json: any): LinkPublicIpLightForVm { + return LinkPublicIpLightForVmFromJSONTyped(json, false); +} + +export function LinkPublicIpLightForVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpLightForVm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'publicDnsName': !exists(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpAccountId': !exists(json, 'PublicIpAccountId') ? undefined : json['PublicIpAccountId'], + }; +} + +export function LinkPublicIpLightForVmToJSON(value?: LinkPublicIpLightForVm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'PublicIpAccountId': value.publicIpAccountId, + }; +} + diff --git a/src/models/LinkPublicIpRequest.ts b/src/models/LinkPublicIpRequest.ts new file mode 100644 index 00000000..620e9e12 --- /dev/null +++ b/src/models/LinkPublicIpRequest.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkPublicIpRequest + */ +export interface LinkPublicIpRequest { + /** + * If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the EIP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.) + * @type {boolean} + * @memberof LinkPublicIpRequest + */ + allowRelink?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkPublicIpRequest + */ + dryRun?: boolean; + /** + * (Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the `VmId` parameter instead. You cannot specify both parameters at the same time. + * @type {string} + * @memberof LinkPublicIpRequest + */ + nicId?: string; + /** + * (Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP. + * @type {string} + * @memberof LinkPublicIpRequest + */ + privateIp?: string; + /** + * The public IP. This parameter is required unless you use the `PublicIpId` parameter. + * @type {string} + * @memberof LinkPublicIpRequest + */ + publicIp?: string; + /** + * The allocation ID of the public IP. This parameter is required unless you use the `PublicIp` parameter. + * @type {string} + * @memberof LinkPublicIpRequest + */ + publicIpId?: string; + /** + * The ID of the VM.
+ * - In the public Cloud, this parameter is required.
+ * - In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the `NicId` parameter instead. You cannot specify both parameters at the same time. + * @type {string} + * @memberof LinkPublicIpRequest + */ + vmId?: string; +} + +export function LinkPublicIpRequestFromJSON(json: any): LinkPublicIpRequest { + return LinkPublicIpRequestFromJSONTyped(json, false); +} + +export function LinkPublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowRelink': !exists(json, 'AllowRelink') ? undefined : json['AllowRelink'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function LinkPublicIpRequestToJSON(value?: LinkPublicIpRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AllowRelink': value.allowRelink, + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIp': value.privateIp, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/LinkPublicIpResponse.ts b/src/models/LinkPublicIpResponse.ts new file mode 100644 index 00000000..be765871 --- /dev/null +++ b/src/models/LinkPublicIpResponse.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkPublicIpResponse + */ +export interface LinkPublicIpResponse { + /** + * (Net only) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof LinkPublicIpResponse + */ + linkPublicIpId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkPublicIpResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkPublicIpResponseFromJSON(json: any): LinkPublicIpResponse { + return LinkPublicIpResponseFromJSONTyped(json, false); +} + +export function LinkPublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPublicIpResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkPublicIpResponseToJSON(value?: LinkPublicIpResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkPublicIpId': value.linkPublicIpId, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkRouteTable.ts b/src/models/LinkRouteTable.ts new file mode 100644 index 00000000..2b6b057b --- /dev/null +++ b/src/models/LinkRouteTable.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * One or more associations between the route table and the Subnets. + * @export + * @interface LinkRouteTable + */ +export interface LinkRouteTable { + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof LinkRouteTable + */ + linkRouteTableId?: string; + /** + * If true, the route table is the main one. + * @type {boolean} + * @memberof LinkRouteTable + */ + main?: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof LinkRouteTable + */ + routeTableId?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof LinkRouteTable + */ + subnetId?: string; +} + +export function LinkRouteTableFromJSON(json: any): LinkRouteTable { + return LinkRouteTableFromJSONTyped(json, false); +} + +export function LinkRouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTable { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkRouteTableId': !exists(json, 'LinkRouteTableId') ? undefined : json['LinkRouteTableId'], + 'main': !exists(json, 'Main') ? undefined : json['Main'], + 'routeTableId': !exists(json, 'RouteTableId') ? undefined : json['RouteTableId'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} + +export function LinkRouteTableToJSON(value?: LinkRouteTable | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkRouteTableId': value.linkRouteTableId, + 'Main': value.main, + 'RouteTableId': value.routeTableId, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/LinkRouteTableRequest.ts b/src/models/LinkRouteTableRequest.ts new file mode 100644 index 00000000..4c3e62e4 --- /dev/null +++ b/src/models/LinkRouteTableRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkRouteTableRequest + */ +export interface LinkRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof LinkRouteTableRequest + */ + routeTableId: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof LinkRouteTableRequest + */ + subnetId: string; +} + +export function LinkRouteTableRequestFromJSON(json: any): LinkRouteTableRequest { + return LinkRouteTableRequestFromJSONTyped(json, false); +} + +export function LinkRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTableRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'routeTableId': json['RouteTableId'], + 'subnetId': json['SubnetId'], + }; +} + +export function LinkRouteTableRequestToJSON(value?: LinkRouteTableRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'RouteTableId': value.routeTableId, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/LinkRouteTableResponse.ts b/src/models/LinkRouteTableResponse.ts new file mode 100644 index 00000000..040844ee --- /dev/null +++ b/src/models/LinkRouteTableResponse.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkRouteTableResponse + */ +export interface LinkRouteTableResponse { + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof LinkRouteTableResponse + */ + linkRouteTableId?: string; + /** + * + * @type {ModelResponseContext} + * @memberof LinkRouteTableResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkRouteTableResponseFromJSON(json: any): LinkRouteTableResponse { + return LinkRouteTableResponseFromJSONTyped(json, false); +} + +export function LinkRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkRouteTableResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkRouteTableId': !exists(json, 'LinkRouteTableId') ? undefined : json['LinkRouteTableId'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkRouteTableResponseToJSON(value?: LinkRouteTableResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkRouteTableId': value.linkRouteTableId, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkVirtualGatewayRequest.ts b/src/models/LinkVirtualGatewayRequest.ts new file mode 100644 index 00000000..7886b6d0 --- /dev/null +++ b/src/models/LinkVirtualGatewayRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkVirtualGatewayRequest + */ +export interface LinkVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the Net to which you want to attach the virtual gateway. + * @type {string} + * @memberof LinkVirtualGatewayRequest + */ + netId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof LinkVirtualGatewayRequest + */ + virtualGatewayId: string; +} + +export function LinkVirtualGatewayRequestFromJSON(json: any): LinkVirtualGatewayRequest { + return LinkVirtualGatewayRequestFromJSONTyped(json, false); +} + +export function LinkVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVirtualGatewayRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} + +export function LinkVirtualGatewayRequestToJSON(value?: LinkVirtualGatewayRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/LinkVirtualGatewayResponse.ts b/src/models/LinkVirtualGatewayResponse.ts new file mode 100644 index 00000000..bf541a2a --- /dev/null +++ b/src/models/LinkVirtualGatewayResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetToVirtualGatewayLink, + NetToVirtualGatewayLinkFromJSON, + NetToVirtualGatewayLinkFromJSONTyped, + NetToVirtualGatewayLinkToJSON, +} from './NetToVirtualGatewayLink'; + +/** + * + * @export + * @interface LinkVirtualGatewayResponse + */ +export interface LinkVirtualGatewayResponse { + /** + * + * @type {NetToVirtualGatewayLink} + * @memberof LinkVirtualGatewayResponse + */ + netToVirtualGatewayLink?: NetToVirtualGatewayLink; + /** + * + * @type {ModelResponseContext} + * @memberof LinkVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkVirtualGatewayResponseFromJSON(json: any): LinkVirtualGatewayResponse { + return LinkVirtualGatewayResponseFromJSONTyped(json, false); +} + +export function LinkVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVirtualGatewayResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netToVirtualGatewayLink': !exists(json, 'NetToVirtualGatewayLink') ? undefined : NetToVirtualGatewayLinkFromJSON(json['NetToVirtualGatewayLink']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkVirtualGatewayResponseToJSON(value?: LinkVirtualGatewayResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetToVirtualGatewayLink': NetToVirtualGatewayLinkToJSON(value.netToVirtualGatewayLink), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkVolumeRequest.ts b/src/models/LinkVolumeRequest.ts new file mode 100644 index 00000000..a863d451 --- /dev/null +++ b/src/models/LinkVolumeRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LinkVolumeRequest + */ +export interface LinkVolumeRequest { + /** + * The name of the device. + * @type {string} + * @memberof LinkVolumeRequest + */ + deviceName: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof LinkVolumeRequest + */ + dryRun?: boolean; + /** + * The ID of the VM you want to attach the volume to. + * @type {string} + * @memberof LinkVolumeRequest + */ + vmId: string; + /** + * The ID of the volume you want to attach. + * @type {string} + * @memberof LinkVolumeRequest + */ + volumeId: string; +} + +export function LinkVolumeRequestFromJSON(json: any): LinkVolumeRequest { + return LinkVolumeRequestFromJSONTyped(json, false); +} + +export function LinkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVolumeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deviceName': json['DeviceName'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + 'volumeId': json['VolumeId'], + }; +} + +export function LinkVolumeRequestToJSON(value?: LinkVolumeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeviceName': value.deviceName, + 'DryRun': value.dryRun, + 'VmId': value.vmId, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/LinkVolumeResponse.ts b/src/models/LinkVolumeResponse.ts new file mode 100644 index 00000000..2389f0bf --- /dev/null +++ b/src/models/LinkVolumeResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface LinkVolumeResponse + */ +export interface LinkVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof LinkVolumeResponse + */ + responseContext?: ModelResponseContext; +} + +export function LinkVolumeResponseFromJSON(json: any): LinkVolumeResponse { + return LinkVolumeResponseFromJSONTyped(json, false); +} + +export function LinkVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkVolumeResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function LinkVolumeResponseToJSON(value?: LinkVolumeResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/LinkedVolume.ts b/src/models/LinkedVolume.ts new file mode 100644 index 00000000..3430b327 --- /dev/null +++ b/src/models/LinkedVolume.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about volume attachment. + * @export + * @interface LinkedVolume + */ +export interface LinkedVolume { + /** + * If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. + * @type {boolean} + * @memberof LinkedVolume + */ + deleteOnVmDeletion?: boolean; + /** + * The name of the device. + * @type {string} + * @memberof LinkedVolume + */ + deviceName?: string; + /** + * The state of the attachment of the volume (`attaching` \| `detaching` \| `attached` \| `detached`). + * @type {string} + * @memberof LinkedVolume + */ + state?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof LinkedVolume + */ + vmId?: string; + /** + * The ID of the volume. + * @type {string} + * @memberof LinkedVolume + */ + volumeId?: string; +} + +export function LinkedVolumeFromJSON(json: any): LinkedVolume { + return LinkedVolumeFromJSONTyped(json, false); +} + +export function LinkedVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkedVolume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + }; +} + +export function LinkedVolumeToJSON(value?: LinkedVolume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DeviceName': value.deviceName, + 'State': value.state, + 'VmId': value.vmId, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/Listener.ts b/src/models/Listener.ts new file mode 100644 index 00000000..cc055716 --- /dev/null +++ b/src/models/Listener.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the listener. + * @export + * @interface Listener + */ +export interface Listener { + /** + * The port on which the back-end VM is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof Listener + */ + backendPort?: number; + /** + * The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof Listener + */ + backendProtocol?: string; + /** + * The port on which the load balancer is listening (between 1 and `65535`, both included). + * @type {number} + * @memberof Listener + */ + loadBalancerPort?: number; + /** + * The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof Listener + */ + loadBalancerProtocol?: string; + /** + * The names of the policies. If there are no policies enabled, the list is empty. + * @type {Array} + * @memberof Listener + */ + policyNames?: Array; + /** + * The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). + * @type {string} + * @memberof Listener + */ + serverCertificateId?: string; +} + +export function ListenerFromJSON(json: any): Listener { + return ListenerFromJSONTyped(json, false); +} + +export function ListenerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Listener { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendPort': !exists(json, 'BackendPort') ? undefined : json['BackendPort'], + 'backendProtocol': !exists(json, 'BackendProtocol') ? undefined : json['BackendProtocol'], + 'loadBalancerPort': !exists(json, 'LoadBalancerPort') ? undefined : json['LoadBalancerPort'], + 'loadBalancerProtocol': !exists(json, 'LoadBalancerProtocol') ? undefined : json['LoadBalancerProtocol'], + 'policyNames': !exists(json, 'PolicyNames') ? undefined : json['PolicyNames'], + 'serverCertificateId': !exists(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} + +export function ListenerToJSON(value?: Listener | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendPort': value.backendPort, + 'BackendProtocol': value.backendProtocol, + 'LoadBalancerPort': value.loadBalancerPort, + 'LoadBalancerProtocol': value.loadBalancerProtocol, + 'PolicyNames': value.policyNames, + 'ServerCertificateId': value.serverCertificateId, + }; +} + diff --git a/src/models/ListenerForCreation.ts b/src/models/ListenerForCreation.ts new file mode 100644 index 00000000..456990bc --- /dev/null +++ b/src/models/ListenerForCreation.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the listener to create. + * @export + * @interface ListenerForCreation + */ +export interface ListenerForCreation { + /** + * The port on which the back-end VM is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof ListenerForCreation + */ + backendPort: number; + /** + * The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof ListenerForCreation + */ + backendProtocol?: string; + /** + * The port on which the load balancer is listening (between `1` and `65535`, both included). + * @type {number} + * @memberof ListenerForCreation + */ + loadBalancerPort: number; + /** + * The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * @type {string} + * @memberof ListenerForCreation + */ + loadBalancerProtocol: string; + /** + * The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). + * @type {string} + * @memberof ListenerForCreation + */ + serverCertificateId?: string; +} + +export function ListenerForCreationFromJSON(json: any): ListenerForCreation { + return ListenerForCreationFromJSONTyped(json, false); +} + +export function ListenerForCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerForCreation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendPort': json['BackendPort'], + 'backendProtocol': !exists(json, 'BackendProtocol') ? undefined : json['BackendProtocol'], + 'loadBalancerPort': json['LoadBalancerPort'], + 'loadBalancerProtocol': json['LoadBalancerProtocol'], + 'serverCertificateId': !exists(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} + +export function ListenerForCreationToJSON(value?: ListenerForCreation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendPort': value.backendPort, + 'BackendProtocol': value.backendProtocol, + 'LoadBalancerPort': value.loadBalancerPort, + 'LoadBalancerProtocol': value.loadBalancerProtocol, + 'ServerCertificateId': value.serverCertificateId, + }; +} + diff --git a/src/models/ListenerRule.ts b/src/models/ListenerRule.ts new file mode 100644 index 00000000..1bd09c78 --- /dev/null +++ b/src/models/ListenerRule.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the listener rule. + * @export + * @interface ListenerRule + */ +export interface ListenerRule { + /** + * The type of action for the rule (always `forward`). + * @type {string} + * @memberof ListenerRule + */ + action?: string; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof ListenerRule + */ + hostNamePattern?: string; + /** + * The ID of the listener. + * @type {number} + * @memberof ListenerRule + */ + listenerId?: number; + /** + * The ID of the listener rule. + * @type {number} + * @memberof ListenerRule + */ + listenerRuleId?: number; + /** + * A human-readable name for the listener rule. + * @type {string} + * @memberof ListenerRule + */ + listenerRuleName?: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof ListenerRule + */ + pathPattern?: string; + /** + * The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. + * @type {number} + * @memberof ListenerRule + */ + priority?: number; + /** + * The IDs of the backend VMs. + * @type {Array} + * @memberof ListenerRule + */ + vmIds?: Array; +} + +export function ListenerRuleFromJSON(json: any): ListenerRule { + return ListenerRuleFromJSONTyped(json, false); +} + +export function ListenerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': !exists(json, 'Action') ? undefined : json['Action'], + 'hostNamePattern': !exists(json, 'HostNamePattern') ? undefined : json['HostNamePattern'], + 'listenerId': !exists(json, 'ListenerId') ? undefined : json['ListenerId'], + 'listenerRuleId': !exists(json, 'ListenerRuleId') ? undefined : json['ListenerRuleId'], + 'listenerRuleName': !exists(json, 'ListenerRuleName') ? undefined : json['ListenerRuleName'], + 'pathPattern': !exists(json, 'PathPattern') ? undefined : json['PathPattern'], + 'priority': !exists(json, 'Priority') ? undefined : json['Priority'], + 'vmIds': !exists(json, 'VmIds') ? undefined : json['VmIds'], + }; +} + +export function ListenerRuleToJSON(value?: ListenerRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Action': value.action, + 'HostNamePattern': value.hostNamePattern, + 'ListenerId': value.listenerId, + 'ListenerRuleId': value.listenerRuleId, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + 'Priority': value.priority, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/ListenerRuleForCreation.ts b/src/models/ListenerRuleForCreation.ts new file mode 100644 index 00000000..0dc050c2 --- /dev/null +++ b/src/models/ListenerRuleForCreation.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the listener rule. + * @export + * @interface ListenerRuleForCreation + */ +export interface ListenerRuleForCreation { + /** + * The type of action for the rule (always `forward`). + * @type {string} + * @memberof ListenerRuleForCreation + */ + action?: string; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof ListenerRuleForCreation + */ + hostNamePattern?: string; + /** + * A human-readable name for the listener rule. + * @type {string} + * @memberof ListenerRuleForCreation + */ + listenerRuleName: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof ListenerRuleForCreation + */ + pathPattern?: string; + /** + * The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. + * @type {number} + * @memberof ListenerRuleForCreation + */ + priority: number; +} + +export function ListenerRuleForCreationFromJSON(json: any): ListenerRuleForCreation { + return ListenerRuleForCreationFromJSONTyped(json, false); +} + +export function ListenerRuleForCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListenerRuleForCreation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': !exists(json, 'Action') ? undefined : json['Action'], + 'hostNamePattern': !exists(json, 'HostNamePattern') ? undefined : json['HostNamePattern'], + 'listenerRuleName': json['ListenerRuleName'], + 'pathPattern': !exists(json, 'PathPattern') ? undefined : json['PathPattern'], + 'priority': json['Priority'], + }; +} + +export function ListenerRuleForCreationToJSON(value?: ListenerRuleForCreation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Action': value.action, + 'HostNamePattern': value.hostNamePattern, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + 'Priority': value.priority, + }; +} + diff --git a/src/models/LoadBalancer.ts b/src/models/LoadBalancer.ts new file mode 100644 index 00000000..d0cadaf1 --- /dev/null +++ b/src/models/LoadBalancer.ts @@ -0,0 +1,229 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccessLog, + AccessLogFromJSON, + AccessLogFromJSONTyped, + AccessLogToJSON, +} from './AccessLog'; +import { + ApplicationStickyCookiePolicy, + ApplicationStickyCookiePolicyFromJSON, + ApplicationStickyCookiePolicyFromJSONTyped, + ApplicationStickyCookiePolicyToJSON, +} from './ApplicationStickyCookiePolicy'; +import { + HealthCheck, + HealthCheckFromJSON, + HealthCheckFromJSONTyped, + HealthCheckToJSON, +} from './HealthCheck'; +import { + Listener, + ListenerFromJSON, + ListenerFromJSONTyped, + ListenerToJSON, +} from './Listener'; +import { + LoadBalancerStickyCookiePolicy, + LoadBalancerStickyCookiePolicyFromJSON, + LoadBalancerStickyCookiePolicyFromJSONTyped, + LoadBalancerStickyCookiePolicyToJSON, +} from './LoadBalancerStickyCookiePolicy'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + SourceSecurityGroup, + SourceSecurityGroupFromJSON, + SourceSecurityGroupFromJSONTyped, + SourceSecurityGroupToJSON, +} from './SourceSecurityGroup'; + +/** + * Information about the load balancer. + * @export + * @interface LoadBalancer + */ +export interface LoadBalancer { + /** + * + * @type {AccessLog} + * @memberof LoadBalancer + */ + accessLog?: AccessLog; + /** + * The stickiness policies defined for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + applicationStickyCookiePolicies?: Array; + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof LoadBalancer + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + backendVmIds?: Array; + /** + * The DNS name of the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + dnsName?: string; + /** + * + * @type {HealthCheck} + * @memberof LoadBalancer + */ + healthCheck?: HealthCheck; + /** + * The listeners for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + listeners?: Array; + /** + * The name of the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + loadBalancerName?: string; + /** + * The policies defined for the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + loadBalancerStickyCookiePolicies?: Array; + /** + * The type of load balancer. Valid only for load balancers in a Net.
+ * If `LoadBalancerType` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP.
+ * If `LoadBalancerType` is `internal`, the load balancer has a public DNS name that resolves to a private IP. + * @type {string} + * @memberof LoadBalancer + */ + loadBalancerType?: string; + /** + * The ID of the Net for the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + netId?: string; + /** + * (internet-facing only) The public IP associated with the load balancer. + * @type {string} + * @memberof LoadBalancer + */ + publicIp?: string; + /** + * One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. + * @type {Array} + * @memberof LoadBalancer + */ + securityGroups?: Array; + /** + * + * @type {SourceSecurityGroup} + * @memberof LoadBalancer + */ + sourceSecurityGroup?: SourceSecurityGroup; + /** + * The ID of the Subnet in which the load balancer was created. + * @type {Array} + * @memberof LoadBalancer + */ + subnets?: Array; + /** + * The ID of the Subregion in which the load balancer was created. + * @type {Array} + * @memberof LoadBalancer + */ + subregionNames?: Array; + /** + * One or more tags associated with the load balancer. + * @type {Array} + * @memberof LoadBalancer + */ + tags?: Array; +} + +export function LoadBalancerFromJSON(json: any): LoadBalancer { + return LoadBalancerFromJSONTyped(json, false); +} + +export function LoadBalancerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessLog': !exists(json, 'AccessLog') ? undefined : AccessLogFromJSON(json['AccessLog']), + 'applicationStickyCookiePolicies': !exists(json, 'ApplicationStickyCookiePolicies') ? undefined : ((json['ApplicationStickyCookiePolicies'] as Array).map(ApplicationStickyCookiePolicyFromJSON)), + 'backendIps': !exists(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dnsName': !exists(json, 'DnsName') ? undefined : json['DnsName'], + 'healthCheck': !exists(json, 'HealthCheck') ? undefined : HealthCheckFromJSON(json['HealthCheck']), + 'listeners': !exists(json, 'Listeners') ? undefined : ((json['Listeners'] as Array).map(ListenerFromJSON)), + 'loadBalancerName': !exists(json, 'LoadBalancerName') ? undefined : json['LoadBalancerName'], + 'loadBalancerStickyCookiePolicies': !exists(json, 'LoadBalancerStickyCookiePolicies') ? undefined : ((json['LoadBalancerStickyCookiePolicies'] as Array).map(LoadBalancerStickyCookiePolicyFromJSON)), + 'loadBalancerType': !exists(json, 'LoadBalancerType') ? undefined : json['LoadBalancerType'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'sourceSecurityGroup': !exists(json, 'SourceSecurityGroup') ? undefined : SourceSecurityGroupFromJSON(json['SourceSecurityGroup']), + 'subnets': !exists(json, 'Subnets') ? undefined : json['Subnets'], + 'subregionNames': !exists(json, 'SubregionNames') ? undefined : json['SubregionNames'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function LoadBalancerToJSON(value?: LoadBalancer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessLog': AccessLogToJSON(value.accessLog), + 'ApplicationStickyCookiePolicies': value.applicationStickyCookiePolicies === undefined ? undefined : ((value.applicationStickyCookiePolicies as Array).map(ApplicationStickyCookiePolicyToJSON)), + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DnsName': value.dnsName, + 'HealthCheck': HealthCheckToJSON(value.healthCheck), + 'Listeners': value.listeners === undefined ? undefined : ((value.listeners as Array).map(ListenerToJSON)), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerStickyCookiePolicies': value.loadBalancerStickyCookiePolicies === undefined ? undefined : ((value.loadBalancerStickyCookiePolicies as Array).map(LoadBalancerStickyCookiePolicyToJSON)), + 'LoadBalancerType': value.loadBalancerType, + 'NetId': value.netId, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'SourceSecurityGroup': SourceSecurityGroupToJSON(value.sourceSecurityGroup), + 'Subnets': value.subnets, + 'SubregionNames': value.subregionNames, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/LoadBalancerLight.ts b/src/models/LoadBalancerLight.ts new file mode 100644 index 00000000..fcb0ccca --- /dev/null +++ b/src/models/LoadBalancerLight.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the load balancer. + * @export + * @interface LoadBalancerLight + */ +export interface LoadBalancerLight { + /** + * The name of the load balancer to which the listener is attached. + * @type {string} + * @memberof LoadBalancerLight + */ + loadBalancerName: string; + /** + * The port of load balancer on which the load balancer is listening (between `1` and `65535` both included). + * @type {number} + * @memberof LoadBalancerLight + */ + loadBalancerPort: number; +} + +export function LoadBalancerLightFromJSON(json: any): LoadBalancerLight { + return LoadBalancerLightFromJSONTyped(json, false); +} + +export function LoadBalancerLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPort': json['LoadBalancerPort'], + }; +} + +export function LoadBalancerLightToJSON(value?: LoadBalancerLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPort': value.loadBalancerPort, + }; +} + diff --git a/src/models/LoadBalancerStickyCookiePolicy.ts b/src/models/LoadBalancerStickyCookiePolicy.ts new file mode 100644 index 00000000..b1761b28 --- /dev/null +++ b/src/models/LoadBalancerStickyCookiePolicy.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the stickiness policy. + * @export + * @interface LoadBalancerStickyCookiePolicy + */ +export interface LoadBalancerStickyCookiePolicy { + /** + * The time period, in seconds, after which the cookie should be considered stale.
+ * If `1`, the stickiness session lasts for the duration of the browser session. + * @type {number} + * @memberof LoadBalancerStickyCookiePolicy + */ + cookieExpirationPeriod?: number; + /** + * The name of the stickiness policy. + * @type {string} + * @memberof LoadBalancerStickyCookiePolicy + */ + policyName?: string; +} + +export function LoadBalancerStickyCookiePolicyFromJSON(json: any): LoadBalancerStickyCookiePolicy { + return LoadBalancerStickyCookiePolicyFromJSONTyped(json, false); +} + +export function LoadBalancerStickyCookiePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerStickyCookiePolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cookieExpirationPeriod': !exists(json, 'CookieExpirationPeriod') ? undefined : json['CookieExpirationPeriod'], + 'policyName': !exists(json, 'PolicyName') ? undefined : json['PolicyName'], + }; +} + +export function LoadBalancerStickyCookiePolicyToJSON(value?: LoadBalancerStickyCookiePolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CookieExpirationPeriod': value.cookieExpirationPeriod, + 'PolicyName': value.policyName, + }; +} + diff --git a/src/models/LoadBalancerTag.ts b/src/models/LoadBalancerTag.ts new file mode 100644 index 00000000..e78b6499 --- /dev/null +++ b/src/models/LoadBalancerTag.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the load balancer tag. + * @export + * @interface LoadBalancerTag + */ +export interface LoadBalancerTag { + /** + * The key of the tag. + * @type {string} + * @memberof LoadBalancerTag + */ + key?: string; + /** + * The name of the load balancer. + * @type {string} + * @memberof LoadBalancerTag + */ + loadBalancerName?: string; + /** + * The value of the tag. + * @type {string} + * @memberof LoadBalancerTag + */ + value?: string; +} + +export function LoadBalancerTagFromJSON(json: any): LoadBalancerTag { + return LoadBalancerTagFromJSONTyped(json, false); +} + +export function LoadBalancerTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadBalancerTag { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': !exists(json, 'Key') ? undefined : json['Key'], + 'loadBalancerName': !exists(json, 'LoadBalancerName') ? undefined : json['LoadBalancerName'], + 'value': !exists(json, 'Value') ? undefined : json['Value'], + }; +} + +export function LoadBalancerTagToJSON(value?: LoadBalancerTag | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Key': value.key, + 'LoadBalancerName': value.loadBalancerName, + 'Value': value.value, + }; +} + diff --git a/src/models/Location.ts b/src/models/Location.ts new file mode 100644 index 00000000..91e28893 --- /dev/null +++ b/src/models/Location.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the DirectLink location. + * @export + * @interface Location + */ +export interface Location { + /** + * The location code, to be set as the `Location` parameter of the *CreateDirectLink* method when creating a DirectLink. + * @type {string} + * @memberof Location + */ + code?: string; + /** + * The name and description of the location, corresponding to a datacenter. + * @type {string} + * @memberof Location + */ + name?: string; +} + +export function LocationFromJSON(json: any): Location { + return LocationFromJSONTyped(json, false); +} + +export function LocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Location { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'code': !exists(json, 'Code') ? undefined : json['Code'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + }; +} + +export function LocationToJSON(value?: Location | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Code': value.code, + 'Name': value.name, + }; +} + diff --git a/src/models/Log.ts b/src/models/Log.ts new file mode 100644 index 00000000..bae4c4c7 --- /dev/null +++ b/src/models/Log.ts @@ -0,0 +1,176 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the log. + * @export + * @interface Log + */ +export interface Log { + /** + * The account ID of the logged call. + * @type {string} + * @memberof Log + */ + accountId?: string; + /** + * The duration of the logged call, in microseconds. + * @type {number} + * @memberof Log + */ + callDuration?: number; + /** + * The access key used for the logged call. + * @type {string} + * @memberof Log + */ + queryAccessKey?: string; + /** + * The name of the API used by the logged call (always `oapi` for the OUTSCALE API). + * @type {string} + * @memberof Log + */ + queryApiName?: string; + /** + * The version of the API used by the logged call. + * @type {string} + * @memberof Log + */ + queryApiVersion?: string; + /** + * The name of the logged call. + * @type {string} + * @memberof Log + */ + queryCallName?: string; + /** + * The date of the logged call, in ISO 8601 format. + * @type {Date} + * @memberof Log + */ + queryDate?: Date; + /** + * The raw header of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryHeaderRaw?: string; + /** + * The size of the raw header of the HTTP request of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + queryHeaderSize?: number; + /** + * The IP used for the logged call. + * @type {string} + * @memberof Log + */ + queryIpAddress?: string; + /** + * The raw payload of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryPayloadRaw?: string; + /** + * The size of the raw payload of the HTTP request of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + queryPayloadSize?: number; + /** + * The user agent of the HTTP request of the logged call. + * @type {string} + * @memberof Log + */ + queryUserAgent?: string; + /** + * The request ID provided in the response of the logged call. + * @type {string} + * @memberof Log + */ + requestId?: string; + /** + * The size of the response of the logged call, in bytes. + * @type {number} + * @memberof Log + */ + responseSize?: number; + /** + * The HTTP status code of the response of the logged call. + * @type {number} + * @memberof Log + */ + responseStatusCode?: number; +} + +export function LogFromJSON(json: any): Log { + return LogFromJSONTyped(json, false); +} + +export function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'callDuration': !exists(json, 'CallDuration') ? undefined : json['CallDuration'], + 'queryAccessKey': !exists(json, 'QueryAccessKey') ? undefined : json['QueryAccessKey'], + 'queryApiName': !exists(json, 'QueryApiName') ? undefined : json['QueryApiName'], + 'queryApiVersion': !exists(json, 'QueryApiVersion') ? undefined : json['QueryApiVersion'], + 'queryCallName': !exists(json, 'QueryCallName') ? undefined : json['QueryCallName'], + 'queryDate': !exists(json, 'QueryDate') ? undefined : (new Date(json['QueryDate'])), + 'queryHeaderRaw': !exists(json, 'QueryHeaderRaw') ? undefined : json['QueryHeaderRaw'], + 'queryHeaderSize': !exists(json, 'QueryHeaderSize') ? undefined : json['QueryHeaderSize'], + 'queryIpAddress': !exists(json, 'QueryIpAddress') ? undefined : json['QueryIpAddress'], + 'queryPayloadRaw': !exists(json, 'QueryPayloadRaw') ? undefined : json['QueryPayloadRaw'], + 'queryPayloadSize': !exists(json, 'QueryPayloadSize') ? undefined : json['QueryPayloadSize'], + 'queryUserAgent': !exists(json, 'QueryUserAgent') ? undefined : json['QueryUserAgent'], + 'requestId': !exists(json, 'RequestId') ? undefined : json['RequestId'], + 'responseSize': !exists(json, 'ResponseSize') ? undefined : json['ResponseSize'], + 'responseStatusCode': !exists(json, 'ResponseStatusCode') ? undefined : json['ResponseStatusCode'], + }; +} + +export function LogToJSON(value?: Log | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'CallDuration': value.callDuration, + 'QueryAccessKey': value.queryAccessKey, + 'QueryApiName': value.queryApiName, + 'QueryApiVersion': value.queryApiVersion, + 'QueryCallName': value.queryCallName, + 'QueryDate': value.queryDate === undefined ? undefined : (value.queryDate.toISOString().substr(0,10)), + 'QueryHeaderRaw': value.queryHeaderRaw, + 'QueryHeaderSize': value.queryHeaderSize, + 'QueryIpAddress': value.queryIpAddress, + 'QueryPayloadRaw': value.queryPayloadRaw, + 'QueryPayloadSize': value.queryPayloadSize, + 'QueryUserAgent': value.queryUserAgent, + 'RequestId': value.requestId, + 'ResponseSize': value.responseSize, + 'ResponseStatusCode': value.responseStatusCode, + }; +} + diff --git a/src/models/MaintenanceEvent.ts b/src/models/MaintenanceEvent.ts new file mode 100644 index 00000000..ae6bc711 --- /dev/null +++ b/src/models/MaintenanceEvent.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the maintenance event. + * @export + * @interface MaintenanceEvent + */ +export interface MaintenanceEvent { + /** + * The code of the event (`system-reboot` \| `system-maintenance`). + * @type {string} + * @memberof MaintenanceEvent + */ + code?: string; + /** + * The description of the event. + * @type {string} + * @memberof MaintenanceEvent + */ + description?: string; + /** + * The latest scheduled end time for the event. + * @type {Date} + * @memberof MaintenanceEvent + */ + notAfter?: Date; + /** + * The earliest scheduled start time for the event. + * @type {Date} + * @memberof MaintenanceEvent + */ + notBefore?: Date; +} + +export function MaintenanceEventFromJSON(json: any): MaintenanceEvent { + return MaintenanceEventFromJSONTyped(json, false); +} + +export function MaintenanceEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaintenanceEvent { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'code': !exists(json, 'Code') ? undefined : json['Code'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'notAfter': !exists(json, 'NotAfter') ? undefined : (new Date(json['NotAfter'])), + 'notBefore': !exists(json, 'NotBefore') ? undefined : (new Date(json['NotBefore'])), + }; +} + +export function MaintenanceEventToJSON(value?: MaintenanceEvent | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Code': value.code, + 'Description': value.description, + 'NotAfter': value.notAfter === undefined ? undefined : (value.notAfter.toISOString().substr(0,10)), + 'NotBefore': value.notBefore === undefined ? undefined : (value.notBefore.toISOString().substr(0,10)), + }; +} + diff --git a/src/models/ModelResponseContext.ts b/src/models/ModelResponseContext.ts new file mode 100644 index 00000000..84f22b08 --- /dev/null +++ b/src/models/ModelResponseContext.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the context of the response. + * @export + * @interface ModelResponseContext + */ +export interface ModelResponseContext { + /** + * The ID of the request. + * @type {string} + * @memberof ModelResponseContext + */ + requestId?: string; +} + +export function ModelResponseContextFromJSON(json: any): ModelResponseContext { + return ModelResponseContextFromJSONTyped(json, false); +} + +export function ModelResponseContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelResponseContext { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'requestId': !exists(json, 'RequestId') ? undefined : json['RequestId'], + }; +} + +export function ModelResponseContextToJSON(value?: ModelResponseContext | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'RequestId': value.requestId, + }; +} + diff --git a/src/models/NatService.ts b/src/models/NatService.ts new file mode 100644 index 00000000..1a1cff32 --- /dev/null +++ b/src/models/NatService.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PublicIpLight, + PublicIpLightFromJSON, + PublicIpLightFromJSONTyped, + PublicIpLightToJSON, +} from './PublicIpLight'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the NAT service. + * @export + * @interface NatService + */ +export interface NatService { + /** + * The ID of the NAT service. + * @type {string} + * @memberof NatService + */ + natServiceId?: string; + /** + * The ID of the Net in which the NAT service is. + * @type {string} + * @memberof NatService + */ + netId?: string; + /** + * Information about the public IP or IPs associated with the NAT service. + * @type {Array} + * @memberof NatService + */ + publicIps?: Array; + /** + * The state of the NAT service (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof NatService + */ + state?: string; + /** + * The ID of the Subnet in which the NAT service is. + * @type {string} + * @memberof NatService + */ + subnetId?: string; + /** + * One or more tags associated with the NAT service. + * @type {Array} + * @memberof NatService + */ + tags?: Array; +} + +export function NatServiceFromJSON(json: any): NatService { + return NatServiceFromJSONTyped(json, false); +} + +export function NatServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NatService { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'publicIps': !exists(json, 'PublicIps') ? undefined : ((json['PublicIps'] as Array).map(PublicIpLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function NatServiceToJSON(value?: NatService | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NatServiceId': value.natServiceId, + 'NetId': value.netId, + 'PublicIps': value.publicIps === undefined ? undefined : ((value.publicIps as Array).map(PublicIpLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/Net.ts b/src/models/Net.ts new file mode 100644 index 00000000..6b0b80c3 --- /dev/null +++ b/src/models/Net.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the Net. + * @export + * @interface Net + */ +export interface Net { + /** + * The ID of the DHCP options set (or `default` if you want to associate the default one). + * @type {string} + * @memberof Net + */ + dhcpOptionsSetId?: string; + /** + * The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof Net + */ + ipRange?: string; + /** + * The ID of the Net. + * @type {string} + * @memberof Net + */ + netId?: string; + /** + * The state of the Net (`pending` \| `available`). + * @type {string} + * @memberof Net + */ + state?: string; + /** + * One or more tags associated with the Net. + * @type {Array} + * @memberof Net + */ + tags?: Array; + /** + * The VM tenancy in a Net. + * @type {string} + * @memberof Net + */ + tenancy?: string; +} + +export function NetFromJSON(json: any): Net { + return NetFromJSONTyped(json, false); +} + +export function NetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Net { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhcpOptionsSetId': !exists(json, 'DhcpOptionsSetId') ? undefined : json['DhcpOptionsSetId'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'tenancy': !exists(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} + +export function NetToJSON(value?: Net | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'Tenancy': value.tenancy, + }; +} + diff --git a/src/models/NetAccessPoint.ts b/src/models/NetAccessPoint.ts new file mode 100644 index 00000000..a1223780 --- /dev/null +++ b/src/models/NetAccessPoint.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the Net access point. + * @export + * @interface NetAccessPoint + */ +export interface NetAccessPoint { + /** + * The ID of the Net access point. + * @type {string} + * @memberof NetAccessPoint + */ + netAccessPointId?: string; + /** + * The ID of the Net with which the Net access point is associated. + * @type {string} + * @memberof NetAccessPoint + */ + netId?: string; + /** + * The ID of the route tables associated with the Net access point. + * @type {Array} + * @memberof NetAccessPoint + */ + routeTableIds?: Array; + /** + * The name of the service with which the Net access point is associated. + * @type {string} + * @memberof NetAccessPoint + */ + serviceName?: string; + /** + * The state of the Net access point (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof NetAccessPoint + */ + state?: string; + /** + * One or more tags associated with the Net access point. + * @type {Array} + * @memberof NetAccessPoint + */ + tags?: Array; +} + +export function NetAccessPointFromJSON(json: any): NetAccessPoint { + return NetAccessPointFromJSONTyped(json, false); +} + +export function NetAccessPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetAccessPoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netAccessPointId': !exists(json, 'NetAccessPointId') ? undefined : json['NetAccessPointId'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'routeTableIds': !exists(json, 'RouteTableIds') ? undefined : json['RouteTableIds'], + 'serviceName': !exists(json, 'ServiceName') ? undefined : json['ServiceName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function NetAccessPointToJSON(value?: NetAccessPoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetAccessPointId': value.netAccessPointId, + 'NetId': value.netId, + 'RouteTableIds': value.routeTableIds, + 'ServiceName': value.serviceName, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/NetPeering.ts b/src/models/NetPeering.ts new file mode 100644 index 00000000..75d390c1 --- /dev/null +++ b/src/models/NetPeering.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccepterNet, + AccepterNetFromJSON, + AccepterNetFromJSONTyped, + AccepterNetToJSON, +} from './AccepterNet'; +import { + NetPeeringState, + NetPeeringStateFromJSON, + NetPeeringStateFromJSONTyped, + NetPeeringStateToJSON, +} from './NetPeeringState'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + SourceNet, + SourceNetFromJSON, + SourceNetFromJSONTyped, + SourceNetToJSON, +} from './SourceNet'; + +/** + * Information about the Net peering connection. + * @export + * @interface NetPeering + */ +export interface NetPeering { + /** + * + * @type {AccepterNet} + * @memberof NetPeering + */ + accepterNet?: AccepterNet; + /** + * The ID of the Net peering connection. + * @type {string} + * @memberof NetPeering + */ + netPeeringId?: string; + /** + * + * @type {SourceNet} + * @memberof NetPeering + */ + sourceNet?: SourceNet; + /** + * + * @type {NetPeeringState} + * @memberof NetPeering + */ + state?: NetPeeringState; + /** + * One or more tags associated with the Net peering connection. + * @type {Array} + * @memberof NetPeering + */ + tags?: Array; +} + +export function NetPeeringFromJSON(json: any): NetPeering { + return NetPeeringFromJSONTyped(json, false); +} + +export function NetPeeringFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetPeering { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accepterNet': !exists(json, 'AccepterNet') ? undefined : AccepterNetFromJSON(json['AccepterNet']), + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'sourceNet': !exists(json, 'SourceNet') ? undefined : SourceNetFromJSON(json['SourceNet']), + 'state': !exists(json, 'State') ? undefined : NetPeeringStateFromJSON(json['State']), + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function NetPeeringToJSON(value?: NetPeering | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccepterNet': AccepterNetToJSON(value.accepterNet), + 'NetPeeringId': value.netPeeringId, + 'SourceNet': SourceNetToJSON(value.sourceNet), + 'State': NetPeeringStateToJSON(value.state), + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/NetPeeringState.ts b/src/models/NetPeeringState.ts new file mode 100644 index 00000000..63b6d63e --- /dev/null +++ b/src/models/NetPeeringState.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the state of the Net peering connection. + * @export + * @interface NetPeeringState + */ +export interface NetPeeringState { + /** + * Additional information about the state of the Net peering connection. + * @type {string} + * @memberof NetPeeringState + */ + message?: string; + /** + * The state of the Net peering connection (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). + * @type {string} + * @memberof NetPeeringState + */ + name?: string; +} + +export function NetPeeringStateFromJSON(json: any): NetPeeringState { + return NetPeeringStateFromJSONTyped(json, false); +} + +export function NetPeeringStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetPeeringState { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'Message') ? undefined : json['Message'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + }; +} + +export function NetPeeringStateToJSON(value?: NetPeeringState | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Message': value.message, + 'Name': value.name, + }; +} + diff --git a/src/models/NetToVirtualGatewayLink.ts b/src/models/NetToVirtualGatewayLink.ts new file mode 100644 index 00000000..08181f7f --- /dev/null +++ b/src/models/NetToVirtualGatewayLink.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the attachment. + * @export + * @interface NetToVirtualGatewayLink + */ +export interface NetToVirtualGatewayLink { + /** + * The ID of the Net to which the virtual gateway is attached. + * @type {string} + * @memberof NetToVirtualGatewayLink + */ + netId?: string; + /** + * The state of the attachment (`attaching` \| `attached` \| `detaching` \| `detached`). + * @type {string} + * @memberof NetToVirtualGatewayLink + */ + state?: string; +} + +export function NetToVirtualGatewayLinkFromJSON(json: any): NetToVirtualGatewayLink { + return NetToVirtualGatewayLinkFromJSONTyped(json, false); +} + +export function NetToVirtualGatewayLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetToVirtualGatewayLink { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} + +export function NetToVirtualGatewayLinkToJSON(value?: NetToVirtualGatewayLink | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetId': value.netId, + 'State': value.state, + }; +} + diff --git a/src/models/Nic.ts b/src/models/Nic.ts new file mode 100644 index 00000000..f34cb727 --- /dev/null +++ b/src/models/Nic.ts @@ -0,0 +1,199 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkNic, + LinkNicFromJSON, + LinkNicFromJSONTyped, + LinkNicToJSON, +} from './LinkNic'; +import { + LinkPublicIp, + LinkPublicIpFromJSON, + LinkPublicIpFromJSONTyped, + LinkPublicIpToJSON, +} from './LinkPublicIp'; +import { + PrivateIp, + PrivateIpFromJSON, + PrivateIpFromJSONTyped, + PrivateIpToJSON, +} from './PrivateIp'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + SecurityGroupLight, + SecurityGroupLightFromJSON, + SecurityGroupLightFromJSONTyped, + SecurityGroupLightToJSON, +} from './SecurityGroupLight'; + +/** + * Information about the NIC. + * @export + * @interface Nic + */ +export interface Nic { + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof Nic + */ + accountId?: string; + /** + * The description of the NIC. + * @type {string} + * @memberof Nic + */ + description?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof Nic + */ + isSourceDestChecked?: boolean; + /** + * + * @type {LinkNic} + * @memberof Nic + */ + linkNic?: LinkNic; + /** + * + * @type {LinkPublicIp} + * @memberof Nic + */ + linkPublicIp?: LinkPublicIp; + /** + * The Media Access Control (MAC) address of the NIC. + * @type {string} + * @memberof Nic + */ + macAddress?: string; + /** + * The ID of the Net for the NIC. + * @type {string} + * @memberof Nic + */ + netId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof Nic + */ + nicId?: string; + /** + * The name of the private DNS. + * @type {string} + * @memberof Nic + */ + privateDnsName?: string; + /** + * The private IPs of the NIC. + * @type {Array} + * @memberof Nic + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof Nic + */ + securityGroups?: Array; + /** + * The state of the NIC (`available` \| `attaching` \| `in-use` \| `detaching`). + * @type {string} + * @memberof Nic + */ + state?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof Nic + */ + subnetId?: string; + /** + * The Subregion in which the NIC is located. + * @type {string} + * @memberof Nic + */ + subregionName?: string; + /** + * One or more tags associated with the NIC. + * @type {Array} + * @memberof Nic + */ + tags?: Array; +} + +export function NicFromJSON(json: any): Nic { + return NicFromJSONTyped(json, false); +} + +export function NicFromJSONTyped(json: any, ignoreDiscriminator: boolean): Nic { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'linkNic': !exists(json, 'LinkNic') ? undefined : LinkNicFromJSON(json['LinkNic']), + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpFromJSON(json['LinkPublicIp']), + 'macAddress': !exists(json, 'MacAddress') ? undefined : json['MacAddress'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : ((json['PrivateIps'] as Array).map(PrivateIpFromJSON)), + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : ((json['SecurityGroups'] as Array).map(SecurityGroupLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function NicToJSON(value?: Nic | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'Description': value.description, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'LinkNic': LinkNicToJSON(value.linkNic), + 'LinkPublicIp': LinkPublicIpToJSON(value.linkPublicIp), + 'MacAddress': value.macAddress, + 'NetId': value.netId, + 'NicId': value.nicId, + 'PrivateDnsName': value.privateDnsName, + 'PrivateIps': value.privateIps === undefined ? undefined : ((value.privateIps as Array).map(PrivateIpToJSON)), + 'SecurityGroups': value.securityGroups === undefined ? undefined : ((value.securityGroups as Array).map(SecurityGroupLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/NicForVmCreation.ts b/src/models/NicForVmCreation.ts new file mode 100644 index 00000000..6c26c263 --- /dev/null +++ b/src/models/NicForVmCreation.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PrivateIpLight, + PrivateIpLightFromJSON, + PrivateIpLightFromJSONTyped, + PrivateIpLightToJSON, +} from './PrivateIpLight'; + +/** + * Information about the network interface card (NIC) when creating a virtual machine (VM). + * @export + * @interface NicForVmCreation + */ +export interface NicForVmCreation { + /** + * If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see [UpdateNic](#updatenic). + * @type {boolean} + * @memberof NicForVmCreation + */ + deleteOnVmDeletion?: boolean; + /** + * The description of the NIC, if you are creating a NIC when creating the VM. + * @type {string} + * @memberof NicForVmCreation + */ + description?: string; + /** + * The index of the VM device for the NIC attachment (between 0 and 7, both included). This parameter is required if you create a NIC when creating the VM. + * @type {number} + * @memberof NicForVmCreation + */ + deviceNumber?: number; + /** + * The ID of the NIC, if you are attaching an existing NIC when creating a VM. + * @type {string} + * @memberof NicForVmCreation + */ + nicId?: string; + /** + * One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP. + * @type {Array} + * @memberof NicForVmCreation + */ + privateIps?: Array; + /** + * The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the `PrivateIps` parameter. + * @type {number} + * @memberof NicForVmCreation + */ + secondaryPrivateIpCount?: number; + /** + * One or more IDs of security groups for the NIC, if you create a NIC when creating a VM. + * @type {Array} + * @memberof NicForVmCreation + */ + securityGroupIds?: Array; + /** + * The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM. + * @type {string} + * @memberof NicForVmCreation + */ + subnetId?: string; +} + +export function NicForVmCreationFromJSON(json: any): NicForVmCreation { + return NicForVmCreationFromJSONTyped(json, false); +} + +export function NicForVmCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NicForVmCreation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'deviceNumber': !exists(json, 'DeviceNumber') ? undefined : json['DeviceNumber'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : ((json['PrivateIps'] as Array).map(PrivateIpLightFromJSON)), + 'secondaryPrivateIpCount': !exists(json, 'SecondaryPrivateIpCount') ? undefined : json['SecondaryPrivateIpCount'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} + +export function NicForVmCreationToJSON(value?: NicForVmCreation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'Description': value.description, + 'DeviceNumber': value.deviceNumber, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps === undefined ? undefined : ((value.privateIps as Array).map(PrivateIpLightToJSON)), + 'SecondaryPrivateIpCount': value.secondaryPrivateIpCount, + 'SecurityGroupIds': value.securityGroupIds, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/NicLight.ts b/src/models/NicLight.ts new file mode 100644 index 00000000..b5a8592e --- /dev/null +++ b/src/models/NicLight.ts @@ -0,0 +1,177 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkNicLight, + LinkNicLightFromJSON, + LinkNicLightFromJSONTyped, + LinkNicLightToJSON, +} from './LinkNicLight'; +import { + LinkPublicIpLightForVm, + LinkPublicIpLightForVmFromJSON, + LinkPublicIpLightForVmFromJSONTyped, + LinkPublicIpLightForVmToJSON, +} from './LinkPublicIpLightForVm'; +import { + PrivateIpLightForVm, + PrivateIpLightForVmFromJSON, + PrivateIpLightForVmFromJSONTyped, + PrivateIpLightForVmToJSON, +} from './PrivateIpLightForVm'; +import { + SecurityGroupLight, + SecurityGroupLightFromJSON, + SecurityGroupLightFromJSONTyped, + SecurityGroupLightToJSON, +} from './SecurityGroupLight'; + +/** + * Information about the network interface card (NIC). + * @export + * @interface NicLight + */ +export interface NicLight { + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof NicLight + */ + accountId?: string; + /** + * The description of the NIC. + * @type {string} + * @memberof NicLight + */ + description?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof NicLight + */ + isSourceDestChecked?: boolean; + /** + * + * @type {LinkNicLight} + * @memberof NicLight + */ + linkNic?: LinkNicLight; + /** + * + * @type {LinkPublicIpLightForVm} + * @memberof NicLight + */ + linkPublicIp?: LinkPublicIpLightForVm; + /** + * The Media Access Control (MAC) address of the NIC. + * @type {string} + * @memberof NicLight + */ + macAddress?: string; + /** + * The ID of the Net for the NIC. + * @type {string} + * @memberof NicLight + */ + netId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof NicLight + */ + nicId?: string; + /** + * The name of the private DNS. + * @type {string} + * @memberof NicLight + */ + privateDnsName?: string; + /** + * The private IP or IPs of the NIC. + * @type {Array} + * @memberof NicLight + */ + privateIps?: Array; + /** + * One or more IDs of security groups for the NIC. + * @type {Array} + * @memberof NicLight + */ + securityGroups?: Array; + /** + * The state of the NIC (`available` \| `attaching` \| `in-use` \| `detaching`). + * @type {string} + * @memberof NicLight + */ + state?: string; + /** + * The ID of the Subnet for the NIC. + * @type {string} + * @memberof NicLight + */ + subnetId?: string; +} + +export function NicLightFromJSON(json: any): NicLight { + return NicLightFromJSONTyped(json, false); +} + +export function NicLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): NicLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'linkNic': !exists(json, 'LinkNic') ? undefined : LinkNicLightFromJSON(json['LinkNic']), + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpLightForVmFromJSON(json['LinkPublicIp']), + 'macAddress': !exists(json, 'MacAddress') ? undefined : json['MacAddress'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIps': !exists(json, 'PrivateIps') ? undefined : ((json['PrivateIps'] as Array).map(PrivateIpLightForVmFromJSON)), + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : ((json['SecurityGroups'] as Array).map(SecurityGroupLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + }; +} + +export function NicLightToJSON(value?: NicLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'Description': value.description, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'LinkNic': LinkNicLightToJSON(value.linkNic), + 'LinkPublicIp': LinkPublicIpLightForVmToJSON(value.linkPublicIp), + 'MacAddress': value.macAddress, + 'NetId': value.netId, + 'NicId': value.nicId, + 'PrivateDnsName': value.privateDnsName, + 'PrivateIps': value.privateIps === undefined ? undefined : ((value.privateIps as Array).map(PrivateIpLightForVmToJSON)), + 'SecurityGroups': value.securityGroups === undefined ? undefined : ((value.securityGroups as Array).map(SecurityGroupLightToJSON)), + 'State': value.state, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/OsuApiKey.ts b/src/models/OsuApiKey.ts new file mode 100644 index 00000000..c48c93ec --- /dev/null +++ b/src/models/OsuApiKey.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the OOS API key. + * @export + * @interface OsuApiKey + */ +export interface OsuApiKey { + /** + * The API key of the OOS account that enables you to access the bucket. + * @type {string} + * @memberof OsuApiKey + */ + apiKeyId?: string; + /** + * The secret key of the OOS account that enables you to access the bucket. + * @type {string} + * @memberof OsuApiKey + */ + secretKey?: string; +} + +export function OsuApiKeyFromJSON(json: any): OsuApiKey { + return OsuApiKeyFromJSONTyped(json, false); +} + +export function OsuApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuApiKey { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiKeyId': !exists(json, 'ApiKeyId') ? undefined : json['ApiKeyId'], + 'secretKey': !exists(json, 'SecretKey') ? undefined : json['SecretKey'], + }; +} + +export function OsuApiKeyToJSON(value?: OsuApiKey | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiKeyId': value.apiKeyId, + 'SecretKey': value.secretKey, + }; +} + diff --git a/src/models/OsuExportImageExportTask.ts b/src/models/OsuExportImageExportTask.ts new file mode 100644 index 00000000..00f38791 --- /dev/null +++ b/src/models/OsuExportImageExportTask.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the OMI export task. + * @export + * @interface OsuExportImageExportTask + */ +export interface OsuExportImageExportTask { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportImageExportTask + */ + diskImageFormat: string; + /** + * The name of the OOS bucket the OMI is exported to. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuBucket: string; + /** + * The URL of the manifest file. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuManifestUrl?: string; + /** + * The prefix for the key of the OOS object corresponding to the image. + * @type {string} + * @memberof OsuExportImageExportTask + */ + osuPrefix?: string; +} + +export function OsuExportImageExportTaskFromJSON(json: any): OsuExportImageExportTask { + return OsuExportImageExportTaskFromJSONTyped(json, false); +} + +export function OsuExportImageExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportImageExportTask { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'diskImageFormat': json['DiskImageFormat'], + 'osuBucket': json['OsuBucket'], + 'osuManifestUrl': !exists(json, 'OsuManifestUrl') ? undefined : json['OsuManifestUrl'], + 'osuPrefix': !exists(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} + +export function OsuExportImageExportTaskToJSON(value?: OsuExportImageExportTask | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DiskImageFormat': value.diskImageFormat, + 'OsuBucket': value.osuBucket, + 'OsuManifestUrl': value.osuManifestUrl, + 'OsuPrefix': value.osuPrefix, + }; +} + diff --git a/src/models/OsuExportSnapshotExportTask.ts b/src/models/OsuExportSnapshotExportTask.ts new file mode 100644 index 00000000..6821c6af --- /dev/null +++ b/src/models/OsuExportSnapshotExportTask.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the snapshot export task. + * @export + * @interface OsuExportSnapshotExportTask + */ +export interface OsuExportSnapshotExportTask { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + diskImageFormat: string; + /** + * The name of the OOS bucket the snapshot is exported to. + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + osuBucket: string; + /** + * The prefix for the key of the OOS object corresponding to the snapshot. + * @type {string} + * @memberof OsuExportSnapshotExportTask + */ + osuPrefix?: string; +} + +export function OsuExportSnapshotExportTaskFromJSON(json: any): OsuExportSnapshotExportTask { + return OsuExportSnapshotExportTaskFromJSONTyped(json, false); +} + +export function OsuExportSnapshotExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportSnapshotExportTask { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'diskImageFormat': json['DiskImageFormat'], + 'osuBucket': json['OsuBucket'], + 'osuPrefix': !exists(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} + +export function OsuExportSnapshotExportTaskToJSON(value?: OsuExportSnapshotExportTask | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DiskImageFormat': value.diskImageFormat, + 'OsuBucket': value.osuBucket, + 'OsuPrefix': value.osuPrefix, + }; +} + diff --git a/src/models/OsuExportToCreate.ts b/src/models/OsuExportToCreate.ts new file mode 100644 index 00000000..2b94378c --- /dev/null +++ b/src/models/OsuExportToCreate.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + OsuApiKey, + OsuApiKeyFromJSON, + OsuApiKeyFromJSONTyped, + OsuApiKeyToJSON, +} from './OsuApiKey'; + +/** + * Information about the OOS export task to create. + * @export + * @interface OsuExportToCreate + */ +export interface OsuExportToCreate { + /** + * The format of the export disk (`qcow2` \| `raw`). + * @type {string} + * @memberof OsuExportToCreate + */ + diskImageFormat: string; + /** + * + * @type {OsuApiKey} + * @memberof OsuExportToCreate + */ + osuApiKey?: OsuApiKey; + /** + * The name of the OOS bucket where you want to export the object. + * @type {string} + * @memberof OsuExportToCreate + */ + osuBucket: string; + /** + * The URL of the manifest file. + * @type {string} + * @memberof OsuExportToCreate + */ + osuManifestUrl?: string; + /** + * The prefix for the key of the OOS object. + * @type {string} + * @memberof OsuExportToCreate + */ + osuPrefix?: string; +} + +export function OsuExportToCreateFromJSON(json: any): OsuExportToCreate { + return OsuExportToCreateFromJSONTyped(json, false); +} + +export function OsuExportToCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsuExportToCreate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'diskImageFormat': json['DiskImageFormat'], + 'osuApiKey': !exists(json, 'OsuApiKey') ? undefined : OsuApiKeyFromJSON(json['OsuApiKey']), + 'osuBucket': json['OsuBucket'], + 'osuManifestUrl': !exists(json, 'OsuManifestUrl') ? undefined : json['OsuManifestUrl'], + 'osuPrefix': !exists(json, 'OsuPrefix') ? undefined : json['OsuPrefix'], + }; +} + +export function OsuExportToCreateToJSON(value?: OsuExportToCreate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DiskImageFormat': value.diskImageFormat, + 'OsuApiKey': OsuApiKeyToJSON(value.osuApiKey), + 'OsuBucket': value.osuBucket, + 'OsuManifestUrl': value.osuManifestUrl, + 'OsuPrefix': value.osuPrefix, + }; +} + diff --git a/src/models/PermissionsOnResource.ts b/src/models/PermissionsOnResource.ts new file mode 100644 index 00000000..9daba8b7 --- /dev/null +++ b/src/models/PermissionsOnResource.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the users who have permissions for the resource. + * @export + * @interface PermissionsOnResource + */ +export interface PermissionsOnResource { + /** + * The account ID of one or more users who have permissions for the resource. + * @type {Array} + * @memberof PermissionsOnResource + */ + accountIds?: Array; + /** + * If true, the resource is public. If false, the resource is private. + * @type {boolean} + * @memberof PermissionsOnResource + */ + globalPermission?: boolean; +} + +export function PermissionsOnResourceFromJSON(json: any): PermissionsOnResource { + return PermissionsOnResourceFromJSONTyped(json, false); +} + +export function PermissionsOnResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionsOnResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountIds': !exists(json, 'AccountIds') ? undefined : json['AccountIds'], + 'globalPermission': !exists(json, 'GlobalPermission') ? undefined : json['GlobalPermission'], + }; +} + +export function PermissionsOnResourceToJSON(value?: PermissionsOnResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountIds': value.accountIds, + 'GlobalPermission': value.globalPermission, + }; +} + diff --git a/src/models/PermissionsOnResourceCreation.ts b/src/models/PermissionsOnResourceCreation.ts new file mode 100644 index 00000000..526f7ec1 --- /dev/null +++ b/src/models/PermissionsOnResourceCreation.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PermissionsOnResource, + PermissionsOnResourceFromJSON, + PermissionsOnResourceFromJSONTyped, + PermissionsOnResourceToJSON, +} from './PermissionsOnResource'; + +/** + * Information about the permissions for the resource. + * @export + * @interface PermissionsOnResourceCreation + */ +export interface PermissionsOnResourceCreation { + /** + * + * @type {PermissionsOnResource} + * @memberof PermissionsOnResourceCreation + */ + additions?: PermissionsOnResource; + /** + * + * @type {PermissionsOnResource} + * @memberof PermissionsOnResourceCreation + */ + removals?: PermissionsOnResource; +} + +export function PermissionsOnResourceCreationFromJSON(json: any): PermissionsOnResourceCreation { + return PermissionsOnResourceCreationFromJSONTyped(json, false); +} + +export function PermissionsOnResourceCreationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionsOnResourceCreation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'additions': !exists(json, 'Additions') ? undefined : PermissionsOnResourceFromJSON(json['Additions']), + 'removals': !exists(json, 'Removals') ? undefined : PermissionsOnResourceFromJSON(json['Removals']), + }; +} + +export function PermissionsOnResourceCreationToJSON(value?: PermissionsOnResourceCreation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Additions': PermissionsOnResourceToJSON(value.additions), + 'Removals': PermissionsOnResourceToJSON(value.removals), + }; +} + diff --git a/src/models/Phase1Options.ts b/src/models/Phase1Options.ts new file mode 100644 index 00000000..d2ec2a1d --- /dev/null +++ b/src/models/Phase1Options.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about Phase 1 of the Internet Key Exchange (IKE) negotiation. When Phase 1 finishes successfully, peers proceed to Phase 2 negotiations. + * @export + * @interface Phase1Options + */ +export interface Phase1Options { + /** + * The action to carry out after a Dead Peer Detection (DPD) timeout occurs. + * @type {string} + * @memberof Phase1Options + */ + dpdTimeoutAction?: string; + /** + * The maximum waiting time for a Dead Peer Detection (DPD) response before considering the peer as dead, in seconds. + * @type {number} + * @memberof Phase1Options + */ + dpdTimeoutSeconds?: number; + /** + * The Internet Key Exchange (IKE) versions allowed for the VPN tunnel. + * @type {Array} + * @memberof Phase1Options + */ + ikeVersions?: Array; + /** + * The Diffie-Hellman (DH) group numbers allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1DhGroupNumbers?: Array; + /** + * The encryption algorithms allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1EncryptionAlgorithms?: Array; + /** + * The integrity algorithms allowed for the VPN tunnel for phase 1. + * @type {Array} + * @memberof Phase1Options + */ + phase1IntegrityAlgorithms?: Array; + /** + * The lifetime for phase 1 of the IKE negotiation process, in seconds. + * @type {number} + * @memberof Phase1Options + */ + phase1LifetimeSeconds?: number; + /** + * The number of packets in an IKE replay window. + * @type {number} + * @memberof Phase1Options + */ + replayWindowSize?: number; + /** + * The action to carry out when establishing tunnels for a VPN connection. + * @type {string} + * @memberof Phase1Options + */ + startupAction?: string; +} + +export function Phase1OptionsFromJSON(json: any): Phase1Options { + return Phase1OptionsFromJSONTyped(json, false); +} + +export function Phase1OptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phase1Options { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dpdTimeoutAction': !exists(json, 'DpdTimeoutAction') ? undefined : json['DpdTimeoutAction'], + 'dpdTimeoutSeconds': !exists(json, 'DpdTimeoutSeconds') ? undefined : json['DpdTimeoutSeconds'], + 'ikeVersions': !exists(json, 'IkeVersions') ? undefined : json['IkeVersions'], + 'phase1DhGroupNumbers': !exists(json, 'Phase1DhGroupNumbers') ? undefined : json['Phase1DhGroupNumbers'], + 'phase1EncryptionAlgorithms': !exists(json, 'Phase1EncryptionAlgorithms') ? undefined : json['Phase1EncryptionAlgorithms'], + 'phase1IntegrityAlgorithms': !exists(json, 'Phase1IntegrityAlgorithms') ? undefined : json['Phase1IntegrityAlgorithms'], + 'phase1LifetimeSeconds': !exists(json, 'Phase1LifetimeSeconds') ? undefined : json['Phase1LifetimeSeconds'], + 'replayWindowSize': !exists(json, 'ReplayWindowSize') ? undefined : json['ReplayWindowSize'], + 'startupAction': !exists(json, 'StartupAction') ? undefined : json['StartupAction'], + }; +} + +export function Phase1OptionsToJSON(value?: Phase1Options | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DpdTimeoutAction': value.dpdTimeoutAction, + 'DpdTimeoutSeconds': value.dpdTimeoutSeconds, + 'IkeVersions': value.ikeVersions, + 'Phase1DhGroupNumbers': value.phase1DhGroupNumbers, + 'Phase1EncryptionAlgorithms': value.phase1EncryptionAlgorithms, + 'Phase1IntegrityAlgorithms': value.phase1IntegrityAlgorithms, + 'Phase1LifetimeSeconds': value.phase1LifetimeSeconds, + 'ReplayWindowSize': value.replayWindowSize, + 'StartupAction': value.startupAction, + }; +} + diff --git a/src/models/Phase2Options.ts b/src/models/Phase2Options.ts new file mode 100644 index 00000000..819d0522 --- /dev/null +++ b/src/models/Phase2Options.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about Phase 2 of the Internet Key Exchange (IKE) negotiation. + * @export + * @interface Phase2Options + */ +export interface Phase2Options { + /** + * The Diffie-Hellman (DH) group numbers allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2DhGroupNumbers?: Array; + /** + * The encryption algorithms allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2EncryptionAlgorithms?: Array; + /** + * The integrity algorithms allowed for the VPN tunnel for phase 2. + * @type {Array} + * @memberof Phase2Options + */ + phase2IntegrityAlgorithms?: Array; + /** + * The lifetime for phase 2 of the Internet Key Exchange (IKE) negociation process, in seconds. + * @type {number} + * @memberof Phase2Options + */ + phase2LifetimeSeconds?: number; + /** + * The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes ("). + * @type {string} + * @memberof Phase2Options + */ + preSharedKey?: string; +} + +export function Phase2OptionsFromJSON(json: any): Phase2Options { + return Phase2OptionsFromJSONTyped(json, false); +} + +export function Phase2OptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phase2Options { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'phase2DhGroupNumbers': !exists(json, 'Phase2DhGroupNumbers') ? undefined : json['Phase2DhGroupNumbers'], + 'phase2EncryptionAlgorithms': !exists(json, 'Phase2EncryptionAlgorithms') ? undefined : json['Phase2EncryptionAlgorithms'], + 'phase2IntegrityAlgorithms': !exists(json, 'Phase2IntegrityAlgorithms') ? undefined : json['Phase2IntegrityAlgorithms'], + 'phase2LifetimeSeconds': !exists(json, 'Phase2LifetimeSeconds') ? undefined : json['Phase2LifetimeSeconds'], + 'preSharedKey': !exists(json, 'PreSharedKey') ? undefined : json['PreSharedKey'], + }; +} + +export function Phase2OptionsToJSON(value?: Phase2Options | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Phase2DhGroupNumbers': value.phase2DhGroupNumbers, + 'Phase2EncryptionAlgorithms': value.phase2EncryptionAlgorithms, + 'Phase2IntegrityAlgorithms': value.phase2IntegrityAlgorithms, + 'Phase2LifetimeSeconds': value.phase2LifetimeSeconds, + 'PreSharedKey': value.preSharedKey, + }; +} + diff --git a/src/models/Placement.ts b/src/models/Placement.ts new file mode 100644 index 00000000..d3bd8152 --- /dev/null +++ b/src/models/Placement.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the placement of the VM. + * @export + * @interface Placement + */ +export interface Placement { + /** + * The name of the Subregion. If you specify this parameter, you must not specify the `Nics` parameter. + * @type {string} + * @memberof Placement + */ + subregionName?: string; + /** + * The tenancy of the VM (`default` \| `dedicated`). + * @type {string} + * @memberof Placement + */ + tenancy?: string; +} + +export function PlacementFromJSON(json: any): Placement { + return PlacementFromJSONTyped(json, false); +} + +export function PlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Placement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tenancy': !exists(json, 'Tenancy') ? undefined : json['Tenancy'], + }; +} + +export function PlacementToJSON(value?: Placement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'SubregionName': value.subregionName, + 'Tenancy': value.tenancy, + }; +} + diff --git a/src/models/PrivateIp.ts b/src/models/PrivateIp.ts new file mode 100644 index 00000000..4cbfbf4e --- /dev/null +++ b/src/models/PrivateIp.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkPublicIp, + LinkPublicIpFromJSON, + LinkPublicIpFromJSONTyped, + LinkPublicIpToJSON, +} from './LinkPublicIp'; + +/** + * Information about the private IP. + * @export + * @interface PrivateIp + */ +export interface PrivateIp { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIp + */ + isPrimary?: boolean; + /** + * + * @type {LinkPublicIp} + * @memberof PrivateIp + */ + linkPublicIp?: LinkPublicIp; + /** + * The name of the private DNS. + * @type {string} + * @memberof PrivateIp + */ + privateDnsName?: string; + /** + * The private IP of the NIC. + * @type {string} + * @memberof PrivateIp + */ + privateIp?: string; +} + +export function PrivateIpFromJSON(json: any): PrivateIp { + return PrivateIpFromJSONTyped(json, false); +} + +export function PrivateIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIp { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'isPrimary': !exists(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpFromJSON(json['LinkPublicIp']), + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} + +export function PrivateIpToJSON(value?: PrivateIp | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'IsPrimary': value.isPrimary, + 'LinkPublicIp': LinkPublicIpToJSON(value.linkPublicIp), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + }; +} + diff --git a/src/models/PrivateIpLight.ts b/src/models/PrivateIpLight.ts new file mode 100644 index 00000000..468b3b6d --- /dev/null +++ b/src/models/PrivateIpLight.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the private IP. + * @export + * @interface PrivateIpLight + */ +export interface PrivateIpLight { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIpLight + */ + isPrimary?: boolean; + /** + * The private IP of the NIC. + * @type {string} + * @memberof PrivateIpLight + */ + privateIp?: string; +} + +export function PrivateIpLightFromJSON(json: any): PrivateIpLight { + return PrivateIpLightFromJSONTyped(json, false); +} + +export function PrivateIpLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIpLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'isPrimary': !exists(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} + +export function PrivateIpLightToJSON(value?: PrivateIpLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'IsPrimary': value.isPrimary, + 'PrivateIp': value.privateIp, + }; +} + diff --git a/src/models/PrivateIpLightForVm.ts b/src/models/PrivateIpLightForVm.ts new file mode 100644 index 00000000..8cf01587 --- /dev/null +++ b/src/models/PrivateIpLightForVm.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkPublicIpLightForVm, + LinkPublicIpLightForVmFromJSON, + LinkPublicIpLightForVmFromJSONTyped, + LinkPublicIpLightForVmToJSON, +} from './LinkPublicIpLightForVm'; + +/** + * Information about the private IP of the NIC. + * @export + * @interface PrivateIpLightForVm + */ +export interface PrivateIpLightForVm { + /** + * If true, the IP is the primary private IP of the NIC. + * @type {boolean} + * @memberof PrivateIpLightForVm + */ + isPrimary?: boolean; + /** + * + * @type {LinkPublicIpLightForVm} + * @memberof PrivateIpLightForVm + */ + linkPublicIp?: LinkPublicIpLightForVm; + /** + * The name of the private DNS. + * @type {string} + * @memberof PrivateIpLightForVm + */ + privateDnsName?: string; + /** + * The private IP. + * @type {string} + * @memberof PrivateIpLightForVm + */ + privateIp?: string; +} + +export function PrivateIpLightForVmFromJSON(json: any): PrivateIpLightForVm { + return PrivateIpLightForVmFromJSONTyped(json, false); +} + +export function PrivateIpLightForVmFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateIpLightForVm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'isPrimary': !exists(json, 'IsPrimary') ? undefined : json['IsPrimary'], + 'linkPublicIp': !exists(json, 'LinkPublicIp') ? undefined : LinkPublicIpLightForVmFromJSON(json['LinkPublicIp']), + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + }; +} + +export function PrivateIpLightForVmToJSON(value?: PrivateIpLightForVm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'IsPrimary': value.isPrimary, + 'LinkPublicIp': LinkPublicIpLightForVmToJSON(value.linkPublicIp), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + }; +} + diff --git a/src/models/ProductType.ts b/src/models/ProductType.ts new file mode 100644 index 00000000..5bfb869b --- /dev/null +++ b/src/models/ProductType.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the product type. + * @export + * @interface ProductType + */ +export interface ProductType { + /** + * The description of the product type. + * @type {string} + * @memberof ProductType + */ + description?: string; + /** + * The ID of the product type. + * @type {string} + * @memberof ProductType + */ + productTypeId?: string; + /** + * The vendor of the product type. + * @type {string} + * @memberof ProductType + */ + vendor?: string; +} + +export function ProductTypeFromJSON(json: any): ProductType { + return ProductTypeFromJSONTyped(json, false); +} + +export function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'productTypeId': !exists(json, 'ProductTypeId') ? undefined : json['ProductTypeId'], + 'vendor': !exists(json, 'Vendor') ? undefined : json['Vendor'], + }; +} + +export function ProductTypeToJSON(value?: ProductType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Description': value.description, + 'ProductTypeId': value.productTypeId, + 'Vendor': value.vendor, + }; +} + diff --git a/src/models/PublicIp.ts b/src/models/PublicIp.ts new file mode 100644 index 00000000..ed962e5b --- /dev/null +++ b/src/models/PublicIp.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the public IP. + * @export + * @interface PublicIp + */ +export interface PublicIp { + /** + * (Required in a Net) The ID representing the association of the public IP with the VM or the NIC. + * @type {string} + * @memberof PublicIp + */ + linkPublicIpId?: string; + /** + * The account ID of the owner of the NIC. + * @type {string} + * @memberof PublicIp + */ + nicAccountId?: string; + /** + * The ID of the NIC the public IP is associated with (if any). + * @type {string} + * @memberof PublicIp + */ + nicId?: string; + /** + * The private IP associated with the public IP. + * @type {string} + * @memberof PublicIp + */ + privateIp?: string; + /** + * The public IP. + * @type {string} + * @memberof PublicIp + */ + publicIp?: string; + /** + * The allocation ID of the public IP. + * @type {string} + * @memberof PublicIp + */ + publicIpId?: string; + /** + * One or more tags associated with the public IP. + * @type {Array} + * @memberof PublicIp + */ + tags?: Array; + /** + * The ID of the VM the public IP is associated with (if any). + * @type {string} + * @memberof PublicIp + */ + vmId?: string; +} + +export function PublicIpFromJSON(json: any): PublicIp { + return PublicIpFromJSONTyped(json, false); +} + +export function PublicIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicIp { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'nicAccountId': !exists(json, 'NicAccountId') ? undefined : json['NicAccountId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function PublicIpToJSON(value?: PublicIp | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkPublicIpId': value.linkPublicIpId, + 'NicAccountId': value.nicAccountId, + 'NicId': value.nicId, + 'PrivateIp': value.privateIp, + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'VmId': value.vmId, + }; +} + diff --git a/src/models/PublicIpLight.ts b/src/models/PublicIpLight.ts new file mode 100644 index 00000000..281012c9 --- /dev/null +++ b/src/models/PublicIpLight.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the public IP. + * @export + * @interface PublicIpLight + */ +export interface PublicIpLight { + /** + * The public IP associated with the NAT service. + * @type {string} + * @memberof PublicIpLight + */ + publicIp?: string; + /** + * The allocation ID of the public IP associated with the NAT service. + * @type {string} + * @memberof PublicIpLight + */ + publicIpId?: string; +} + +export function PublicIpLightFromJSON(json: any): PublicIpLight { + return PublicIpLightFromJSONTyped(json, false); +} + +export function PublicIpLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicIpLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'publicIpId': !exists(json, 'PublicIpId') ? undefined : json['PublicIpId'], + }; +} + +export function PublicIpLightToJSON(value?: PublicIpLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'PublicIp': value.publicIp, + 'PublicIpId': value.publicIpId, + }; +} + diff --git a/src/models/Quota.ts b/src/models/Quota.ts new file mode 100644 index 00000000..b06ca27b --- /dev/null +++ b/src/models/Quota.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the quota. + * @export + * @interface Quota + */ +export interface Quota { + /** + * The account ID of the owner of the quotas. + * @type {string} + * @memberof Quota + */ + accountId?: string; + /** + * The description of the quota. + * @type {string} + * @memberof Quota + */ + description?: string; + /** + * The maximum value of the quota for the OUTSCALE user account (if there is no limit, `0`). + * @type {number} + * @memberof Quota + */ + maxValue?: number; + /** + * The unique name of the quota. + * @type {string} + * @memberof Quota + */ + name?: string; + /** + * The group name of the quota. + * @type {string} + * @memberof Quota + */ + quotaCollection?: string; + /** + * The description of the quota. + * @type {string} + * @memberof Quota + */ + shortDescription?: string; + /** + * The limit value currently used by the OUTSCALE user account. + * @type {number} + * @memberof Quota + */ + usedValue?: number; +} + +export function QuotaFromJSON(json: any): Quota { + return QuotaFromJSONTyped(json, false); +} + +export function QuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Quota { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'maxValue': !exists(json, 'MaxValue') ? undefined : json['MaxValue'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + 'quotaCollection': !exists(json, 'QuotaCollection') ? undefined : json['QuotaCollection'], + 'shortDescription': !exists(json, 'ShortDescription') ? undefined : json['ShortDescription'], + 'usedValue': !exists(json, 'UsedValue') ? undefined : json['UsedValue'], + }; +} + +export function QuotaToJSON(value?: Quota | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'Description': value.description, + 'MaxValue': value.maxValue, + 'Name': value.name, + 'QuotaCollection': value.quotaCollection, + 'ShortDescription': value.shortDescription, + 'UsedValue': value.usedValue, + }; +} + diff --git a/src/models/QuotaTypes.ts b/src/models/QuotaTypes.ts new file mode 100644 index 00000000..2bd043f9 --- /dev/null +++ b/src/models/QuotaTypes.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Quota, + QuotaFromJSON, + QuotaFromJSONTyped, + QuotaToJSON, +} from './Quota'; + +/** + * One or more quotas. + * @export + * @interface QuotaTypes + */ +export interface QuotaTypes { + /** + * The resource ID if it is a resource-specific quota, `global` if it is not. + * @type {string} + * @memberof QuotaTypes + */ + quotaType?: string; + /** + * One or more quotas associated with the user. + * @type {Array} + * @memberof QuotaTypes + */ + quotas?: Array; +} + +export function QuotaTypesFromJSON(json: any): QuotaTypes { + return QuotaTypesFromJSONTyped(json, false); +} + +export function QuotaTypesFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaTypes { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'quotaType': !exists(json, 'QuotaType') ? undefined : json['QuotaType'], + 'quotas': !exists(json, 'Quotas') ? undefined : ((json['Quotas'] as Array).map(QuotaFromJSON)), + }; +} + +export function QuotaTypesToJSON(value?: QuotaTypes | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'QuotaType': value.quotaType, + 'Quotas': value.quotas === undefined ? undefined : ((value.quotas as Array).map(QuotaToJSON)), + }; +} + diff --git a/src/models/ReadAccessKeysRequest.ts b/src/models/ReadAccessKeysRequest.ts new file mode 100644 index 00000000..f69a2f34 --- /dev/null +++ b/src/models/ReadAccessKeysRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersAccessKeys, + FiltersAccessKeysFromJSON, + FiltersAccessKeysFromJSONTyped, + FiltersAccessKeysToJSON, +} from './FiltersAccessKeys'; + +/** + * + * @export + * @interface ReadAccessKeysRequest + */ +export interface ReadAccessKeysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAccessKeysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersAccessKeys} + * @memberof ReadAccessKeysRequest + */ + filters?: FiltersAccessKeys; +} + +export function ReadAccessKeysRequestFromJSON(json: any): ReadAccessKeysRequest { + return ReadAccessKeysRequestFromJSONTyped(json, false); +} + +export function ReadAccessKeysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccessKeysRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersAccessKeysFromJSON(json['Filters']), + }; +} + +export function ReadAccessKeysRequestToJSON(value?: ReadAccessKeysRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersAccessKeysToJSON(value.filters), + }; +} + diff --git a/src/models/ReadAccessKeysResponse.ts b/src/models/ReadAccessKeysResponse.ts new file mode 100644 index 00000000..4f99678f --- /dev/null +++ b/src/models/ReadAccessKeysResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccessKey, + AccessKeyFromJSON, + AccessKeyFromJSONTyped, + AccessKeyToJSON, +} from './AccessKey'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadAccessKeysResponse + */ +export interface ReadAccessKeysResponse { + /** + * A list of access keys. + * @type {Array} + * @memberof ReadAccessKeysResponse + */ + accessKeys?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAccessKeysResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadAccessKeysResponseFromJSON(json: any): ReadAccessKeysResponse { + return ReadAccessKeysResponseFromJSONTyped(json, false); +} + +export function ReadAccessKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccessKeysResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeys': !exists(json, 'AccessKeys') ? undefined : ((json['AccessKeys'] as Array).map(AccessKeyFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadAccessKeysResponseToJSON(value?: ReadAccessKeysResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeys': value.accessKeys === undefined ? undefined : ((value.accessKeys as Array).map(AccessKeyToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadAccountsRequest.ts b/src/models/ReadAccountsRequest.ts new file mode 100644 index 00000000..e9fafd6a --- /dev/null +++ b/src/models/ReadAccountsRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadAccountsRequest + */ +export interface ReadAccountsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAccountsRequest + */ + dryRun?: boolean; +} + +export function ReadAccountsRequestFromJSON(json: any): ReadAccountsRequest { + return ReadAccountsRequestFromJSONTyped(json, false); +} + +export function ReadAccountsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccountsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadAccountsRequestToJSON(value?: ReadAccountsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadAccountsResponse.ts b/src/models/ReadAccountsResponse.ts new file mode 100644 index 00000000..06edb0ef --- /dev/null +++ b/src/models/ReadAccountsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Account, + AccountFromJSON, + AccountFromJSONTyped, + AccountToJSON, +} from './Account'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadAccountsResponse + */ +export interface ReadAccountsResponse { + /** + * The list of the accounts. + * @type {Array} + * @memberof ReadAccountsResponse + */ + accounts?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAccountsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadAccountsResponseFromJSON(json: any): ReadAccountsResponse { + return ReadAccountsResponseFromJSONTyped(json, false); +} + +export function ReadAccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAccountsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accounts': !exists(json, 'Accounts') ? undefined : ((json['Accounts'] as Array).map(AccountFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadAccountsResponseToJSON(value?: ReadAccountsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Accounts': value.accounts === undefined ? undefined : ((value.accounts as Array).map(AccountToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadAdminPasswordRequest.ts b/src/models/ReadAdminPasswordRequest.ts new file mode 100644 index 00000000..a5c6935f --- /dev/null +++ b/src/models/ReadAdminPasswordRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadAdminPasswordRequest + */ +export interface ReadAdminPasswordRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadAdminPasswordRequest + */ + dryRun?: boolean; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadAdminPasswordRequest + */ + vmId: string; +} + +export function ReadAdminPasswordRequestFromJSON(json: any): ReadAdminPasswordRequest { + return ReadAdminPasswordRequestFromJSONTyped(json, false); +} + +export function ReadAdminPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAdminPasswordRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + }; +} + +export function ReadAdminPasswordRequestToJSON(value?: ReadAdminPasswordRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/ReadAdminPasswordResponse.ts b/src/models/ReadAdminPasswordResponse.ts new file mode 100644 index 00000000..f2b561d3 --- /dev/null +++ b/src/models/ReadAdminPasswordResponse.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadAdminPasswordResponse + */ +export interface ReadAdminPasswordResponse { + /** + * The password of the VM. After the first boot, returns an empty string. + * @type {string} + * @memberof ReadAdminPasswordResponse + */ + adminPassword?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadAdminPasswordResponse + */ + responseContext?: ModelResponseContext; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadAdminPasswordResponse + */ + vmId?: string; +} + +export function ReadAdminPasswordResponseFromJSON(json: any): ReadAdminPasswordResponse { + return ReadAdminPasswordResponseFromJSONTyped(json, false); +} + +export function ReadAdminPasswordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadAdminPasswordResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'adminPassword': !exists(json, 'AdminPassword') ? undefined : json['AdminPassword'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function ReadAdminPasswordResponseToJSON(value?: ReadAdminPasswordResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AdminPassword': value.adminPassword, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmId': value.vmId, + }; +} + diff --git a/src/models/ReadApiAccessPolicyRequest.ts b/src/models/ReadApiAccessPolicyRequest.ts new file mode 100644 index 00000000..42629374 --- /dev/null +++ b/src/models/ReadApiAccessPolicyRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadApiAccessPolicyRequest + */ +export interface ReadApiAccessPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiAccessPolicyRequest + */ + dryRun?: boolean; +} + +export function ReadApiAccessPolicyRequestFromJSON(json: any): ReadApiAccessPolicyRequest { + return ReadApiAccessPolicyRequestFromJSONTyped(json, false); +} + +export function ReadApiAccessPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessPolicyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadApiAccessPolicyRequestToJSON(value?: ReadApiAccessPolicyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadApiAccessPolicyResponse.ts b/src/models/ReadApiAccessPolicyResponse.ts new file mode 100644 index 00000000..7a80aefe --- /dev/null +++ b/src/models/ReadApiAccessPolicyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ApiAccessPolicy, + ApiAccessPolicyFromJSON, + ApiAccessPolicyFromJSONTyped, + ApiAccessPolicyToJSON, +} from './ApiAccessPolicy'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadApiAccessPolicyResponse + */ +export interface ReadApiAccessPolicyResponse { + /** + * + * @type {ApiAccessPolicy} + * @memberof ReadApiAccessPolicyResponse + */ + apiAccessPolicy?: ApiAccessPolicy; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiAccessPolicyResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadApiAccessPolicyResponseFromJSON(json: any): ReadApiAccessPolicyResponse { + return ReadApiAccessPolicyResponseFromJSONTyped(json, false); +} + +export function ReadApiAccessPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessPolicyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessPolicy': !exists(json, 'ApiAccessPolicy') ? undefined : ApiAccessPolicyFromJSON(json['ApiAccessPolicy']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadApiAccessPolicyResponseToJSON(value?: ReadApiAccessPolicyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessPolicy': ApiAccessPolicyToJSON(value.apiAccessPolicy), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadApiAccessRulesRequest.ts b/src/models/ReadApiAccessRulesRequest.ts new file mode 100644 index 00000000..d9ccb570 --- /dev/null +++ b/src/models/ReadApiAccessRulesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersApiAccessRule, + FiltersApiAccessRuleFromJSON, + FiltersApiAccessRuleFromJSONTyped, + FiltersApiAccessRuleToJSON, +} from './FiltersApiAccessRule'; + +/** + * + * @export + * @interface ReadApiAccessRulesRequest + */ +export interface ReadApiAccessRulesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiAccessRulesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersApiAccessRule} + * @memberof ReadApiAccessRulesRequest + */ + filters?: FiltersApiAccessRule; +} + +export function ReadApiAccessRulesRequestFromJSON(json: any): ReadApiAccessRulesRequest { + return ReadApiAccessRulesRequestFromJSONTyped(json, false); +} + +export function ReadApiAccessRulesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessRulesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersApiAccessRuleFromJSON(json['Filters']), + }; +} + +export function ReadApiAccessRulesRequestToJSON(value?: ReadApiAccessRulesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersApiAccessRuleToJSON(value.filters), + }; +} + diff --git a/src/models/ReadApiAccessRulesResponse.ts b/src/models/ReadApiAccessRulesResponse.ts new file mode 100644 index 00000000..fc489ce9 --- /dev/null +++ b/src/models/ReadApiAccessRulesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ApiAccessRule, + ApiAccessRuleFromJSON, + ApiAccessRuleFromJSONTyped, + ApiAccessRuleToJSON, +} from './ApiAccessRule'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadApiAccessRulesResponse + */ +export interface ReadApiAccessRulesResponse { + /** + * A list of API access rules. + * @type {Array} + * @memberof ReadApiAccessRulesResponse + */ + apiAccessRules?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiAccessRulesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadApiAccessRulesResponseFromJSON(json: any): ReadApiAccessRulesResponse { + return ReadApiAccessRulesResponseFromJSONTyped(json, false); +} + +export function ReadApiAccessRulesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiAccessRulesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRules': !exists(json, 'ApiAccessRules') ? undefined : ((json['ApiAccessRules'] as Array).map(ApiAccessRuleFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadApiAccessRulesResponseToJSON(value?: ReadApiAccessRulesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRules': value.apiAccessRules === undefined ? undefined : ((value.apiAccessRules as Array).map(ApiAccessRuleToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadApiLogsRequest.ts b/src/models/ReadApiLogsRequest.ts new file mode 100644 index 00000000..bb3101d7 --- /dev/null +++ b/src/models/ReadApiLogsRequest.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersApiLog, + FiltersApiLogFromJSON, + FiltersApiLogFromJSONTyped, + FiltersApiLogToJSON, +} from './FiltersApiLog'; +import { + With, + WithFromJSON, + WithFromJSONTyped, + WithToJSON, +} from './With'; + +/** + * + * @export + * @interface ReadApiLogsRequest + */ +export interface ReadApiLogsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadApiLogsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersApiLog} + * @memberof ReadApiLogsRequest + */ + filters?: FiltersApiLog; + /** + * The token to request the next page of results. + * @type {string} + * @memberof ReadApiLogsRequest + */ + nextPageToken?: string; + /** + * The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`. + * @type {number} + * @memberof ReadApiLogsRequest + */ + resultsPerPage?: number; + /** + * + * @type {With} + * @memberof ReadApiLogsRequest + */ + _with?: With; +} + +export function ReadApiLogsRequestFromJSON(json: any): ReadApiLogsRequest { + return ReadApiLogsRequestFromJSONTyped(json, false); +} + +export function ReadApiLogsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiLogsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersApiLogFromJSON(json['Filters']), + 'nextPageToken': !exists(json, 'NextPageToken') ? undefined : json['NextPageToken'], + 'resultsPerPage': !exists(json, 'ResultsPerPage') ? undefined : json['ResultsPerPage'], + '_with': !exists(json, 'With') ? undefined : WithFromJSON(json['With']), + }; +} + +export function ReadApiLogsRequestToJSON(value?: ReadApiLogsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersApiLogToJSON(value.filters), + 'NextPageToken': value.nextPageToken, + 'ResultsPerPage': value.resultsPerPage, + 'With': WithToJSON(value._with), + }; +} + diff --git a/src/models/ReadApiLogsResponse.ts b/src/models/ReadApiLogsResponse.ts new file mode 100644 index 00000000..ebae2fe8 --- /dev/null +++ b/src/models/ReadApiLogsResponse.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Log, + LogFromJSON, + LogFromJSONTyped, + LogToJSON, +} from './Log'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadApiLogsResponse + */ +export interface ReadApiLogsResponse { + /** + * Information about one or more logs. + * @type {Array} + * @memberof ReadApiLogsResponse + */ + logs?: Array; + /** + * The token to request the next page of results. + * @type {string} + * @memberof ReadApiLogsResponse + */ + nextPageToken?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadApiLogsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadApiLogsResponseFromJSON(json: any): ReadApiLogsResponse { + return ReadApiLogsResponseFromJSONTyped(json, false); +} + +export function ReadApiLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadApiLogsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'logs': !exists(json, 'Logs') ? undefined : ((json['Logs'] as Array).map(LogFromJSON)), + 'nextPageToken': !exists(json, 'NextPageToken') ? undefined : json['NextPageToken'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadApiLogsResponseToJSON(value?: ReadApiLogsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Logs': value.logs === undefined ? undefined : ((value.logs as Array).map(LogToJSON)), + 'NextPageToken': value.nextPageToken, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadCasRequest.ts b/src/models/ReadCasRequest.ts new file mode 100644 index 00000000..2f1c3016 --- /dev/null +++ b/src/models/ReadCasRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersCa, + FiltersCaFromJSON, + FiltersCaFromJSONTyped, + FiltersCaToJSON, +} from './FiltersCa'; + +/** + * + * @export + * @interface ReadCasRequest + */ +export interface ReadCasRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadCasRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersCa} + * @memberof ReadCasRequest + */ + filters?: FiltersCa; +} + +export function ReadCasRequestFromJSON(json: any): ReadCasRequest { + return ReadCasRequestFromJSONTyped(json, false); +} + +export function ReadCasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCasRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersCaFromJSON(json['Filters']), + }; +} + +export function ReadCasRequestToJSON(value?: ReadCasRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersCaToJSON(value.filters), + }; +} + diff --git a/src/models/ReadCasResponse.ts b/src/models/ReadCasResponse.ts new file mode 100644 index 00000000..e3492a90 --- /dev/null +++ b/src/models/ReadCasResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Ca, + CaFromJSON, + CaFromJSONTyped, + CaToJSON, +} from './Ca'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadCasResponse + */ +export interface ReadCasResponse { + /** + * Information about one or more CAs. + * @type {Array} + * @memberof ReadCasResponse + */ + cas?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadCasResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadCasResponseFromJSON(json: any): ReadCasResponse { + return ReadCasResponseFromJSONTyped(json, false); +} + +export function ReadCasResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCasResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cas': !exists(json, 'Cas') ? undefined : ((json['Cas'] as Array).map(CaFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadCasResponseToJSON(value?: ReadCasResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Cas': value.cas === undefined ? undefined : ((value.cas as Array).map(CaToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadCatalogRequest.ts b/src/models/ReadCatalogRequest.ts new file mode 100644 index 00000000..1e3ac3f2 --- /dev/null +++ b/src/models/ReadCatalogRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadCatalogRequest + */ +export interface ReadCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadCatalogRequest + */ + dryRun?: boolean; +} + +export function ReadCatalogRequestFromJSON(json: any): ReadCatalogRequest { + return ReadCatalogRequestFromJSONTyped(json, false); +} + +export function ReadCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCatalogRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadCatalogRequestToJSON(value?: ReadCatalogRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadCatalogResponse.ts b/src/models/ReadCatalogResponse.ts new file mode 100644 index 00000000..4cae4ed0 --- /dev/null +++ b/src/models/ReadCatalogResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Catalog, + CatalogFromJSON, + CatalogFromJSONTyped, + CatalogToJSON, +} from './Catalog'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadCatalogResponse + */ +export interface ReadCatalogResponse { + /** + * + * @type {Catalog} + * @memberof ReadCatalogResponse + */ + catalog?: Catalog; + /** + * + * @type {ModelResponseContext} + * @memberof ReadCatalogResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadCatalogResponseFromJSON(json: any): ReadCatalogResponse { + return ReadCatalogResponseFromJSONTyped(json, false); +} + +export function ReadCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadCatalogResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'catalog': !exists(json, 'Catalog') ? undefined : CatalogFromJSON(json['Catalog']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadCatalogResponseToJSON(value?: ReadCatalogResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Catalog': CatalogToJSON(value.catalog), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadClientGatewaysRequest.ts b/src/models/ReadClientGatewaysRequest.ts new file mode 100644 index 00000000..0c56d78b --- /dev/null +++ b/src/models/ReadClientGatewaysRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersClientGateway, + FiltersClientGatewayFromJSON, + FiltersClientGatewayFromJSONTyped, + FiltersClientGatewayToJSON, +} from './FiltersClientGateway'; + +/** + * + * @export + * @interface ReadClientGatewaysRequest + */ +export interface ReadClientGatewaysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadClientGatewaysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersClientGateway} + * @memberof ReadClientGatewaysRequest + */ + filters?: FiltersClientGateway; +} + +export function ReadClientGatewaysRequestFromJSON(json: any): ReadClientGatewaysRequest { + return ReadClientGatewaysRequestFromJSONTyped(json, false); +} + +export function ReadClientGatewaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadClientGatewaysRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersClientGatewayFromJSON(json['Filters']), + }; +} + +export function ReadClientGatewaysRequestToJSON(value?: ReadClientGatewaysRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersClientGatewayToJSON(value.filters), + }; +} + diff --git a/src/models/ReadClientGatewaysResponse.ts b/src/models/ReadClientGatewaysResponse.ts new file mode 100644 index 00000000..57bebee7 --- /dev/null +++ b/src/models/ReadClientGatewaysResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ClientGateway, + ClientGatewayFromJSON, + ClientGatewayFromJSONTyped, + ClientGatewayToJSON, +} from './ClientGateway'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadClientGatewaysResponse + */ +export interface ReadClientGatewaysResponse { + /** + * Information about one or more client gateways. + * @type {Array} + * @memberof ReadClientGatewaysResponse + */ + clientGateways?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadClientGatewaysResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadClientGatewaysResponseFromJSON(json: any): ReadClientGatewaysResponse { + return ReadClientGatewaysResponseFromJSONTyped(json, false); +} + +export function ReadClientGatewaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadClientGatewaysResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientGateways': !exists(json, 'ClientGateways') ? undefined : ((json['ClientGateways'] as Array).map(ClientGatewayFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadClientGatewaysResponseToJSON(value?: ReadClientGatewaysResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ClientGateways': value.clientGateways === undefined ? undefined : ((value.clientGateways as Array).map(ClientGatewayToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadConsoleOutputRequest.ts b/src/models/ReadConsoleOutputRequest.ts new file mode 100644 index 00000000..a5d28626 --- /dev/null +++ b/src/models/ReadConsoleOutputRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadConsoleOutputRequest + */ +export interface ReadConsoleOutputRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadConsoleOutputRequest + */ + dryRun?: boolean; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadConsoleOutputRequest + */ + vmId: string; +} + +export function ReadConsoleOutputRequestFromJSON(json: any): ReadConsoleOutputRequest { + return ReadConsoleOutputRequestFromJSONTyped(json, false); +} + +export function ReadConsoleOutputRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsoleOutputRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmId': json['VmId'], + }; +} + +export function ReadConsoleOutputRequestToJSON(value?: ReadConsoleOutputRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/ReadConsoleOutputResponse.ts b/src/models/ReadConsoleOutputResponse.ts new file mode 100644 index 00000000..9fbd6cd1 --- /dev/null +++ b/src/models/ReadConsoleOutputResponse.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadConsoleOutputResponse + */ +export interface ReadConsoleOutputResponse { + /** + * The Base64-encoded output of the console. If a command line tool is used, the output is decoded by the tool. + * @type {string} + * @memberof ReadConsoleOutputResponse + */ + consoleOutput?: string; + /** + * + * @type {ModelResponseContext} + * @memberof ReadConsoleOutputResponse + */ + responseContext?: ModelResponseContext; + /** + * The ID of the VM. + * @type {string} + * @memberof ReadConsoleOutputResponse + */ + vmId?: string; +} + +export function ReadConsoleOutputResponseFromJSON(json: any): ReadConsoleOutputResponse { + return ReadConsoleOutputResponseFromJSONTyped(json, false); +} + +export function ReadConsoleOutputResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsoleOutputResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'consoleOutput': !exists(json, 'ConsoleOutput') ? undefined : json['ConsoleOutput'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function ReadConsoleOutputResponseToJSON(value?: ReadConsoleOutputResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ConsoleOutput': value.consoleOutput, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmId': value.vmId, + }; +} + diff --git a/src/models/ReadConsumptionAccountRequest.ts b/src/models/ReadConsumptionAccountRequest.ts new file mode 100644 index 00000000..5829a37c --- /dev/null +++ b/src/models/ReadConsumptionAccountRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadConsumptionAccountRequest + */ +export interface ReadConsumptionAccountRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadConsumptionAccountRequest + */ + dryRun?: boolean; + /** + * The beginning of the time period, in ISO 8601 date-time format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). + * @type {string} + * @memberof ReadConsumptionAccountRequest + */ + fromDate: string; + /** + * The end of the time period, in ISO 8601 date-time format (for example, `2017-06-30` or `2017-06-30T00:00:00Z`). + * @type {string} + * @memberof ReadConsumptionAccountRequest + */ + toDate: string; +} + +export function ReadConsumptionAccountRequestFromJSON(json: any): ReadConsumptionAccountRequest { + return ReadConsumptionAccountRequestFromJSONTyped(json, false); +} + +export function ReadConsumptionAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsumptionAccountRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'fromDate': json['FromDate'], + 'toDate': json['ToDate'], + }; +} + +export function ReadConsumptionAccountRequestToJSON(value?: ReadConsumptionAccountRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'FromDate': value.fromDate, + 'ToDate': value.toDate, + }; +} + diff --git a/src/models/ReadConsumptionAccountResponse.ts b/src/models/ReadConsumptionAccountResponse.ts new file mode 100644 index 00000000..0ee01849 --- /dev/null +++ b/src/models/ReadConsumptionAccountResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ConsumptionEntry, + ConsumptionEntryFromJSON, + ConsumptionEntryFromJSONTyped, + ConsumptionEntryToJSON, +} from './ConsumptionEntry'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadConsumptionAccountResponse + */ +export interface ReadConsumptionAccountResponse { + /** + * Information about the resources consumed during the specified time period. + * @type {Array} + * @memberof ReadConsumptionAccountResponse + */ + consumptionEntries?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadConsumptionAccountResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadConsumptionAccountResponseFromJSON(json: any): ReadConsumptionAccountResponse { + return ReadConsumptionAccountResponseFromJSONTyped(json, false); +} + +export function ReadConsumptionAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadConsumptionAccountResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'consumptionEntries': !exists(json, 'ConsumptionEntries') ? undefined : ((json['ConsumptionEntries'] as Array).map(ConsumptionEntryFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadConsumptionAccountResponseToJSON(value?: ReadConsumptionAccountResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ConsumptionEntries': value.consumptionEntries === undefined ? undefined : ((value.consumptionEntries as Array).map(ConsumptionEntryToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadDhcpOptionsRequest.ts b/src/models/ReadDhcpOptionsRequest.ts new file mode 100644 index 00000000..acf5c0f7 --- /dev/null +++ b/src/models/ReadDhcpOptionsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersDhcpOptions, + FiltersDhcpOptionsFromJSON, + FiltersDhcpOptionsFromJSONTyped, + FiltersDhcpOptionsToJSON, +} from './FiltersDhcpOptions'; + +/** + * + * @export + * @interface ReadDhcpOptionsRequest + */ +export interface ReadDhcpOptionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDhcpOptionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDhcpOptions} + * @memberof ReadDhcpOptionsRequest + */ + filters?: FiltersDhcpOptions; +} + +export function ReadDhcpOptionsRequestFromJSON(json: any): ReadDhcpOptionsRequest { + return ReadDhcpOptionsRequestFromJSONTyped(json, false); +} + +export function ReadDhcpOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDhcpOptionsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersDhcpOptionsFromJSON(json['Filters']), + }; +} + +export function ReadDhcpOptionsRequestToJSON(value?: ReadDhcpOptionsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersDhcpOptionsToJSON(value.filters), + }; +} + diff --git a/src/models/ReadDhcpOptionsResponse.ts b/src/models/ReadDhcpOptionsResponse.ts new file mode 100644 index 00000000..80cbdf98 --- /dev/null +++ b/src/models/ReadDhcpOptionsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DhcpOptionsSet, + DhcpOptionsSetFromJSON, + DhcpOptionsSetFromJSONTyped, + DhcpOptionsSetToJSON, +} from './DhcpOptionsSet'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadDhcpOptionsResponse + */ +export interface ReadDhcpOptionsResponse { + /** + * Information about one or more DHCP options sets. + * @type {Array} + * @memberof ReadDhcpOptionsResponse + */ + dhcpOptionsSets?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDhcpOptionsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadDhcpOptionsResponseFromJSON(json: any): ReadDhcpOptionsResponse { + return ReadDhcpOptionsResponseFromJSONTyped(json, false); +} + +export function ReadDhcpOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDhcpOptionsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhcpOptionsSets': !exists(json, 'DhcpOptionsSets') ? undefined : ((json['DhcpOptionsSets'] as Array).map(DhcpOptionsSetFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadDhcpOptionsResponseToJSON(value?: ReadDhcpOptionsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DhcpOptionsSets': value.dhcpOptionsSets === undefined ? undefined : ((value.dhcpOptionsSets as Array).map(DhcpOptionsSetToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadDirectLinkInterfacesRequest.ts b/src/models/ReadDirectLinkInterfacesRequest.ts new file mode 100644 index 00000000..adddf080 --- /dev/null +++ b/src/models/ReadDirectLinkInterfacesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersDirectLinkInterface, + FiltersDirectLinkInterfaceFromJSON, + FiltersDirectLinkInterfaceFromJSONTyped, + FiltersDirectLinkInterfaceToJSON, +} from './FiltersDirectLinkInterface'; + +/** + * + * @export + * @interface ReadDirectLinkInterfacesRequest + */ +export interface ReadDirectLinkInterfacesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDirectLinkInterfacesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDirectLinkInterface} + * @memberof ReadDirectLinkInterfacesRequest + */ + filters?: FiltersDirectLinkInterface; +} + +export function ReadDirectLinkInterfacesRequestFromJSON(json: any): ReadDirectLinkInterfacesRequest { + return ReadDirectLinkInterfacesRequestFromJSONTyped(json, false); +} + +export function ReadDirectLinkInterfacesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinkInterfacesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersDirectLinkInterfaceFromJSON(json['Filters']), + }; +} + +export function ReadDirectLinkInterfacesRequestToJSON(value?: ReadDirectLinkInterfacesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersDirectLinkInterfaceToJSON(value.filters), + }; +} + diff --git a/src/models/ReadDirectLinkInterfacesResponse.ts b/src/models/ReadDirectLinkInterfacesResponse.ts new file mode 100644 index 00000000..39ea1ef8 --- /dev/null +++ b/src/models/ReadDirectLinkInterfacesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DirectLinkInterfaces, + DirectLinkInterfacesFromJSON, + DirectLinkInterfacesFromJSONTyped, + DirectLinkInterfacesToJSON, +} from './DirectLinkInterfaces'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadDirectLinkInterfacesResponse + */ +export interface ReadDirectLinkInterfacesResponse { + /** + * Information about one or more DirectLink interfaces. + * @type {Array} + * @memberof ReadDirectLinkInterfacesResponse + */ + directLinkInterfaces?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDirectLinkInterfacesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadDirectLinkInterfacesResponseFromJSON(json: any): ReadDirectLinkInterfacesResponse { + return ReadDirectLinkInterfacesResponseFromJSONTyped(json, false); +} + +export function ReadDirectLinkInterfacesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinkInterfacesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinkInterfaces': !exists(json, 'DirectLinkInterfaces') ? undefined : ((json['DirectLinkInterfaces'] as Array).map(DirectLinkInterfacesFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadDirectLinkInterfacesResponseToJSON(value?: ReadDirectLinkInterfacesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinkInterfaces': value.directLinkInterfaces === undefined ? undefined : ((value.directLinkInterfaces as Array).map(DirectLinkInterfacesToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadDirectLinksRequest.ts b/src/models/ReadDirectLinksRequest.ts new file mode 100644 index 00000000..5e3a3a7a --- /dev/null +++ b/src/models/ReadDirectLinksRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersDirectLink, + FiltersDirectLinkFromJSON, + FiltersDirectLinkFromJSONTyped, + FiltersDirectLinkToJSON, +} from './FiltersDirectLink'; + +/** + * + * @export + * @interface ReadDirectLinksRequest + */ +export interface ReadDirectLinksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadDirectLinksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersDirectLink} + * @memberof ReadDirectLinksRequest + */ + filters?: FiltersDirectLink; +} + +export function ReadDirectLinksRequestFromJSON(json: any): ReadDirectLinksRequest { + return ReadDirectLinksRequestFromJSONTyped(json, false); +} + +export function ReadDirectLinksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinksRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersDirectLinkFromJSON(json['Filters']), + }; +} + +export function ReadDirectLinksRequestToJSON(value?: ReadDirectLinksRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersDirectLinkToJSON(value.filters), + }; +} + diff --git a/src/models/ReadDirectLinksResponse.ts b/src/models/ReadDirectLinksResponse.ts new file mode 100644 index 00000000..1ec9faee --- /dev/null +++ b/src/models/ReadDirectLinksResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + DirectLink, + DirectLinkFromJSON, + DirectLinkFromJSONTyped, + DirectLinkToJSON, +} from './DirectLink'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadDirectLinksResponse + */ +export interface ReadDirectLinksResponse { + /** + * Information about one or more DirectLinks. + * @type {Array} + * @memberof ReadDirectLinksResponse + */ + directLinks?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadDirectLinksResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadDirectLinksResponseFromJSON(json: any): ReadDirectLinksResponse { + return ReadDirectLinksResponseFromJSONTyped(json, false); +} + +export function ReadDirectLinksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDirectLinksResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directLinks': !exists(json, 'DirectLinks') ? undefined : ((json['DirectLinks'] as Array).map(DirectLinkFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadDirectLinksResponseToJSON(value?: ReadDirectLinksResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DirectLinks': value.directLinks === undefined ? undefined : ((value.directLinks as Array).map(DirectLinkToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadFlexibleGpuCatalogRequest.ts b/src/models/ReadFlexibleGpuCatalogRequest.ts new file mode 100644 index 00000000..8b72b3bb --- /dev/null +++ b/src/models/ReadFlexibleGpuCatalogRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadFlexibleGpuCatalogRequest + */ +export interface ReadFlexibleGpuCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadFlexibleGpuCatalogRequest + */ + dryRun?: boolean; +} + +export function ReadFlexibleGpuCatalogRequestFromJSON(json: any): ReadFlexibleGpuCatalogRequest { + return ReadFlexibleGpuCatalogRequestFromJSONTyped(json, false); +} + +export function ReadFlexibleGpuCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpuCatalogRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadFlexibleGpuCatalogRequestToJSON(value?: ReadFlexibleGpuCatalogRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadFlexibleGpuCatalogResponse.ts b/src/models/ReadFlexibleGpuCatalogResponse.ts new file mode 100644 index 00000000..ae5eda2b --- /dev/null +++ b/src/models/ReadFlexibleGpuCatalogResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FlexibleGpuCatalog, + FlexibleGpuCatalogFromJSON, + FlexibleGpuCatalogFromJSONTyped, + FlexibleGpuCatalogToJSON, +} from './FlexibleGpuCatalog'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadFlexibleGpuCatalogResponse + */ +export interface ReadFlexibleGpuCatalogResponse { + /** + * Information about one or more fGPUs available in the public catalog. + * @type {Array} + * @memberof ReadFlexibleGpuCatalogResponse + */ + flexibleGpuCatalog?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadFlexibleGpuCatalogResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadFlexibleGpuCatalogResponseFromJSON(json: any): ReadFlexibleGpuCatalogResponse { + return ReadFlexibleGpuCatalogResponseFromJSONTyped(json, false); +} + +export function ReadFlexibleGpuCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpuCatalogResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'flexibleGpuCatalog': !exists(json, 'FlexibleGpuCatalog') ? undefined : ((json['FlexibleGpuCatalog'] as Array).map(FlexibleGpuCatalogFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadFlexibleGpuCatalogResponseToJSON(value?: ReadFlexibleGpuCatalogResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'FlexibleGpuCatalog': value.flexibleGpuCatalog === undefined ? undefined : ((value.flexibleGpuCatalog as Array).map(FlexibleGpuCatalogToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadFlexibleGpusRequest.ts b/src/models/ReadFlexibleGpusRequest.ts new file mode 100644 index 00000000..69c2e323 --- /dev/null +++ b/src/models/ReadFlexibleGpusRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersFlexibleGpu, + FiltersFlexibleGpuFromJSON, + FiltersFlexibleGpuFromJSONTyped, + FiltersFlexibleGpuToJSON, +} from './FiltersFlexibleGpu'; + +/** + * + * @export + * @interface ReadFlexibleGpusRequest + */ +export interface ReadFlexibleGpusRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadFlexibleGpusRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersFlexibleGpu} + * @memberof ReadFlexibleGpusRequest + */ + filters?: FiltersFlexibleGpu; +} + +export function ReadFlexibleGpusRequestFromJSON(json: any): ReadFlexibleGpusRequest { + return ReadFlexibleGpusRequestFromJSONTyped(json, false); +} + +export function ReadFlexibleGpusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpusRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersFlexibleGpuFromJSON(json['Filters']), + }; +} + +export function ReadFlexibleGpusRequestToJSON(value?: ReadFlexibleGpusRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersFlexibleGpuToJSON(value.filters), + }; +} + diff --git a/src/models/ReadFlexibleGpusResponse.ts b/src/models/ReadFlexibleGpusResponse.ts new file mode 100644 index 00000000..a460f968 --- /dev/null +++ b/src/models/ReadFlexibleGpusResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FlexibleGpu, + FlexibleGpuFromJSON, + FlexibleGpuFromJSONTyped, + FlexibleGpuToJSON, +} from './FlexibleGpu'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadFlexibleGpusResponse + */ +export interface ReadFlexibleGpusResponse { + /** + * Information about one or more fGPUs. + * @type {Array} + * @memberof ReadFlexibleGpusResponse + */ + flexibleGpus?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadFlexibleGpusResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadFlexibleGpusResponseFromJSON(json: any): ReadFlexibleGpusResponse { + return ReadFlexibleGpusResponseFromJSONTyped(json, false); +} + +export function ReadFlexibleGpusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadFlexibleGpusResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'flexibleGpus': !exists(json, 'FlexibleGpus') ? undefined : ((json['FlexibleGpus'] as Array).map(FlexibleGpuFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadFlexibleGpusResponseToJSON(value?: ReadFlexibleGpusResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'FlexibleGpus': value.flexibleGpus === undefined ? undefined : ((value.flexibleGpus as Array).map(FlexibleGpuToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadImageExportTasksRequest.ts b/src/models/ReadImageExportTasksRequest.ts new file mode 100644 index 00000000..a780fc61 --- /dev/null +++ b/src/models/ReadImageExportTasksRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersExportTask, + FiltersExportTaskFromJSON, + FiltersExportTaskFromJSONTyped, + FiltersExportTaskToJSON, +} from './FiltersExportTask'; + +/** + * + * @export + * @interface ReadImageExportTasksRequest + */ +export interface ReadImageExportTasksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadImageExportTasksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersExportTask} + * @memberof ReadImageExportTasksRequest + */ + filters?: FiltersExportTask; +} + +export function ReadImageExportTasksRequestFromJSON(json: any): ReadImageExportTasksRequest { + return ReadImageExportTasksRequestFromJSONTyped(json, false); +} + +export function ReadImageExportTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImageExportTasksRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersExportTaskFromJSON(json['Filters']), + }; +} + +export function ReadImageExportTasksRequestToJSON(value?: ReadImageExportTasksRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersExportTaskToJSON(value.filters), + }; +} + diff --git a/src/models/ReadImageExportTasksResponse.ts b/src/models/ReadImageExportTasksResponse.ts new file mode 100644 index 00000000..c1fc021b --- /dev/null +++ b/src/models/ReadImageExportTasksResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ImageExportTask, + ImageExportTaskFromJSON, + ImageExportTaskFromJSONTyped, + ImageExportTaskToJSON, +} from './ImageExportTask'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadImageExportTasksResponse + */ +export interface ReadImageExportTasksResponse { + /** + * Information about one or more image export tasks. + * @type {Array} + * @memberof ReadImageExportTasksResponse + */ + imageExportTasks?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadImageExportTasksResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadImageExportTasksResponseFromJSON(json: any): ReadImageExportTasksResponse { + return ReadImageExportTasksResponseFromJSONTyped(json, false); +} + +export function ReadImageExportTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImageExportTasksResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'imageExportTasks': !exists(json, 'ImageExportTasks') ? undefined : ((json['ImageExportTasks'] as Array).map(ImageExportTaskFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadImageExportTasksResponseToJSON(value?: ReadImageExportTasksResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ImageExportTasks': value.imageExportTasks === undefined ? undefined : ((value.imageExportTasks as Array).map(ImageExportTaskToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadImagesRequest.ts b/src/models/ReadImagesRequest.ts new file mode 100644 index 00000000..0f38e54a --- /dev/null +++ b/src/models/ReadImagesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersImage, + FiltersImageFromJSON, + FiltersImageFromJSONTyped, + FiltersImageToJSON, +} from './FiltersImage'; + +/** + * + * @export + * @interface ReadImagesRequest + */ +export interface ReadImagesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadImagesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersImage} + * @memberof ReadImagesRequest + */ + filters?: FiltersImage; +} + +export function ReadImagesRequestFromJSON(json: any): ReadImagesRequest { + return ReadImagesRequestFromJSONTyped(json, false); +} + +export function ReadImagesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImagesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersImageFromJSON(json['Filters']), + }; +} + +export function ReadImagesRequestToJSON(value?: ReadImagesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersImageToJSON(value.filters), + }; +} + diff --git a/src/models/ReadImagesResponse.ts b/src/models/ReadImagesResponse.ts new file mode 100644 index 00000000..839f88d4 --- /dev/null +++ b/src/models/ReadImagesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Image, + ImageFromJSON, + ImageFromJSONTyped, + ImageToJSON, +} from './Image'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadImagesResponse + */ +export interface ReadImagesResponse { + /** + * Information about one or more OMIs. + * @type {Array} + * @memberof ReadImagesResponse + */ + images?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadImagesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadImagesResponseFromJSON(json: any): ReadImagesResponse { + return ReadImagesResponseFromJSONTyped(json, false); +} + +export function ReadImagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadImagesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'images': !exists(json, 'Images') ? undefined : ((json['Images'] as Array).map(ImageFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadImagesResponseToJSON(value?: ReadImagesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Images': value.images === undefined ? undefined : ((value.images as Array).map(ImageToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadInternetServicesRequest.ts b/src/models/ReadInternetServicesRequest.ts new file mode 100644 index 00000000..5f285ee1 --- /dev/null +++ b/src/models/ReadInternetServicesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersInternetService, + FiltersInternetServiceFromJSON, + FiltersInternetServiceFromJSONTyped, + FiltersInternetServiceToJSON, +} from './FiltersInternetService'; + +/** + * + * @export + * @interface ReadInternetServicesRequest + */ +export interface ReadInternetServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadInternetServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersInternetService} + * @memberof ReadInternetServicesRequest + */ + filters?: FiltersInternetService; +} + +export function ReadInternetServicesRequestFromJSON(json: any): ReadInternetServicesRequest { + return ReadInternetServicesRequestFromJSONTyped(json, false); +} + +export function ReadInternetServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadInternetServicesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersInternetServiceFromJSON(json['Filters']), + }; +} + +export function ReadInternetServicesRequestToJSON(value?: ReadInternetServicesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersInternetServiceToJSON(value.filters), + }; +} + diff --git a/src/models/ReadInternetServicesResponse.ts b/src/models/ReadInternetServicesResponse.ts new file mode 100644 index 00000000..cecb8d35 --- /dev/null +++ b/src/models/ReadInternetServicesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + InternetService, + InternetServiceFromJSON, + InternetServiceFromJSONTyped, + InternetServiceToJSON, +} from './InternetService'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadInternetServicesResponse + */ +export interface ReadInternetServicesResponse { + /** + * Information about one or more Internet services. + * @type {Array} + * @memberof ReadInternetServicesResponse + */ + internetServices?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadInternetServicesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadInternetServicesResponseFromJSON(json: any): ReadInternetServicesResponse { + return ReadInternetServicesResponseFromJSONTyped(json, false); +} + +export function ReadInternetServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadInternetServicesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'internetServices': !exists(json, 'InternetServices') ? undefined : ((json['InternetServices'] as Array).map(InternetServiceFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadInternetServicesResponseToJSON(value?: ReadInternetServicesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'InternetServices': value.internetServices === undefined ? undefined : ((value.internetServices as Array).map(InternetServiceToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadKeypairsRequest.ts b/src/models/ReadKeypairsRequest.ts new file mode 100644 index 00000000..96d463be --- /dev/null +++ b/src/models/ReadKeypairsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersKeypair, + FiltersKeypairFromJSON, + FiltersKeypairFromJSONTyped, + FiltersKeypairToJSON, +} from './FiltersKeypair'; + +/** + * + * @export + * @interface ReadKeypairsRequest + */ +export interface ReadKeypairsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadKeypairsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersKeypair} + * @memberof ReadKeypairsRequest + */ + filters?: FiltersKeypair; +} + +export function ReadKeypairsRequestFromJSON(json: any): ReadKeypairsRequest { + return ReadKeypairsRequestFromJSONTyped(json, false); +} + +export function ReadKeypairsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadKeypairsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersKeypairFromJSON(json['Filters']), + }; +} + +export function ReadKeypairsRequestToJSON(value?: ReadKeypairsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersKeypairToJSON(value.filters), + }; +} + diff --git a/src/models/ReadKeypairsResponse.ts b/src/models/ReadKeypairsResponse.ts new file mode 100644 index 00000000..314f2374 --- /dev/null +++ b/src/models/ReadKeypairsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Keypair, + KeypairFromJSON, + KeypairFromJSONTyped, + KeypairToJSON, +} from './Keypair'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadKeypairsResponse + */ +export interface ReadKeypairsResponse { + /** + * Information about one or more keypairs. + * @type {Array} + * @memberof ReadKeypairsResponse + */ + keypairs?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadKeypairsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadKeypairsResponseFromJSON(json: any): ReadKeypairsResponse { + return ReadKeypairsResponseFromJSONTyped(json, false); +} + +export function ReadKeypairsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadKeypairsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'keypairs': !exists(json, 'Keypairs') ? undefined : ((json['Keypairs'] as Array).map(KeypairFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadKeypairsResponseToJSON(value?: ReadKeypairsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Keypairs': value.keypairs === undefined ? undefined : ((value.keypairs as Array).map(KeypairToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadListenerRulesRequest.ts b/src/models/ReadListenerRulesRequest.ts new file mode 100644 index 00000000..da05bda3 --- /dev/null +++ b/src/models/ReadListenerRulesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersListenerRule, + FiltersListenerRuleFromJSON, + FiltersListenerRuleFromJSONTyped, + FiltersListenerRuleToJSON, +} from './FiltersListenerRule'; + +/** + * + * @export + * @interface ReadListenerRulesRequest + */ +export interface ReadListenerRulesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadListenerRulesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersListenerRule} + * @memberof ReadListenerRulesRequest + */ + filters?: FiltersListenerRule; +} + +export function ReadListenerRulesRequestFromJSON(json: any): ReadListenerRulesRequest { + return ReadListenerRulesRequestFromJSONTyped(json, false); +} + +export function ReadListenerRulesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadListenerRulesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersListenerRuleFromJSON(json['Filters']), + }; +} + +export function ReadListenerRulesRequestToJSON(value?: ReadListenerRulesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersListenerRuleToJSON(value.filters), + }; +} + diff --git a/src/models/ReadListenerRulesResponse.ts b/src/models/ReadListenerRulesResponse.ts new file mode 100644 index 00000000..b9c9ce10 --- /dev/null +++ b/src/models/ReadListenerRulesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ListenerRule, + ListenerRuleFromJSON, + ListenerRuleFromJSONTyped, + ListenerRuleToJSON, +} from './ListenerRule'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadListenerRulesResponse + */ +export interface ReadListenerRulesResponse { + /** + * The list of the rules to describe. + * @type {Array} + * @memberof ReadListenerRulesResponse + */ + listenerRules?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadListenerRulesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadListenerRulesResponseFromJSON(json: any): ReadListenerRulesResponse { + return ReadListenerRulesResponseFromJSONTyped(json, false); +} + +export function ReadListenerRulesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadListenerRulesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'listenerRules': !exists(json, 'ListenerRules') ? undefined : ((json['ListenerRules'] as Array).map(ListenerRuleFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadListenerRulesResponseToJSON(value?: ReadListenerRulesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ListenerRules': value.listenerRules === undefined ? undefined : ((value.listenerRules as Array).map(ListenerRuleToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadLoadBalancerTagsRequest.ts b/src/models/ReadLoadBalancerTagsRequest.ts new file mode 100644 index 00000000..a86755e8 --- /dev/null +++ b/src/models/ReadLoadBalancerTagsRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadLoadBalancerTagsRequest + */ +export interface ReadLoadBalancerTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLoadBalancerTagsRequest + */ + dryRun?: boolean; + /** + * One or more load balancer names. + * @type {Array} + * @memberof ReadLoadBalancerTagsRequest + */ + loadBalancerNames: Array; +} + +export function ReadLoadBalancerTagsRequestFromJSON(json: any): ReadLoadBalancerTagsRequest { + return ReadLoadBalancerTagsRequestFromJSONTyped(json, false); +} + +export function ReadLoadBalancerTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancerTagsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerNames': json['LoadBalancerNames'], + }; +} + +export function ReadLoadBalancerTagsRequestToJSON(value?: ReadLoadBalancerTagsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LoadBalancerNames': value.loadBalancerNames, + }; +} + diff --git a/src/models/ReadLoadBalancerTagsResponse.ts b/src/models/ReadLoadBalancerTagsResponse.ts new file mode 100644 index 00000000..64122627 --- /dev/null +++ b/src/models/ReadLoadBalancerTagsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancerTag, + LoadBalancerTagFromJSON, + LoadBalancerTagFromJSONTyped, + LoadBalancerTagToJSON, +} from './LoadBalancerTag'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadLoadBalancerTagsResponse + */ +export interface ReadLoadBalancerTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadLoadBalancerTagsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more load balancer tags. + * @type {Array} + * @memberof ReadLoadBalancerTagsResponse + */ + tags?: Array; +} + +export function ReadLoadBalancerTagsResponseFromJSON(json: any): ReadLoadBalancerTagsResponse { + return ReadLoadBalancerTagsResponseFromJSONTyped(json, false); +} + +export function ReadLoadBalancerTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancerTagsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(LoadBalancerTagFromJSON)), + }; +} + +export function ReadLoadBalancerTagsResponseToJSON(value?: ReadLoadBalancerTagsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(LoadBalancerTagToJSON)), + }; +} + diff --git a/src/models/ReadLoadBalancersRequest.ts b/src/models/ReadLoadBalancersRequest.ts new file mode 100644 index 00000000..131528e0 --- /dev/null +++ b/src/models/ReadLoadBalancersRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersLoadBalancer, + FiltersLoadBalancerFromJSON, + FiltersLoadBalancerFromJSONTyped, + FiltersLoadBalancerToJSON, +} from './FiltersLoadBalancer'; + +/** + * + * @export + * @interface ReadLoadBalancersRequest + */ +export interface ReadLoadBalancersRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLoadBalancersRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersLoadBalancer} + * @memberof ReadLoadBalancersRequest + */ + filters?: FiltersLoadBalancer; +} + +export function ReadLoadBalancersRequestFromJSON(json: any): ReadLoadBalancersRequest { + return ReadLoadBalancersRequestFromJSONTyped(json, false); +} + +export function ReadLoadBalancersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancersRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersLoadBalancerFromJSON(json['Filters']), + }; +} + +export function ReadLoadBalancersRequestToJSON(value?: ReadLoadBalancersRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersLoadBalancerToJSON(value.filters), + }; +} + diff --git a/src/models/ReadLoadBalancersResponse.ts b/src/models/ReadLoadBalancersResponse.ts new file mode 100644 index 00000000..d12de5b9 --- /dev/null +++ b/src/models/ReadLoadBalancersResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadLoadBalancersResponse + */ +export interface ReadLoadBalancersResponse { + /** + * Information about one or more load balancers. + * @type {Array} + * @memberof ReadLoadBalancersResponse + */ + loadBalancers?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadLoadBalancersResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadLoadBalancersResponseFromJSON(json: any): ReadLoadBalancersResponse { + return ReadLoadBalancersResponseFromJSONTyped(json, false); +} + +export function ReadLoadBalancersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLoadBalancersResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancers': !exists(json, 'LoadBalancers') ? undefined : ((json['LoadBalancers'] as Array).map(LoadBalancerFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadLoadBalancersResponseToJSON(value?: ReadLoadBalancersResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancers': value.loadBalancers === undefined ? undefined : ((value.loadBalancers as Array).map(LoadBalancerToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadLocationsRequest.ts b/src/models/ReadLocationsRequest.ts new file mode 100644 index 00000000..ec3d7289 --- /dev/null +++ b/src/models/ReadLocationsRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadLocationsRequest + */ +export interface ReadLocationsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadLocationsRequest + */ + dryRun?: boolean; +} + +export function ReadLocationsRequestFromJSON(json: any): ReadLocationsRequest { + return ReadLocationsRequestFromJSONTyped(json, false); +} + +export function ReadLocationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLocationsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadLocationsRequestToJSON(value?: ReadLocationsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadLocationsResponse.ts b/src/models/ReadLocationsResponse.ts new file mode 100644 index 00000000..ebdb9396 --- /dev/null +++ b/src/models/ReadLocationsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Location, + LocationFromJSON, + LocationFromJSONTyped, + LocationToJSON, +} from './Location'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadLocationsResponse + */ +export interface ReadLocationsResponse { + /** + * Information about one or more locations. + * @type {Array} + * @memberof ReadLocationsResponse + */ + locations?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadLocationsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadLocationsResponseFromJSON(json: any): ReadLocationsResponse { + return ReadLocationsResponseFromJSONTyped(json, false); +} + +export function ReadLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadLocationsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'locations': !exists(json, 'Locations') ? undefined : ((json['Locations'] as Array).map(LocationFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadLocationsResponseToJSON(value?: ReadLocationsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Locations': value.locations === undefined ? undefined : ((value.locations as Array).map(LocationToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadNatServicesRequest.ts b/src/models/ReadNatServicesRequest.ts new file mode 100644 index 00000000..ed46effb --- /dev/null +++ b/src/models/ReadNatServicesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersNatService, + FiltersNatServiceFromJSON, + FiltersNatServiceFromJSONTyped, + FiltersNatServiceToJSON, +} from './FiltersNatService'; + +/** + * + * @export + * @interface ReadNatServicesRequest + */ +export interface ReadNatServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNatServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNatService} + * @memberof ReadNatServicesRequest + */ + filters?: FiltersNatService; +} + +export function ReadNatServicesRequestFromJSON(json: any): ReadNatServicesRequest { + return ReadNatServicesRequestFromJSONTyped(json, false); +} + +export function ReadNatServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNatServicesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNatServiceFromJSON(json['Filters']), + }; +} + +export function ReadNatServicesRequestToJSON(value?: ReadNatServicesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersNatServiceToJSON(value.filters), + }; +} + diff --git a/src/models/ReadNatServicesResponse.ts b/src/models/ReadNatServicesResponse.ts new file mode 100644 index 00000000..23917610 --- /dev/null +++ b/src/models/ReadNatServicesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NatService, + NatServiceFromJSON, + NatServiceFromJSONTyped, + NatServiceToJSON, +} from './NatService'; + +/** + * + * @export + * @interface ReadNatServicesResponse + */ +export interface ReadNatServicesResponse { + /** + * Information about one or more NAT services. + * @type {Array} + * @memberof ReadNatServicesResponse + */ + natServices?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNatServicesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadNatServicesResponseFromJSON(json: any): ReadNatServicesResponse { + return ReadNatServicesResponseFromJSONTyped(json, false); +} + +export function ReadNatServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNatServicesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'natServices': !exists(json, 'NatServices') ? undefined : ((json['NatServices'] as Array).map(NatServiceFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadNatServicesResponseToJSON(value?: ReadNatServicesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NatServices': value.natServices === undefined ? undefined : ((value.natServices as Array).map(NatServiceToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadNetAccessPointServicesRequest.ts b/src/models/ReadNetAccessPointServicesRequest.ts new file mode 100644 index 00000000..8324d9f0 --- /dev/null +++ b/src/models/ReadNetAccessPointServicesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersService, + FiltersServiceFromJSON, + FiltersServiceFromJSONTyped, + FiltersServiceToJSON, +} from './FiltersService'; + +/** + * + * @export + * @interface ReadNetAccessPointServicesRequest + */ +export interface ReadNetAccessPointServicesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetAccessPointServicesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersService} + * @memberof ReadNetAccessPointServicesRequest + */ + filters?: FiltersService; +} + +export function ReadNetAccessPointServicesRequestFromJSON(json: any): ReadNetAccessPointServicesRequest { + return ReadNetAccessPointServicesRequestFromJSONTyped(json, false); +} + +export function ReadNetAccessPointServicesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointServicesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersServiceFromJSON(json['Filters']), + }; +} + +export function ReadNetAccessPointServicesRequestToJSON(value?: ReadNetAccessPointServicesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersServiceToJSON(value.filters), + }; +} + diff --git a/src/models/ReadNetAccessPointServicesResponse.ts b/src/models/ReadNetAccessPointServicesResponse.ts new file mode 100644 index 00000000..7a7b1cd6 --- /dev/null +++ b/src/models/ReadNetAccessPointServicesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Service, + ServiceFromJSON, + ServiceFromJSONTyped, + ServiceToJSON, +} from './Service'; + +/** + * + * @export + * @interface ReadNetAccessPointServicesResponse + */ +export interface ReadNetAccessPointServicesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetAccessPointServicesResponse + */ + responseContext?: ModelResponseContext; + /** + * The names of the services you can use for Net access points. + * @type {Array} + * @memberof ReadNetAccessPointServicesResponse + */ + services?: Array; +} + +export function ReadNetAccessPointServicesResponseFromJSON(json: any): ReadNetAccessPointServicesResponse { + return ReadNetAccessPointServicesResponseFromJSONTyped(json, false); +} + +export function ReadNetAccessPointServicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointServicesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'services': !exists(json, 'Services') ? undefined : ((json['Services'] as Array).map(ServiceFromJSON)), + }; +} + +export function ReadNetAccessPointServicesResponseToJSON(value?: ReadNetAccessPointServicesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Services': value.services === undefined ? undefined : ((value.services as Array).map(ServiceToJSON)), + }; +} + diff --git a/src/models/ReadNetAccessPointsRequest.ts b/src/models/ReadNetAccessPointsRequest.ts new file mode 100644 index 00000000..e50d55d1 --- /dev/null +++ b/src/models/ReadNetAccessPointsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersNetAccessPoint, + FiltersNetAccessPointFromJSON, + FiltersNetAccessPointFromJSONTyped, + FiltersNetAccessPointToJSON, +} from './FiltersNetAccessPoint'; + +/** + * + * @export + * @interface ReadNetAccessPointsRequest + */ +export interface ReadNetAccessPointsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetAccessPointsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNetAccessPoint} + * @memberof ReadNetAccessPointsRequest + */ + filters?: FiltersNetAccessPoint; +} + +export function ReadNetAccessPointsRequestFromJSON(json: any): ReadNetAccessPointsRequest { + return ReadNetAccessPointsRequestFromJSONTyped(json, false); +} + +export function ReadNetAccessPointsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNetAccessPointFromJSON(json['Filters']), + }; +} + +export function ReadNetAccessPointsRequestToJSON(value?: ReadNetAccessPointsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersNetAccessPointToJSON(value.filters), + }; +} + diff --git a/src/models/ReadNetAccessPointsResponse.ts b/src/models/ReadNetAccessPointsResponse.ts new file mode 100644 index 00000000..6209e87a --- /dev/null +++ b/src/models/ReadNetAccessPointsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetAccessPoint, + NetAccessPointFromJSON, + NetAccessPointFromJSONTyped, + NetAccessPointToJSON, +} from './NetAccessPoint'; + +/** + * + * @export + * @interface ReadNetAccessPointsResponse + */ +export interface ReadNetAccessPointsResponse { + /** + * One or more Net access points. + * @type {Array} + * @memberof ReadNetAccessPointsResponse + */ + netAccessPoints?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetAccessPointsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadNetAccessPointsResponseFromJSON(json: any): ReadNetAccessPointsResponse { + return ReadNetAccessPointsResponseFromJSONTyped(json, false); +} + +export function ReadNetAccessPointsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetAccessPointsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netAccessPoints': !exists(json, 'NetAccessPoints') ? undefined : ((json['NetAccessPoints'] as Array).map(NetAccessPointFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadNetAccessPointsResponseToJSON(value?: ReadNetAccessPointsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetAccessPoints': value.netAccessPoints === undefined ? undefined : ((value.netAccessPoints as Array).map(NetAccessPointToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadNetPeeringsRequest.ts b/src/models/ReadNetPeeringsRequest.ts new file mode 100644 index 00000000..370ebbb2 --- /dev/null +++ b/src/models/ReadNetPeeringsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersNetPeering, + FiltersNetPeeringFromJSON, + FiltersNetPeeringFromJSONTyped, + FiltersNetPeeringToJSON, +} from './FiltersNetPeering'; + +/** + * + * @export + * @interface ReadNetPeeringsRequest + */ +export interface ReadNetPeeringsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetPeeringsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNetPeering} + * @memberof ReadNetPeeringsRequest + */ + filters?: FiltersNetPeering; +} + +export function ReadNetPeeringsRequestFromJSON(json: any): ReadNetPeeringsRequest { + return ReadNetPeeringsRequestFromJSONTyped(json, false); +} + +export function ReadNetPeeringsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetPeeringsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNetPeeringFromJSON(json['Filters']), + }; +} + +export function ReadNetPeeringsRequestToJSON(value?: ReadNetPeeringsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersNetPeeringToJSON(value.filters), + }; +} + diff --git a/src/models/ReadNetPeeringsResponse.ts b/src/models/ReadNetPeeringsResponse.ts new file mode 100644 index 00000000..ca5f0562 --- /dev/null +++ b/src/models/ReadNetPeeringsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetPeering, + NetPeeringFromJSON, + NetPeeringFromJSONTyped, + NetPeeringToJSON, +} from './NetPeering'; + +/** + * + * @export + * @interface ReadNetPeeringsResponse + */ +export interface ReadNetPeeringsResponse { + /** + * Information about one or more Net peering connections. + * @type {Array} + * @memberof ReadNetPeeringsResponse + */ + netPeerings?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetPeeringsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadNetPeeringsResponseFromJSON(json: any): ReadNetPeeringsResponse { + return ReadNetPeeringsResponseFromJSONTyped(json, false); +} + +export function ReadNetPeeringsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetPeeringsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netPeerings': !exists(json, 'NetPeerings') ? undefined : ((json['NetPeerings'] as Array).map(NetPeeringFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadNetPeeringsResponseToJSON(value?: ReadNetPeeringsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetPeerings': value.netPeerings === undefined ? undefined : ((value.netPeerings as Array).map(NetPeeringToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadNetsRequest.ts b/src/models/ReadNetsRequest.ts new file mode 100644 index 00000000..6a09990c --- /dev/null +++ b/src/models/ReadNetsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersNet, + FiltersNetFromJSON, + FiltersNetFromJSONTyped, + FiltersNetToJSON, +} from './FiltersNet'; + +/** + * + * @export + * @interface ReadNetsRequest + */ +export interface ReadNetsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNetsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNet} + * @memberof ReadNetsRequest + */ + filters?: FiltersNet; +} + +export function ReadNetsRequestFromJSON(json: any): ReadNetsRequest { + return ReadNetsRequestFromJSONTyped(json, false); +} + +export function ReadNetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNetFromJSON(json['Filters']), + }; +} + +export function ReadNetsRequestToJSON(value?: ReadNetsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersNetToJSON(value.filters), + }; +} + diff --git a/src/models/ReadNetsResponse.ts b/src/models/ReadNetsResponse.ts new file mode 100644 index 00000000..c645ba83 --- /dev/null +++ b/src/models/ReadNetsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Net, + NetFromJSON, + NetFromJSONTyped, + NetToJSON, +} from './Net'; + +/** + * + * @export + * @interface ReadNetsResponse + */ +export interface ReadNetsResponse { + /** + * Information about the described Nets. + * @type {Array} + * @memberof ReadNetsResponse + */ + nets?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNetsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadNetsResponseFromJSON(json: any): ReadNetsResponse { + return ReadNetsResponseFromJSONTyped(json, false); +} + +export function ReadNetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNetsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nets': !exists(json, 'Nets') ? undefined : ((json['Nets'] as Array).map(NetFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadNetsResponseToJSON(value?: ReadNetsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Nets': value.nets === undefined ? undefined : ((value.nets as Array).map(NetToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadNicsRequest.ts b/src/models/ReadNicsRequest.ts new file mode 100644 index 00000000..c9a6c7d6 --- /dev/null +++ b/src/models/ReadNicsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersNic, + FiltersNicFromJSON, + FiltersNicFromJSONTyped, + FiltersNicToJSON, +} from './FiltersNic'; + +/** + * + * @export + * @interface ReadNicsRequest + */ +export interface ReadNicsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadNicsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersNic} + * @memberof ReadNicsRequest + */ + filters?: FiltersNic; +} + +export function ReadNicsRequestFromJSON(json: any): ReadNicsRequest { + return ReadNicsRequestFromJSONTyped(json, false); +} + +export function ReadNicsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNicsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersNicFromJSON(json['Filters']), + }; +} + +export function ReadNicsRequestToJSON(value?: ReadNicsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersNicToJSON(value.filters), + }; +} + diff --git a/src/models/ReadNicsResponse.ts b/src/models/ReadNicsResponse.ts new file mode 100644 index 00000000..a8de2018 --- /dev/null +++ b/src/models/ReadNicsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Nic, + NicFromJSON, + NicFromJSONTyped, + NicToJSON, +} from './Nic'; + +/** + * + * @export + * @interface ReadNicsResponse + */ +export interface ReadNicsResponse { + /** + * Information about one or more NICs. + * @type {Array} + * @memberof ReadNicsResponse + */ + nics?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadNicsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadNicsResponseFromJSON(json: any): ReadNicsResponse { + return ReadNicsResponseFromJSONTyped(json, false); +} + +export function ReadNicsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadNicsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nics': !exists(json, 'Nics') ? undefined : ((json['Nics'] as Array).map(NicFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadNicsResponseToJSON(value?: ReadNicsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Nics': value.nics === undefined ? undefined : ((value.nics as Array).map(NicToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadProductTypesRequest.ts b/src/models/ReadProductTypesRequest.ts new file mode 100644 index 00000000..98765e5d --- /dev/null +++ b/src/models/ReadProductTypesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersProductType, + FiltersProductTypeFromJSON, + FiltersProductTypeFromJSONTyped, + FiltersProductTypeToJSON, +} from './FiltersProductType'; + +/** + * + * @export + * @interface ReadProductTypesRequest + */ +export interface ReadProductTypesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadProductTypesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersProductType} + * @memberof ReadProductTypesRequest + */ + filters?: FiltersProductType; +} + +export function ReadProductTypesRequestFromJSON(json: any): ReadProductTypesRequest { + return ReadProductTypesRequestFromJSONTyped(json, false); +} + +export function ReadProductTypesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadProductTypesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersProductTypeFromJSON(json['Filters']), + }; +} + +export function ReadProductTypesRequestToJSON(value?: ReadProductTypesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersProductTypeToJSON(value.filters), + }; +} + diff --git a/src/models/ReadProductTypesResponse.ts b/src/models/ReadProductTypesResponse.ts new file mode 100644 index 00000000..e6ac44cf --- /dev/null +++ b/src/models/ReadProductTypesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + ProductType, + ProductTypeFromJSON, + ProductTypeFromJSONTyped, + ProductTypeToJSON, +} from './ProductType'; + +/** + * + * @export + * @interface ReadProductTypesResponse + */ +export interface ReadProductTypesResponse { + /** + * Information about one or more product types. + * @type {Array} + * @memberof ReadProductTypesResponse + */ + productTypes?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadProductTypesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadProductTypesResponseFromJSON(json: any): ReadProductTypesResponse { + return ReadProductTypesResponseFromJSONTyped(json, false); +} + +export function ReadProductTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadProductTypesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'productTypes': !exists(json, 'ProductTypes') ? undefined : ((json['ProductTypes'] as Array).map(ProductTypeFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadProductTypesResponseToJSON(value?: ReadProductTypesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ProductTypes': value.productTypes === undefined ? undefined : ((value.productTypes as Array).map(ProductTypeToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadPublicCatalogRequest.ts b/src/models/ReadPublicCatalogRequest.ts new file mode 100644 index 00000000..086a2341 --- /dev/null +++ b/src/models/ReadPublicCatalogRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadPublicCatalogRequest + */ +export interface ReadPublicCatalogRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicCatalogRequest + */ + dryRun?: boolean; +} + +export function ReadPublicCatalogRequestFromJSON(json: any): ReadPublicCatalogRequest { + return ReadPublicCatalogRequestFromJSONTyped(json, false); +} + +export function ReadPublicCatalogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicCatalogRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadPublicCatalogRequestToJSON(value?: ReadPublicCatalogRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadPublicCatalogResponse.ts b/src/models/ReadPublicCatalogResponse.ts new file mode 100644 index 00000000..7f01f57f --- /dev/null +++ b/src/models/ReadPublicCatalogResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Catalog, + CatalogFromJSON, + CatalogFromJSONTyped, + CatalogToJSON, +} from './Catalog'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadPublicCatalogResponse + */ +export interface ReadPublicCatalogResponse { + /** + * + * @type {Catalog} + * @memberof ReadPublicCatalogResponse + */ + catalog?: Catalog; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicCatalogResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadPublicCatalogResponseFromJSON(json: any): ReadPublicCatalogResponse { + return ReadPublicCatalogResponseFromJSONTyped(json, false); +} + +export function ReadPublicCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicCatalogResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'catalog': !exists(json, 'Catalog') ? undefined : CatalogFromJSON(json['Catalog']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadPublicCatalogResponseToJSON(value?: ReadPublicCatalogResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Catalog': CatalogToJSON(value.catalog), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadPublicIpRangesRequest.ts b/src/models/ReadPublicIpRangesRequest.ts new file mode 100644 index 00000000..0cce57a8 --- /dev/null +++ b/src/models/ReadPublicIpRangesRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadPublicIpRangesRequest + */ +export interface ReadPublicIpRangesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicIpRangesRequest + */ + dryRun?: boolean; +} + +export function ReadPublicIpRangesRequestFromJSON(json: any): ReadPublicIpRangesRequest { + return ReadPublicIpRangesRequestFromJSONTyped(json, false); +} + +export function ReadPublicIpRangesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpRangesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadPublicIpRangesRequestToJSON(value?: ReadPublicIpRangesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadPublicIpRangesResponse.ts b/src/models/ReadPublicIpRangesResponse.ts new file mode 100644 index 00000000..eb81f5fa --- /dev/null +++ b/src/models/ReadPublicIpRangesResponse.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadPublicIpRangesResponse + */ +export interface ReadPublicIpRangesResponse { + /** + * The list of public IPv4 addresses used in the Region, in CIDR notation. + * @type {Array} + * @memberof ReadPublicIpRangesResponse + */ + publicIps?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicIpRangesResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadPublicIpRangesResponseFromJSON(json: any): ReadPublicIpRangesResponse { + return ReadPublicIpRangesResponseFromJSONTyped(json, false); +} + +export function ReadPublicIpRangesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpRangesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'publicIps': !exists(json, 'PublicIps') ? undefined : json['PublicIps'], + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadPublicIpRangesResponseToJSON(value?: ReadPublicIpRangesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'PublicIps': value.publicIps, + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadPublicIpsRequest.ts b/src/models/ReadPublicIpsRequest.ts new file mode 100644 index 00000000..4fe80efe --- /dev/null +++ b/src/models/ReadPublicIpsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersPublicIp, + FiltersPublicIpFromJSON, + FiltersPublicIpFromJSONTyped, + FiltersPublicIpToJSON, +} from './FiltersPublicIp'; + +/** + * + * @export + * @interface ReadPublicIpsRequest + */ +export interface ReadPublicIpsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadPublicIpsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersPublicIp} + * @memberof ReadPublicIpsRequest + */ + filters?: FiltersPublicIp; +} + +export function ReadPublicIpsRequestFromJSON(json: any): ReadPublicIpsRequest { + return ReadPublicIpsRequestFromJSONTyped(json, false); +} + +export function ReadPublicIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersPublicIpFromJSON(json['Filters']), + }; +} + +export function ReadPublicIpsRequestToJSON(value?: ReadPublicIpsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersPublicIpToJSON(value.filters), + }; +} + diff --git a/src/models/ReadPublicIpsResponse.ts b/src/models/ReadPublicIpsResponse.ts new file mode 100644 index 00000000..c27253f6 --- /dev/null +++ b/src/models/ReadPublicIpsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + PublicIp, + PublicIpFromJSON, + PublicIpFromJSONTyped, + PublicIpToJSON, +} from './PublicIp'; + +/** + * + * @export + * @interface ReadPublicIpsResponse + */ +export interface ReadPublicIpsResponse { + /** + * Information about one or more public IPs. + * @type {Array} + * @memberof ReadPublicIpsResponse + */ + publicIps?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadPublicIpsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadPublicIpsResponseFromJSON(json: any): ReadPublicIpsResponse { + return ReadPublicIpsResponseFromJSONTyped(json, false); +} + +export function ReadPublicIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadPublicIpsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'publicIps': !exists(json, 'PublicIps') ? undefined : ((json['PublicIps'] as Array).map(PublicIpFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadPublicIpsResponseToJSON(value?: ReadPublicIpsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'PublicIps': value.publicIps === undefined ? undefined : ((value.publicIps as Array).map(PublicIpToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadQuotasRequest.ts b/src/models/ReadQuotasRequest.ts new file mode 100644 index 00000000..8b5acc21 --- /dev/null +++ b/src/models/ReadQuotasRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersQuota, + FiltersQuotaFromJSON, + FiltersQuotaFromJSONTyped, + FiltersQuotaToJSON, +} from './FiltersQuota'; + +/** + * + * @export + * @interface ReadQuotasRequest + */ +export interface ReadQuotasRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadQuotasRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersQuota} + * @memberof ReadQuotasRequest + */ + filters?: FiltersQuota; +} + +export function ReadQuotasRequestFromJSON(json: any): ReadQuotasRequest { + return ReadQuotasRequestFromJSONTyped(json, false); +} + +export function ReadQuotasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadQuotasRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersQuotaFromJSON(json['Filters']), + }; +} + +export function ReadQuotasRequestToJSON(value?: ReadQuotasRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersQuotaToJSON(value.filters), + }; +} + diff --git a/src/models/ReadQuotasResponse.ts b/src/models/ReadQuotasResponse.ts new file mode 100644 index 00000000..58bee578 --- /dev/null +++ b/src/models/ReadQuotasResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + QuotaTypes, + QuotaTypesFromJSON, + QuotaTypesFromJSONTyped, + QuotaTypesToJSON, +} from './QuotaTypes'; + +/** + * + * @export + * @interface ReadQuotasResponse + */ +export interface ReadQuotasResponse { + /** + * Information about one or more quotas. + * @type {Array} + * @memberof ReadQuotasResponse + */ + quotaTypes?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadQuotasResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadQuotasResponseFromJSON(json: any): ReadQuotasResponse { + return ReadQuotasResponseFromJSONTyped(json, false); +} + +export function ReadQuotasResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadQuotasResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'quotaTypes': !exists(json, 'QuotaTypes') ? undefined : ((json['QuotaTypes'] as Array).map(QuotaTypesFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadQuotasResponseToJSON(value?: ReadQuotasResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'QuotaTypes': value.quotaTypes === undefined ? undefined : ((value.quotaTypes as Array).map(QuotaTypesToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadRegionsRequest.ts b/src/models/ReadRegionsRequest.ts new file mode 100644 index 00000000..4e4b971e --- /dev/null +++ b/src/models/ReadRegionsRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadRegionsRequest + */ +export interface ReadRegionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadRegionsRequest + */ + dryRun?: boolean; +} + +export function ReadRegionsRequestFromJSON(json: any): ReadRegionsRequest { + return ReadRegionsRequestFromJSONTyped(json, false); +} + +export function ReadRegionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRegionsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadRegionsRequestToJSON(value?: ReadRegionsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadRegionsResponse.ts b/src/models/ReadRegionsResponse.ts new file mode 100644 index 00000000..004e3bf0 --- /dev/null +++ b/src/models/ReadRegionsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Region, + RegionFromJSON, + RegionFromJSONTyped, + RegionToJSON, +} from './Region'; + +/** + * + * @export + * @interface ReadRegionsResponse + */ +export interface ReadRegionsResponse { + /** + * Information about one or more Regions. + * @type {Array} + * @memberof ReadRegionsResponse + */ + regions?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadRegionsResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadRegionsResponseFromJSON(json: any): ReadRegionsResponse { + return ReadRegionsResponseFromJSONTyped(json, false); +} + +export function ReadRegionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRegionsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'regions': !exists(json, 'Regions') ? undefined : ((json['Regions'] as Array).map(RegionFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadRegionsResponseToJSON(value?: ReadRegionsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Regions': value.regions === undefined ? undefined : ((value.regions as Array).map(RegionToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadRouteTablesRequest.ts b/src/models/ReadRouteTablesRequest.ts new file mode 100644 index 00000000..b0a8677e --- /dev/null +++ b/src/models/ReadRouteTablesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersRouteTable, + FiltersRouteTableFromJSON, + FiltersRouteTableFromJSONTyped, + FiltersRouteTableToJSON, +} from './FiltersRouteTable'; + +/** + * + * @export + * @interface ReadRouteTablesRequest + */ +export interface ReadRouteTablesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadRouteTablesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersRouteTable} + * @memberof ReadRouteTablesRequest + */ + filters?: FiltersRouteTable; +} + +export function ReadRouteTablesRequestFromJSON(json: any): ReadRouteTablesRequest { + return ReadRouteTablesRequestFromJSONTyped(json, false); +} + +export function ReadRouteTablesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRouteTablesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersRouteTableFromJSON(json['Filters']), + }; +} + +export function ReadRouteTablesRequestToJSON(value?: ReadRouteTablesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersRouteTableToJSON(value.filters), + }; +} + diff --git a/src/models/ReadRouteTablesResponse.ts b/src/models/ReadRouteTablesResponse.ts new file mode 100644 index 00000000..e6dcab11 --- /dev/null +++ b/src/models/ReadRouteTablesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + RouteTable, + RouteTableFromJSON, + RouteTableFromJSONTyped, + RouteTableToJSON, +} from './RouteTable'; + +/** + * + * @export + * @interface ReadRouteTablesResponse + */ +export interface ReadRouteTablesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadRouteTablesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more route tables. + * @type {Array} + * @memberof ReadRouteTablesResponse + */ + routeTables?: Array; +} + +export function ReadRouteTablesResponseFromJSON(json: any): ReadRouteTablesResponse { + return ReadRouteTablesResponseFromJSONTyped(json, false); +} + +export function ReadRouteTablesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadRouteTablesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTables': !exists(json, 'RouteTables') ? undefined : ((json['RouteTables'] as Array).map(RouteTableFromJSON)), + }; +} + +export function ReadRouteTablesResponseToJSON(value?: ReadRouteTablesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTables': value.routeTables === undefined ? undefined : ((value.routeTables as Array).map(RouteTableToJSON)), + }; +} + diff --git a/src/models/ReadSecretAccessKeyRequest.ts b/src/models/ReadSecretAccessKeyRequest.ts new file mode 100644 index 00000000..38500f52 --- /dev/null +++ b/src/models/ReadSecretAccessKeyRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadSecretAccessKeyRequest + */ +export interface ReadSecretAccessKeyRequest { + /** + * The ID of the access key. + * @type {string} + * @memberof ReadSecretAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSecretAccessKeyRequest + */ + dryRun?: boolean; +} + +export function ReadSecretAccessKeyRequestFromJSON(json: any): ReadSecretAccessKeyRequest { + return ReadSecretAccessKeyRequestFromJSONTyped(json, false); +} + +export function ReadSecretAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecretAccessKeyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function ReadSecretAccessKeyRequestToJSON(value?: ReadSecretAccessKeyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/ReadSecretAccessKeyResponse.ts b/src/models/ReadSecretAccessKeyResponse.ts new file mode 100644 index 00000000..8776a48c --- /dev/null +++ b/src/models/ReadSecretAccessKeyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccessKeySecretKey, + AccessKeySecretKeyFromJSON, + AccessKeySecretKeyFromJSONTyped, + AccessKeySecretKeyToJSON, +} from './AccessKeySecretKey'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadSecretAccessKeyResponse + */ +export interface ReadSecretAccessKeyResponse { + /** + * + * @type {AccessKeySecretKey} + * @memberof ReadSecretAccessKeyResponse + */ + accessKey?: AccessKeySecretKey; + /** + * + * @type {ModelResponseContext} + * @memberof ReadSecretAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadSecretAccessKeyResponseFromJSON(json: any): ReadSecretAccessKeyResponse { + return ReadSecretAccessKeyResponseFromJSONTyped(json, false); +} + +export function ReadSecretAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecretAccessKeyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKey': !exists(json, 'AccessKey') ? undefined : AccessKeySecretKeyFromJSON(json['AccessKey']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadSecretAccessKeyResponseToJSON(value?: ReadSecretAccessKeyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKey': AccessKeySecretKeyToJSON(value.accessKey), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadSecurityGroupsRequest.ts b/src/models/ReadSecurityGroupsRequest.ts new file mode 100644 index 00000000..96ae5c71 --- /dev/null +++ b/src/models/ReadSecurityGroupsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersSecurityGroup, + FiltersSecurityGroupFromJSON, + FiltersSecurityGroupFromJSONTyped, + FiltersSecurityGroupToJSON, +} from './FiltersSecurityGroup'; + +/** + * + * @export + * @interface ReadSecurityGroupsRequest + */ +export interface ReadSecurityGroupsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSecurityGroupsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSecurityGroup} + * @memberof ReadSecurityGroupsRequest + */ + filters?: FiltersSecurityGroup; +} + +export function ReadSecurityGroupsRequestFromJSON(json: any): ReadSecurityGroupsRequest { + return ReadSecurityGroupsRequestFromJSONTyped(json, false); +} + +export function ReadSecurityGroupsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecurityGroupsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSecurityGroupFromJSON(json['Filters']), + }; +} + +export function ReadSecurityGroupsRequestToJSON(value?: ReadSecurityGroupsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersSecurityGroupToJSON(value.filters), + }; +} + diff --git a/src/models/ReadSecurityGroupsResponse.ts b/src/models/ReadSecurityGroupsResponse.ts new file mode 100644 index 00000000..54c35f37 --- /dev/null +++ b/src/models/ReadSecurityGroupsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + SecurityGroup, + SecurityGroupFromJSON, + SecurityGroupFromJSONTyped, + SecurityGroupToJSON, +} from './SecurityGroup'; + +/** + * + * @export + * @interface ReadSecurityGroupsResponse + */ +export interface ReadSecurityGroupsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSecurityGroupsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more security groups. + * @type {Array} + * @memberof ReadSecurityGroupsResponse + */ + securityGroups?: Array; +} + +export function ReadSecurityGroupsResponseFromJSON(json: any): ReadSecurityGroupsResponse { + return ReadSecurityGroupsResponseFromJSONTyped(json, false); +} + +export function ReadSecurityGroupsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSecurityGroupsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : ((json['SecurityGroups'] as Array).map(SecurityGroupFromJSON)), + }; +} + +export function ReadSecurityGroupsResponseToJSON(value?: ReadSecurityGroupsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SecurityGroups': value.securityGroups === undefined ? undefined : ((value.securityGroups as Array).map(SecurityGroupToJSON)), + }; +} + diff --git a/src/models/ReadServerCertificatesRequest.ts b/src/models/ReadServerCertificatesRequest.ts new file mode 100644 index 00000000..f5f93485 --- /dev/null +++ b/src/models/ReadServerCertificatesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersServerCertificate, + FiltersServerCertificateFromJSON, + FiltersServerCertificateFromJSONTyped, + FiltersServerCertificateToJSON, +} from './FiltersServerCertificate'; + +/** + * + * @export + * @interface ReadServerCertificatesRequest + */ +export interface ReadServerCertificatesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadServerCertificatesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersServerCertificate} + * @memberof ReadServerCertificatesRequest + */ + filters?: FiltersServerCertificate; +} + +export function ReadServerCertificatesRequestFromJSON(json: any): ReadServerCertificatesRequest { + return ReadServerCertificatesRequestFromJSONTyped(json, false); +} + +export function ReadServerCertificatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadServerCertificatesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersServerCertificateFromJSON(json['Filters']), + }; +} + +export function ReadServerCertificatesRequestToJSON(value?: ReadServerCertificatesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersServerCertificateToJSON(value.filters), + }; +} + diff --git a/src/models/ReadServerCertificatesResponse.ts b/src/models/ReadServerCertificatesResponse.ts new file mode 100644 index 00000000..f3df557e --- /dev/null +++ b/src/models/ReadServerCertificatesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + ServerCertificate, + ServerCertificateFromJSON, + ServerCertificateFromJSONTyped, + ServerCertificateToJSON, +} from './ServerCertificate'; + +/** + * + * @export + * @interface ReadServerCertificatesResponse + */ +export interface ReadServerCertificatesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadServerCertificatesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more server certificates. + * @type {Array} + * @memberof ReadServerCertificatesResponse + */ + serverCertificates?: Array; +} + +export function ReadServerCertificatesResponseFromJSON(json: any): ReadServerCertificatesResponse { + return ReadServerCertificatesResponseFromJSONTyped(json, false); +} + +export function ReadServerCertificatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadServerCertificatesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'serverCertificates': !exists(json, 'ServerCertificates') ? undefined : ((json['ServerCertificates'] as Array).map(ServerCertificateFromJSON)), + }; +} + +export function ReadServerCertificatesResponseToJSON(value?: ReadServerCertificatesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'ServerCertificates': value.serverCertificates === undefined ? undefined : ((value.serverCertificates as Array).map(ServerCertificateToJSON)), + }; +} + diff --git a/src/models/ReadSnapshotExportTasksRequest.ts b/src/models/ReadSnapshotExportTasksRequest.ts new file mode 100644 index 00000000..a231dfcb --- /dev/null +++ b/src/models/ReadSnapshotExportTasksRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersExportTask, + FiltersExportTaskFromJSON, + FiltersExportTaskFromJSONTyped, + FiltersExportTaskToJSON, +} from './FiltersExportTask'; + +/** + * + * @export + * @interface ReadSnapshotExportTasksRequest + */ +export interface ReadSnapshotExportTasksRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSnapshotExportTasksRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersExportTask} + * @memberof ReadSnapshotExportTasksRequest + */ + filters?: FiltersExportTask; +} + +export function ReadSnapshotExportTasksRequestFromJSON(json: any): ReadSnapshotExportTasksRequest { + return ReadSnapshotExportTasksRequestFromJSONTyped(json, false); +} + +export function ReadSnapshotExportTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotExportTasksRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersExportTaskFromJSON(json['Filters']), + }; +} + +export function ReadSnapshotExportTasksRequestToJSON(value?: ReadSnapshotExportTasksRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersExportTaskToJSON(value.filters), + }; +} + diff --git a/src/models/ReadSnapshotExportTasksResponse.ts b/src/models/ReadSnapshotExportTasksResponse.ts new file mode 100644 index 00000000..66f49229 --- /dev/null +++ b/src/models/ReadSnapshotExportTasksResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + SnapshotExportTask, + SnapshotExportTaskFromJSON, + SnapshotExportTaskFromJSONTyped, + SnapshotExportTaskToJSON, +} from './SnapshotExportTask'; + +/** + * + * @export + * @interface ReadSnapshotExportTasksResponse + */ +export interface ReadSnapshotExportTasksResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSnapshotExportTasksResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more snapshot export tasks. + * @type {Array} + * @memberof ReadSnapshotExportTasksResponse + */ + snapshotExportTasks?: Array; +} + +export function ReadSnapshotExportTasksResponseFromJSON(json: any): ReadSnapshotExportTasksResponse { + return ReadSnapshotExportTasksResponseFromJSONTyped(json, false); +} + +export function ReadSnapshotExportTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotExportTasksResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshotExportTasks': !exists(json, 'SnapshotExportTasks') ? undefined : ((json['SnapshotExportTasks'] as Array).map(SnapshotExportTaskFromJSON)), + }; +} + +export function ReadSnapshotExportTasksResponseToJSON(value?: ReadSnapshotExportTasksResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'SnapshotExportTasks': value.snapshotExportTasks === undefined ? undefined : ((value.snapshotExportTasks as Array).map(SnapshotExportTaskToJSON)), + }; +} + diff --git a/src/models/ReadSnapshotsRequest.ts b/src/models/ReadSnapshotsRequest.ts new file mode 100644 index 00000000..a903fe14 --- /dev/null +++ b/src/models/ReadSnapshotsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersSnapshot, + FiltersSnapshotFromJSON, + FiltersSnapshotFromJSONTyped, + FiltersSnapshotToJSON, +} from './FiltersSnapshot'; + +/** + * + * @export + * @interface ReadSnapshotsRequest + */ +export interface ReadSnapshotsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSnapshotsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSnapshot} + * @memberof ReadSnapshotsRequest + */ + filters?: FiltersSnapshot; +} + +export function ReadSnapshotsRequestFromJSON(json: any): ReadSnapshotsRequest { + return ReadSnapshotsRequestFromJSONTyped(json, false); +} + +export function ReadSnapshotsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSnapshotFromJSON(json['Filters']), + }; +} + +export function ReadSnapshotsRequestToJSON(value?: ReadSnapshotsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersSnapshotToJSON(value.filters), + }; +} + diff --git a/src/models/ReadSnapshotsResponse.ts b/src/models/ReadSnapshotsResponse.ts new file mode 100644 index 00000000..d1b902c3 --- /dev/null +++ b/src/models/ReadSnapshotsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Snapshot, + SnapshotFromJSON, + SnapshotFromJSONTyped, + SnapshotToJSON, +} from './Snapshot'; + +/** + * + * @export + * @interface ReadSnapshotsResponse + */ +export interface ReadSnapshotsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSnapshotsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more snapshots and their permissions. + * @type {Array} + * @memberof ReadSnapshotsResponse + */ + snapshots?: Array; +} + +export function ReadSnapshotsResponseFromJSON(json: any): ReadSnapshotsResponse { + return ReadSnapshotsResponseFromJSONTyped(json, false); +} + +export function ReadSnapshotsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSnapshotsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshots': !exists(json, 'Snapshots') ? undefined : ((json['Snapshots'] as Array).map(SnapshotFromJSON)), + }; +} + +export function ReadSnapshotsResponseToJSON(value?: ReadSnapshotsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Snapshots': value.snapshots === undefined ? undefined : ((value.snapshots as Array).map(SnapshotToJSON)), + }; +} + diff --git a/src/models/ReadSubnetsRequest.ts b/src/models/ReadSubnetsRequest.ts new file mode 100644 index 00000000..a3f3cdae --- /dev/null +++ b/src/models/ReadSubnetsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersSubnet, + FiltersSubnetFromJSON, + FiltersSubnetFromJSONTyped, + FiltersSubnetToJSON, +} from './FiltersSubnet'; + +/** + * + * @export + * @interface ReadSubnetsRequest + */ +export interface ReadSubnetsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSubnetsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSubnet} + * @memberof ReadSubnetsRequest + */ + filters?: FiltersSubnet; +} + +export function ReadSubnetsRequestFromJSON(json: any): ReadSubnetsRequest { + return ReadSubnetsRequestFromJSONTyped(json, false); +} + +export function ReadSubnetsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubnetsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSubnetFromJSON(json['Filters']), + }; +} + +export function ReadSubnetsRequestToJSON(value?: ReadSubnetsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersSubnetToJSON(value.filters), + }; +} + diff --git a/src/models/ReadSubnetsResponse.ts b/src/models/ReadSubnetsResponse.ts new file mode 100644 index 00000000..a5365a3f --- /dev/null +++ b/src/models/ReadSubnetsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Subnet, + SubnetFromJSON, + SubnetFromJSONTyped, + SubnetToJSON, +} from './Subnet'; + +/** + * + * @export + * @interface ReadSubnetsResponse + */ +export interface ReadSubnetsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSubnetsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more Subnets. + * @type {Array} + * @memberof ReadSubnetsResponse + */ + subnets?: Array; +} + +export function ReadSubnetsResponseFromJSON(json: any): ReadSubnetsResponse { + return ReadSubnetsResponseFromJSONTyped(json, false); +} + +export function ReadSubnetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubnetsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subnets': !exists(json, 'Subnets') ? undefined : ((json['Subnets'] as Array).map(SubnetFromJSON)), + }; +} + +export function ReadSubnetsResponseToJSON(value?: ReadSubnetsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subnets': value.subnets === undefined ? undefined : ((value.subnets as Array).map(SubnetToJSON)), + }; +} + diff --git a/src/models/ReadSubregionsRequest.ts b/src/models/ReadSubregionsRequest.ts new file mode 100644 index 00000000..f66e6faa --- /dev/null +++ b/src/models/ReadSubregionsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersSubregion, + FiltersSubregionFromJSON, + FiltersSubregionFromJSONTyped, + FiltersSubregionToJSON, +} from './FiltersSubregion'; + +/** + * + * @export + * @interface ReadSubregionsRequest + */ +export interface ReadSubregionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadSubregionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersSubregion} + * @memberof ReadSubregionsRequest + */ + filters?: FiltersSubregion; +} + +export function ReadSubregionsRequestFromJSON(json: any): ReadSubregionsRequest { + return ReadSubregionsRequestFromJSONTyped(json, false); +} + +export function ReadSubregionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubregionsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersSubregionFromJSON(json['Filters']), + }; +} + +export function ReadSubregionsRequestToJSON(value?: ReadSubregionsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersSubregionToJSON(value.filters), + }; +} + diff --git a/src/models/ReadSubregionsResponse.ts b/src/models/ReadSubregionsResponse.ts new file mode 100644 index 00000000..d194dabe --- /dev/null +++ b/src/models/ReadSubregionsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Subregion, + SubregionFromJSON, + SubregionFromJSONTyped, + SubregionToJSON, +} from './Subregion'; + +/** + * + * @export + * @interface ReadSubregionsResponse + */ +export interface ReadSubregionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadSubregionsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more Subregions. + * @type {Array} + * @memberof ReadSubregionsResponse + */ + subregions?: Array; +} + +export function ReadSubregionsResponseFromJSON(json: any): ReadSubregionsResponse { + return ReadSubregionsResponseFromJSONTyped(json, false); +} + +export function ReadSubregionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadSubregionsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subregions': !exists(json, 'Subregions') ? undefined : ((json['Subregions'] as Array).map(SubregionFromJSON)), + }; +} + +export function ReadSubregionsResponseToJSON(value?: ReadSubregionsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subregions': value.subregions === undefined ? undefined : ((value.subregions as Array).map(SubregionToJSON)), + }; +} + diff --git a/src/models/ReadTagsRequest.ts b/src/models/ReadTagsRequest.ts new file mode 100644 index 00000000..7510291c --- /dev/null +++ b/src/models/ReadTagsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersTag, + FiltersTagFromJSON, + FiltersTagFromJSONTyped, + FiltersTagToJSON, +} from './FiltersTag'; + +/** + * + * @export + * @interface ReadTagsRequest + */ +export interface ReadTagsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadTagsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersTag} + * @memberof ReadTagsRequest + */ + filters?: FiltersTag; +} + +export function ReadTagsRequestFromJSON(json: any): ReadTagsRequest { + return ReadTagsRequestFromJSONTyped(json, false); +} + +export function ReadTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadTagsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersTagFromJSON(json['Filters']), + }; +} + +export function ReadTagsRequestToJSON(value?: ReadTagsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersTagToJSON(value.filters), + }; +} + diff --git a/src/models/ReadTagsResponse.ts b/src/models/ReadTagsResponse.ts new file mode 100644 index 00000000..664f7f18 --- /dev/null +++ b/src/models/ReadTagsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Tag, + TagFromJSON, + TagFromJSONTyped, + TagToJSON, +} from './Tag'; + +/** + * + * @export + * @interface ReadTagsResponse + */ +export interface ReadTagsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadTagsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more tags. + * @type {Array} + * @memberof ReadTagsResponse + */ + tags?: Array; +} + +export function ReadTagsResponseFromJSON(json: any): ReadTagsResponse { + return ReadTagsResponseFromJSONTyped(json, false); +} + +export function ReadTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadTagsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(TagFromJSON)), + }; +} + +export function ReadTagsResponseToJSON(value?: ReadTagsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(TagToJSON)), + }; +} + diff --git a/src/models/ReadVirtualGatewaysRequest.ts b/src/models/ReadVirtualGatewaysRequest.ts new file mode 100644 index 00000000..cafb4598 --- /dev/null +++ b/src/models/ReadVirtualGatewaysRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersVirtualGateway, + FiltersVirtualGatewayFromJSON, + FiltersVirtualGatewayFromJSONTyped, + FiltersVirtualGatewayToJSON, +} from './FiltersVirtualGateway'; + +/** + * + * @export + * @interface ReadVirtualGatewaysRequest + */ +export interface ReadVirtualGatewaysRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVirtualGatewaysRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVirtualGateway} + * @memberof ReadVirtualGatewaysRequest + */ + filters?: FiltersVirtualGateway; +} + +export function ReadVirtualGatewaysRequestFromJSON(json: any): ReadVirtualGatewaysRequest { + return ReadVirtualGatewaysRequestFromJSONTyped(json, false); +} + +export function ReadVirtualGatewaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVirtualGatewaysRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVirtualGatewayFromJSON(json['Filters']), + }; +} + +export function ReadVirtualGatewaysRequestToJSON(value?: ReadVirtualGatewaysRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersVirtualGatewayToJSON(value.filters), + }; +} + diff --git a/src/models/ReadVirtualGatewaysResponse.ts b/src/models/ReadVirtualGatewaysResponse.ts new file mode 100644 index 00000000..86acae80 --- /dev/null +++ b/src/models/ReadVirtualGatewaysResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VirtualGateway, + VirtualGatewayFromJSON, + VirtualGatewayFromJSONTyped, + VirtualGatewayToJSON, +} from './VirtualGateway'; + +/** + * + * @export + * @interface ReadVirtualGatewaysResponse + */ +export interface ReadVirtualGatewaysResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVirtualGatewaysResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more virtual gateways. + * @type {Array} + * @memberof ReadVirtualGatewaysResponse + */ + virtualGateways?: Array; +} + +export function ReadVirtualGatewaysResponseFromJSON(json: any): ReadVirtualGatewaysResponse { + return ReadVirtualGatewaysResponseFromJSONTyped(json, false); +} + +export function ReadVirtualGatewaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVirtualGatewaysResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'virtualGateways': !exists(json, 'VirtualGateways') ? undefined : ((json['VirtualGateways'] as Array).map(VirtualGatewayFromJSON)), + }; +} + +export function ReadVirtualGatewaysResponseToJSON(value?: ReadVirtualGatewaysResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VirtualGateways': value.virtualGateways === undefined ? undefined : ((value.virtualGateways as Array).map(VirtualGatewayToJSON)), + }; +} + diff --git a/src/models/ReadVmTypesRequest.ts b/src/models/ReadVmTypesRequest.ts new file mode 100644 index 00000000..a50dccc6 --- /dev/null +++ b/src/models/ReadVmTypesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersVmType, + FiltersVmTypeFromJSON, + FiltersVmTypeFromJSONTyped, + FiltersVmTypeToJSON, +} from './FiltersVmType'; + +/** + * + * @export + * @interface ReadVmTypesRequest + */ +export interface ReadVmTypesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmTypesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVmType} + * @memberof ReadVmTypesRequest + */ + filters?: FiltersVmType; +} + +export function ReadVmTypesRequestFromJSON(json: any): ReadVmTypesRequest { + return ReadVmTypesRequestFromJSONTyped(json, false); +} + +export function ReadVmTypesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmTypesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVmTypeFromJSON(json['Filters']), + }; +} + +export function ReadVmTypesRequestToJSON(value?: ReadVmTypesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersVmTypeToJSON(value.filters), + }; +} + diff --git a/src/models/ReadVmTypesResponse.ts b/src/models/ReadVmTypesResponse.ts new file mode 100644 index 00000000..0b24d61a --- /dev/null +++ b/src/models/ReadVmTypesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VmType, + VmTypeFromJSON, + VmTypeFromJSONTyped, + VmTypeToJSON, +} from './VmType'; + +/** + * + * @export + * @interface ReadVmTypesResponse + */ +export interface ReadVmTypesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmTypesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VM types. + * @type {Array} + * @memberof ReadVmTypesResponse + */ + vmTypes?: Array; +} + +export function ReadVmTypesResponseFromJSON(json: any): ReadVmTypesResponse { + return ReadVmTypesResponseFromJSONTyped(json, false); +} + +export function ReadVmTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmTypesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmTypes': !exists(json, 'VmTypes') ? undefined : ((json['VmTypes'] as Array).map(VmTypeFromJSON)), + }; +} + +export function ReadVmTypesResponseToJSON(value?: ReadVmTypesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmTypes': value.vmTypes === undefined ? undefined : ((value.vmTypes as Array).map(VmTypeToJSON)), + }; +} + diff --git a/src/models/ReadVmsHealthRequest.ts b/src/models/ReadVmsHealthRequest.ts new file mode 100644 index 00000000..3abd9e65 --- /dev/null +++ b/src/models/ReadVmsHealthRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadVmsHealthRequest + */ +export interface ReadVmsHealthRequest { + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof ReadVmsHealthRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsHealthRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof ReadVmsHealthRequest + */ + loadBalancerName: string; +} + +export function ReadVmsHealthRequestFromJSON(json: any): ReadVmsHealthRequest { + return ReadVmsHealthRequestFromJSONTyped(json, false); +} + +export function ReadVmsHealthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsHealthRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function ReadVmsHealthRequestToJSON(value?: ReadVmsHealthRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/ReadVmsHealthResponse.ts b/src/models/ReadVmsHealthResponse.ts new file mode 100644 index 00000000..5dede75b --- /dev/null +++ b/src/models/ReadVmsHealthResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BackendVmHealth, + BackendVmHealthFromJSON, + BackendVmHealthFromJSONTyped, + BackendVmHealthToJSON, +} from './BackendVmHealth'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ReadVmsHealthResponse + */ +export interface ReadVmsHealthResponse { + /** + * Information about the health of one or more back-end VMs. + * @type {Array} + * @memberof ReadVmsHealthResponse + */ + backendVmHealth?: Array; + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsHealthResponse + */ + responseContext?: ModelResponseContext; +} + +export function ReadVmsHealthResponseFromJSON(json: any): ReadVmsHealthResponse { + return ReadVmsHealthResponseFromJSONTyped(json, false); +} + +export function ReadVmsHealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsHealthResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendVmHealth': !exists(json, 'BackendVmHealth') ? undefined : ((json['BackendVmHealth'] as Array).map(BackendVmHealthFromJSON)), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ReadVmsHealthResponseToJSON(value?: ReadVmsHealthResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendVmHealth': value.backendVmHealth === undefined ? undefined : ((value.backendVmHealth as Array).map(BackendVmHealthToJSON)), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ReadVmsRequest.ts b/src/models/ReadVmsRequest.ts new file mode 100644 index 00000000..529af3c0 --- /dev/null +++ b/src/models/ReadVmsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersVm, + FiltersVmFromJSON, + FiltersVmFromJSONTyped, + FiltersVmToJSON, +} from './FiltersVm'; + +/** + * + * @export + * @interface ReadVmsRequest + */ +export interface ReadVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVm} + * @memberof ReadVmsRequest + */ + filters?: FiltersVm; +} + +export function ReadVmsRequestFromJSON(json: any): ReadVmsRequest { + return ReadVmsRequestFromJSONTyped(json, false); +} + +export function ReadVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVmFromJSON(json['Filters']), + }; +} + +export function ReadVmsRequestToJSON(value?: ReadVmsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersVmToJSON(value.filters), + }; +} + diff --git a/src/models/ReadVmsResponse.ts b/src/models/ReadVmsResponse.ts new file mode 100644 index 00000000..1f8640a1 --- /dev/null +++ b/src/models/ReadVmsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Vm, + VmFromJSON, + VmFromJSONTyped, + VmToJSON, +} from './Vm'; + +/** + * + * @export + * @interface ReadVmsResponse + */ +export interface ReadVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VMs. + * @type {Array} + * @memberof ReadVmsResponse + */ + vms?: Array; +} + +export function ReadVmsResponseFromJSON(json: any): ReadVmsResponse { + return ReadVmsResponseFromJSONTyped(json, false); +} + +export function ReadVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : ((json['Vms'] as Array).map(VmFromJSON)), + }; +} + +export function ReadVmsResponseToJSON(value?: ReadVmsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : ((value.vms as Array).map(VmToJSON)), + }; +} + diff --git a/src/models/ReadVmsStateRequest.ts b/src/models/ReadVmsStateRequest.ts new file mode 100644 index 00000000..7375df19 --- /dev/null +++ b/src/models/ReadVmsStateRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersVmsState, + FiltersVmsStateFromJSON, + FiltersVmsStateFromJSONTyped, + FiltersVmsStateToJSON, +} from './FiltersVmsState'; + +/** + * + * @export + * @interface ReadVmsStateRequest + */ +export interface ReadVmsStateRequest { + /** + * If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs. + * @type {boolean} + * @memberof ReadVmsStateRequest + */ + allVms?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVmsStateRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVmsState} + * @memberof ReadVmsStateRequest + */ + filters?: FiltersVmsState; +} + +export function ReadVmsStateRequestFromJSON(json: any): ReadVmsStateRequest { + return ReadVmsStateRequestFromJSONTyped(json, false); +} + +export function ReadVmsStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsStateRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allVms': !exists(json, 'AllVms') ? undefined : json['AllVms'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVmsStateFromJSON(json['Filters']), + }; +} + +export function ReadVmsStateRequestToJSON(value?: ReadVmsStateRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AllVms': value.allVms, + 'DryRun': value.dryRun, + 'Filters': FiltersVmsStateToJSON(value.filters), + }; +} + diff --git a/src/models/ReadVmsStateResponse.ts b/src/models/ReadVmsStateResponse.ts new file mode 100644 index 00000000..3d6afbc3 --- /dev/null +++ b/src/models/ReadVmsStateResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VmStates, + VmStatesFromJSON, + VmStatesFromJSONTyped, + VmStatesToJSON, +} from './VmStates'; + +/** + * + * @export + * @interface ReadVmsStateResponse + */ +export interface ReadVmsStateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVmsStateResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VM states. + * @type {Array} + * @memberof ReadVmsStateResponse + */ + vmStates?: Array; +} + +export function ReadVmsStateResponseFromJSON(json: any): ReadVmsStateResponse { + return ReadVmsStateResponseFromJSONTyped(json, false); +} + +export function ReadVmsStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVmsStateResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vmStates': !exists(json, 'VmStates') ? undefined : ((json['VmStates'] as Array).map(VmStatesFromJSON)), + }; +} + +export function ReadVmsStateResponseToJSON(value?: ReadVmsStateResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VmStates': value.vmStates === undefined ? undefined : ((value.vmStates as Array).map(VmStatesToJSON)), + }; +} + diff --git a/src/models/ReadVolumesRequest.ts b/src/models/ReadVolumesRequest.ts new file mode 100644 index 00000000..eba6d1e2 --- /dev/null +++ b/src/models/ReadVolumesRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersVolume, + FiltersVolumeFromJSON, + FiltersVolumeFromJSONTyped, + FiltersVolumeToJSON, +} from './FiltersVolume'; + +/** + * + * @export + * @interface ReadVolumesRequest + */ +export interface ReadVolumesRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVolumesRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVolume} + * @memberof ReadVolumesRequest + */ + filters?: FiltersVolume; +} + +export function ReadVolumesRequestFromJSON(json: any): ReadVolumesRequest { + return ReadVolumesRequestFromJSONTyped(json, false); +} + +export function ReadVolumesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVolumesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVolumeFromJSON(json['Filters']), + }; +} + +export function ReadVolumesRequestToJSON(value?: ReadVolumesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersVolumeToJSON(value.filters), + }; +} + diff --git a/src/models/ReadVolumesResponse.ts b/src/models/ReadVolumesResponse.ts new file mode 100644 index 00000000..d2d9bcbe --- /dev/null +++ b/src/models/ReadVolumesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Volume, + VolumeFromJSON, + VolumeFromJSONTyped, + VolumeToJSON, +} from './Volume'; + +/** + * + * @export + * @interface ReadVolumesResponse + */ +export interface ReadVolumesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVolumesResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more volumes. + * @type {Array} + * @memberof ReadVolumesResponse + */ + volumes?: Array; +} + +export function ReadVolumesResponseFromJSON(json: any): ReadVolumesResponse { + return ReadVolumesResponseFromJSONTyped(json, false); +} + +export function ReadVolumesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVolumesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'volumes': !exists(json, 'Volumes') ? undefined : ((json['Volumes'] as Array).map(VolumeFromJSON)), + }; +} + +export function ReadVolumesResponseToJSON(value?: ReadVolumesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Volumes': value.volumes === undefined ? undefined : ((value.volumes as Array).map(VolumeToJSON)), + }; +} + diff --git a/src/models/ReadVpnConnectionsRequest.ts b/src/models/ReadVpnConnectionsRequest.ts new file mode 100644 index 00000000..cce4621c --- /dev/null +++ b/src/models/ReadVpnConnectionsRequest.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FiltersVpnConnection, + FiltersVpnConnectionFromJSON, + FiltersVpnConnectionFromJSONTyped, + FiltersVpnConnectionToJSON, +} from './FiltersVpnConnection'; + +/** + * + * @export + * @interface ReadVpnConnectionsRequest + */ +export interface ReadVpnConnectionsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ReadVpnConnectionsRequest + */ + dryRun?: boolean; + /** + * + * @type {FiltersVpnConnection} + * @memberof ReadVpnConnectionsRequest + */ + filters?: FiltersVpnConnection; +} + +export function ReadVpnConnectionsRequestFromJSON(json: any): ReadVpnConnectionsRequest { + return ReadVpnConnectionsRequestFromJSONTyped(json, false); +} + +export function ReadVpnConnectionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVpnConnectionsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'filters': !exists(json, 'Filters') ? undefined : FiltersVpnConnectionFromJSON(json['Filters']), + }; +} + +export function ReadVpnConnectionsRequestToJSON(value?: ReadVpnConnectionsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Filters': FiltersVpnConnectionToJSON(value.filters), + }; +} + diff --git a/src/models/ReadVpnConnectionsResponse.ts b/src/models/ReadVpnConnectionsResponse.ts new file mode 100644 index 00000000..4ee97fcf --- /dev/null +++ b/src/models/ReadVpnConnectionsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VpnConnection, + VpnConnectionFromJSON, + VpnConnectionFromJSONTyped, + VpnConnectionToJSON, +} from './VpnConnection'; + +/** + * + * @export + * @interface ReadVpnConnectionsResponse + */ +export interface ReadVpnConnectionsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ReadVpnConnectionsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more VPN connections. + * @type {Array} + * @memberof ReadVpnConnectionsResponse + */ + vpnConnections?: Array; +} + +export function ReadVpnConnectionsResponseFromJSON(json: any): ReadVpnConnectionsResponse { + return ReadVpnConnectionsResponseFromJSONTyped(json, false); +} + +export function ReadVpnConnectionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadVpnConnectionsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vpnConnections': !exists(json, 'VpnConnections') ? undefined : ((json['VpnConnections'] as Array).map(VpnConnectionFromJSON)), + }; +} + +export function ReadVpnConnectionsResponseToJSON(value?: ReadVpnConnectionsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VpnConnections': value.vpnConnections === undefined ? undefined : ((value.vpnConnections as Array).map(VpnConnectionToJSON)), + }; +} + diff --git a/src/models/RebootVmsRequest.ts b/src/models/RebootVmsRequest.ts new file mode 100644 index 00000000..ce32a419 --- /dev/null +++ b/src/models/RebootVmsRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface RebootVmsRequest + */ +export interface RebootVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RebootVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of the VMs you want to reboot. + * @type {Array} + * @memberof RebootVmsRequest + */ + vmIds: Array; +} + +export function RebootVmsRequestFromJSON(json: any): RebootVmsRequest { + return RebootVmsRequestFromJSONTyped(json, false); +} + +export function RebootVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebootVmsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} + +export function RebootVmsRequestToJSON(value?: RebootVmsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/RebootVmsResponse.ts b/src/models/RebootVmsResponse.ts new file mode 100644 index 00000000..6db773dd --- /dev/null +++ b/src/models/RebootVmsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface RebootVmsResponse + */ +export interface RebootVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RebootVmsResponse + */ + responseContext?: ModelResponseContext; +} + +export function RebootVmsResponseFromJSON(json: any): RebootVmsResponse { + return RebootVmsResponseFromJSONTyped(json, false); +} + +export function RebootVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebootVmsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function RebootVmsResponseToJSON(value?: RebootVmsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/Region.ts b/src/models/Region.ts new file mode 100644 index 00000000..5c296d8a --- /dev/null +++ b/src/models/Region.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the Region. + * @export + * @interface Region + */ +export interface Region { + /** + * The hostname of the gateway to access the Region. + * @type {string} + * @memberof Region + */ + endpoint?: string; + /** + * The administrative name of the Region. + * @type {string} + * @memberof Region + */ + regionName?: string; +} + +export function RegionFromJSON(json: any): Region { + return RegionFromJSONTyped(json, false); +} + +export function RegionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Region { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'endpoint': !exists(json, 'Endpoint') ? undefined : json['Endpoint'], + 'regionName': !exists(json, 'RegionName') ? undefined : json['RegionName'], + }; +} + +export function RegionToJSON(value?: Region | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Endpoint': value.endpoint, + 'RegionName': value.regionName, + }; +} + diff --git a/src/models/RegisterVmsInLoadBalancerRequest.ts b/src/models/RegisterVmsInLoadBalancerRequest.ts new file mode 100644 index 00000000..10a6ee48 --- /dev/null +++ b/src/models/RegisterVmsInLoadBalancerRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface RegisterVmsInLoadBalancerRequest + */ +export interface RegisterVmsInLoadBalancerRequest { + /** + * One or more IDs of back-end VMs.
+ * Specifying the same ID several times has no effect as each back-end VM has equal weight. + * @type {Array} + * @memberof RegisterVmsInLoadBalancerRequest + */ + backendVmIds: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RegisterVmsInLoadBalancerRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof RegisterVmsInLoadBalancerRequest + */ + loadBalancerName: string; +} + +export function RegisterVmsInLoadBalancerRequestFromJSON(json: any): RegisterVmsInLoadBalancerRequest { + return RegisterVmsInLoadBalancerRequestFromJSONTyped(json, false); +} + +export function RegisterVmsInLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterVmsInLoadBalancerRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendVmIds': json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function RegisterVmsInLoadBalancerRequestToJSON(value?: RegisterVmsInLoadBalancerRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/RegisterVmsInLoadBalancerResponse.ts b/src/models/RegisterVmsInLoadBalancerResponse.ts new file mode 100644 index 00000000..10130698 --- /dev/null +++ b/src/models/RegisterVmsInLoadBalancerResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface RegisterVmsInLoadBalancerResponse + */ +export interface RegisterVmsInLoadBalancerResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RegisterVmsInLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} + +export function RegisterVmsInLoadBalancerResponseFromJSON(json: any): RegisterVmsInLoadBalancerResponse { + return RegisterVmsInLoadBalancerResponseFromJSONTyped(json, false); +} + +export function RegisterVmsInLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterVmsInLoadBalancerResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function RegisterVmsInLoadBalancerResponseToJSON(value?: RegisterVmsInLoadBalancerResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/RejectNetPeeringRequest.ts b/src/models/RejectNetPeeringRequest.ts new file mode 100644 index 00000000..3f864e9f --- /dev/null +++ b/src/models/RejectNetPeeringRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface RejectNetPeeringRequest + */ +export interface RejectNetPeeringRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof RejectNetPeeringRequest + */ + dryRun?: boolean; + /** + * The ID of the Net peering connection you want to reject. + * @type {string} + * @memberof RejectNetPeeringRequest + */ + netPeeringId: string; +} + +export function RejectNetPeeringRequestFromJSON(json: any): RejectNetPeeringRequest { + return RejectNetPeeringRequestFromJSONTyped(json, false); +} + +export function RejectNetPeeringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectNetPeeringRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netPeeringId': json['NetPeeringId'], + }; +} + +export function RejectNetPeeringRequestToJSON(value?: RejectNetPeeringRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetPeeringId': value.netPeeringId, + }; +} + diff --git a/src/models/RejectNetPeeringResponse.ts b/src/models/RejectNetPeeringResponse.ts new file mode 100644 index 00000000..ff0eed13 --- /dev/null +++ b/src/models/RejectNetPeeringResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface RejectNetPeeringResponse + */ +export interface RejectNetPeeringResponse { + /** + * + * @type {ModelResponseContext} + * @memberof RejectNetPeeringResponse + */ + responseContext?: ModelResponseContext; +} + +export function RejectNetPeeringResponseFromJSON(json: any): RejectNetPeeringResponse { + return RejectNetPeeringResponseFromJSONTyped(json, false); +} + +export function RejectNetPeeringResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectNetPeeringResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function RejectNetPeeringResponseToJSON(value?: RejectNetPeeringResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ResetAccountPasswordRequest.ts b/src/models/ResetAccountPasswordRequest.ts new file mode 100644 index 00000000..d8ca5644 --- /dev/null +++ b/src/models/ResetAccountPasswordRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ResetAccountPasswordRequest + */ +export interface ResetAccountPasswordRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof ResetAccountPasswordRequest + */ + dryRun?: boolean; + /** + * The new password for the account. + * @type {string} + * @memberof ResetAccountPasswordRequest + */ + password: string; + /** + * The token you received at the email address provided for the account. + * @type {string} + * @memberof ResetAccountPasswordRequest + */ + token: string; +} + +export function ResetAccountPasswordRequestFromJSON(json: any): ResetAccountPasswordRequest { + return ResetAccountPasswordRequestFromJSONTyped(json, false); +} + +export function ResetAccountPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetAccountPasswordRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'password': json['Password'], + 'token': json['Token'], + }; +} + +export function ResetAccountPasswordRequestToJSON(value?: ResetAccountPasswordRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Password': value.password, + 'Token': value.token, + }; +} + diff --git a/src/models/ResetAccountPasswordResponse.ts b/src/models/ResetAccountPasswordResponse.ts new file mode 100644 index 00000000..18165984 --- /dev/null +++ b/src/models/ResetAccountPasswordResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface ResetAccountPasswordResponse + */ +export interface ResetAccountPasswordResponse { + /** + * + * @type {ModelResponseContext} + * @memberof ResetAccountPasswordResponse + */ + responseContext?: ModelResponseContext; +} + +export function ResetAccountPasswordResponseFromJSON(json: any): ResetAccountPasswordResponse { + return ResetAccountPasswordResponseFromJSONTyped(json, false); +} + +export function ResetAccountPasswordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetAccountPasswordResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function ResetAccountPasswordResponseToJSON(value?: ResetAccountPasswordResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ResourceLoadBalancerTag.ts b/src/models/ResourceLoadBalancerTag.ts new file mode 100644 index 00000000..8e6e7835 --- /dev/null +++ b/src/models/ResourceLoadBalancerTag.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the tag. + * @export + * @interface ResourceLoadBalancerTag + */ +export interface ResourceLoadBalancerTag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof ResourceLoadBalancerTag + */ + key?: string; +} + +export function ResourceLoadBalancerTagFromJSON(json: any): ResourceLoadBalancerTag { + return ResourceLoadBalancerTagFromJSONTyped(json, false); +} + +export function ResourceLoadBalancerTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceLoadBalancerTag { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': !exists(json, 'Key') ? undefined : json['Key'], + }; +} + +export function ResourceLoadBalancerTagToJSON(value?: ResourceLoadBalancerTag | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Key': value.key, + }; +} + diff --git a/src/models/ResourceTag.ts b/src/models/ResourceTag.ts new file mode 100644 index 00000000..99289c24 --- /dev/null +++ b/src/models/ResourceTag.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the tag. + * @export + * @interface ResourceTag + */ +export interface ResourceTag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof ResourceTag + */ + key: string; + /** + * The value of the tag, between 0 and 255 characters. + * @type {string} + * @memberof ResourceTag + */ + value: string; +} + +export function ResourceTagFromJSON(json: any): ResourceTag { + return ResourceTagFromJSONTyped(json, false); +} + +export function ResourceTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTag { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['Key'], + 'value': json['Value'], + }; +} + +export function ResourceTagToJSON(value?: ResourceTag | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Key': value.key, + 'Value': value.value, + }; +} + diff --git a/src/models/Route.ts b/src/models/Route.ts new file mode 100644 index 00000000..b1d58894 --- /dev/null +++ b/src/models/Route.ts @@ -0,0 +1,136 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the route. + * @export + * @interface Route + */ +export interface Route { + /** + * The method used to create the route. + * @type {string} + * @memberof Route + */ + creationMethod?: string; + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof Route + */ + destinationIpRange?: string; + /** + * The ID of the OUTSCALE service. + * @type {string} + * @memberof Route + */ + destinationServiceId?: string; + /** + * The ID of the Internet service or virtual gateway attached to the Net. + * @type {string} + * @memberof Route + */ + gatewayId?: string; + /** + * The ID of a NAT service attached to the Net. + * @type {string} + * @memberof Route + */ + natServiceId?: string; + /** + * The ID of the Net access point. + * @type {string} + * @memberof Route + */ + netAccessPointId?: string; + /** + * The ID of the Net peering connection. + * @type {string} + * @memberof Route + */ + netPeeringId?: string; + /** + * The ID of the NIC. + * @type {string} + * @memberof Route + */ + nicId?: string; + /** + * The state of a route in the route table (`active` \| `blackhole`). The `blackhole` state indicates that the target of the route is not available. + * @type {string} + * @memberof Route + */ + state?: string; + /** + * The account ID of the owner of the VM. + * @type {string} + * @memberof Route + */ + vmAccountId?: string; + /** + * The ID of a VM specified in a route in the table. + * @type {string} + * @memberof Route + */ + vmId?: string; +} + +export function RouteFromJSON(json: any): Route { + return RouteFromJSONTyped(json, false); +} + +export function RouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Route { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'creationMethod': !exists(json, 'CreationMethod') ? undefined : json['CreationMethod'], + 'destinationIpRange': !exists(json, 'DestinationIpRange') ? undefined : json['DestinationIpRange'], + 'destinationServiceId': !exists(json, 'DestinationServiceId') ? undefined : json['DestinationServiceId'], + 'gatewayId': !exists(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netAccessPointId': !exists(json, 'NetAccessPointId') ? undefined : json['NetAccessPointId'], + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'vmAccountId': !exists(json, 'VmAccountId') ? undefined : json['VmAccountId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function RouteToJSON(value?: Route | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CreationMethod': value.creationMethod, + 'DestinationIpRange': value.destinationIpRange, + 'DestinationServiceId': value.destinationServiceId, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetAccessPointId': value.netAccessPointId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'State': value.state, + 'VmAccountId': value.vmAccountId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/RouteLight.ts b/src/models/RouteLight.ts new file mode 100644 index 00000000..7dcf8d38 --- /dev/null +++ b/src/models/RouteLight.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the route. + * @export + * @interface RouteLight + */ +export interface RouteLight { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof RouteLight + */ + destinationIpRange?: string; + /** + * The type of route (always `static`). + * @type {string} + * @memberof RouteLight + */ + routeType?: string; + /** + * The current state of the static route (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof RouteLight + */ + state?: string; +} + +export function RouteLightFromJSON(json: any): RouteLight { + return RouteLightFromJSONTyped(json, false); +} + +export function RouteLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'destinationIpRange': !exists(json, 'DestinationIpRange') ? undefined : json['DestinationIpRange'], + 'routeType': !exists(json, 'RouteType') ? undefined : json['RouteType'], + 'state': !exists(json, 'State') ? undefined : json['State'], + }; +} + +export function RouteLightToJSON(value?: RouteLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DestinationIpRange': value.destinationIpRange, + 'RouteType': value.routeType, + 'State': value.state, + }; +} + diff --git a/src/models/RoutePropagatingVirtualGateway.ts b/src/models/RoutePropagatingVirtualGateway.ts new file mode 100644 index 00000000..7741c8a1 --- /dev/null +++ b/src/models/RoutePropagatingVirtualGateway.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the route propagating virtual gateway. + * @export + * @interface RoutePropagatingVirtualGateway + */ +export interface RoutePropagatingVirtualGateway { + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof RoutePropagatingVirtualGateway + */ + virtualGatewayId?: string; +} + +export function RoutePropagatingVirtualGatewayFromJSON(json: any): RoutePropagatingVirtualGateway { + return RoutePropagatingVirtualGatewayFromJSONTyped(json, false); +} + +export function RoutePropagatingVirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoutePropagatingVirtualGateway { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + }; +} + +export function RoutePropagatingVirtualGatewayToJSON(value?: RoutePropagatingVirtualGateway | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/RouteTable.ts b/src/models/RouteTable.ts new file mode 100644 index 00000000..6b04e277 --- /dev/null +++ b/src/models/RouteTable.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkRouteTable, + LinkRouteTableFromJSON, + LinkRouteTableFromJSONTyped, + LinkRouteTableToJSON, +} from './LinkRouteTable'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + Route, + RouteFromJSON, + RouteFromJSONTyped, + RouteToJSON, +} from './Route'; +import { + RoutePropagatingVirtualGateway, + RoutePropagatingVirtualGatewayFromJSON, + RoutePropagatingVirtualGatewayFromJSONTyped, + RoutePropagatingVirtualGatewayToJSON, +} from './RoutePropagatingVirtualGateway'; + +/** + * Information about the route table. + * @export + * @interface RouteTable + */ +export interface RouteTable { + /** + * One or more associations between the route table and Subnets. + * @type {Array} + * @memberof RouteTable + */ + linkRouteTables?: Array; + /** + * The ID of the Net for the route table. + * @type {string} + * @memberof RouteTable + */ + netId?: string; + /** + * Information about virtual gateways propagating routes. + * @type {Array} + * @memberof RouteTable + */ + routePropagatingVirtualGateways?: Array; + /** + * The ID of the route table. + * @type {string} + * @memberof RouteTable + */ + routeTableId?: string; + /** + * One or more routes in the route table. + * @type {Array} + * @memberof RouteTable + */ + routes?: Array; + /** + * One or more tags associated with the route table. + * @type {Array} + * @memberof RouteTable + */ + tags?: Array; +} + +export function RouteTableFromJSON(json: any): RouteTable { + return RouteTableFromJSONTyped(json, false); +} + +export function RouteTableFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteTable { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'linkRouteTables': !exists(json, 'LinkRouteTables') ? undefined : ((json['LinkRouteTables'] as Array).map(LinkRouteTableFromJSON)), + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'routePropagatingVirtualGateways': !exists(json, 'RoutePropagatingVirtualGateways') ? undefined : ((json['RoutePropagatingVirtualGateways'] as Array).map(RoutePropagatingVirtualGatewayFromJSON)), + 'routeTableId': !exists(json, 'RouteTableId') ? undefined : json['RouteTableId'], + 'routes': !exists(json, 'Routes') ? undefined : ((json['Routes'] as Array).map(RouteFromJSON)), + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function RouteTableToJSON(value?: RouteTable | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LinkRouteTables': value.linkRouteTables === undefined ? undefined : ((value.linkRouteTables as Array).map(LinkRouteTableToJSON)), + 'NetId': value.netId, + 'RoutePropagatingVirtualGateways': value.routePropagatingVirtualGateways === undefined ? undefined : ((value.routePropagatingVirtualGateways as Array).map(RoutePropagatingVirtualGatewayToJSON)), + 'RouteTableId': value.routeTableId, + 'Routes': value.routes === undefined ? undefined : ((value.routes as Array).map(RouteToJSON)), + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/SecurityGroup.ts b/src/models/SecurityGroup.ts new file mode 100644 index 00000000..abbc16ae --- /dev/null +++ b/src/models/SecurityGroup.ts @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + SecurityGroupRule, + SecurityGroupRuleFromJSON, + SecurityGroupRuleFromJSONTyped, + SecurityGroupRuleToJSON, +} from './SecurityGroupRule'; + +/** + * Information about the security group. + * @export + * @interface SecurityGroup + */ +export interface SecurityGroup { + /** + * The account ID of a user that has been granted permission. + * @type {string} + * @memberof SecurityGroup + */ + accountId?: string; + /** + * The description of the security group. + * @type {string} + * @memberof SecurityGroup + */ + description?: string; + /** + * The inbound rules associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + inboundRules?: Array; + /** + * The ID of the Net for the security group. + * @type {string} + * @memberof SecurityGroup + */ + netId?: string; + /** + * The outbound rules associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + outboundRules?: Array; + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroup + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroup + */ + securityGroupName?: string; + /** + * One or more tags associated with the security group. + * @type {Array} + * @memberof SecurityGroup + */ + tags?: Array; +} + +export function SecurityGroupFromJSON(json: any): SecurityGroup { + return SecurityGroupFromJSONTyped(json, false); +} + +export function SecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroup { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'inboundRules': !exists(json, 'InboundRules') ? undefined : ((json['InboundRules'] as Array).map(SecurityGroupRuleFromJSON)), + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'outboundRules': !exists(json, 'OutboundRules') ? undefined : ((json['OutboundRules'] as Array).map(SecurityGroupRuleFromJSON)), + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function SecurityGroupToJSON(value?: SecurityGroup | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'Description': value.description, + 'InboundRules': value.inboundRules === undefined ? undefined : ((value.inboundRules as Array).map(SecurityGroupRuleToJSON)), + 'NetId': value.netId, + 'OutboundRules': value.outboundRules === undefined ? undefined : ((value.outboundRules as Array).map(SecurityGroupRuleToJSON)), + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/SecurityGroupLight.ts b/src/models/SecurityGroupLight.ts new file mode 100644 index 00000000..36b26085 --- /dev/null +++ b/src/models/SecurityGroupLight.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the security group. + * @export + * @interface SecurityGroupLight + */ +export interface SecurityGroupLight { + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroupLight + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroupLight + */ + securityGroupName?: string; +} + +export function SecurityGroupLightFromJSON(json: any): SecurityGroupLight { + return SecurityGroupLightFromJSONTyped(json, false); +} + +export function SecurityGroupLightFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupLight { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} + +export function SecurityGroupLightToJSON(value?: SecurityGroupLight | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} + diff --git a/src/models/SecurityGroupRule.ts b/src/models/SecurityGroupRule.ts new file mode 100644 index 00000000..186c2dc3 --- /dev/null +++ b/src/models/SecurityGroupRule.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + SecurityGroupsMember, + SecurityGroupsMemberFromJSON, + SecurityGroupsMemberFromJSONTyped, + SecurityGroupsMemberToJSON, +} from './SecurityGroupsMember'; + +/** + * Information about the security group rule. + * @export + * @interface SecurityGroupRule + */ +export interface SecurityGroupRule { + /** + * The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof SecurityGroupRule + */ + fromPortRange?: number; + /** + * The IP protocol name (`tcp`, `udp`, `icmp`, or `-1` for all protocols). By default, `-1`. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + * @type {string} + * @memberof SecurityGroupRule + */ + ipProtocol?: string; + /** + * One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16). + * @type {Array} + * @memberof SecurityGroupRule + */ + ipRanges?: Array; + /** + * Information about one or more members of a security group. + * @type {Array} + * @memberof SecurityGroupRule + */ + securityGroupsMembers?: Array; + /** + * One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). + * @type {Array} + * @memberof SecurityGroupRule + */ + serviceIds?: Array; + /** + * The end of the port range for the TCP and UDP protocols, or an ICMP type number. + * @type {number} + * @memberof SecurityGroupRule + */ + toPortRange?: number; +} + +export function SecurityGroupRuleFromJSON(json: any): SecurityGroupRule { + return SecurityGroupRuleFromJSONTyped(json, false); +} + +export function SecurityGroupRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fromPortRange': !exists(json, 'FromPortRange') ? undefined : json['FromPortRange'], + 'ipProtocol': !exists(json, 'IpProtocol') ? undefined : json['IpProtocol'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'securityGroupsMembers': !exists(json, 'SecurityGroupsMembers') ? undefined : ((json['SecurityGroupsMembers'] as Array).map(SecurityGroupsMemberFromJSON)), + 'serviceIds': !exists(json, 'ServiceIds') ? undefined : json['ServiceIds'], + 'toPortRange': !exists(json, 'ToPortRange') ? undefined : json['ToPortRange'], + }; +} + +export function SecurityGroupRuleToJSON(value?: SecurityGroupRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'FromPortRange': value.fromPortRange, + 'IpProtocol': value.ipProtocol, + 'IpRanges': value.ipRanges, + 'SecurityGroupsMembers': value.securityGroupsMembers === undefined ? undefined : ((value.securityGroupsMembers as Array).map(SecurityGroupsMemberToJSON)), + 'ServiceIds': value.serviceIds, + 'ToPortRange': value.toPortRange, + }; +} + diff --git a/src/models/SecurityGroupsMember.ts b/src/models/SecurityGroupsMember.ts new file mode 100644 index 00000000..2411c8c3 --- /dev/null +++ b/src/models/SecurityGroupsMember.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the member of a security group. + * @export + * @interface SecurityGroupsMember + */ +export interface SecurityGroupsMember { + /** + * The account ID of a user. + * @type {string} + * @memberof SecurityGroupsMember + */ + accountId?: string; + /** + * The ID of the security group. + * @type {string} + * @memberof SecurityGroupsMember + */ + securityGroupId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SecurityGroupsMember + */ + securityGroupName?: string; +} + +export function SecurityGroupsMemberFromJSON(json: any): SecurityGroupsMember { + return SecurityGroupsMemberFromJSONTyped(json, false); +} + +export function SecurityGroupsMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityGroupsMember { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'securityGroupId': !exists(json, 'SecurityGroupId') ? undefined : json['SecurityGroupId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} + +export function SecurityGroupsMemberToJSON(value?: SecurityGroupsMember | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'SecurityGroupId': value.securityGroupId, + 'SecurityGroupName': value.securityGroupName, + }; +} + diff --git a/src/models/SendResetPasswordEmailRequest.ts b/src/models/SendResetPasswordEmailRequest.ts new file mode 100644 index 00000000..c0d8b585 --- /dev/null +++ b/src/models/SendResetPasswordEmailRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface SendResetPasswordEmailRequest + */ +export interface SendResetPasswordEmailRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof SendResetPasswordEmailRequest + */ + dryRun?: boolean; + /** + * The email address provided for the account. + * @type {string} + * @memberof SendResetPasswordEmailRequest + */ + email: string; +} + +export function SendResetPasswordEmailRequestFromJSON(json: any): SendResetPasswordEmailRequest { + return SendResetPasswordEmailRequestFromJSONTyped(json, false); +} + +export function SendResetPasswordEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendResetPasswordEmailRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'email': json['Email'], + }; +} + +export function SendResetPasswordEmailRequestToJSON(value?: SendResetPasswordEmailRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Email': value.email, + }; +} + diff --git a/src/models/SendResetPasswordEmailResponse.ts b/src/models/SendResetPasswordEmailResponse.ts new file mode 100644 index 00000000..5139064e --- /dev/null +++ b/src/models/SendResetPasswordEmailResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface SendResetPasswordEmailResponse + */ +export interface SendResetPasswordEmailResponse { + /** + * + * @type {ModelResponseContext} + * @memberof SendResetPasswordEmailResponse + */ + responseContext?: ModelResponseContext; +} + +export function SendResetPasswordEmailResponseFromJSON(json: any): SendResetPasswordEmailResponse { + return SendResetPasswordEmailResponseFromJSONTyped(json, false); +} + +export function SendResetPasswordEmailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendResetPasswordEmailResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function SendResetPasswordEmailResponseToJSON(value?: SendResetPasswordEmailResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/ServerCertificate.ts b/src/models/ServerCertificate.ts new file mode 100644 index 00000000..472d5804 --- /dev/null +++ b/src/models/ServerCertificate.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the server certificate. + * @export + * @interface ServerCertificate + */ +export interface ServerCertificate { + /** + * The date at which the server certificate expires. + * @type {Date} + * @memberof ServerCertificate + */ + expirationDate?: Date; + /** + * The ID of the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + id?: string; + /** + * The name of the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + name?: string; + /** + * The path to the server certificate. + * @type {string} + * @memberof ServerCertificate + */ + path?: string; + /** + * The date at which the server certificate has been uploaded. + * @type {Date} + * @memberof ServerCertificate + */ + uploadDate?: Date; +} + +export function ServerCertificateFromJSON(json: any): ServerCertificate { + return ServerCertificateFromJSONTyped(json, false); +} + +export function ServerCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerCertificate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : (new Date(json['ExpirationDate'])), + 'id': !exists(json, 'Id') ? undefined : json['Id'], + 'name': !exists(json, 'Name') ? undefined : json['Name'], + 'path': !exists(json, 'Path') ? undefined : json['Path'], + 'uploadDate': !exists(json, 'UploadDate') ? undefined : (new Date(json['UploadDate'])), + }; +} + +export function ServerCertificateToJSON(value?: ServerCertificate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ExpirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate.toISOString().substr(0,10)), + 'Id': value.id, + 'Name': value.name, + 'Path': value.path, + 'UploadDate': value.uploadDate === undefined ? undefined : (value.uploadDate.toISOString().substr(0,10)), + }; +} + diff --git a/src/models/Service.ts b/src/models/Service.ts new file mode 100644 index 00000000..4eface2f --- /dev/null +++ b/src/models/Service.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the service. + * @export + * @interface Service + */ +export interface Service { + /** + * The list of network prefixes used by the service, in CIDR notation. + * @type {Array} + * @memberof Service + */ + ipRanges?: Array; + /** + * The ID of the service. + * @type {string} + * @memberof Service + */ + serviceId?: string; + /** + * The name of the service. + * @type {string} + * @memberof Service + */ + serviceName?: string; +} + +export function ServiceFromJSON(json: any): Service { + return ServiceFromJSONTyped(json, false); +} + +export function ServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Service { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + 'serviceId': !exists(json, 'ServiceId') ? undefined : json['ServiceId'], + 'serviceName': !exists(json, 'ServiceName') ? undefined : json['ServiceName'], + }; +} + +export function ServiceToJSON(value?: Service | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'IpRanges': value.ipRanges, + 'ServiceId': value.serviceId, + 'ServiceName': value.serviceName, + }; +} + diff --git a/src/models/Snapshot.ts b/src/models/Snapshot.ts new file mode 100644 index 00000000..32a46594 --- /dev/null +++ b/src/models/Snapshot.ts @@ -0,0 +1,149 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PermissionsOnResource, + PermissionsOnResourceFromJSON, + PermissionsOnResourceFromJSONTyped, + PermissionsOnResourceToJSON, +} from './PermissionsOnResource'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the snapshot. + * @export + * @interface Snapshot + */ +export interface Snapshot { + /** + * The account alias of the owner of the snapshot. + * @type {string} + * @memberof Snapshot + */ + accountAlias?: string; + /** + * The account ID of the owner of the snapshot. + * @type {string} + * @memberof Snapshot + */ + accountId?: string; + /** + * The date and time of creation of the snapshot. + * @type {string} + * @memberof Snapshot + */ + creationDate?: string; + /** + * The description of the snapshot. + * @type {string} + * @memberof Snapshot + */ + description?: string; + /** + * + * @type {PermissionsOnResource} + * @memberof Snapshot + */ + permissionsToCreateVolume?: PermissionsOnResource; + /** + * The progress of the snapshot, as a percentage. + * @type {number} + * @memberof Snapshot + */ + progress?: number; + /** + * The ID of the snapshot. + * @type {string} + * @memberof Snapshot + */ + snapshotId?: string; + /** + * The state of the snapshot (`in-queue` \| `completed` \| `error`). + * @type {string} + * @memberof Snapshot + */ + state?: string; + /** + * One or more tags associated with the snapshot. + * @type {Array} + * @memberof Snapshot + */ + tags?: Array; + /** + * The ID of the volume used to create the snapshot. + * @type {string} + * @memberof Snapshot + */ + volumeId?: string; + /** + * The size of the volume used to create the snapshot, in gibibytes (GiB). + * @type {number} + * @memberof Snapshot + */ + volumeSize?: number; +} + +export function SnapshotFromJSON(json: any): Snapshot { + return SnapshotFromJSONTyped(json, false); +} + +export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Snapshot { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountAlias': !exists(json, 'AccountAlias') ? undefined : json['AccountAlias'], + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'permissionsToCreateVolume': !exists(json, 'PermissionsToCreateVolume') ? undefined : PermissionsOnResourceFromJSON(json['PermissionsToCreateVolume']), + 'progress': !exists(json, 'Progress') ? undefined : json['Progress'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + 'volumeSize': !exists(json, 'VolumeSize') ? undefined : json['VolumeSize'], + }; +} + +export function SnapshotToJSON(value?: Snapshot | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountAlias': value.accountAlias, + 'AccountId': value.accountId, + 'CreationDate': value.creationDate, + 'Description': value.description, + 'PermissionsToCreateVolume': PermissionsOnResourceToJSON(value.permissionsToCreateVolume), + 'Progress': value.progress, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'VolumeId': value.volumeId, + 'VolumeSize': value.volumeSize, + }; +} + diff --git a/src/models/SnapshotExportTask.ts b/src/models/SnapshotExportTask.ts new file mode 100644 index 00000000..3099ffed --- /dev/null +++ b/src/models/SnapshotExportTask.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + OsuExportSnapshotExportTask, + OsuExportSnapshotExportTaskFromJSON, + OsuExportSnapshotExportTaskFromJSONTyped, + OsuExportSnapshotExportTaskToJSON, +} from './OsuExportSnapshotExportTask'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the snapshot export task. + * @export + * @interface SnapshotExportTask + */ +export interface SnapshotExportTask { + /** + * If the snapshot export task fails, an error message appears. + * @type {string} + * @memberof SnapshotExportTask + */ + comment?: string; + /** + * + * @type {OsuExportSnapshotExportTask} + * @memberof SnapshotExportTask + */ + osuExport?: OsuExportSnapshotExportTask; + /** + * The progress of the snapshot export task, as a percentage. + * @type {number} + * @memberof SnapshotExportTask + */ + progress?: number; + /** + * The ID of the snapshot to be exported. + * @type {string} + * @memberof SnapshotExportTask + */ + snapshotId?: string; + /** + * The state of the snapshot export task (`pending` \| `active` \| `completed` \| `failed`). + * @type {string} + * @memberof SnapshotExportTask + */ + state?: string; + /** + * One or more tags associated with the snapshot export task. + * @type {Array} + * @memberof SnapshotExportTask + */ + tags?: Array; + /** + * The ID of the snapshot export task. + * @type {string} + * @memberof SnapshotExportTask + */ + taskId?: string; +} + +export function SnapshotExportTaskFromJSON(json: any): SnapshotExportTask { + return SnapshotExportTaskFromJSONTyped(json, false); +} + +export function SnapshotExportTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotExportTask { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'comment': !exists(json, 'Comment') ? undefined : json['Comment'], + 'osuExport': !exists(json, 'OsuExport') ? undefined : OsuExportSnapshotExportTaskFromJSON(json['OsuExport']), + 'progress': !exists(json, 'Progress') ? undefined : json['Progress'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'taskId': !exists(json, 'TaskId') ? undefined : json['TaskId'], + }; +} + +export function SnapshotExportTaskToJSON(value?: SnapshotExportTask | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Comment': value.comment, + 'OsuExport': OsuExportSnapshotExportTaskToJSON(value.osuExport), + 'Progress': value.progress, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'TaskId': value.taskId, + }; +} + diff --git a/src/models/SourceNet.ts b/src/models/SourceNet.ts new file mode 100644 index 00000000..178b281e --- /dev/null +++ b/src/models/SourceNet.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the source Net. + * @export + * @interface SourceNet + */ +export interface SourceNet { + /** + * The account ID of the owner of the source Net. + * @type {string} + * @memberof SourceNet + */ + accountId?: string; + /** + * The IP range for the source Net, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof SourceNet + */ + ipRange?: string; + /** + * The ID of the source Net. + * @type {string} + * @memberof SourceNet + */ + netId?: string; +} + +export function SourceNetFromJSON(json: any): SourceNet { + return SourceNetFromJSONTyped(json, false); +} + +export function SourceNetFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceNet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + }; +} + +export function SourceNetToJSON(value?: SourceNet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'IpRange': value.ipRange, + 'NetId': value.netId, + }; +} + diff --git a/src/models/SourceSecurityGroup.ts b/src/models/SourceSecurityGroup.ts new file mode 100644 index 00000000..485b7eec --- /dev/null +++ b/src/models/SourceSecurityGroup.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
+ * To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source. + * @export + * @interface SourceSecurityGroup + */ +export interface SourceSecurityGroup { + /** + * The account ID of the owner of the security group. + * @type {string} + * @memberof SourceSecurityGroup + */ + securityGroupAccountId?: string; + /** + * The name of the security group. + * @type {string} + * @memberof SourceSecurityGroup + */ + securityGroupName?: string; +} + +export function SourceSecurityGroupFromJSON(json: any): SourceSecurityGroup { + return SourceSecurityGroupFromJSONTyped(json, false); +} + +export function SourceSecurityGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSecurityGroup { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'securityGroupAccountId': !exists(json, 'SecurityGroupAccountId') ? undefined : json['SecurityGroupAccountId'], + 'securityGroupName': !exists(json, 'SecurityGroupName') ? undefined : json['SecurityGroupName'], + }; +} + +export function SourceSecurityGroupToJSON(value?: SourceSecurityGroup | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'SecurityGroupAccountId': value.securityGroupAccountId, + 'SecurityGroupName': value.securityGroupName, + }; +} + diff --git a/src/models/StartVmsRequest.ts b/src/models/StartVmsRequest.ts new file mode 100644 index 00000000..249d60f2 --- /dev/null +++ b/src/models/StartVmsRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface StartVmsRequest + */ +export interface StartVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof StartVmsRequest + */ + dryRun?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof StartVmsRequest + */ + vmIds: Array; +} + +export function StartVmsRequestFromJSON(json: any): StartVmsRequest { + return StartVmsRequestFromJSONTyped(json, false); +} + +export function StartVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartVmsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'vmIds': json['VmIds'], + }; +} + +export function StartVmsRequestToJSON(value?: StartVmsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/StartVmsResponse.ts b/src/models/StartVmsResponse.ts new file mode 100644 index 00000000..7abb600b --- /dev/null +++ b/src/models/StartVmsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VmState, + VmStateFromJSON, + VmStateFromJSONTyped, + VmStateToJSON, +} from './VmState'; + +/** + * + * @export + * @interface StartVmsResponse + */ +export interface StartVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof StartVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more started VMs. + * @type {Array} + * @memberof StartVmsResponse + */ + vms?: Array; +} + +export function StartVmsResponseFromJSON(json: any): StartVmsResponse { + return StartVmsResponseFromJSONTyped(json, false); +} + +export function StartVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartVmsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : ((json['Vms'] as Array).map(VmStateFromJSON)), + }; +} + +export function StartVmsResponseToJSON(value?: StartVmsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : ((value.vms as Array).map(VmStateToJSON)), + }; +} + diff --git a/src/models/StateComment.ts b/src/models/StateComment.ts new file mode 100644 index 00000000..88a4f1bd --- /dev/null +++ b/src/models/StateComment.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the change of state. + * @export + * @interface StateComment + */ +export interface StateComment { + /** + * The code of the change of state. + * @type {string} + * @memberof StateComment + */ + stateCode?: string; + /** + * A message explaining the change of state. + * @type {string} + * @memberof StateComment + */ + stateMessage?: string; +} + +export function StateCommentFromJSON(json: any): StateComment { + return StateCommentFromJSONTyped(json, false); +} + +export function StateCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateComment { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'stateCode': !exists(json, 'StateCode') ? undefined : json['StateCode'], + 'stateMessage': !exists(json, 'StateMessage') ? undefined : json['StateMessage'], + }; +} + +export function StateCommentToJSON(value?: StateComment | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'StateCode': value.stateCode, + 'StateMessage': value.stateMessage, + }; +} + diff --git a/src/models/StopVmsRequest.ts b/src/models/StopVmsRequest.ts new file mode 100644 index 00000000..de71a873 --- /dev/null +++ b/src/models/StopVmsRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface StopVmsRequest + */ +export interface StopVmsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof StopVmsRequest + */ + dryRun?: boolean; + /** + * Forces the VM to stop. + * @type {boolean} + * @memberof StopVmsRequest + */ + forceStop?: boolean; + /** + * One or more IDs of VMs. + * @type {Array} + * @memberof StopVmsRequest + */ + vmIds: Array; +} + +export function StopVmsRequestFromJSON(json: any): StopVmsRequest { + return StopVmsRequestFromJSONTyped(json, false); +} + +export function StopVmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopVmsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'forceStop': !exists(json, 'ForceStop') ? undefined : json['ForceStop'], + 'vmIds': json['VmIds'], + }; +} + +export function StopVmsRequestToJSON(value?: StopVmsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ForceStop': value.forceStop, + 'VmIds': value.vmIds, + }; +} + diff --git a/src/models/StopVmsResponse.ts b/src/models/StopVmsResponse.ts new file mode 100644 index 00000000..6f5e5323 --- /dev/null +++ b/src/models/StopVmsResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VmState, + VmStateFromJSON, + VmStateFromJSONTyped, + VmStateToJSON, +} from './VmState'; + +/** + * + * @export + * @interface StopVmsResponse + */ +export interface StopVmsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof StopVmsResponse + */ + responseContext?: ModelResponseContext; + /** + * Information about one or more stopped VMs. + * @type {Array} + * @memberof StopVmsResponse + */ + vms?: Array; +} + +export function StopVmsResponseFromJSON(json: any): StopVmsResponse { + return StopVmsResponseFromJSONTyped(json, false); +} + +export function StopVmsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopVmsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vms': !exists(json, 'Vms') ? undefined : ((json['Vms'] as Array).map(VmStateFromJSON)), + }; +} + +export function StopVmsResponseToJSON(value?: StopVmsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vms': value.vms === undefined ? undefined : ((value.vms as Array).map(VmStateToJSON)), + }; +} + diff --git a/src/models/Subnet.ts b/src/models/Subnet.ts new file mode 100644 index 00000000..4c0fe0a6 --- /dev/null +++ b/src/models/Subnet.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the Subnet. + * @export + * @interface Subnet + */ +export interface Subnet { + /** + * The number of available IPs in the Subnets. + * @type {number} + * @memberof Subnet + */ + availableIpsCount?: number; + /** + * The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). + * @type {string} + * @memberof Subnet + */ + ipRange?: string; + /** + * If true, a public IP is assigned to the network interface cards (NICs) created in the specified Subnet. + * @type {boolean} + * @memberof Subnet + */ + mapPublicIpOnLaunch?: boolean; + /** + * The ID of the Net in which the Subnet is. + * @type {string} + * @memberof Subnet + */ + netId?: string; + /** + * The state of the Subnet (`pending` \| `available`). + * @type {string} + * @memberof Subnet + */ + state?: string; + /** + * The ID of the Subnet. + * @type {string} + * @memberof Subnet + */ + subnetId?: string; + /** + * The name of the Subregion in which the Subnet is located. + * @type {string} + * @memberof Subnet + */ + subregionName?: string; + /** + * One or more tags associated with the Subnet. + * @type {Array} + * @memberof Subnet + */ + tags?: Array; +} + +export function SubnetFromJSON(json: any): Subnet { + return SubnetFromJSONTyped(json, false); +} + +export function SubnetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subnet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableIpsCount': !exists(json, 'AvailableIpsCount') ? undefined : json['AvailableIpsCount'], + 'ipRange': !exists(json, 'IpRange') ? undefined : json['IpRange'], + 'mapPublicIpOnLaunch': !exists(json, 'MapPublicIpOnLaunch') ? undefined : json['MapPublicIpOnLaunch'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + }; +} + +export function SubnetToJSON(value?: Subnet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AvailableIpsCount': value.availableIpsCount, + 'IpRange': value.ipRange, + 'MapPublicIpOnLaunch': value.mapPublicIpOnLaunch, + 'NetId': value.netId, + 'State': value.state, + 'SubnetId': value.subnetId, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + }; +} + diff --git a/src/models/Subregion.ts b/src/models/Subregion.ts new file mode 100644 index 00000000..298a2e10 --- /dev/null +++ b/src/models/Subregion.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the Subregion. + * @export + * @interface Subregion + */ +export interface Subregion { + /** + * The name of the Region containing the Subregion. + * @type {string} + * @memberof Subregion + */ + regionName?: string; + /** + * The state of the Subregion (`available` \| `information` \| `impaired` \| `unavailable`). + * @type {string} + * @memberof Subregion + */ + state?: string; + /** + * The name of the Subregion. + * @type {string} + * @memberof Subregion + */ + subregionName?: string; +} + +export function SubregionFromJSON(json: any): Subregion { + return SubregionFromJSONTyped(json, false); +} + +export function SubregionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subregion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'regionName': !exists(json, 'RegionName') ? undefined : json['RegionName'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + }; +} + +export function SubregionToJSON(value?: Subregion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'RegionName': value.regionName, + 'State': value.state, + 'SubregionName': value.subregionName, + }; +} + diff --git a/src/models/Tag.ts b/src/models/Tag.ts new file mode 100644 index 00000000..cdf05997 --- /dev/null +++ b/src/models/Tag.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the tag. + * @export + * @interface Tag + */ +export interface Tag { + /** + * The key of the tag, with a minimum of 1 character. + * @type {string} + * @memberof Tag + */ + key?: string; + /** + * The ID of the resource. + * @type {string} + * @memberof Tag + */ + resourceId?: string; + /** + * The type of the resource. + * @type {string} + * @memberof Tag + */ + resourceType?: string; + /** + * The value of the tag, between 0 and 255 characters. + * @type {string} + * @memberof Tag + */ + value?: string; +} + +export function TagFromJSON(json: any): Tag { + return TagFromJSONTyped(json, false); +} + +export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': !exists(json, 'Key') ? undefined : json['Key'], + 'resourceId': !exists(json, 'ResourceId') ? undefined : json['ResourceId'], + 'resourceType': !exists(json, 'ResourceType') ? undefined : json['ResourceType'], + 'value': !exists(json, 'Value') ? undefined : json['Value'], + }; +} + +export function TagToJSON(value?: Tag | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Key': value.key, + 'ResourceId': value.resourceId, + 'ResourceType': value.resourceType, + 'Value': value.value, + }; +} + diff --git a/src/models/UnlinkFlexibleGpuRequest.ts b/src/models/UnlinkFlexibleGpuRequest.ts new file mode 100644 index 00000000..51a5858f --- /dev/null +++ b/src/models/UnlinkFlexibleGpuRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkFlexibleGpuRequest + */ +export interface UnlinkFlexibleGpuRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to detach from your VM. + * @type {string} + * @memberof UnlinkFlexibleGpuRequest + */ + flexibleGpuId: string; +} + +export function UnlinkFlexibleGpuRequestFromJSON(json: any): UnlinkFlexibleGpuRequest { + return UnlinkFlexibleGpuRequestFromJSONTyped(json, false); +} + +export function UnlinkFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkFlexibleGpuRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} + +export function UnlinkFlexibleGpuRequestToJSON(value?: UnlinkFlexibleGpuRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} + diff --git a/src/models/UnlinkFlexibleGpuResponse.ts b/src/models/UnlinkFlexibleGpuResponse.ts new file mode 100644 index 00000000..76e2c8e9 --- /dev/null +++ b/src/models/UnlinkFlexibleGpuResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkFlexibleGpuResponse + */ +export interface UnlinkFlexibleGpuResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkFlexibleGpuResponseFromJSON(json: any): UnlinkFlexibleGpuResponse { + return UnlinkFlexibleGpuResponseFromJSONTyped(json, false); +} + +export function UnlinkFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkFlexibleGpuResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkFlexibleGpuResponseToJSON(value?: UnlinkFlexibleGpuResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkInternetServiceRequest.ts b/src/models/UnlinkInternetServiceRequest.ts new file mode 100644 index 00000000..d03dbf63 --- /dev/null +++ b/src/models/UnlinkInternetServiceRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkInternetServiceRequest + */ +export interface UnlinkInternetServiceRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkInternetServiceRequest + */ + dryRun?: boolean; + /** + * The ID of the Internet service you want to detach. + * @type {string} + * @memberof UnlinkInternetServiceRequest + */ + internetServiceId: string; + /** + * The ID of the Net from which you want to detach the Internet service. + * @type {string} + * @memberof UnlinkInternetServiceRequest + */ + netId: string; +} + +export function UnlinkInternetServiceRequestFromJSON(json: any): UnlinkInternetServiceRequest { + return UnlinkInternetServiceRequestFromJSONTyped(json, false); +} + +export function UnlinkInternetServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkInternetServiceRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'internetServiceId': json['InternetServiceId'], + 'netId': json['NetId'], + }; +} + +export function UnlinkInternetServiceRequestToJSON(value?: UnlinkInternetServiceRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'InternetServiceId': value.internetServiceId, + 'NetId': value.netId, + }; +} + diff --git a/src/models/UnlinkInternetServiceResponse.ts b/src/models/UnlinkInternetServiceResponse.ts new file mode 100644 index 00000000..61f80dd4 --- /dev/null +++ b/src/models/UnlinkInternetServiceResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkInternetServiceResponse + */ +export interface UnlinkInternetServiceResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkInternetServiceResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkInternetServiceResponseFromJSON(json: any): UnlinkInternetServiceResponse { + return UnlinkInternetServiceResponseFromJSONTyped(json, false); +} + +export function UnlinkInternetServiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkInternetServiceResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkInternetServiceResponseToJSON(value?: UnlinkInternetServiceResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkLoadBalancerBackendMachinesRequest.ts b/src/models/UnlinkLoadBalancerBackendMachinesRequest.ts new file mode 100644 index 00000000..c4c6c488 --- /dev/null +++ b/src/models/UnlinkLoadBalancerBackendMachinesRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkLoadBalancerBackendMachinesRequest + */ +export interface UnlinkLoadBalancerBackendMachinesRequest { + /** + * One or more public IPs of back-end VMs. + * @type {Array} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + backendIps?: Array; + /** + * One or more IDs of back-end VMs. + * @type {Array} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + backendVmIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + dryRun?: boolean; + /** + * The name of the load balancer. + * @type {string} + * @memberof UnlinkLoadBalancerBackendMachinesRequest + */ + loadBalancerName: string; +} + +export function UnlinkLoadBalancerBackendMachinesRequestFromJSON(json: any): UnlinkLoadBalancerBackendMachinesRequest { + return UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json, false); +} + +export function UnlinkLoadBalancerBackendMachinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkLoadBalancerBackendMachinesRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backendIps': !exists(json, 'BackendIps') ? undefined : json['BackendIps'], + 'backendVmIds': !exists(json, 'BackendVmIds') ? undefined : json['BackendVmIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'loadBalancerName': json['LoadBalancerName'], + }; +} + +export function UnlinkLoadBalancerBackendMachinesRequestToJSON(value?: UnlinkLoadBalancerBackendMachinesRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BackendIps': value.backendIps, + 'BackendVmIds': value.backendVmIds, + 'DryRun': value.dryRun, + 'LoadBalancerName': value.loadBalancerName, + }; +} + diff --git a/src/models/UnlinkLoadBalancerBackendMachinesResponse.ts b/src/models/UnlinkLoadBalancerBackendMachinesResponse.ts new file mode 100644 index 00000000..e1009f9e --- /dev/null +++ b/src/models/UnlinkLoadBalancerBackendMachinesResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkLoadBalancerBackendMachinesResponse + */ +export interface UnlinkLoadBalancerBackendMachinesResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkLoadBalancerBackendMachinesResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkLoadBalancerBackendMachinesResponseFromJSON(json: any): UnlinkLoadBalancerBackendMachinesResponse { + return UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json, false); +} + +export function UnlinkLoadBalancerBackendMachinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkLoadBalancerBackendMachinesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkLoadBalancerBackendMachinesResponseToJSON(value?: UnlinkLoadBalancerBackendMachinesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkNicRequest.ts b/src/models/UnlinkNicRequest.ts new file mode 100644 index 00000000..32c5a859 --- /dev/null +++ b/src/models/UnlinkNicRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkNicRequest + */ +export interface UnlinkNicRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkNicRequest + */ + dryRun?: boolean; + /** + * The ID of the attachment operation. + * @type {string} + * @memberof UnlinkNicRequest + */ + linkNicId: string; +} + +export function UnlinkNicRequestFromJSON(json: any): UnlinkNicRequest { + return UnlinkNicRequestFromJSONTyped(json, false); +} + +export function UnlinkNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkNicRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkNicId': json['LinkNicId'], + }; +} + +export function UnlinkNicRequestToJSON(value?: UnlinkNicRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LinkNicId': value.linkNicId, + }; +} + diff --git a/src/models/UnlinkNicResponse.ts b/src/models/UnlinkNicResponse.ts new file mode 100644 index 00000000..f5181a65 --- /dev/null +++ b/src/models/UnlinkNicResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkNicResponse + */ +export interface UnlinkNicResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkNicResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkNicResponseFromJSON(json: any): UnlinkNicResponse { + return UnlinkNicResponseFromJSONTyped(json, false); +} + +export function UnlinkNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkNicResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkNicResponseToJSON(value?: UnlinkNicResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkPrivateIpsRequest.ts b/src/models/UnlinkPrivateIpsRequest.ts new file mode 100644 index 00000000..26e35d91 --- /dev/null +++ b/src/models/UnlinkPrivateIpsRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkPrivateIpsRequest + */ +export interface UnlinkPrivateIpsRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkPrivateIpsRequest + */ + dryRun?: boolean; + /** + * The ID of the NIC. + * @type {string} + * @memberof UnlinkPrivateIpsRequest + */ + nicId: string; + /** + * One or more secondary private IPs you want to unassign from the NIC. + * @type {Array} + * @memberof UnlinkPrivateIpsRequest + */ + privateIps: Array; +} + +export function UnlinkPrivateIpsRequestFromJSON(json: any): UnlinkPrivateIpsRequest { + return UnlinkPrivateIpsRequestFromJSONTyped(json, false); +} + +export function UnlinkPrivateIpsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPrivateIpsRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'nicId': json['NicId'], + 'privateIps': json['PrivateIps'], + }; +} + +export function UnlinkPrivateIpsRequestToJSON(value?: UnlinkPrivateIpsRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NicId': value.nicId, + 'PrivateIps': value.privateIps, + }; +} + diff --git a/src/models/UnlinkPrivateIpsResponse.ts b/src/models/UnlinkPrivateIpsResponse.ts new file mode 100644 index 00000000..f4d3baf1 --- /dev/null +++ b/src/models/UnlinkPrivateIpsResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkPrivateIpsResponse + */ +export interface UnlinkPrivateIpsResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkPrivateIpsResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkPrivateIpsResponseFromJSON(json: any): UnlinkPrivateIpsResponse { + return UnlinkPrivateIpsResponseFromJSONTyped(json, false); +} + +export function UnlinkPrivateIpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPrivateIpsResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkPrivateIpsResponseToJSON(value?: UnlinkPrivateIpsResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkPublicIpRequest.ts b/src/models/UnlinkPublicIpRequest.ts new file mode 100644 index 00000000..77fb610a --- /dev/null +++ b/src/models/UnlinkPublicIpRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkPublicIpRequest + */ +export interface UnlinkPublicIpRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkPublicIpRequest + */ + dryRun?: boolean; + /** + * The ID representing the association of the public IP with the VM or the NIC. This parameter is required unless you use the `PublicIp` parameter. + * @type {string} + * @memberof UnlinkPublicIpRequest + */ + linkPublicIpId?: string; + /** + * The public IP. This parameter is required unless you use the `LinkPublicIpId` parameter. + * @type {string} + * @memberof UnlinkPublicIpRequest + */ + publicIp?: string; +} + +export function UnlinkPublicIpRequestFromJSON(json: any): UnlinkPublicIpRequest { + return UnlinkPublicIpRequestFromJSONTyped(json, false); +} + +export function UnlinkPublicIpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPublicIpRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkPublicIpId': !exists(json, 'LinkPublicIpId') ? undefined : json['LinkPublicIpId'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + }; +} + +export function UnlinkPublicIpRequestToJSON(value?: UnlinkPublicIpRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LinkPublicIpId': value.linkPublicIpId, + 'PublicIp': value.publicIp, + }; +} + diff --git a/src/models/UnlinkPublicIpResponse.ts b/src/models/UnlinkPublicIpResponse.ts new file mode 100644 index 00000000..087e19e4 --- /dev/null +++ b/src/models/UnlinkPublicIpResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkPublicIpResponse + */ +export interface UnlinkPublicIpResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkPublicIpResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkPublicIpResponseFromJSON(json: any): UnlinkPublicIpResponse { + return UnlinkPublicIpResponseFromJSONTyped(json, false); +} + +export function UnlinkPublicIpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkPublicIpResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkPublicIpResponseToJSON(value?: UnlinkPublicIpResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkRouteTableRequest.ts b/src/models/UnlinkRouteTableRequest.ts new file mode 100644 index 00000000..b766dc28 --- /dev/null +++ b/src/models/UnlinkRouteTableRequest.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkRouteTableRequest + */ +export interface UnlinkRouteTableRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkRouteTableRequest + */ + dryRun?: boolean; + /** + * The ID of the association between the route table and the Subnet. + * @type {string} + * @memberof UnlinkRouteTableRequest + */ + linkRouteTableId: string; +} + +export function UnlinkRouteTableRequestFromJSON(json: any): UnlinkRouteTableRequest { + return UnlinkRouteTableRequestFromJSONTyped(json, false); +} + +export function UnlinkRouteTableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkRouteTableRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkRouteTableId': json['LinkRouteTableId'], + }; +} + +export function UnlinkRouteTableRequestToJSON(value?: UnlinkRouteTableRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'LinkRouteTableId': value.linkRouteTableId, + }; +} + diff --git a/src/models/UnlinkRouteTableResponse.ts b/src/models/UnlinkRouteTableResponse.ts new file mode 100644 index 00000000..b13e53fe --- /dev/null +++ b/src/models/UnlinkRouteTableResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkRouteTableResponse + */ +export interface UnlinkRouteTableResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkRouteTableResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkRouteTableResponseFromJSON(json: any): UnlinkRouteTableResponse { + return UnlinkRouteTableResponseFromJSONTyped(json, false); +} + +export function UnlinkRouteTableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkRouteTableResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkRouteTableResponseToJSON(value?: UnlinkRouteTableResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkVirtualGatewayRequest.ts b/src/models/UnlinkVirtualGatewayRequest.ts new file mode 100644 index 00000000..21f5331b --- /dev/null +++ b/src/models/UnlinkVirtualGatewayRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkVirtualGatewayRequest + */ +export interface UnlinkVirtualGatewayRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkVirtualGatewayRequest + */ + dryRun?: boolean; + /** + * The ID of the Net from which you want to detach the virtual gateway. + * @type {string} + * @memberof UnlinkVirtualGatewayRequest + */ + netId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UnlinkVirtualGatewayRequest + */ + virtualGatewayId: string; +} + +export function UnlinkVirtualGatewayRequestFromJSON(json: any): UnlinkVirtualGatewayRequest { + return UnlinkVirtualGatewayRequestFromJSONTyped(json, false); +} + +export function UnlinkVirtualGatewayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVirtualGatewayRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} + +export function UnlinkVirtualGatewayRequestToJSON(value?: UnlinkVirtualGatewayRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'NetId': value.netId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/UnlinkVirtualGatewayResponse.ts b/src/models/UnlinkVirtualGatewayResponse.ts new file mode 100644 index 00000000..7e5f080c --- /dev/null +++ b/src/models/UnlinkVirtualGatewayResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkVirtualGatewayResponse + */ +export interface UnlinkVirtualGatewayResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkVirtualGatewayResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkVirtualGatewayResponseFromJSON(json: any): UnlinkVirtualGatewayResponse { + return UnlinkVirtualGatewayResponseFromJSONTyped(json, false); +} + +export function UnlinkVirtualGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVirtualGatewayResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkVirtualGatewayResponseToJSON(value?: UnlinkVirtualGatewayResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UnlinkVolumeRequest.ts b/src/models/UnlinkVolumeRequest.ts new file mode 100644 index 00000000..ae2847e1 --- /dev/null +++ b/src/models/UnlinkVolumeRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnlinkVolumeRequest + */ +export interface UnlinkVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UnlinkVolumeRequest + */ + dryRun?: boolean; + /** + * Forces the detachment of the volume in case of previous failure. Important: This action may damage your data or file systems. + * @type {boolean} + * @memberof UnlinkVolumeRequest + */ + forceUnlink?: boolean; + /** + * The ID of the volume you want to detach. + * @type {string} + * @memberof UnlinkVolumeRequest + */ + volumeId: string; +} + +export function UnlinkVolumeRequestFromJSON(json: any): UnlinkVolumeRequest { + return UnlinkVolumeRequestFromJSONTyped(json, false); +} + +export function UnlinkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVolumeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'forceUnlink': !exists(json, 'ForceUnlink') ? undefined : json['ForceUnlink'], + 'volumeId': json['VolumeId'], + }; +} + +export function UnlinkVolumeRequestToJSON(value?: UnlinkVolumeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ForceUnlink': value.forceUnlink, + 'VolumeId': value.volumeId, + }; +} + diff --git a/src/models/UnlinkVolumeResponse.ts b/src/models/UnlinkVolumeResponse.ts new file mode 100644 index 00000000..b2a1f26b --- /dev/null +++ b/src/models/UnlinkVolumeResponse.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UnlinkVolumeResponse + */ +export interface UnlinkVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UnlinkVolumeResponse + */ + responseContext?: ModelResponseContext; +} + +export function UnlinkVolumeResponseFromJSON(json: any): UnlinkVolumeResponse { + return UnlinkVolumeResponseFromJSONTyped(json, false); +} + +export function UnlinkVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnlinkVolumeResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UnlinkVolumeResponseToJSON(value?: UnlinkVolumeResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateAccessKeyRequest.ts b/src/models/UpdateAccessKeyRequest.ts new file mode 100644 index 00000000..3a5911de --- /dev/null +++ b/src/models/UpdateAccessKeyRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateAccessKeyRequest + */ +export interface UpdateAccessKeyRequest { + /** + * The ID of the access key. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + accessKeyId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateAccessKeyRequest + */ + dryRun?: boolean; + /** + * The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). If not specified, the access key is set to not expire. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + expirationDate?: string; + /** + * The new state for the access key (`ACTIVE` \| `INACTIVE`). When set to `ACTIVE`, the access key is enabled and can be used to send requests. When set to `INACTIVE`, the access key is disabled. + * @type {string} + * @memberof UpdateAccessKeyRequest + */ + state: string; +} + +export function UpdateAccessKeyRequestFromJSON(json: any): UpdateAccessKeyRequest { + return UpdateAccessKeyRequestFromJSONTyped(json, false); +} + +export function UpdateAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccessKeyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKeyId': json['AccessKeyId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'expirationDate': !exists(json, 'ExpirationDate') ? undefined : json['ExpirationDate'], + 'state': json['State'], + }; +} + +export function UpdateAccessKeyRequestToJSON(value?: UpdateAccessKeyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKeyId': value.accessKeyId, + 'DryRun': value.dryRun, + 'ExpirationDate': value.expirationDate, + 'State': value.state, + }; +} + diff --git a/src/models/UpdateAccessKeyResponse.ts b/src/models/UpdateAccessKeyResponse.ts new file mode 100644 index 00000000..b2ccc05a --- /dev/null +++ b/src/models/UpdateAccessKeyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccessKey, + AccessKeyFromJSON, + AccessKeyFromJSONTyped, + AccessKeyToJSON, +} from './AccessKey'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateAccessKeyResponse + */ +export interface UpdateAccessKeyResponse { + /** + * + * @type {AccessKey} + * @memberof UpdateAccessKeyResponse + */ + accessKey?: AccessKey; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateAccessKeyResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateAccessKeyResponseFromJSON(json: any): UpdateAccessKeyResponse { + return UpdateAccessKeyResponseFromJSONTyped(json, false); +} + +export function UpdateAccessKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccessKeyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessKey': !exists(json, 'AccessKey') ? undefined : AccessKeyFromJSON(json['AccessKey']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateAccessKeyResponseToJSON(value?: UpdateAccessKeyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessKey': AccessKeyToJSON(value.accessKey), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateAccountRequest.ts b/src/models/UpdateAccountRequest.ts new file mode 100644 index 00000000..44cb7340 --- /dev/null +++ b/src/models/UpdateAccountRequest.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateAccountRequest + */ +export interface UpdateAccountRequest { + /** + * One or more additional email addresses for the account. These addresses are used for notifications only. If you already have a list of additional emails registered, you cannot add to it, only replace it. To remove all registered additional emails, specify an empty list. + * @type {Array} + * @memberof UpdateAccountRequest + */ + additionalEmails?: Array; + /** + * The new city of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + city?: string; + /** + * The new name of the company for the account. + * @type {string} + * @memberof UpdateAccountRequest + */ + companyName?: string; + /** + * The new country of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + country?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateAccountRequest + */ + dryRun?: boolean; + /** + * The main email address for the account. This address is used for your credentials and notifications. + * @type {string} + * @memberof UpdateAccountRequest + */ + email?: string; + /** + * The new first name of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + firstName?: string; + /** + * The new job title of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + jobTitle?: string; + /** + * The new last name of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + lastName?: string; + /** + * The new mobile phone number of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + mobileNumber?: string; + /** + * The new landline phone number of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + phoneNumber?: string; + /** + * The new state/province of the account owner. + * @type {string} + * @memberof UpdateAccountRequest + */ + stateProvince?: string; + /** + * The new value added tax (VAT) number for the account. + * @type {string} + * @memberof UpdateAccountRequest + */ + vatNumber?: string; + /** + * The new ZIP code of the city. + * @type {string} + * @memberof UpdateAccountRequest + */ + zipCode?: string; +} + +export function UpdateAccountRequestFromJSON(json: any): UpdateAccountRequest { + return UpdateAccountRequestFromJSONTyped(json, false); +} + +export function UpdateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'additionalEmails': !exists(json, 'AdditionalEmails') ? undefined : json['AdditionalEmails'], + 'city': !exists(json, 'City') ? undefined : json['City'], + 'companyName': !exists(json, 'CompanyName') ? undefined : json['CompanyName'], + 'country': !exists(json, 'Country') ? undefined : json['Country'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'email': !exists(json, 'Email') ? undefined : json['Email'], + 'firstName': !exists(json, 'FirstName') ? undefined : json['FirstName'], + 'jobTitle': !exists(json, 'JobTitle') ? undefined : json['JobTitle'], + 'lastName': !exists(json, 'LastName') ? undefined : json['LastName'], + 'mobileNumber': !exists(json, 'MobileNumber') ? undefined : json['MobileNumber'], + 'phoneNumber': !exists(json, 'PhoneNumber') ? undefined : json['PhoneNumber'], + 'stateProvince': !exists(json, 'StateProvince') ? undefined : json['StateProvince'], + 'vatNumber': !exists(json, 'VatNumber') ? undefined : json['VatNumber'], + 'zipCode': !exists(json, 'ZipCode') ? undefined : json['ZipCode'], + }; +} + +export function UpdateAccountRequestToJSON(value?: UpdateAccountRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AdditionalEmails': value.additionalEmails, + 'City': value.city, + 'CompanyName': value.companyName, + 'Country': value.country, + 'DryRun': value.dryRun, + 'Email': value.email, + 'FirstName': value.firstName, + 'JobTitle': value.jobTitle, + 'LastName': value.lastName, + 'MobileNumber': value.mobileNumber, + 'PhoneNumber': value.phoneNumber, + 'StateProvince': value.stateProvince, + 'VatNumber': value.vatNumber, + 'ZipCode': value.zipCode, + }; +} + diff --git a/src/models/UpdateAccountResponse.ts b/src/models/UpdateAccountResponse.ts new file mode 100644 index 00000000..f68cd676 --- /dev/null +++ b/src/models/UpdateAccountResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Account, + AccountFromJSON, + AccountFromJSONTyped, + AccountToJSON, +} from './Account'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateAccountResponse + */ +export interface UpdateAccountResponse { + /** + * + * @type {Account} + * @memberof UpdateAccountResponse + */ + account?: Account; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateAccountResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateAccountResponseFromJSON(json: any): UpdateAccountResponse { + return UpdateAccountResponseFromJSONTyped(json, false); +} + +export function UpdateAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'account': !exists(json, 'Account') ? undefined : AccountFromJSON(json['Account']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateAccountResponseToJSON(value?: UpdateAccountResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Account': AccountToJSON(value.account), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateApiAccessPolicyRequest.ts b/src/models/UpdateApiAccessPolicyRequest.ts new file mode 100644 index 00000000..4ab43669 --- /dev/null +++ b/src/models/UpdateApiAccessPolicyRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateApiAccessPolicyRequest + */ +export interface UpdateApiAccessPolicyRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateApiAccessPolicyRequest + */ + dryRun?: boolean; + /** + * The maximum possible lifetime for your access keys, in seconds (between `0` and `3153600000`, both included). If set to `O`, your access keys can have unlimited lifetimes, but a trusted session cannot be activated. Otherwise, all your access keys must have an expiration date. This value must be greater than the remaining lifetime of each access key of your account. + * @type {number} + * @memberof UpdateApiAccessPolicyRequest + */ + maxAccessKeyExpirationSeconds: number; + /** + * If true, a trusted session is activated, provided that you specify the `MaxAccessKeyExpirationSeconds` parameter with a value greater than `0`. + * @type {boolean} + * @memberof UpdateApiAccessPolicyRequest + */ + requireTrustedEnv: boolean; +} + +export function UpdateApiAccessPolicyRequestFromJSON(json: any): UpdateApiAccessPolicyRequest { + return UpdateApiAccessPolicyRequestFromJSONTyped(json, false); +} + +export function UpdateApiAccessPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessPolicyRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'maxAccessKeyExpirationSeconds': json['MaxAccessKeyExpirationSeconds'], + 'requireTrustedEnv': json['RequireTrustedEnv'], + }; +} + +export function UpdateApiAccessPolicyRequestToJSON(value?: UpdateApiAccessPolicyRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'MaxAccessKeyExpirationSeconds': value.maxAccessKeyExpirationSeconds, + 'RequireTrustedEnv': value.requireTrustedEnv, + }; +} + diff --git a/src/models/UpdateApiAccessPolicyResponse.ts b/src/models/UpdateApiAccessPolicyResponse.ts new file mode 100644 index 00000000..43d09ccb --- /dev/null +++ b/src/models/UpdateApiAccessPolicyResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ApiAccessPolicy, + ApiAccessPolicyFromJSON, + ApiAccessPolicyFromJSONTyped, + ApiAccessPolicyToJSON, +} from './ApiAccessPolicy'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateApiAccessPolicyResponse + */ +export interface UpdateApiAccessPolicyResponse { + /** + * + * @type {ApiAccessPolicy} + * @memberof UpdateApiAccessPolicyResponse + */ + apiAccessPolicy?: ApiAccessPolicy; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateApiAccessPolicyResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateApiAccessPolicyResponseFromJSON(json: any): UpdateApiAccessPolicyResponse { + return UpdateApiAccessPolicyResponseFromJSONTyped(json, false); +} + +export function UpdateApiAccessPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessPolicyResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessPolicy': !exists(json, 'ApiAccessPolicy') ? undefined : ApiAccessPolicyFromJSON(json['ApiAccessPolicy']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateApiAccessPolicyResponseToJSON(value?: UpdateApiAccessPolicyResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessPolicy': ApiAccessPolicyToJSON(value.apiAccessPolicy), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateApiAccessRuleRequest.ts b/src/models/UpdateApiAccessRuleRequest.ts new file mode 100644 index 00000000..beaa7aba --- /dev/null +++ b/src/models/UpdateApiAccessRuleRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateApiAccessRuleRequest + */ +export interface UpdateApiAccessRuleRequest { + /** + * The ID of the API access rule you want to update. + * @type {string} + * @memberof UpdateApiAccessRuleRequest + */ + apiAccessRuleId: string; + /** + * One or more IDs of Client Certificate Authorities (CAs). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + caIds?: Array; + /** + * One or more Client Certificate Common Names (CNs). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + cns?: Array; + /** + * A new description for the API access rule. + * @type {string} + * @memberof UpdateApiAccessRuleRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateApiAccessRuleRequest + */ + dryRun?: boolean; + /** + * One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + * @type {Array} + * @memberof UpdateApiAccessRuleRequest + */ + ipRanges?: Array; +} + +export function UpdateApiAccessRuleRequestFromJSON(json: any): UpdateApiAccessRuleRequest { + return UpdateApiAccessRuleRequestFromJSONTyped(json, false); +} + +export function UpdateApiAccessRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRuleId': json['ApiAccessRuleId'], + 'caIds': !exists(json, 'CaIds') ? undefined : json['CaIds'], + 'cns': !exists(json, 'Cns') ? undefined : json['Cns'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'ipRanges': !exists(json, 'IpRanges') ? undefined : json['IpRanges'], + }; +} + +export function UpdateApiAccessRuleRequestToJSON(value?: UpdateApiAccessRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRuleId': value.apiAccessRuleId, + 'CaIds': value.caIds, + 'Cns': value.cns, + 'Description': value.description, + 'DryRun': value.dryRun, + 'IpRanges': value.ipRanges, + }; +} + diff --git a/src/models/UpdateApiAccessRuleResponse.ts b/src/models/UpdateApiAccessRuleResponse.ts new file mode 100644 index 00000000..3cc4c984 --- /dev/null +++ b/src/models/UpdateApiAccessRuleResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ApiAccessRule, + ApiAccessRuleFromJSON, + ApiAccessRuleFromJSONTyped, + ApiAccessRuleToJSON, +} from './ApiAccessRule'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateApiAccessRuleResponse + */ +export interface UpdateApiAccessRuleResponse { + /** + * + * @type {ApiAccessRule} + * @memberof UpdateApiAccessRuleResponse + */ + apiAccessRule?: ApiAccessRule; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateApiAccessRuleResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateApiAccessRuleResponseFromJSON(json: any): UpdateApiAccessRuleResponse { + return UpdateApiAccessRuleResponseFromJSONTyped(json, false); +} + +export function UpdateApiAccessRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiAccessRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiAccessRule': !exists(json, 'ApiAccessRule') ? undefined : ApiAccessRuleFromJSON(json['ApiAccessRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateApiAccessRuleResponseToJSON(value?: UpdateApiAccessRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ApiAccessRule': ApiAccessRuleToJSON(value.apiAccessRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateCaRequest.ts b/src/models/UpdateCaRequest.ts new file mode 100644 index 00000000..e73f3fc6 --- /dev/null +++ b/src/models/UpdateCaRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateCaRequest + */ +export interface UpdateCaRequest { + /** + * The ID of the CA. + * @type {string} + * @memberof UpdateCaRequest + */ + caId: string; + /** + * The description of the CA. + * @type {string} + * @memberof UpdateCaRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateCaRequest + */ + dryRun?: boolean; +} + +export function UpdateCaRequestFromJSON(json: any): UpdateCaRequest { + return UpdateCaRequestFromJSONTyped(json, false); +} + +export function UpdateCaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCaRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caId': json['CaId'], + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + }; +} + +export function UpdateCaRequestToJSON(value?: UpdateCaRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CaId': value.caId, + 'Description': value.description, + 'DryRun': value.dryRun, + }; +} + diff --git a/src/models/UpdateCaResponse.ts b/src/models/UpdateCaResponse.ts new file mode 100644 index 00000000..e897cbfb --- /dev/null +++ b/src/models/UpdateCaResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Ca, + CaFromJSON, + CaFromJSONTyped, + CaToJSON, +} from './Ca'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateCaResponse + */ +export interface UpdateCaResponse { + /** + * + * @type {Ca} + * @memberof UpdateCaResponse + */ + ca?: Ca; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateCaResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateCaResponseFromJSON(json: any): UpdateCaResponse { + return UpdateCaResponseFromJSONTyped(json, false); +} + +export function UpdateCaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCaResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ca': !exists(json, 'Ca') ? undefined : CaFromJSON(json['Ca']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateCaResponseToJSON(value?: UpdateCaResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Ca': CaToJSON(value.ca), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateFlexibleGpuRequest.ts b/src/models/UpdateFlexibleGpuRequest.ts new file mode 100644 index 00000000..258af998 --- /dev/null +++ b/src/models/UpdateFlexibleGpuRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateFlexibleGpuRequest + */ +export interface UpdateFlexibleGpuRequest { + /** + * If true, the fGPU is deleted when the VM is terminated. + * @type {boolean} + * @memberof UpdateFlexibleGpuRequest + */ + deleteOnVmDeletion?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateFlexibleGpuRequest + */ + dryRun?: boolean; + /** + * The ID of the fGPU you want to modify. + * @type {string} + * @memberof UpdateFlexibleGpuRequest + */ + flexibleGpuId: string; +} + +export function UpdateFlexibleGpuRequestFromJSON(json: any): UpdateFlexibleGpuRequest { + return UpdateFlexibleGpuRequestFromJSONTyped(json, false); +} + +export function UpdateFlexibleGpuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFlexibleGpuRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deleteOnVmDeletion': !exists(json, 'DeleteOnVmDeletion') ? undefined : json['DeleteOnVmDeletion'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'flexibleGpuId': json['FlexibleGpuId'], + }; +} + +export function UpdateFlexibleGpuRequestToJSON(value?: UpdateFlexibleGpuRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DeleteOnVmDeletion': value.deleteOnVmDeletion, + 'DryRun': value.dryRun, + 'FlexibleGpuId': value.flexibleGpuId, + }; +} + diff --git a/src/models/UpdateFlexibleGpuResponse.ts b/src/models/UpdateFlexibleGpuResponse.ts new file mode 100644 index 00000000..75ede742 --- /dev/null +++ b/src/models/UpdateFlexibleGpuResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + FlexibleGpu, + FlexibleGpuFromJSON, + FlexibleGpuFromJSONTyped, + FlexibleGpuToJSON, +} from './FlexibleGpu'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateFlexibleGpuResponse + */ +export interface UpdateFlexibleGpuResponse { + /** + * + * @type {FlexibleGpu} + * @memberof UpdateFlexibleGpuResponse + */ + flexibleGpu?: FlexibleGpu; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateFlexibleGpuResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateFlexibleGpuResponseFromJSON(json: any): UpdateFlexibleGpuResponse { + return UpdateFlexibleGpuResponseFromJSONTyped(json, false); +} + +export function UpdateFlexibleGpuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFlexibleGpuResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'flexibleGpu': !exists(json, 'FlexibleGpu') ? undefined : FlexibleGpuFromJSON(json['FlexibleGpu']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateFlexibleGpuResponseToJSON(value?: UpdateFlexibleGpuResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'FlexibleGpu': FlexibleGpuToJSON(value.flexibleGpu), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateImageRequest.ts b/src/models/UpdateImageRequest.ts new file mode 100644 index 00000000..5652a020 --- /dev/null +++ b/src/models/UpdateImageRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PermissionsOnResourceCreation, + PermissionsOnResourceCreationFromJSON, + PermissionsOnResourceCreationFromJSONTyped, + PermissionsOnResourceCreationToJSON, +} from './PermissionsOnResourceCreation'; + +/** + * + * @export + * @interface UpdateImageRequest + */ +export interface UpdateImageRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateImageRequest + */ + dryRun?: boolean; + /** + * The ID of the OMI you want to modify. + * @type {string} + * @memberof UpdateImageRequest + */ + imageId: string; + /** + * + * @type {PermissionsOnResourceCreation} + * @memberof UpdateImageRequest + */ + permissionsToLaunch: PermissionsOnResourceCreation; +} + +export function UpdateImageRequestFromJSON(json: any): UpdateImageRequest { + return UpdateImageRequestFromJSONTyped(json, false); +} + +export function UpdateImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateImageRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'imageId': json['ImageId'], + 'permissionsToLaunch': PermissionsOnResourceCreationFromJSON(json['PermissionsToLaunch']), + }; +} + +export function UpdateImageRequestToJSON(value?: UpdateImageRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'ImageId': value.imageId, + 'PermissionsToLaunch': PermissionsOnResourceCreationToJSON(value.permissionsToLaunch), + }; +} + diff --git a/src/models/UpdateImageResponse.ts b/src/models/UpdateImageResponse.ts new file mode 100644 index 00000000..82adbae4 --- /dev/null +++ b/src/models/UpdateImageResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Image, + ImageFromJSON, + ImageFromJSONTyped, + ImageToJSON, +} from './Image'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateImageResponse + */ +export interface UpdateImageResponse { + /** + * + * @type {Image} + * @memberof UpdateImageResponse + */ + image?: Image; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateImageResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateImageResponseFromJSON(json: any): UpdateImageResponse { + return UpdateImageResponseFromJSONTyped(json, false); +} + +export function UpdateImageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateImageResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'image': !exists(json, 'Image') ? undefined : ImageFromJSON(json['Image']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateImageResponseToJSON(value?: UpdateImageResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Image': ImageToJSON(value.image), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateListenerRuleRequest.ts b/src/models/UpdateListenerRuleRequest.ts new file mode 100644 index 00000000..4eb05821 --- /dev/null +++ b/src/models/UpdateListenerRuleRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateListenerRuleRequest + */ +export interface UpdateListenerRuleRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateListenerRuleRequest + */ + dryRun?: boolean; + /** + * A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + hostPattern?: string | null; + /** + * The name of the listener rule. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + listenerRuleName: string; + /** + * A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?]. + * @type {string} + * @memberof UpdateListenerRuleRequest + */ + pathPattern?: string | null; +} + +export function UpdateListenerRuleRequestFromJSON(json: any): UpdateListenerRuleRequest { + return UpdateListenerRuleRequestFromJSONTyped(json, false); +} + +export function UpdateListenerRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateListenerRuleRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'hostPattern': !exists(json, 'HostPattern') ? undefined : json['HostPattern'], + 'listenerRuleName': json['ListenerRuleName'], + 'pathPattern': !exists(json, 'PathPattern') ? undefined : json['PathPattern'], + }; +} + +export function UpdateListenerRuleRequestToJSON(value?: UpdateListenerRuleRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'HostPattern': value.hostPattern, + 'ListenerRuleName': value.listenerRuleName, + 'PathPattern': value.pathPattern, + }; +} + diff --git a/src/models/UpdateListenerRuleResponse.ts b/src/models/UpdateListenerRuleResponse.ts new file mode 100644 index 00000000..feea04c4 --- /dev/null +++ b/src/models/UpdateListenerRuleResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ListenerRule, + ListenerRuleFromJSON, + ListenerRuleFromJSONTyped, + ListenerRuleToJSON, +} from './ListenerRule'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateListenerRuleResponse + */ +export interface UpdateListenerRuleResponse { + /** + * + * @type {ListenerRule} + * @memberof UpdateListenerRuleResponse + */ + listenerRule?: ListenerRule; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateListenerRuleResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateListenerRuleResponseFromJSON(json: any): UpdateListenerRuleResponse { + return UpdateListenerRuleResponseFromJSONTyped(json, false); +} + +export function UpdateListenerRuleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateListenerRuleResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'listenerRule': !exists(json, 'ListenerRule') ? undefined : ListenerRuleFromJSON(json['ListenerRule']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateListenerRuleResponseToJSON(value?: UpdateListenerRuleResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ListenerRule': ListenerRuleToJSON(value.listenerRule), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateLoadBalancerRequest.ts b/src/models/UpdateLoadBalancerRequest.ts new file mode 100644 index 00000000..90896fed --- /dev/null +++ b/src/models/UpdateLoadBalancerRequest.ts @@ -0,0 +1,133 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + AccessLog, + AccessLogFromJSON, + AccessLogFromJSONTyped, + AccessLogToJSON, +} from './AccessLog'; +import { + HealthCheck, + HealthCheckFromJSON, + HealthCheckFromJSONTyped, + HealthCheckToJSON, +} from './HealthCheck'; + +/** + * + * @export + * @interface UpdateLoadBalancerRequest + */ +export interface UpdateLoadBalancerRequest { + /** + * + * @type {AccessLog} + * @memberof UpdateLoadBalancerRequest + */ + accessLog?: AccessLog; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateLoadBalancerRequest + */ + dryRun?: boolean; + /** + * + * @type {HealthCheck} + * @memberof UpdateLoadBalancerRequest + */ + healthCheck?: HealthCheck; + /** + * The name of the load balancer. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + loadBalancerName: string; + /** + * The port on which the load balancer is listening (between `1` and `65535`, both included). This parameter is required if you want to update the server certificate. + * @type {number} + * @memberof UpdateLoadBalancerRequest + */ + loadBalancerPort?: number; + /** + * The name of the policy you want to enable for the listener. + * @type {Array} + * @memberof UpdateLoadBalancerRequest + */ + policyNames?: Array; + /** + * (internet-facing only) The public IP you want to associate with the load balancer. The former public IP of the load balancer is then disassociated. If you specify an empty string and the former public IP belonged to you, it is disassociated and replaced by a public IP owned by 3DS OUTSCALE. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + publicIp?: string; + /** + * (Net only) One or more IDs of security groups you want to assign to the load balancer. You need to specify the already assigned security groups that you want to keep along with the new ones you are assigning. If the list is empty, the default security group of the Net is assigned to the load balancer. + * @type {Array} + * @memberof UpdateLoadBalancerRequest + */ + securityGroups?: Array; + /** + * The Outscale Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > Outscale Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). If this parameter is specified, you must also specify the `LoadBalancerPort` parameter. + * @type {string} + * @memberof UpdateLoadBalancerRequest + */ + serverCertificateId?: string; +} + +export function UpdateLoadBalancerRequestFromJSON(json: any): UpdateLoadBalancerRequest { + return UpdateLoadBalancerRequestFromJSONTyped(json, false); +} + +export function UpdateLoadBalancerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLoadBalancerRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessLog': !exists(json, 'AccessLog') ? undefined : AccessLogFromJSON(json['AccessLog']), + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'healthCheck': !exists(json, 'HealthCheck') ? undefined : HealthCheckFromJSON(json['HealthCheck']), + 'loadBalancerName': json['LoadBalancerName'], + 'loadBalancerPort': !exists(json, 'LoadBalancerPort') ? undefined : json['LoadBalancerPort'], + 'policyNames': !exists(json, 'PolicyNames') ? undefined : json['PolicyNames'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : json['SecurityGroups'], + 'serverCertificateId': !exists(json, 'ServerCertificateId') ? undefined : json['ServerCertificateId'], + }; +} + +export function UpdateLoadBalancerRequestToJSON(value?: UpdateLoadBalancerRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccessLog': AccessLogToJSON(value.accessLog), + 'DryRun': value.dryRun, + 'HealthCheck': HealthCheckToJSON(value.healthCheck), + 'LoadBalancerName': value.loadBalancerName, + 'LoadBalancerPort': value.loadBalancerPort, + 'PolicyNames': value.policyNames, + 'PublicIp': value.publicIp, + 'SecurityGroups': value.securityGroups, + 'ServerCertificateId': value.serverCertificateId, + }; +} + diff --git a/src/models/UpdateLoadBalancerResponse.ts b/src/models/UpdateLoadBalancerResponse.ts new file mode 100644 index 00000000..e86eee04 --- /dev/null +++ b/src/models/UpdateLoadBalancerResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LoadBalancer, + LoadBalancerFromJSON, + LoadBalancerFromJSONTyped, + LoadBalancerToJSON, +} from './LoadBalancer'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; + +/** + * + * @export + * @interface UpdateLoadBalancerResponse + */ +export interface UpdateLoadBalancerResponse { + /** + * + * @type {LoadBalancer} + * @memberof UpdateLoadBalancerResponse + */ + loadBalancer?: LoadBalancer; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateLoadBalancerResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateLoadBalancerResponseFromJSON(json: any): UpdateLoadBalancerResponse { + return UpdateLoadBalancerResponseFromJSONTyped(json, false); +} + +export function UpdateLoadBalancerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLoadBalancerResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'LoadBalancer') ? undefined : LoadBalancerFromJSON(json['LoadBalancer']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateLoadBalancerResponseToJSON(value?: UpdateLoadBalancerResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'LoadBalancer': LoadBalancerToJSON(value.loadBalancer), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateNetAccessPointRequest.ts b/src/models/UpdateNetAccessPointRequest.ts new file mode 100644 index 00000000..98537ac3 --- /dev/null +++ b/src/models/UpdateNetAccessPointRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateNetAccessPointRequest + */ +export interface UpdateNetAccessPointRequest { + /** + * One or more IDs of route tables to associate with the specified Net access point. + * @type {Array} + * @memberof UpdateNetAccessPointRequest + */ + addRouteTableIds?: Array; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNetAccessPointRequest + */ + dryRun?: boolean; + /** + * The ID of the Net access point. + * @type {string} + * @memberof UpdateNetAccessPointRequest + */ + netAccessPointId: string; + /** + * One or more IDs of route tables to disassociate from the specified Net access point. + * @type {Array} + * @memberof UpdateNetAccessPointRequest + */ + removeRouteTableIds?: Array; +} + +export function UpdateNetAccessPointRequestFromJSON(json: any): UpdateNetAccessPointRequest { + return UpdateNetAccessPointRequestFromJSONTyped(json, false); +} + +export function UpdateNetAccessPointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetAccessPointRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'addRouteTableIds': !exists(json, 'AddRouteTableIds') ? undefined : json['AddRouteTableIds'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netAccessPointId': json['NetAccessPointId'], + 'removeRouteTableIds': !exists(json, 'RemoveRouteTableIds') ? undefined : json['RemoveRouteTableIds'], + }; +} + +export function UpdateNetAccessPointRequestToJSON(value?: UpdateNetAccessPointRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AddRouteTableIds': value.addRouteTableIds, + 'DryRun': value.dryRun, + 'NetAccessPointId': value.netAccessPointId, + 'RemoveRouteTableIds': value.removeRouteTableIds, + }; +} + diff --git a/src/models/UpdateNetAccessPointResponse.ts b/src/models/UpdateNetAccessPointResponse.ts new file mode 100644 index 00000000..a850971f --- /dev/null +++ b/src/models/UpdateNetAccessPointResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + NetAccessPoint, + NetAccessPointFromJSON, + NetAccessPointFromJSONTyped, + NetAccessPointToJSON, +} from './NetAccessPoint'; + +/** + * + * @export + * @interface UpdateNetAccessPointResponse + */ +export interface UpdateNetAccessPointResponse { + /** + * + * @type {NetAccessPoint} + * @memberof UpdateNetAccessPointResponse + */ + netAccessPoint?: NetAccessPoint; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNetAccessPointResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateNetAccessPointResponseFromJSON(json: any): UpdateNetAccessPointResponse { + return UpdateNetAccessPointResponseFromJSONTyped(json, false); +} + +export function UpdateNetAccessPointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetAccessPointResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'netAccessPoint': !exists(json, 'NetAccessPoint') ? undefined : NetAccessPointFromJSON(json['NetAccessPoint']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateNetAccessPointResponseToJSON(value?: UpdateNetAccessPointResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'NetAccessPoint': NetAccessPointToJSON(value.netAccessPoint), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateNetRequest.ts b/src/models/UpdateNetRequest.ts new file mode 100644 index 00000000..a59dd6d8 --- /dev/null +++ b/src/models/UpdateNetRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateNetRequest + */ +export interface UpdateNetRequest { + /** + * The ID of the DHCP options set (or `default` if you want to associate the default one). + * @type {string} + * @memberof UpdateNetRequest + */ + dhcpOptionsSetId: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNetRequest + */ + dryRun?: boolean; + /** + * The ID of the Net. + * @type {string} + * @memberof UpdateNetRequest + */ + netId: string; +} + +export function UpdateNetRequestFromJSON(json: any): UpdateNetRequest { + return UpdateNetRequestFromJSONTyped(json, false); +} + +export function UpdateNetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhcpOptionsSetId': json['DhcpOptionsSetId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'netId': json['NetId'], + }; +} + +export function UpdateNetRequestToJSON(value?: UpdateNetRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DhcpOptionsSetId': value.dhcpOptionsSetId, + 'DryRun': value.dryRun, + 'NetId': value.netId, + }; +} + diff --git a/src/models/UpdateNetResponse.ts b/src/models/UpdateNetResponse.ts new file mode 100644 index 00000000..bdd1c45d --- /dev/null +++ b/src/models/UpdateNetResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Net, + NetFromJSON, + NetFromJSONTyped, + NetToJSON, +} from './Net'; + +/** + * + * @export + * @interface UpdateNetResponse + */ +export interface UpdateNetResponse { + /** + * + * @type {Net} + * @memberof UpdateNetResponse + */ + net?: Net; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNetResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateNetResponseFromJSON(json: any): UpdateNetResponse { + return UpdateNetResponseFromJSONTyped(json, false); +} + +export function UpdateNetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNetResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'net': !exists(json, 'Net') ? undefined : NetFromJSON(json['Net']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateNetResponseToJSON(value?: UpdateNetResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Net': NetToJSON(value.net), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateNicRequest.ts b/src/models/UpdateNicRequest.ts new file mode 100644 index 00000000..77ada446 --- /dev/null +++ b/src/models/UpdateNicRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkNicToUpdate, + LinkNicToUpdateFromJSON, + LinkNicToUpdateFromJSONTyped, + LinkNicToUpdateToJSON, +} from './LinkNicToUpdate'; + +/** + * + * @export + * @interface UpdateNicRequest + */ +export interface UpdateNicRequest { + /** + * A new description for the NIC. + * @type {string} + * @memberof UpdateNicRequest + */ + description?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateNicRequest + */ + dryRun?: boolean; + /** + * + * @type {LinkNicToUpdate} + * @memberof UpdateNicRequest + */ + linkNic?: LinkNicToUpdate; + /** + * The ID of the NIC you want to modify. + * @type {string} + * @memberof UpdateNicRequest + */ + nicId: string; + /** + * One or more IDs of security groups for the NIC.
+ * You must specify at least one group, even if you use the default security group in the Net. + * @type {Array} + * @memberof UpdateNicRequest + */ + securityGroupIds?: Array; +} + +export function UpdateNicRequestFromJSON(json: any): UpdateNicRequest { + return UpdateNicRequestFromJSONTyped(json, false); +} + +export function UpdateNicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNicRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'Description') ? undefined : json['Description'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'linkNic': !exists(json, 'LinkNic') ? undefined : LinkNicToUpdateFromJSON(json['LinkNic']), + 'nicId': json['NicId'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + }; +} + +export function UpdateNicRequestToJSON(value?: UpdateNicRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Description': value.description, + 'DryRun': value.dryRun, + 'LinkNic': LinkNicToUpdateToJSON(value.linkNic), + 'NicId': value.nicId, + 'SecurityGroupIds': value.securityGroupIds, + }; +} + diff --git a/src/models/UpdateNicResponse.ts b/src/models/UpdateNicResponse.ts new file mode 100644 index 00000000..a767f0cf --- /dev/null +++ b/src/models/UpdateNicResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Nic, + NicFromJSON, + NicFromJSONTyped, + NicToJSON, +} from './Nic'; + +/** + * + * @export + * @interface UpdateNicResponse + */ +export interface UpdateNicResponse { + /** + * + * @type {Nic} + * @memberof UpdateNicResponse + */ + nic?: Nic; + /** + * + * @type {ModelResponseContext} + * @memberof UpdateNicResponse + */ + responseContext?: ModelResponseContext; +} + +export function UpdateNicResponseFromJSON(json: any): UpdateNicResponse { + return UpdateNicResponseFromJSONTyped(json, false); +} + +export function UpdateNicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNicResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nic': !exists(json, 'Nic') ? undefined : NicFromJSON(json['Nic']), + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + }; +} + +export function UpdateNicResponseToJSON(value?: UpdateNicResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Nic': NicToJSON(value.nic), + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + }; +} + diff --git a/src/models/UpdateRoutePropagationRequest.ts b/src/models/UpdateRoutePropagationRequest.ts new file mode 100644 index 00000000..0fb0b75a --- /dev/null +++ b/src/models/UpdateRoutePropagationRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateRoutePropagationRequest + */ +export interface UpdateRoutePropagationRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateRoutePropagationRequest + */ + dryRun?: boolean; + /** + * If true, a virtual gateway can propagate routes to a specified route table of a Net. If false, the propagation is disabled. + * @type {boolean} + * @memberof UpdateRoutePropagationRequest + */ + enable: boolean; + /** + * The ID of the route table. + * @type {string} + * @memberof UpdateRoutePropagationRequest + */ + routeTableId: string; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UpdateRoutePropagationRequest + */ + virtualGatewayId: string; +} + +export function UpdateRoutePropagationRequestFromJSON(json: any): UpdateRoutePropagationRequest { + return UpdateRoutePropagationRequestFromJSONTyped(json, false); +} + +export function UpdateRoutePropagationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoutePropagationRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'enable': json['Enable'], + 'routeTableId': json['RouteTableId'], + 'virtualGatewayId': json['VirtualGatewayId'], + }; +} + +export function UpdateRoutePropagationRequestToJSON(value?: UpdateRoutePropagationRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Enable': value.enable, + 'RouteTableId': value.routeTableId, + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/UpdateRoutePropagationResponse.ts b/src/models/UpdateRoutePropagationResponse.ts new file mode 100644 index 00000000..ebabebde --- /dev/null +++ b/src/models/UpdateRoutePropagationResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + RouteTable, + RouteTableFromJSON, + RouteTableFromJSONTyped, + RouteTableToJSON, +} from './RouteTable'; + +/** + * + * @export + * @interface UpdateRoutePropagationResponse + */ +export interface UpdateRoutePropagationResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateRoutePropagationResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof UpdateRoutePropagationResponse + */ + routeTable?: RouteTable; +} + +export function UpdateRoutePropagationResponseFromJSON(json: any): UpdateRoutePropagationResponse { + return UpdateRoutePropagationResponseFromJSONTyped(json, false); +} + +export function UpdateRoutePropagationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoutePropagationResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} + +export function UpdateRoutePropagationResponseToJSON(value?: UpdateRoutePropagationResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} + diff --git a/src/models/UpdateRouteRequest.ts b/src/models/UpdateRouteRequest.ts new file mode 100644 index 00000000..247f7a48 --- /dev/null +++ b/src/models/UpdateRouteRequest.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateRouteRequest + */ +export interface UpdateRouteRequest { + /** + * The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). + * @type {string} + * @memberof UpdateRouteRequest + */ + destinationIpRange: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateRouteRequest + */ + dryRun?: boolean; + /** + * The ID of an Internet service or virtual gateway attached to your Net. + * @type {string} + * @memberof UpdateRouteRequest + */ + gatewayId?: string; + /** + * The ID of a NAT service. + * @type {string} + * @memberof UpdateRouteRequest + */ + natServiceId?: string; + /** + * The ID of a Net peering connection. + * @type {string} + * @memberof UpdateRouteRequest + */ + netPeeringId?: string; + /** + * The ID of a network interface card (NIC). + * @type {string} + * @memberof UpdateRouteRequest + */ + nicId?: string; + /** + * The ID of the route table. + * @type {string} + * @memberof UpdateRouteRequest + */ + routeTableId: string; + /** + * The ID of a NAT VM in your Net. + * @type {string} + * @memberof UpdateRouteRequest + */ + vmId?: string; +} + +export function UpdateRouteRequestFromJSON(json: any): UpdateRouteRequest { + return UpdateRouteRequestFromJSONTyped(json, false); +} + +export function UpdateRouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRouteRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'destinationIpRange': json['DestinationIpRange'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'gatewayId': !exists(json, 'GatewayId') ? undefined : json['GatewayId'], + 'natServiceId': !exists(json, 'NatServiceId') ? undefined : json['NatServiceId'], + 'netPeeringId': !exists(json, 'NetPeeringId') ? undefined : json['NetPeeringId'], + 'nicId': !exists(json, 'NicId') ? undefined : json['NicId'], + 'routeTableId': json['RouteTableId'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function UpdateRouteRequestToJSON(value?: UpdateRouteRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DestinationIpRange': value.destinationIpRange, + 'DryRun': value.dryRun, + 'GatewayId': value.gatewayId, + 'NatServiceId': value.natServiceId, + 'NetPeeringId': value.netPeeringId, + 'NicId': value.nicId, + 'RouteTableId': value.routeTableId, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/UpdateRouteResponse.ts b/src/models/UpdateRouteResponse.ts new file mode 100644 index 00000000..53f6232a --- /dev/null +++ b/src/models/UpdateRouteResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + RouteTable, + RouteTableFromJSON, + RouteTableFromJSONTyped, + RouteTableToJSON, +} from './RouteTable'; + +/** + * + * @export + * @interface UpdateRouteResponse + */ +export interface UpdateRouteResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateRouteResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {RouteTable} + * @memberof UpdateRouteResponse + */ + routeTable?: RouteTable; +} + +export function UpdateRouteResponseFromJSON(json: any): UpdateRouteResponse { + return UpdateRouteResponseFromJSONTyped(json, false); +} + +export function UpdateRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRouteResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'routeTable': !exists(json, 'RouteTable') ? undefined : RouteTableFromJSON(json['RouteTable']), + }; +} + +export function UpdateRouteResponseToJSON(value?: UpdateRouteResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'RouteTable': RouteTableToJSON(value.routeTable), + }; +} + diff --git a/src/models/UpdateServerCertificateRequest.ts b/src/models/UpdateServerCertificateRequest.ts new file mode 100644 index 00000000..d9d5c2a5 --- /dev/null +++ b/src/models/UpdateServerCertificateRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateServerCertificateRequest + */ +export interface UpdateServerCertificateRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateServerCertificateRequest + */ + dryRun?: boolean; + /** + * The name of the server certificate you want to modify. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + name: string; + /** + * A new name for the server certificate. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + newName?: string; + /** + * A new path for the server certificate. + * @type {string} + * @memberof UpdateServerCertificateRequest + */ + newPath?: string; +} + +export function UpdateServerCertificateRequestFromJSON(json: any): UpdateServerCertificateRequest { + return UpdateServerCertificateRequestFromJSONTyped(json, false); +} + +export function UpdateServerCertificateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateServerCertificateRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'name': json['Name'], + 'newName': !exists(json, 'NewName') ? undefined : json['NewName'], + 'newPath': !exists(json, 'NewPath') ? undefined : json['NewPath'], + }; +} + +export function UpdateServerCertificateRequestToJSON(value?: UpdateServerCertificateRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Name': value.name, + 'NewName': value.newName, + 'NewPath': value.newPath, + }; +} + diff --git a/src/models/UpdateServerCertificateResponse.ts b/src/models/UpdateServerCertificateResponse.ts new file mode 100644 index 00000000..5faa64d7 --- /dev/null +++ b/src/models/UpdateServerCertificateResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + ServerCertificate, + ServerCertificateFromJSON, + ServerCertificateFromJSONTyped, + ServerCertificateToJSON, +} from './ServerCertificate'; + +/** + * + * @export + * @interface UpdateServerCertificateResponse + */ +export interface UpdateServerCertificateResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateServerCertificateResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {ServerCertificate} + * @memberof UpdateServerCertificateResponse + */ + serverCertificate?: ServerCertificate; +} + +export function UpdateServerCertificateResponseFromJSON(json: any): UpdateServerCertificateResponse { + return UpdateServerCertificateResponseFromJSONTyped(json, false); +} + +export function UpdateServerCertificateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateServerCertificateResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'serverCertificate': !exists(json, 'ServerCertificate') ? undefined : ServerCertificateFromJSON(json['ServerCertificate']), + }; +} + +export function UpdateServerCertificateResponseToJSON(value?: UpdateServerCertificateResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'ServerCertificate': ServerCertificateToJSON(value.serverCertificate), + }; +} + diff --git a/src/models/UpdateSnapshotRequest.ts b/src/models/UpdateSnapshotRequest.ts new file mode 100644 index 00000000..796de08e --- /dev/null +++ b/src/models/UpdateSnapshotRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + PermissionsOnResourceCreation, + PermissionsOnResourceCreationFromJSON, + PermissionsOnResourceCreationFromJSONTyped, + PermissionsOnResourceCreationToJSON, +} from './PermissionsOnResourceCreation'; + +/** + * + * @export + * @interface UpdateSnapshotRequest + */ +export interface UpdateSnapshotRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateSnapshotRequest + */ + dryRun?: boolean; + /** + * + * @type {PermissionsOnResourceCreation} + * @memberof UpdateSnapshotRequest + */ + permissionsToCreateVolume: PermissionsOnResourceCreation; + /** + * The ID of the snapshot. + * @type {string} + * @memberof UpdateSnapshotRequest + */ + snapshotId: string; +} + +export function UpdateSnapshotRequestFromJSON(json: any): UpdateSnapshotRequest { + return UpdateSnapshotRequestFromJSONTyped(json, false); +} + +export function UpdateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'permissionsToCreateVolume': PermissionsOnResourceCreationFromJSON(json['PermissionsToCreateVolume']), + 'snapshotId': json['SnapshotId'], + }; +} + +export function UpdateSnapshotRequestToJSON(value?: UpdateSnapshotRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'PermissionsToCreateVolume': PermissionsOnResourceCreationToJSON(value.permissionsToCreateVolume), + 'SnapshotId': value.snapshotId, + }; +} + diff --git a/src/models/UpdateSnapshotResponse.ts b/src/models/UpdateSnapshotResponse.ts new file mode 100644 index 00000000..8d5bf243 --- /dev/null +++ b/src/models/UpdateSnapshotResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Snapshot, + SnapshotFromJSON, + SnapshotFromJSONTyped, + SnapshotToJSON, +} from './Snapshot'; + +/** + * + * @export + * @interface UpdateSnapshotResponse + */ +export interface UpdateSnapshotResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateSnapshotResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Snapshot} + * @memberof UpdateSnapshotResponse + */ + snapshot?: Snapshot; +} + +export function UpdateSnapshotResponseFromJSON(json: any): UpdateSnapshotResponse { + return UpdateSnapshotResponseFromJSONTyped(json, false); +} + +export function UpdateSnapshotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'snapshot': !exists(json, 'Snapshot') ? undefined : SnapshotFromJSON(json['Snapshot']), + }; +} + +export function UpdateSnapshotResponseToJSON(value?: UpdateSnapshotResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Snapshot': SnapshotToJSON(value.snapshot), + }; +} + diff --git a/src/models/UpdateSubnetRequest.ts b/src/models/UpdateSubnetRequest.ts new file mode 100644 index 00000000..32026238 --- /dev/null +++ b/src/models/UpdateSubnetRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateSubnetRequest + */ +export interface UpdateSubnetRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateSubnetRequest + */ + dryRun?: boolean; + /** + * If true, a public IP is assigned to the network interface cards (NICs) created in the specified Subnet. + * @type {boolean} + * @memberof UpdateSubnetRequest + */ + mapPublicIpOnLaunch: boolean; + /** + * The ID of the Subnet. + * @type {string} + * @memberof UpdateSubnetRequest + */ + subnetId: string; +} + +export function UpdateSubnetRequestFromJSON(json: any): UpdateSubnetRequest { + return UpdateSubnetRequestFromJSONTyped(json, false); +} + +export function UpdateSubnetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubnetRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'mapPublicIpOnLaunch': json['MapPublicIpOnLaunch'], + 'subnetId': json['SubnetId'], + }; +} + +export function UpdateSubnetRequestToJSON(value?: UpdateSubnetRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'MapPublicIpOnLaunch': value.mapPublicIpOnLaunch, + 'SubnetId': value.subnetId, + }; +} + diff --git a/src/models/UpdateSubnetResponse.ts b/src/models/UpdateSubnetResponse.ts new file mode 100644 index 00000000..efa91a5f --- /dev/null +++ b/src/models/UpdateSubnetResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Subnet, + SubnetFromJSON, + SubnetFromJSONTyped, + SubnetToJSON, +} from './Subnet'; + +/** + * + * @export + * @interface UpdateSubnetResponse + */ +export interface UpdateSubnetResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateSubnetResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Subnet} + * @memberof UpdateSubnetResponse + */ + subnet?: Subnet; +} + +export function UpdateSubnetResponseFromJSON(json: any): UpdateSubnetResponse { + return UpdateSubnetResponseFromJSONTyped(json, false); +} + +export function UpdateSubnetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubnetResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'subnet': !exists(json, 'Subnet') ? undefined : SubnetFromJSON(json['Subnet']), + }; +} + +export function UpdateSubnetResponseToJSON(value?: UpdateSubnetResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Subnet': SubnetToJSON(value.subnet), + }; +} + diff --git a/src/models/UpdateVmRequest.ts b/src/models/UpdateVmRequest.ts new file mode 100644 index 00000000..f7046d06 --- /dev/null +++ b/src/models/UpdateVmRequest.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BlockDeviceMappingVmUpdate, + BlockDeviceMappingVmUpdateFromJSON, + BlockDeviceMappingVmUpdateFromJSONTyped, + BlockDeviceMappingVmUpdateToJSON, +} from './BlockDeviceMappingVmUpdate'; + +/** + * + * @export + * @interface UpdateVmRequest + */ +export interface UpdateVmRequest { + /** + * One or more block device mappings of the VM. + * @type {Array} + * @memberof UpdateVmRequest + */ + blockDeviceMappings?: Array; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof UpdateVmRequest + */ + bsuOptimized?: boolean; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof UpdateVmRequest + */ + deletionProtection?: boolean; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVmRequest + */ + dryRun?: boolean; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof UpdateVmRequest + */ + isSourceDestChecked?: boolean; + /** + * The name of the keypair.
+ * To complete the replacement, manually replace the old public key with the new public key in the ~/.ssh/authorized_keys file located in the VM. Restart the VM to apply the change. + * @type {string} + * @memberof UpdateVmRequest + */ + keypairName?: string; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof UpdateVmRequest + */ + performance?: UpdateVmRequestPerformanceEnum; + /** + * One or more IDs of security groups for the VM. + * @type {Array} + * @memberof UpdateVmRequest + */ + securityGroupIds?: Array; + /** + * The Base64-encoded MIME user data, limited to 500 kibibytes (KiB). + * @type {string} + * @memberof UpdateVmRequest + */ + userData?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof UpdateVmRequest + */ + vmId: string; + /** + * The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. + * @type {string} + * @memberof UpdateVmRequest + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof UpdateVmRequest + */ + vmType?: string; +} + + +/** + * @export + */ +export const UpdateVmRequestPerformanceEnum = { + Medium: 'medium', + High: 'high', + Highest: 'highest' +} as const; +export type UpdateVmRequestPerformanceEnum = typeof UpdateVmRequestPerformanceEnum[keyof typeof UpdateVmRequestPerformanceEnum]; + + +export function UpdateVmRequestFromJSON(json: any): UpdateVmRequest { + return UpdateVmRequestFromJSONTyped(json, false); +} + +export function UpdateVmRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVmRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : ((json['BlockDeviceMappings'] as Array).map(BlockDeviceMappingVmUpdateFromJSON)), + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'deletionProtection': !exists(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'performance': !exists(json, 'Performance') ? undefined : json['Performance'], + 'securityGroupIds': !exists(json, 'SecurityGroupIds') ? undefined : json['SecurityGroupIds'], + 'userData': !exists(json, 'UserData') ? undefined : json['UserData'], + 'vmId': json['VmId'], + 'vmInitiatedShutdownBehavior': !exists(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !exists(json, 'VmType') ? undefined : json['VmType'], + }; +} + +export function UpdateVmRequestToJSON(value?: UpdateVmRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : ((value.blockDeviceMappings as Array).map(BlockDeviceMappingVmUpdateToJSON)), + 'BsuOptimized': value.bsuOptimized, + 'DeletionProtection': value.deletionProtection, + 'DryRun': value.dryRun, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'KeypairName': value.keypairName, + 'Performance': value.performance, + 'SecurityGroupIds': value.securityGroupIds, + 'UserData': value.userData, + 'VmId': value.vmId, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} + diff --git a/src/models/UpdateVmResponse.ts b/src/models/UpdateVmResponse.ts new file mode 100644 index 00000000..f5c50593 --- /dev/null +++ b/src/models/UpdateVmResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Vm, + VmFromJSON, + VmFromJSONTyped, + VmToJSON, +} from './Vm'; + +/** + * + * @export + * @interface UpdateVmResponse + */ +export interface UpdateVmResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVmResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Vm} + * @memberof UpdateVmResponse + */ + vm?: Vm; +} + +export function UpdateVmResponseFromJSON(json: any): UpdateVmResponse { + return UpdateVmResponseFromJSONTyped(json, false); +} + +export function UpdateVmResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVmResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vm': !exists(json, 'Vm') ? undefined : VmFromJSON(json['Vm']), + }; +} + +export function UpdateVmResponseToJSON(value?: UpdateVmResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Vm': VmToJSON(value.vm), + }; +} + diff --git a/src/models/UpdateVolumeRequest.ts b/src/models/UpdateVolumeRequest.ts new file mode 100644 index 00000000..b5bf2e9c --- /dev/null +++ b/src/models/UpdateVolumeRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateVolumeRequest + */ +export interface UpdateVolumeRequest { + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVolumeRequest + */ + dryRun?: boolean; + /** + * The new number of I/O operations per second (IOPS). This parameter can be specified only if you update an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. This modification is instantaneous on a cold volume, not on a hot one. + * @type {number} + * @memberof UpdateVolumeRequest + */ + iops?: number; + /** + * (cold volume only) The new size of the volume, in gibibytes (GiB). This value must be equal to or greater than the current size of the volume. This modification is not instantaneous. + * @type {number} + * @memberof UpdateVolumeRequest + */ + size?: number; + /** + * The ID of the volume you want to update. + * @type {string} + * @memberof UpdateVolumeRequest + */ + volumeId: string; + /** + * (cold volume only) The new type of the volume (`standard` \| `io1` \| `gp2`). This modification is instantaneous. If you update to an `io1` volume, you must also specify the `Iops` parameter. + * @type {string} + * @memberof UpdateVolumeRequest + */ + volumeType?: string; +} + +export function UpdateVolumeRequestFromJSON(json: any): UpdateVolumeRequest { + return UpdateVolumeRequestFromJSONTyped(json, false); +} + +export function UpdateVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVolumeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'size': !exists(json, 'Size') ? undefined : json['Size'], + 'volumeId': json['VolumeId'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} + +export function UpdateVolumeRequestToJSON(value?: UpdateVolumeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'DryRun': value.dryRun, + 'Iops': value.iops, + 'Size': value.size, + 'VolumeId': value.volumeId, + 'VolumeType': value.volumeType, + }; +} + diff --git a/src/models/UpdateVolumeResponse.ts b/src/models/UpdateVolumeResponse.ts new file mode 100644 index 00000000..3d6cb6ce --- /dev/null +++ b/src/models/UpdateVolumeResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + Volume, + VolumeFromJSON, + VolumeFromJSONTyped, + VolumeToJSON, +} from './Volume'; + +/** + * + * @export + * @interface UpdateVolumeResponse + */ +export interface UpdateVolumeResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVolumeResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {Volume} + * @memberof UpdateVolumeResponse + */ + volume?: Volume; +} + +export function UpdateVolumeResponseFromJSON(json: any): UpdateVolumeResponse { + return UpdateVolumeResponseFromJSONTyped(json, false); +} + +export function UpdateVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVolumeResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'volume': !exists(json, 'Volume') ? undefined : VolumeFromJSON(json['Volume']), + }; +} + +export function UpdateVolumeResponseToJSON(value?: UpdateVolumeResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'Volume': VolumeToJSON(value.volume), + }; +} + diff --git a/src/models/UpdateVpnConnectionRequest.ts b/src/models/UpdateVpnConnectionRequest.ts new file mode 100644 index 00000000..f6298d80 --- /dev/null +++ b/src/models/UpdateVpnConnectionRequest.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + VpnOptions, + VpnOptionsFromJSON, + VpnOptionsFromJSONTyped, + VpnOptionsToJSON, +} from './VpnOptions'; + +/** + * + * @export + * @interface UpdateVpnConnectionRequest + */ +export interface UpdateVpnConnectionRequest { + /** + * The ID of the client gateway. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + clientGatewayId?: string; + /** + * If true, checks whether you have the required permissions to perform the action. + * @type {boolean} + * @memberof UpdateVpnConnectionRequest + */ + dryRun?: boolean; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + virtualGatewayId?: string; + /** + * The ID of the VPN connection you want to modify. + * @type {string} + * @memberof UpdateVpnConnectionRequest + */ + vpnConnectionId: string; + /** + * + * @type {VpnOptions} + * @memberof UpdateVpnConnectionRequest + */ + vpnOptions?: VpnOptions; +} + +export function UpdateVpnConnectionRequestFromJSON(json: any): UpdateVpnConnectionRequest { + return UpdateVpnConnectionRequestFromJSONTyped(json, false); +} + +export function UpdateVpnConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVpnConnectionRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientGatewayId': !exists(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'dryRun': !exists(json, 'DryRun') ? undefined : json['DryRun'], + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vpnConnectionId': json['VpnConnectionId'], + 'vpnOptions': !exists(json, 'VpnOptions') ? undefined : VpnOptionsFromJSON(json['VpnOptions']), + }; +} + +export function UpdateVpnConnectionRequestToJSON(value?: UpdateVpnConnectionRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ClientGatewayId': value.clientGatewayId, + 'DryRun': value.dryRun, + 'VirtualGatewayId': value.virtualGatewayId, + 'VpnConnectionId': value.vpnConnectionId, + 'VpnOptions': VpnOptionsToJSON(value.vpnOptions), + }; +} + diff --git a/src/models/UpdateVpnConnectionResponse.ts b/src/models/UpdateVpnConnectionResponse.ts new file mode 100644 index 00000000..6ae1e4a9 --- /dev/null +++ b/src/models/UpdateVpnConnectionResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ModelResponseContext, + ModelResponseContextFromJSON, + ModelResponseContextFromJSONTyped, + ModelResponseContextToJSON, +} from './ModelResponseContext'; +import { + VpnConnection, + VpnConnectionFromJSON, + VpnConnectionFromJSONTyped, + VpnConnectionToJSON, +} from './VpnConnection'; + +/** + * + * @export + * @interface UpdateVpnConnectionResponse + */ +export interface UpdateVpnConnectionResponse { + /** + * + * @type {ModelResponseContext} + * @memberof UpdateVpnConnectionResponse + */ + responseContext?: ModelResponseContext; + /** + * + * @type {VpnConnection} + * @memberof UpdateVpnConnectionResponse + */ + vpnConnection?: VpnConnection; +} + +export function UpdateVpnConnectionResponseFromJSON(json: any): UpdateVpnConnectionResponse { + return UpdateVpnConnectionResponseFromJSONTyped(json, false); +} + +export function UpdateVpnConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVpnConnectionResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'responseContext': !exists(json, 'ResponseContext') ? undefined : ModelResponseContextFromJSON(json['ResponseContext']), + 'vpnConnection': !exists(json, 'VpnConnection') ? undefined : VpnConnectionFromJSON(json['VpnConnection']), + }; +} + +export function UpdateVpnConnectionResponseToJSON(value?: UpdateVpnConnectionResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ResponseContext': ModelResponseContextToJSON(value.responseContext), + 'VpnConnection': VpnConnectionToJSON(value.vpnConnection), + }; +} + diff --git a/src/models/VgwTelemetry.ts b/src/models/VgwTelemetry.ts new file mode 100644 index 00000000..541c7d12 --- /dev/null +++ b/src/models/VgwTelemetry.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the current state of a VPN tunnel. + * @export + * @interface VgwTelemetry + */ +export interface VgwTelemetry { + /** + * The number of routes accepted through BGP (Border Gateway Protocol) route exchanges. + * @type {number} + * @memberof VgwTelemetry + */ + acceptedRouteCount?: number; + /** + * The date and time (UTC) of the latest state update. + * @type {string} + * @memberof VgwTelemetry + */ + lastStateChangeDate?: string; + /** + * The IP on the OUTSCALE side of the tunnel. + * @type {string} + * @memberof VgwTelemetry + */ + outsideIpAddress?: string; + /** + * The state of the IPSEC tunnel (`UP` \| `DOWN`). + * @type {string} + * @memberof VgwTelemetry + */ + state?: string; + /** + * A description of the current state of the tunnel. + * @type {string} + * @memberof VgwTelemetry + */ + stateDescription?: string; +} + +export function VgwTelemetryFromJSON(json: any): VgwTelemetry { + return VgwTelemetryFromJSONTyped(json, false); +} + +export function VgwTelemetryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VgwTelemetry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'acceptedRouteCount': !exists(json, 'AcceptedRouteCount') ? undefined : json['AcceptedRouteCount'], + 'lastStateChangeDate': !exists(json, 'LastStateChangeDate') ? undefined : json['LastStateChangeDate'], + 'outsideIpAddress': !exists(json, 'OutsideIpAddress') ? undefined : json['OutsideIpAddress'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateDescription': !exists(json, 'StateDescription') ? undefined : json['StateDescription'], + }; +} + +export function VgwTelemetryToJSON(value?: VgwTelemetry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AcceptedRouteCount': value.acceptedRouteCount, + 'LastStateChangeDate': value.lastStateChangeDate, + 'OutsideIpAddress': value.outsideIpAddress, + 'State': value.state, + 'StateDescription': value.stateDescription, + }; +} + diff --git a/src/models/VirtualGateway.ts b/src/models/VirtualGateway.ts new file mode 100644 index 00000000..3706f92d --- /dev/null +++ b/src/models/VirtualGateway.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + NetToVirtualGatewayLink, + NetToVirtualGatewayLinkFromJSON, + NetToVirtualGatewayLinkFromJSONTyped, + NetToVirtualGatewayLinkToJSON, +} from './NetToVirtualGatewayLink'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the virtual gateway. + * @export + * @interface VirtualGateway + */ +export interface VirtualGateway { + /** + * The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). + * @type {string} + * @memberof VirtualGateway + */ + connectionType?: string; + /** + * The Net to which the virtual gateway is attached. + * @type {Array} + * @memberof VirtualGateway + */ + netToVirtualGatewayLinks?: Array; + /** + * The state of the virtual gateway (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof VirtualGateway + */ + state?: string; + /** + * One or more tags associated with the virtual gateway. + * @type {Array} + * @memberof VirtualGateway + */ + tags?: Array; + /** + * The ID of the virtual gateway. + * @type {string} + * @memberof VirtualGateway + */ + virtualGatewayId?: string; +} + +export function VirtualGatewayFromJSON(json: any): VirtualGateway { + return VirtualGatewayFromJSONTyped(json, false); +} + +export function VirtualGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualGateway { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'connectionType': !exists(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'netToVirtualGatewayLinks': !exists(json, 'NetToVirtualGatewayLinks') ? undefined : ((json['NetToVirtualGatewayLinks'] as Array).map(NetToVirtualGatewayLinkFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + }; +} + +export function VirtualGatewayToJSON(value?: VirtualGateway | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ConnectionType': value.connectionType, + 'NetToVirtualGatewayLinks': value.netToVirtualGatewayLinks === undefined ? undefined : ((value.netToVirtualGatewayLinks as Array).map(NetToVirtualGatewayLinkToJSON)), + 'State': value.state, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'VirtualGatewayId': value.virtualGatewayId, + }; +} + diff --git a/src/models/Vm.ts b/src/models/Vm.ts new file mode 100644 index 00000000..2116fd9c --- /dev/null +++ b/src/models/Vm.ts @@ -0,0 +1,343 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + BlockDeviceMappingCreated, + BlockDeviceMappingCreatedFromJSON, + BlockDeviceMappingCreatedFromJSONTyped, + BlockDeviceMappingCreatedToJSON, +} from './BlockDeviceMappingCreated'; +import { + NicLight, + NicLightFromJSON, + NicLightFromJSONTyped, + NicLightToJSON, +} from './NicLight'; +import { + Placement, + PlacementFromJSON, + PlacementFromJSONTyped, + PlacementToJSON, +} from './Placement'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + SecurityGroupLight, + SecurityGroupLightFromJSON, + SecurityGroupLightFromJSONTyped, + SecurityGroupLightToJSON, +} from './SecurityGroupLight'; + +/** + * Information about the VM. + * @export + * @interface Vm + */ +export interface Vm { + /** + * The architecture of the VM (`i386` \| `x86_64`). + * @type {string} + * @memberof Vm + */ + architecture?: string; + /** + * The block device mapping of the VM. + * @type {Array} + * @memberof Vm + */ + blockDeviceMappings?: Array; + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof Vm + */ + bsuOptimized?: boolean; + /** + * The idempotency token provided when launching the VM. + * @type {string} + * @memberof Vm + */ + clientToken?: string; + /** + * The date and time at which the VM was created. + * @type {string} + * @memberof Vm + */ + creationDate?: string; + /** + * If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. + * @type {boolean} + * @memberof Vm + */ + deletionProtection?: boolean; + /** + * The hypervisor type of the VMs (`ovm` \| `xen`). + * @type {string} + * @memberof Vm + */ + hypervisor?: string; + /** + * The ID of the OMI used to create the VM. + * @type {string} + * @memberof Vm + */ + imageId?: string; + /** + * (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + * @type {boolean} + * @memberof Vm + */ + isSourceDestChecked?: boolean; + /** + * The name of the keypair used when launching the VM. + * @type {string} + * @memberof Vm + */ + keypairName?: string; + /** + * The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on). + * @type {number} + * @memberof Vm + */ + launchNumber?: number; + /** + * The ID of the Net in which the VM is running. + * @type {string} + * @memberof Vm + */ + netId?: string; + /** + * (Net only) The network interface cards (NICs) the VMs are attached to. + * @type {Array} + * @memberof Vm + */ + nics?: Array; + /** + * Indicates the operating system (OS) of the VM. + * @type {string} + * @memberof Vm + */ + osFamily?: string; + /** + * The performance of the VM (`medium` \| `high` \| `highest`). + * @type {string} + * @memberof Vm + */ + performance?: string; + /** + * + * @type {Placement} + * @memberof Vm + */ + placement?: Placement; + /** + * The name of the private DNS. + * @type {string} + * @memberof Vm + */ + privateDnsName?: string; + /** + * The primary private IP of the VM. + * @type {string} + * @memberof Vm + */ + privateIp?: string; + /** + * The product code associated with the OMI used to create the VM (`0001` Linux/Unix \| `0002` Windows \| `0004` Linux/Oracle \| `0005` Windows 10). + * @type {Array} + * @memberof Vm + */ + productCodes?: Array; + /** + * The name of the public DNS. + * @type {string} + * @memberof Vm + */ + publicDnsName?: string; + /** + * The public IP of the VM. + * @type {string} + * @memberof Vm + */ + publicIp?: string; + /** + * The reservation ID of the VM. + * @type {string} + * @memberof Vm + */ + reservationId?: string; + /** + * The name of the root device for the VM (for example, `/dev/vda1`). + * @type {string} + * @memberof Vm + */ + rootDeviceName?: string; + /** + * The type of root device used by the VM (always `bsu`). + * @type {string} + * @memberof Vm + */ + rootDeviceType?: string; + /** + * One or more security groups associated with the VM. + * @type {Array} + * @memberof Vm + */ + securityGroups?: Array; + /** + * The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {string} + * @memberof Vm + */ + state?: string; + /** + * The reason explaining the current state of the VM. + * @type {string} + * @memberof Vm + */ + stateReason?: string; + /** + * The ID of the Subnet for the VM. + * @type {string} + * @memberof Vm + */ + subnetId?: string; + /** + * One or more tags associated with the VM. + * @type {Array} + * @memberof Vm + */ + tags?: Array; + /** + * The Base64-encoded MIME user data. + * @type {string} + * @memberof Vm + */ + userData?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof Vm + */ + vmId?: string; + /** + * The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is deleted. + * @type {string} + * @memberof Vm + */ + vmInitiatedShutdownBehavior?: string; + /** + * The type of VM. For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). + * @type {string} + * @memberof Vm + */ + vmType?: string; +} + +export function VmFromJSON(json: any): Vm { + return VmFromJSONTyped(json, false); +} + +export function VmFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'architecture': !exists(json, 'Architecture') ? undefined : json['Architecture'], + 'blockDeviceMappings': !exists(json, 'BlockDeviceMappings') ? undefined : ((json['BlockDeviceMappings'] as Array).map(BlockDeviceMappingCreatedFromJSON)), + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'clientToken': !exists(json, 'ClientToken') ? undefined : json['ClientToken'], + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'deletionProtection': !exists(json, 'DeletionProtection') ? undefined : json['DeletionProtection'], + 'hypervisor': !exists(json, 'Hypervisor') ? undefined : json['Hypervisor'], + 'imageId': !exists(json, 'ImageId') ? undefined : json['ImageId'], + 'isSourceDestChecked': !exists(json, 'IsSourceDestChecked') ? undefined : json['IsSourceDestChecked'], + 'keypairName': !exists(json, 'KeypairName') ? undefined : json['KeypairName'], + 'launchNumber': !exists(json, 'LaunchNumber') ? undefined : json['LaunchNumber'], + 'netId': !exists(json, 'NetId') ? undefined : json['NetId'], + 'nics': !exists(json, 'Nics') ? undefined : ((json['Nics'] as Array).map(NicLightFromJSON)), + 'osFamily': !exists(json, 'OsFamily') ? undefined : json['OsFamily'], + 'performance': !exists(json, 'Performance') ? undefined : json['Performance'], + 'placement': !exists(json, 'Placement') ? undefined : PlacementFromJSON(json['Placement']), + 'privateDnsName': !exists(json, 'PrivateDnsName') ? undefined : json['PrivateDnsName'], + 'privateIp': !exists(json, 'PrivateIp') ? undefined : json['PrivateIp'], + 'productCodes': !exists(json, 'ProductCodes') ? undefined : json['ProductCodes'], + 'publicDnsName': !exists(json, 'PublicDnsName') ? undefined : json['PublicDnsName'], + 'publicIp': !exists(json, 'PublicIp') ? undefined : json['PublicIp'], + 'reservationId': !exists(json, 'ReservationId') ? undefined : json['ReservationId'], + 'rootDeviceName': !exists(json, 'RootDeviceName') ? undefined : json['RootDeviceName'], + 'rootDeviceType': !exists(json, 'RootDeviceType') ? undefined : json['RootDeviceType'], + 'securityGroups': !exists(json, 'SecurityGroups') ? undefined : ((json['SecurityGroups'] as Array).map(SecurityGroupLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'stateReason': !exists(json, 'StateReason') ? undefined : json['StateReason'], + 'subnetId': !exists(json, 'SubnetId') ? undefined : json['SubnetId'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'userData': !exists(json, 'UserData') ? undefined : json['UserData'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + 'vmInitiatedShutdownBehavior': !exists(json, 'VmInitiatedShutdownBehavior') ? undefined : json['VmInitiatedShutdownBehavior'], + 'vmType': !exists(json, 'VmType') ? undefined : json['VmType'], + }; +} + +export function VmToJSON(value?: Vm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Architecture': value.architecture, + 'BlockDeviceMappings': value.blockDeviceMappings === undefined ? undefined : ((value.blockDeviceMappings as Array).map(BlockDeviceMappingCreatedToJSON)), + 'BsuOptimized': value.bsuOptimized, + 'ClientToken': value.clientToken, + 'CreationDate': value.creationDate, + 'DeletionProtection': value.deletionProtection, + 'Hypervisor': value.hypervisor, + 'ImageId': value.imageId, + 'IsSourceDestChecked': value.isSourceDestChecked, + 'KeypairName': value.keypairName, + 'LaunchNumber': value.launchNumber, + 'NetId': value.netId, + 'Nics': value.nics === undefined ? undefined : ((value.nics as Array).map(NicLightToJSON)), + 'OsFamily': value.osFamily, + 'Performance': value.performance, + 'Placement': PlacementToJSON(value.placement), + 'PrivateDnsName': value.privateDnsName, + 'PrivateIp': value.privateIp, + 'ProductCodes': value.productCodes, + 'PublicDnsName': value.publicDnsName, + 'PublicIp': value.publicIp, + 'ReservationId': value.reservationId, + 'RootDeviceName': value.rootDeviceName, + 'RootDeviceType': value.rootDeviceType, + 'SecurityGroups': value.securityGroups === undefined ? undefined : ((value.securityGroups as Array).map(SecurityGroupLightToJSON)), + 'State': value.state, + 'StateReason': value.stateReason, + 'SubnetId': value.subnetId, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'UserData': value.userData, + 'VmId': value.vmId, + 'VmInitiatedShutdownBehavior': value.vmInitiatedShutdownBehavior, + 'VmType': value.vmType, + }; +} + diff --git a/src/models/VmState.ts b/src/models/VmState.ts new file mode 100644 index 00000000..45047ddb --- /dev/null +++ b/src/models/VmState.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the state of the VM. + * @export + * @interface VmState + */ +export interface VmState { + /** + * The current state of the VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof VmState + */ + currentState?: string; + /** + * The previous state of the VM (`InService` \| `OutOfService` \| `Unknown`). + * @type {string} + * @memberof VmState + */ + previousState?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof VmState + */ + vmId?: string; +} + +export function VmStateFromJSON(json: any): VmState { + return VmStateFromJSONTyped(json, false); +} + +export function VmStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmState { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'currentState': !exists(json, 'CurrentState') ? undefined : json['CurrentState'], + 'previousState': !exists(json, 'PreviousState') ? undefined : json['PreviousState'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + }; +} + +export function VmStateToJSON(value?: VmState | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CurrentState': value.currentState, + 'PreviousState': value.previousState, + 'VmId': value.vmId, + }; +} + diff --git a/src/models/VmStates.ts b/src/models/VmStates.ts new file mode 100644 index 00000000..2db12b2b --- /dev/null +++ b/src/models/VmStates.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + MaintenanceEvent, + MaintenanceEventFromJSON, + MaintenanceEventFromJSONTyped, + MaintenanceEventToJSON, +} from './MaintenanceEvent'; + +/** + * Information about the states of the VMs. + * @export + * @interface VmStates + */ +export interface VmStates { + /** + * One or more scheduled events associated with the VM. + * @type {Array} + * @memberof VmStates + */ + maintenanceEvents?: Array; + /** + * The name of the Subregion of the VM. + * @type {string} + * @memberof VmStates + */ + subregionName?: string; + /** + * The ID of the VM. + * @type {string} + * @memberof VmStates + */ + vmId?: string; + /** + * The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * @type {string} + * @memberof VmStates + */ + vmState?: string; +} + +export function VmStatesFromJSON(json: any): VmStates { + return VmStatesFromJSONTyped(json, false); +} + +export function VmStatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmStates { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maintenanceEvents': !exists(json, 'MaintenanceEvents') ? undefined : ((json['MaintenanceEvents'] as Array).map(MaintenanceEventFromJSON)), + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'vmId': !exists(json, 'VmId') ? undefined : json['VmId'], + 'vmState': !exists(json, 'VmState') ? undefined : json['VmState'], + }; +} + +export function VmStatesToJSON(value?: VmStates | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'MaintenanceEvents': value.maintenanceEvents === undefined ? undefined : ((value.maintenanceEvents as Array).map(MaintenanceEventToJSON)), + 'SubregionName': value.subregionName, + 'VmId': value.vmId, + 'VmState': value.vmState, + }; +} + diff --git a/src/models/VmType.ts b/src/models/VmType.ts new file mode 100644 index 00000000..8df463a7 --- /dev/null +++ b/src/models/VmType.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Information about the VM type. + * @export + * @interface VmType + */ +export interface VmType { + /** + * This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. + * @type {boolean} + * @memberof VmType + */ + bsuOptimized?: boolean; + /** + * The maximum number of private IPs per network interface card (NIC). + * @type {number} + * @memberof VmType + */ + maxPrivateIps?: number; + /** + * The amount of memory, in gibibytes. + * @type {number} + * @memberof VmType + */ + memorySize?: number; + /** + * The number of vCores. + * @type {number} + * @memberof VmType + */ + vcoreCount?: number; + /** + * The name of the VM type. + * @type {string} + * @memberof VmType + */ + vmTypeName?: string; + /** + * The maximum number of ephemeral storage disks. + * @type {number} + * @memberof VmType + */ + volumeCount?: number; + /** + * The size of one ephemeral storage disk, in gibibytes (GiB). + * @type {number} + * @memberof VmType + */ + volumeSize?: number; +} + +export function VmTypeFromJSON(json: any): VmType { + return VmTypeFromJSONTyped(json, false); +} + +export function VmTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bsuOptimized': !exists(json, 'BsuOptimized') ? undefined : json['BsuOptimized'], + 'maxPrivateIps': !exists(json, 'MaxPrivateIps') ? undefined : json['MaxPrivateIps'], + 'memorySize': !exists(json, 'MemorySize') ? undefined : json['MemorySize'], + 'vcoreCount': !exists(json, 'VcoreCount') ? undefined : json['VcoreCount'], + 'vmTypeName': !exists(json, 'VmTypeName') ? undefined : json['VmTypeName'], + 'volumeCount': !exists(json, 'VolumeCount') ? undefined : json['VolumeCount'], + 'volumeSize': !exists(json, 'VolumeSize') ? undefined : json['VolumeSize'], + }; +} + +export function VmTypeToJSON(value?: VmType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'BsuOptimized': value.bsuOptimized, + 'MaxPrivateIps': value.maxPrivateIps, + 'MemorySize': value.memorySize, + 'VcoreCount': value.vcoreCount, + 'VmTypeName': value.vmTypeName, + 'VolumeCount': value.volumeCount, + 'VolumeSize': value.volumeSize, + }; +} + diff --git a/src/models/Volume.ts b/src/models/Volume.ts new file mode 100644 index 00000000..5fb46db7 --- /dev/null +++ b/src/models/Volume.ts @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + LinkedVolume, + LinkedVolumeFromJSON, + LinkedVolumeFromJSONTyped, + LinkedVolumeToJSON, +} from './LinkedVolume'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; + +/** + * Information about the volume. + * @export + * @interface Volume + */ +export interface Volume { + /** + * The date and time of creation of the volume. + * @type {string} + * @memberof Volume + */ + creationDate?: string; + /** + * The number of I/O operations per second (IOPS):
+ * - For `io1` volumes, the number of provisioned IOPS
+ * - For `gp2` volumes, the baseline performance of the volume + * @type {number} + * @memberof Volume + */ + iops?: number; + /** + * Information about your volume attachment. + * @type {Array} + * @memberof Volume + */ + linkedVolumes?: Array; + /** + * The size of the volume, in gibibytes (GiB). + * @type {number} + * @memberof Volume + */ + size?: number; + /** + * The snapshot from which the volume was created. + * @type {string} + * @memberof Volume + */ + snapshotId?: string; + /** + * The state of the volume (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). + * @type {string} + * @memberof Volume + */ + state?: string; + /** + * The Subregion in which the volume was created. + * @type {string} + * @memberof Volume + */ + subregionName?: string; + /** + * One or more tags associated with the volume. + * @type {Array} + * @memberof Volume + */ + tags?: Array; + /** + * The ID of the volume. + * @type {string} + * @memberof Volume + */ + volumeId?: string; + /** + * The type of the volume (`standard` \| `gp2` \| `io1`). + * @type {string} + * @memberof Volume + */ + volumeType?: string; +} + +export function VolumeFromJSON(json: any): Volume { + return VolumeFromJSONTyped(json, false); +} + +export function VolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'creationDate': !exists(json, 'CreationDate') ? undefined : json['CreationDate'], + 'iops': !exists(json, 'Iops') ? undefined : json['Iops'], + 'linkedVolumes': !exists(json, 'LinkedVolumes') ? undefined : ((json['LinkedVolumes'] as Array).map(LinkedVolumeFromJSON)), + 'size': !exists(json, 'Size') ? undefined : json['Size'], + 'snapshotId': !exists(json, 'SnapshotId') ? undefined : json['SnapshotId'], + 'state': !exists(json, 'State') ? undefined : json['State'], + 'subregionName': !exists(json, 'SubregionName') ? undefined : json['SubregionName'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'volumeId': !exists(json, 'VolumeId') ? undefined : json['VolumeId'], + 'volumeType': !exists(json, 'VolumeType') ? undefined : json['VolumeType'], + }; +} + +export function VolumeToJSON(value?: Volume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'CreationDate': value.creationDate, + 'Iops': value.iops, + 'LinkedVolumes': value.linkedVolumes === undefined ? undefined : ((value.linkedVolumes as Array).map(LinkedVolumeToJSON)), + 'Size': value.size, + 'SnapshotId': value.snapshotId, + 'State': value.state, + 'SubregionName': value.subregionName, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'VolumeId': value.volumeId, + 'VolumeType': value.volumeType, + }; +} + diff --git a/src/models/VpnConnection.ts b/src/models/VpnConnection.ts new file mode 100644 index 00000000..e1a53351 --- /dev/null +++ b/src/models/VpnConnection.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + ResourceTag, + ResourceTagFromJSON, + ResourceTagFromJSONTyped, + ResourceTagToJSON, +} from './ResourceTag'; +import { + RouteLight, + RouteLightFromJSON, + RouteLightFromJSONTyped, + RouteLightToJSON, +} from './RouteLight'; +import { + VgwTelemetry, + VgwTelemetryFromJSON, + VgwTelemetryFromJSONTyped, + VgwTelemetryToJSON, +} from './VgwTelemetry'; +import { + VpnOptions, + VpnOptionsFromJSON, + VpnOptionsFromJSONTyped, + VpnOptionsToJSON, +} from './VpnOptions'; + +/** + * Information about a VPN connection. + * @export + * @interface VpnConnection + */ +export interface VpnConnection { + /** + * Example configuration for the client gateway. + * @type {string} + * @memberof VpnConnection + */ + clientGatewayConfiguration?: string; + /** + * The ID of the client gateway used on the client end of the connection. + * @type {string} + * @memberof VpnConnection + */ + clientGatewayId?: string; + /** + * The type of VPN connection (always `ipsec.1`). + * @type {string} + * @memberof VpnConnection + */ + connectionType?: string; + /** + * Information about one or more static routes associated with the VPN connection, if any. + * @type {Array} + * @memberof VpnConnection + */ + routes?: Array; + /** + * The state of the VPN connection (`pending` \| `available` \| `deleting` \| `deleted`). + * @type {string} + * @memberof VpnConnection + */ + state?: string; + /** + * If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + * @type {boolean} + * @memberof VpnConnection + */ + staticRoutesOnly?: boolean; + /** + * One or more tags associated with the VPN connection. + * @type {Array} + * @memberof VpnConnection + */ + tags?: Array; + /** + * Information about the current state of one or more of the VPN tunnels. + * @type {Array} + * @memberof VpnConnection + */ + vgwTelemetries?: Array; + /** + * The ID of the virtual gateway used on the OUTSCALE end of the connection. + * @type {string} + * @memberof VpnConnection + */ + virtualGatewayId?: string; + /** + * The ID of the VPN connection. + * @type {string} + * @memberof VpnConnection + */ + vpnConnectionId?: string; + /** + * + * @type {VpnOptions} + * @memberof VpnConnection + */ + vpnOptions?: VpnOptions; +} + +export function VpnConnectionFromJSON(json: any): VpnConnection { + return VpnConnectionFromJSONTyped(json, false); +} + +export function VpnConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpnConnection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientGatewayConfiguration': !exists(json, 'ClientGatewayConfiguration') ? undefined : json['ClientGatewayConfiguration'], + 'clientGatewayId': !exists(json, 'ClientGatewayId') ? undefined : json['ClientGatewayId'], + 'connectionType': !exists(json, 'ConnectionType') ? undefined : json['ConnectionType'], + 'routes': !exists(json, 'Routes') ? undefined : ((json['Routes'] as Array).map(RouteLightFromJSON)), + 'state': !exists(json, 'State') ? undefined : json['State'], + 'staticRoutesOnly': !exists(json, 'StaticRoutesOnly') ? undefined : json['StaticRoutesOnly'], + 'tags': !exists(json, 'Tags') ? undefined : ((json['Tags'] as Array).map(ResourceTagFromJSON)), + 'vgwTelemetries': !exists(json, 'VgwTelemetries') ? undefined : ((json['VgwTelemetries'] as Array).map(VgwTelemetryFromJSON)), + 'virtualGatewayId': !exists(json, 'VirtualGatewayId') ? undefined : json['VirtualGatewayId'], + 'vpnConnectionId': !exists(json, 'VpnConnectionId') ? undefined : json['VpnConnectionId'], + 'vpnOptions': !exists(json, 'VpnOptions') ? undefined : VpnOptionsFromJSON(json['VpnOptions']), + }; +} + +export function VpnConnectionToJSON(value?: VpnConnection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ClientGatewayConfiguration': value.clientGatewayConfiguration, + 'ClientGatewayId': value.clientGatewayId, + 'ConnectionType': value.connectionType, + 'Routes': value.routes === undefined ? undefined : ((value.routes as Array).map(RouteLightToJSON)), + 'State': value.state, + 'StaticRoutesOnly': value.staticRoutesOnly, + 'Tags': value.tags === undefined ? undefined : ((value.tags as Array).map(ResourceTagToJSON)), + 'VgwTelemetries': value.vgwTelemetries === undefined ? undefined : ((value.vgwTelemetries as Array).map(VgwTelemetryToJSON)), + 'VirtualGatewayId': value.virtualGatewayId, + 'VpnConnectionId': value.vpnConnectionId, + 'VpnOptions': VpnOptionsToJSON(value.vpnOptions), + }; +} + diff --git a/src/models/VpnOptions.ts b/src/models/VpnOptions.ts new file mode 100644 index 00000000..817c6830 --- /dev/null +++ b/src/models/VpnOptions.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import { + Phase1Options, + Phase1OptionsFromJSON, + Phase1OptionsFromJSONTyped, + Phase1OptionsToJSON, +} from './Phase1Options'; +import { + Phase2Options, + Phase2OptionsFromJSON, + Phase2OptionsFromJSONTyped, + Phase2OptionsToJSON, +} from './Phase2Options'; + +/** + * Information about the VPN options. + * @export + * @interface VpnOptions + */ +export interface VpnOptions { + /** + * + * @type {Phase1Options} + * @memberof VpnOptions + */ + phase1Options?: Phase1Options; + /** + * + * @type {Phase2Options} + * @memberof VpnOptions + */ + phase2Options?: Phase2Options; + /** + * The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range. + * @type {string} + * @memberof VpnOptions + */ + tunnelInsideIpRange?: string; +} + +export function VpnOptionsFromJSON(json: any): VpnOptions { + return VpnOptionsFromJSONTyped(json, false); +} + +export function VpnOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpnOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'phase1Options': !exists(json, 'Phase1Options') ? undefined : Phase1OptionsFromJSON(json['Phase1Options']), + 'phase2Options': !exists(json, 'Phase2Options') ? undefined : Phase2OptionsFromJSON(json['Phase2Options']), + 'tunnelInsideIpRange': !exists(json, 'TunnelInsideIpRange') ? undefined : json['TunnelInsideIpRange'], + }; +} + +export function VpnOptionsToJSON(value?: VpnOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Phase1Options': Phase1OptionsToJSON(value.phase1Options), + 'Phase2Options': Phase2OptionsToJSON(value.phase2Options), + 'TunnelInsideIpRange': value.tunnelInsideIpRange, + }; +} + diff --git a/src/models/With.ts b/src/models/With.ts new file mode 100644 index 00000000..ef38a4bb --- /dev/null +++ b/src/models/With.ts @@ -0,0 +1,176 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * The information to display in each returned log. If this parameter is not specified, all available response elements are displayed. If this parameter is specified, by default `AccountId` and `RequestId` are also included in the response, unless you explicitly specify them as false. + * @export + * @interface With + */ +export interface With { + /** + * By default or if set to true, the account ID is displayed. + * @type {boolean} + * @memberof With + */ + accountId?: boolean; + /** + * If set to true, the duration of the call is displayed. + * @type {boolean} + * @memberof With + */ + callDuration?: boolean; + /** + * If set to true, the access key is displayed. + * @type {boolean} + * @memberof With + */ + queryAccessKey?: boolean; + /** + * If set to true, the name of the API is displayed. + * @type {boolean} + * @memberof With + */ + queryApiName?: boolean; + /** + * If set to true, the version of the API is displayed. + * @type {boolean} + * @memberof With + */ + queryApiVersion?: boolean; + /** + * If set to true, the name of the call is displayed. + * @type {boolean} + * @memberof With + */ + queryCallName?: boolean; + /** + * If set to true, the date of the call is displayed. + * @type {boolean} + * @memberof With + */ + queryDate?: boolean; + /** + * If set to true, the raw header of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryHeaderRaw?: boolean; + /** + * If set to true, the size of the raw header of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryHeaderSize?: boolean; + /** + * If set to true, the IP is displayed. + * @type {boolean} + * @memberof With + */ + queryIpAddress?: boolean; + /** + * If set to true, the raw payload of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryPayloadRaw?: boolean; + /** + * If set to true, the size of the raw payload of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryPayloadSize?: boolean; + /** + * If set to true, the user agent of the HTTP request is displayed. + * @type {boolean} + * @memberof With + */ + queryUserAgent?: boolean; + /** + * By default or if set to true, the request ID is displayed. + * @type {boolean} + * @memberof With + */ + requestId?: boolean; + /** + * If set to true, the size of the response is displayed. + * @type {boolean} + * @memberof With + */ + responseSize?: boolean; + /** + * If set to true, the HTTP status code of the response is displayed. + * @type {boolean} + * @memberof With + */ + responseStatusCode?: boolean; +} + +export function WithFromJSON(json: any): With { + return WithFromJSONTyped(json, false); +} + +export function WithFromJSONTyped(json: any, ignoreDiscriminator: boolean): With { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accountId': !exists(json, 'AccountId') ? undefined : json['AccountId'], + 'callDuration': !exists(json, 'CallDuration') ? undefined : json['CallDuration'], + 'queryAccessKey': !exists(json, 'QueryAccessKey') ? undefined : json['QueryAccessKey'], + 'queryApiName': !exists(json, 'QueryApiName') ? undefined : json['QueryApiName'], + 'queryApiVersion': !exists(json, 'QueryApiVersion') ? undefined : json['QueryApiVersion'], + 'queryCallName': !exists(json, 'QueryCallName') ? undefined : json['QueryCallName'], + 'queryDate': !exists(json, 'QueryDate') ? undefined : json['QueryDate'], + 'queryHeaderRaw': !exists(json, 'QueryHeaderRaw') ? undefined : json['QueryHeaderRaw'], + 'queryHeaderSize': !exists(json, 'QueryHeaderSize') ? undefined : json['QueryHeaderSize'], + 'queryIpAddress': !exists(json, 'QueryIpAddress') ? undefined : json['QueryIpAddress'], + 'queryPayloadRaw': !exists(json, 'QueryPayloadRaw') ? undefined : json['QueryPayloadRaw'], + 'queryPayloadSize': !exists(json, 'QueryPayloadSize') ? undefined : json['QueryPayloadSize'], + 'queryUserAgent': !exists(json, 'QueryUserAgent') ? undefined : json['QueryUserAgent'], + 'requestId': !exists(json, 'RequestId') ? undefined : json['RequestId'], + 'responseSize': !exists(json, 'ResponseSize') ? undefined : json['ResponseSize'], + 'responseStatusCode': !exists(json, 'ResponseStatusCode') ? undefined : json['ResponseStatusCode'], + }; +} + +export function WithToJSON(value?: With | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'AccountId': value.accountId, + 'CallDuration': value.callDuration, + 'QueryAccessKey': value.queryAccessKey, + 'QueryApiName': value.queryApiName, + 'QueryApiVersion': value.queryApiVersion, + 'QueryCallName': value.queryCallName, + 'QueryDate': value.queryDate, + 'QueryHeaderRaw': value.queryHeaderRaw, + 'QueryHeaderSize': value.queryHeaderSize, + 'QueryIpAddress': value.queryIpAddress, + 'QueryPayloadRaw': value.queryPayloadRaw, + 'QueryPayloadSize': value.queryPayloadSize, + 'QueryUserAgent': value.queryUserAgent, + 'RequestId': value.requestId, + 'ResponseSize': value.responseSize, + 'ResponseStatusCode': value.responseStatusCode, + }; +} + diff --git a/src/models/index.ts b/src/models/index.ts new file mode 100644 index 00000000..2b3630d0 --- /dev/null +++ b/src/models/index.ts @@ -0,0 +1,498 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AcceptNetPeeringRequest'; +export * from './AcceptNetPeeringResponse'; +export * from './AccepterNet'; +export * from './AccessKey'; +export * from './AccessKeySecretKey'; +export * from './AccessLog'; +export * from './Account'; +export * from './ApiAccessPolicy'; +export * from './ApiAccessRule'; +export * from './ApplicationStickyCookiePolicy'; +export * from './BackendVmHealth'; +export * from './BlockDeviceMappingCreated'; +export * from './BlockDeviceMappingImage'; +export * from './BlockDeviceMappingVmCreation'; +export * from './BlockDeviceMappingVmUpdate'; +export * from './BsuCreated'; +export * from './BsuToCreate'; +export * from './BsuToUpdateVm'; +export * from './Ca'; +export * from './Catalog'; +export * from './CatalogEntry'; +export * from './CheckAuthenticationRequest'; +export * from './CheckAuthenticationResponse'; +export * from './ClientGateway'; +export * from './ConsumptionEntry'; +export * from './CreateAccessKeyRequest'; +export * from './CreateAccessKeyResponse'; +export * from './CreateAccountRequest'; +export * from './CreateAccountResponse'; +export * from './CreateApiAccessRuleRequest'; +export * from './CreateApiAccessRuleResponse'; +export * from './CreateCaRequest'; +export * from './CreateCaResponse'; +export * from './CreateClientGatewayRequest'; +export * from './CreateClientGatewayResponse'; +export * from './CreateDhcpOptionsRequest'; +export * from './CreateDhcpOptionsResponse'; +export * from './CreateDirectLinkInterfaceRequest'; +export * from './CreateDirectLinkInterfaceResponse'; +export * from './CreateDirectLinkRequest'; +export * from './CreateDirectLinkResponse'; +export * from './CreateFlexibleGpuRequest'; +export * from './CreateFlexibleGpuResponse'; +export * from './CreateImageExportTaskRequest'; +export * from './CreateImageExportTaskResponse'; +export * from './CreateImageRequest'; +export * from './CreateImageResponse'; +export * from './CreateInternetServiceRequest'; +export * from './CreateInternetServiceResponse'; +export * from './CreateKeypairRequest'; +export * from './CreateKeypairResponse'; +export * from './CreateListenerRuleRequest'; +export * from './CreateListenerRuleResponse'; +export * from './CreateLoadBalancerListenersRequest'; +export * from './CreateLoadBalancerListenersResponse'; +export * from './CreateLoadBalancerPolicyRequest'; +export * from './CreateLoadBalancerPolicyResponse'; +export * from './CreateLoadBalancerRequest'; +export * from './CreateLoadBalancerResponse'; +export * from './CreateLoadBalancerTagsRequest'; +export * from './CreateLoadBalancerTagsResponse'; +export * from './CreateNatServiceRequest'; +export * from './CreateNatServiceResponse'; +export * from './CreateNetAccessPointRequest'; +export * from './CreateNetAccessPointResponse'; +export * from './CreateNetPeeringRequest'; +export * from './CreateNetPeeringResponse'; +export * from './CreateNetRequest'; +export * from './CreateNetResponse'; +export * from './CreateNicRequest'; +export * from './CreateNicResponse'; +export * from './CreatePublicIpRequest'; +export * from './CreatePublicIpResponse'; +export * from './CreateRouteRequest'; +export * from './CreateRouteResponse'; +export * from './CreateRouteTableRequest'; +export * from './CreateRouteTableResponse'; +export * from './CreateSecurityGroupRequest'; +export * from './CreateSecurityGroupResponse'; +export * from './CreateSecurityGroupRuleRequest'; +export * from './CreateSecurityGroupRuleResponse'; +export * from './CreateServerCertificateRequest'; +export * from './CreateServerCertificateResponse'; +export * from './CreateSnapshotExportTaskRequest'; +export * from './CreateSnapshotExportTaskResponse'; +export * from './CreateSnapshotRequest'; +export * from './CreateSnapshotResponse'; +export * from './CreateSubnetRequest'; +export * from './CreateSubnetResponse'; +export * from './CreateTagsRequest'; +export * from './CreateTagsResponse'; +export * from './CreateVirtualGatewayRequest'; +export * from './CreateVirtualGatewayResponse'; +export * from './CreateVmsRequest'; +export * from './CreateVmsResponse'; +export * from './CreateVolumeRequest'; +export * from './CreateVolumeResponse'; +export * from './CreateVpnConnectionRequest'; +export * from './CreateVpnConnectionResponse'; +export * from './CreateVpnConnectionRouteRequest'; +export * from './CreateVpnConnectionRouteResponse'; +export * from './DeleteAccessKeyRequest'; +export * from './DeleteAccessKeyResponse'; +export * from './DeleteApiAccessRuleRequest'; +export * from './DeleteApiAccessRuleResponse'; +export * from './DeleteCaRequest'; +export * from './DeleteCaResponse'; +export * from './DeleteClientGatewayRequest'; +export * from './DeleteClientGatewayResponse'; +export * from './DeleteDhcpOptionsRequest'; +export * from './DeleteDhcpOptionsResponse'; +export * from './DeleteDirectLinkInterfaceRequest'; +export * from './DeleteDirectLinkInterfaceResponse'; +export * from './DeleteDirectLinkRequest'; +export * from './DeleteDirectLinkResponse'; +export * from './DeleteExportTaskRequest'; +export * from './DeleteExportTaskResponse'; +export * from './DeleteFlexibleGpuRequest'; +export * from './DeleteFlexibleGpuResponse'; +export * from './DeleteImageRequest'; +export * from './DeleteImageResponse'; +export * from './DeleteInternetServiceRequest'; +export * from './DeleteInternetServiceResponse'; +export * from './DeleteKeypairRequest'; +export * from './DeleteKeypairResponse'; +export * from './DeleteListenerRuleRequest'; +export * from './DeleteListenerRuleResponse'; +export * from './DeleteLoadBalancerListenersRequest'; +export * from './DeleteLoadBalancerListenersResponse'; +export * from './DeleteLoadBalancerPolicyRequest'; +export * from './DeleteLoadBalancerPolicyResponse'; +export * from './DeleteLoadBalancerRequest'; +export * from './DeleteLoadBalancerResponse'; +export * from './DeleteLoadBalancerTagsRequest'; +export * from './DeleteLoadBalancerTagsResponse'; +export * from './DeleteNatServiceRequest'; +export * from './DeleteNatServiceResponse'; +export * from './DeleteNetAccessPointRequest'; +export * from './DeleteNetAccessPointResponse'; +export * from './DeleteNetPeeringRequest'; +export * from './DeleteNetPeeringResponse'; +export * from './DeleteNetRequest'; +export * from './DeleteNetResponse'; +export * from './DeleteNicRequest'; +export * from './DeleteNicResponse'; +export * from './DeletePublicIpRequest'; +export * from './DeletePublicIpResponse'; +export * from './DeleteRouteRequest'; +export * from './DeleteRouteResponse'; +export * from './DeleteRouteTableRequest'; +export * from './DeleteRouteTableResponse'; +export * from './DeleteSecurityGroupRequest'; +export * from './DeleteSecurityGroupResponse'; +export * from './DeleteSecurityGroupRuleRequest'; +export * from './DeleteSecurityGroupRuleResponse'; +export * from './DeleteServerCertificateRequest'; +export * from './DeleteServerCertificateResponse'; +export * from './DeleteSnapshotRequest'; +export * from './DeleteSnapshotResponse'; +export * from './DeleteSubnetRequest'; +export * from './DeleteSubnetResponse'; +export * from './DeleteTagsRequest'; +export * from './DeleteTagsResponse'; +export * from './DeleteVirtualGatewayRequest'; +export * from './DeleteVirtualGatewayResponse'; +export * from './DeleteVmsRequest'; +export * from './DeleteVmsResponse'; +export * from './DeleteVolumeRequest'; +export * from './DeleteVolumeResponse'; +export * from './DeleteVpnConnectionRequest'; +export * from './DeleteVpnConnectionResponse'; +export * from './DeleteVpnConnectionRouteRequest'; +export * from './DeleteVpnConnectionRouteResponse'; +export * from './DeregisterVmsInLoadBalancerRequest'; +export * from './DeregisterVmsInLoadBalancerResponse'; +export * from './DhcpOptionsSet'; +export * from './DirectLink'; +export * from './DirectLinkInterface'; +export * from './DirectLinkInterfaces'; +export * from './ErrorResponse'; +export * from './Errors'; +export * from './FiltersAccessKeys'; +export * from './FiltersApiAccessRule'; +export * from './FiltersApiLog'; +export * from './FiltersCa'; +export * from './FiltersClientGateway'; +export * from './FiltersDhcpOptions'; +export * from './FiltersDirectLink'; +export * from './FiltersDirectLinkInterface'; +export * from './FiltersExportTask'; +export * from './FiltersFlexibleGpu'; +export * from './FiltersImage'; +export * from './FiltersInternetService'; +export * from './FiltersKeypair'; +export * from './FiltersListenerRule'; +export * from './FiltersLoadBalancer'; +export * from './FiltersNatService'; +export * from './FiltersNet'; +export * from './FiltersNetAccessPoint'; +export * from './FiltersNetPeering'; +export * from './FiltersNic'; +export * from './FiltersProductType'; +export * from './FiltersPublicIp'; +export * from './FiltersQuota'; +export * from './FiltersRouteTable'; +export * from './FiltersSecurityGroup'; +export * from './FiltersServerCertificate'; +export * from './FiltersService'; +export * from './FiltersSnapshot'; +export * from './FiltersSubnet'; +export * from './FiltersSubregion'; +export * from './FiltersTag'; +export * from './FiltersVirtualGateway'; +export * from './FiltersVm'; +export * from './FiltersVmType'; +export * from './FiltersVmsState'; +export * from './FiltersVolume'; +export * from './FiltersVpnConnection'; +export * from './FlexibleGpu'; +export * from './FlexibleGpuCatalog'; +export * from './HealthCheck'; +export * from './Image'; +export * from './ImageExportTask'; +export * from './InternetService'; +export * from './Keypair'; +export * from './KeypairCreated'; +export * from './LinkFlexibleGpuRequest'; +export * from './LinkFlexibleGpuResponse'; +export * from './LinkInternetServiceRequest'; +export * from './LinkInternetServiceResponse'; +export * from './LinkLoadBalancerBackendMachinesRequest'; +export * from './LinkLoadBalancerBackendMachinesResponse'; +export * from './LinkNic'; +export * from './LinkNicLight'; +export * from './LinkNicRequest'; +export * from './LinkNicResponse'; +export * from './LinkNicToUpdate'; +export * from './LinkPrivateIpsRequest'; +export * from './LinkPrivateIpsResponse'; +export * from './LinkPublicIp'; +export * from './LinkPublicIpLightForVm'; +export * from './LinkPublicIpRequest'; +export * from './LinkPublicIpResponse'; +export * from './LinkRouteTable'; +export * from './LinkRouteTableRequest'; +export * from './LinkRouteTableResponse'; +export * from './LinkVirtualGatewayRequest'; +export * from './LinkVirtualGatewayResponse'; +export * from './LinkVolumeRequest'; +export * from './LinkVolumeResponse'; +export * from './LinkedVolume'; +export * from './Listener'; +export * from './ListenerForCreation'; +export * from './ListenerRule'; +export * from './ListenerRuleForCreation'; +export * from './LoadBalancer'; +export * from './LoadBalancerLight'; +export * from './LoadBalancerStickyCookiePolicy'; +export * from './LoadBalancerTag'; +export * from './Location'; +export * from './Log'; +export * from './MaintenanceEvent'; +export * from './ModelResponseContext'; +export * from './NatService'; +export * from './Net'; +export * from './NetAccessPoint'; +export * from './NetPeering'; +export * from './NetPeeringState'; +export * from './NetToVirtualGatewayLink'; +export * from './Nic'; +export * from './NicForVmCreation'; +export * from './NicLight'; +export * from './OsuApiKey'; +export * from './OsuExportImageExportTask'; +export * from './OsuExportSnapshotExportTask'; +export * from './OsuExportToCreate'; +export * from './PermissionsOnResource'; +export * from './PermissionsOnResourceCreation'; +export * from './Phase1Options'; +export * from './Phase2Options'; +export * from './Placement'; +export * from './PrivateIp'; +export * from './PrivateIpLight'; +export * from './PrivateIpLightForVm'; +export * from './ProductType'; +export * from './PublicIp'; +export * from './PublicIpLight'; +export * from './Quota'; +export * from './QuotaTypes'; +export * from './ReadAccessKeysRequest'; +export * from './ReadAccessKeysResponse'; +export * from './ReadAccountsRequest'; +export * from './ReadAccountsResponse'; +export * from './ReadAdminPasswordRequest'; +export * from './ReadAdminPasswordResponse'; +export * from './ReadApiAccessPolicyRequest'; +export * from './ReadApiAccessPolicyResponse'; +export * from './ReadApiAccessRulesRequest'; +export * from './ReadApiAccessRulesResponse'; +export * from './ReadApiLogsRequest'; +export * from './ReadApiLogsResponse'; +export * from './ReadCasRequest'; +export * from './ReadCasResponse'; +export * from './ReadCatalogRequest'; +export * from './ReadCatalogResponse'; +export * from './ReadClientGatewaysRequest'; +export * from './ReadClientGatewaysResponse'; +export * from './ReadConsoleOutputRequest'; +export * from './ReadConsoleOutputResponse'; +export * from './ReadConsumptionAccountRequest'; +export * from './ReadConsumptionAccountResponse'; +export * from './ReadDhcpOptionsRequest'; +export * from './ReadDhcpOptionsResponse'; +export * from './ReadDirectLinkInterfacesRequest'; +export * from './ReadDirectLinkInterfacesResponse'; +export * from './ReadDirectLinksRequest'; +export * from './ReadDirectLinksResponse'; +export * from './ReadFlexibleGpuCatalogRequest'; +export * from './ReadFlexibleGpuCatalogResponse'; +export * from './ReadFlexibleGpusRequest'; +export * from './ReadFlexibleGpusResponse'; +export * from './ReadImageExportTasksRequest'; +export * from './ReadImageExportTasksResponse'; +export * from './ReadImagesRequest'; +export * from './ReadImagesResponse'; +export * from './ReadInternetServicesRequest'; +export * from './ReadInternetServicesResponse'; +export * from './ReadKeypairsRequest'; +export * from './ReadKeypairsResponse'; +export * from './ReadListenerRulesRequest'; +export * from './ReadListenerRulesResponse'; +export * from './ReadLoadBalancerTagsRequest'; +export * from './ReadLoadBalancerTagsResponse'; +export * from './ReadLoadBalancersRequest'; +export * from './ReadLoadBalancersResponse'; +export * from './ReadLocationsRequest'; +export * from './ReadLocationsResponse'; +export * from './ReadNatServicesRequest'; +export * from './ReadNatServicesResponse'; +export * from './ReadNetAccessPointServicesRequest'; +export * from './ReadNetAccessPointServicesResponse'; +export * from './ReadNetAccessPointsRequest'; +export * from './ReadNetAccessPointsResponse'; +export * from './ReadNetPeeringsRequest'; +export * from './ReadNetPeeringsResponse'; +export * from './ReadNetsRequest'; +export * from './ReadNetsResponse'; +export * from './ReadNicsRequest'; +export * from './ReadNicsResponse'; +export * from './ReadProductTypesRequest'; +export * from './ReadProductTypesResponse'; +export * from './ReadPublicCatalogRequest'; +export * from './ReadPublicCatalogResponse'; +export * from './ReadPublicIpRangesRequest'; +export * from './ReadPublicIpRangesResponse'; +export * from './ReadPublicIpsRequest'; +export * from './ReadPublicIpsResponse'; +export * from './ReadQuotasRequest'; +export * from './ReadQuotasResponse'; +export * from './ReadRegionsRequest'; +export * from './ReadRegionsResponse'; +export * from './ReadRouteTablesRequest'; +export * from './ReadRouteTablesResponse'; +export * from './ReadSecretAccessKeyRequest'; +export * from './ReadSecretAccessKeyResponse'; +export * from './ReadSecurityGroupsRequest'; +export * from './ReadSecurityGroupsResponse'; +export * from './ReadServerCertificatesRequest'; +export * from './ReadServerCertificatesResponse'; +export * from './ReadSnapshotExportTasksRequest'; +export * from './ReadSnapshotExportTasksResponse'; +export * from './ReadSnapshotsRequest'; +export * from './ReadSnapshotsResponse'; +export * from './ReadSubnetsRequest'; +export * from './ReadSubnetsResponse'; +export * from './ReadSubregionsRequest'; +export * from './ReadSubregionsResponse'; +export * from './ReadTagsRequest'; +export * from './ReadTagsResponse'; +export * from './ReadVirtualGatewaysRequest'; +export * from './ReadVirtualGatewaysResponse'; +export * from './ReadVmTypesRequest'; +export * from './ReadVmTypesResponse'; +export * from './ReadVmsHealthRequest'; +export * from './ReadVmsHealthResponse'; +export * from './ReadVmsRequest'; +export * from './ReadVmsResponse'; +export * from './ReadVmsStateRequest'; +export * from './ReadVmsStateResponse'; +export * from './ReadVolumesRequest'; +export * from './ReadVolumesResponse'; +export * from './ReadVpnConnectionsRequest'; +export * from './ReadVpnConnectionsResponse'; +export * from './RebootVmsRequest'; +export * from './RebootVmsResponse'; +export * from './Region'; +export * from './RegisterVmsInLoadBalancerRequest'; +export * from './RegisterVmsInLoadBalancerResponse'; +export * from './RejectNetPeeringRequest'; +export * from './RejectNetPeeringResponse'; +export * from './ResetAccountPasswordRequest'; +export * from './ResetAccountPasswordResponse'; +export * from './ResourceLoadBalancerTag'; +export * from './ResourceTag'; +export * from './Route'; +export * from './RouteLight'; +export * from './RoutePropagatingVirtualGateway'; +export * from './RouteTable'; +export * from './SecurityGroup'; +export * from './SecurityGroupLight'; +export * from './SecurityGroupRule'; +export * from './SecurityGroupsMember'; +export * from './SendResetPasswordEmailRequest'; +export * from './SendResetPasswordEmailResponse'; +export * from './ServerCertificate'; +export * from './Service'; +export * from './Snapshot'; +export * from './SnapshotExportTask'; +export * from './SourceNet'; +export * from './SourceSecurityGroup'; +export * from './StartVmsRequest'; +export * from './StartVmsResponse'; +export * from './StateComment'; +export * from './StopVmsRequest'; +export * from './StopVmsResponse'; +export * from './Subnet'; +export * from './Subregion'; +export * from './Tag'; +export * from './UnlinkFlexibleGpuRequest'; +export * from './UnlinkFlexibleGpuResponse'; +export * from './UnlinkInternetServiceRequest'; +export * from './UnlinkInternetServiceResponse'; +export * from './UnlinkLoadBalancerBackendMachinesRequest'; +export * from './UnlinkLoadBalancerBackendMachinesResponse'; +export * from './UnlinkNicRequest'; +export * from './UnlinkNicResponse'; +export * from './UnlinkPrivateIpsRequest'; +export * from './UnlinkPrivateIpsResponse'; +export * from './UnlinkPublicIpRequest'; +export * from './UnlinkPublicIpResponse'; +export * from './UnlinkRouteTableRequest'; +export * from './UnlinkRouteTableResponse'; +export * from './UnlinkVirtualGatewayRequest'; +export * from './UnlinkVirtualGatewayResponse'; +export * from './UnlinkVolumeRequest'; +export * from './UnlinkVolumeResponse'; +export * from './UpdateAccessKeyRequest'; +export * from './UpdateAccessKeyResponse'; +export * from './UpdateAccountRequest'; +export * from './UpdateAccountResponse'; +export * from './UpdateApiAccessPolicyRequest'; +export * from './UpdateApiAccessPolicyResponse'; +export * from './UpdateApiAccessRuleRequest'; +export * from './UpdateApiAccessRuleResponse'; +export * from './UpdateCaRequest'; +export * from './UpdateCaResponse'; +export * from './UpdateFlexibleGpuRequest'; +export * from './UpdateFlexibleGpuResponse'; +export * from './UpdateImageRequest'; +export * from './UpdateImageResponse'; +export * from './UpdateListenerRuleRequest'; +export * from './UpdateListenerRuleResponse'; +export * from './UpdateLoadBalancerRequest'; +export * from './UpdateLoadBalancerResponse'; +export * from './UpdateNetAccessPointRequest'; +export * from './UpdateNetAccessPointResponse'; +export * from './UpdateNetRequest'; +export * from './UpdateNetResponse'; +export * from './UpdateNicRequest'; +export * from './UpdateNicResponse'; +export * from './UpdateRoutePropagationRequest'; +export * from './UpdateRoutePropagationResponse'; +export * from './UpdateRouteRequest'; +export * from './UpdateRouteResponse'; +export * from './UpdateServerCertificateRequest'; +export * from './UpdateServerCertificateResponse'; +export * from './UpdateSnapshotRequest'; +export * from './UpdateSnapshotResponse'; +export * from './UpdateSubnetRequest'; +export * from './UpdateSubnetResponse'; +export * from './UpdateVmRequest'; +export * from './UpdateVmResponse'; +export * from './UpdateVolumeRequest'; +export * from './UpdateVolumeResponse'; +export * from './UpdateVpnConnectionRequest'; +export * from './UpdateVpnConnectionResponse'; +export * from './VgwTelemetry'; +export * from './VirtualGateway'; +export * from './Vm'; +export * from './VmState'; +export * from './VmStates'; +export * from './VmType'; +export * from './Volume'; +export * from './VpnConnection'; +export * from './VpnOptions'; +export * from './With'; diff --git a/src/runtime.ts b/src/runtime.ts new file mode 100644 index 00000000..64aa2099 --- /dev/null +++ b/src/runtime.ts @@ -0,0 +1,400 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 3DS OUTSCALE API + * Welcome to the OUTSCALE API documentation.

The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the OUTSCALE API. You can find a list of the differences [here](https://docs.outscale.com/en/userguide/OUTSCALE-APIs-Reference.html).

You can also manage your resources using the [Cockpit](https://docs.outscale.com/en/userguide/About-Cockpit.html) web interface. + * + * The version of the OpenAPI document: 1.19 + * Contact: support@outscale.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { AwsV4Signer as AwsV4SignerLib } from "aws4fetch"; + +export const BASE_PATH = "https://api.eu-west-2.outscale.com/api/v1".replace(/\/+$/, ""); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | ((name: string) => string); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request + awsV4SignParameters?: AwsV4SignerParameters; // parameter for aws v4 signature security +} + +export interface AwsV4SignerParameters { + accessKeyId: string; + secretAccessKey: string; + region: string; + service?: string; +} + +export class AwsV4Signer { + constructor(private configuration: AwsV4SignerParameters) {} + async sign(method: string, url: string, headers: HTTPHeaders, body: any): Promise<{url: URL, headers: HTTPHeaders}> { + const signer = new AwsV4SignerLib({ + method: method, + url: url, + headers: headers, + body: body, + accessKeyId: this.configuration.accessKeyId, + secretAccessKey: this.configuration.secretAccessKey, + service: this.configuration.service, + region: this.configuration.region, + }); + const signResult = await signer.sign(); + // Convert Headers to HTTPHeaders + let newHeaders: HTTPHeaders = {}; + for (const [key, value] of signResult.headers.entries()) { + newHeaders[key] = value; + } + return {url: signResult.url, headers: newHeaders}; + } +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } + get awsV4SignerParameters(): AwsV4SignerParameters | undefined { + return this.configuration.awsV4SignParameters; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + + private middleware: Middleware[]; + + constructor(protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response.status >= 200 && response.status < 300) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overridedInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + } + + const init: RequestInit = { + ...overridedInit, + body: + isFormData(overridedInit.body) || + overridedInit.body instanceof URLSearchParams || + isBlob(overridedInit.body) + ? overridedInit.body + : JSON.stringify(overridedInit.body), + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== "undefined" && value instanceof FormData +} + +export class ResponseError extends Error { + name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } +} + +export class RequiredError extends Error { + name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | HTTPQuery }; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody } +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function exists(json: any, key: string) { + const value = json[key]; + return value !== null && value !== undefined; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map((key) => { + const fullKey = prefix + (prefix.length ? `[${key}]` : key); + const value = params[key]; + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; + }) + .filter(part => part.length > 0) + .join('&'); +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {} + ); +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + }; +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + }; +} diff --git a/tsconfig-cjs.json b/tsconfig-cjs.json new file mode 100644 index 00000000..cd6f2fbf --- /dev/null +++ b/tsconfig-cjs.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig-esm.json", + "compilerOptions": { + "module": "CommonJS", + "outDir": "./dist/cjs" + } +} \ No newline at end of file diff --git a/tsconfig-esm.json b/tsconfig-esm.json new file mode 100644 index 00000000..3fa45aed --- /dev/null +++ b/tsconfig-esm.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es2015", + "target": "es6", + "declaration": true, + "esModuleInterop": true, + "outDir": "./dist/esm", + "strict": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node" + }, + "include": [ + "./src" + ], + "lib": [ + "es6", + "dom" + ] +} \ No newline at end of file